/* =========================================================
   3D NEGOCE — Design system v3
   Bleu de marque clair (#3949AB) + jaune or (#FFC107)
   Responsive testé de 320px à 1920px
   ========================================================= */
:root {
    --blue-900: #1a237e;
    --blue-800: #283593;
    --blue-700: #303f9f;
    --blue-600: #3949ab;
    --blue-500: #3f51b5;
    --blue-400: #5c6bc0;
    --blue-300: #7986cb;
    --blue-200: #c5cae9;
    --blue-100: #e8eaf6;
    --blue-50: #f4f5fd;
    --gold: #ffc107;
    --gold-600: #ffb300;
    --gold-100: #fff6d6;
    --ink: #141a3d;
    --text: #2a3054;
    --muted: #6b7194;
    --line: #e4e6f2;
    --bg: #f7f8fd;
    --white: #ffffff;
    --success: #12b76a;
    --danger: #e5484d;
    --wa: #25d366;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(20, 26, 61, .05), 0 2px 8px rgba(20, 26, 61, .04);
    --shadow: 0 4px 12px rgba(20, 26, 61, .05), 0 16px 40px -12px rgba(57, 73, 171, .22);
    --shadow-lg: 0 24px 70px -20px rgba(26, 35, 126, .35);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --container: 1280px;
    --gutter: clamp(16px, 4vw, 32px);
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
    line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 16px;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--blue-50); }
::-webkit-scrollbar-thumb { background: var(--blue-400); border-radius: 10px; border: 2px solid var(--blue-50); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo ---------- */
.tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    background: var(--blue-100); color: var(--blue-600);
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag i { font-size: 11px; }
.tag.on-blue { background: rgba(255, 255, 255, .16); color: #fff; }
.title {
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.12; letter-spacing: -.025em;
    font-weight: 800; color: var(--ink); margin: 14px 0 0;
}
.title .hl { color: var(--blue-600); }
.lead { color: var(--muted); font-size: clamp(1rem, .95rem + .25vw, 1.1rem); margin: 14px 0 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.head > div { max-width: 640px; }
.head.center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Boutons ---------- */
.btn {
    --h: 50px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--h); padding: 0 24px; border-radius: 999px;
    font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
    transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s var(--ease), border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(57, 73, 171, .7); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255, 179, 0, .8); }
.btn-gold:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center;
    background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 16px;
    transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.icon-btn.in-quote { background: var(--success); border-color: var(--success); color: #fff; }

/* =========================================================
   TOP BAR + NAVBAR
   ========================================================= */
.topbar { background: var(--blue-800); color: rgba(255, 255, 255, .88); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); margin-right: 6px; }
/* Zone tactile 24 × 24 px par icône ; écart réduit pour garder les icônes au même endroit (26 px entre centres) */
.topbar-social { display: flex; gap: 2px; }
.topbar-social a { display: grid; place-items: center; width: 24px; height: 24px; }
.topbar-social i { color: #fff; margin: 0; }
@media (max-width: 860px) { .topbar { display: none; } }

.nav { position: sticky; top: 0; z-index: 900; background: var(--blue-600); transition: box-shadow .3s, background .3s; }
.nav.scrolled { box-shadow: 0 10px 30px -12px rgba(26, 35, 126, .55); background: rgba(57, 73, 171, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .88); transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-links a.active { color: var(--ink); background: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.quote-trigger {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px;
    border-radius: 999px; background: #fff; color: var(--blue-700); font-weight: 700; font-size: 14.5px;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.quote-trigger:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }
.quote-trigger i { font-size: 16px; }
.badge {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink);
    font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; line-height: 1;
}
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } 100% { transform: scale(1); } }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; place-items: center; }
@media (max-width: 1100px) { .nav-links { display: none; } .burger { display: inline-grid; } }
@media (max-width: 480px) {
    :root { --nav-h: 64px; }
    .nav-logo img { height: 38px; }
    .quote-trigger { padding: 0 12px; }
    .quote-trigger .qt-label { display: none; }
}
@media (max-width: 340px) { .nav-logo img { height: 32px; } .nav-actions { gap: 6px; } }

/* Menu mobile */
.mnav { position: fixed; inset: 0; z-index: 1200; background: rgba(20, 26, 61, .45); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.mnav.open { opacity: 1; visibility: visible; }
.mnav-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff;
    display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
    transform: translateX(100%); transition: transform .45s var(--ease);
}
.mnav.open .mnav-panel { transform: none; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.logo-chip { background: var(--blue-600); padding: 8px 14px; border-radius: 12px; }
.logo-chip img { height: 32px; }
.mnav nav { display: flex; flex-direction: column; padding: 12px 0; }
.mnav nav a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; font-size: 16.5px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.mnav nav a i { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; font-size: 14px; }
.mnav-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--blue-400) 100%);
    padding: clamp(40px, 6vw, 80px) 0 clamp(120px, 12vw, 170px);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
    background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 26px 26px;
    mask-image: linear-gradient(120deg, #000 10%, transparent 60%); -webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 60%);
}
.hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -220px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 193, 7, .35), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 20px 0 0; }
.hero-leader { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); font-weight: 700; color: rgba(255, 255, 255, .85); }
.rotator { position: relative; display: inline-flex; color: var(--ink); background: var(--gold); padding: 2px 14px 4px; border-radius: 12px; overflow: hidden; }
.rotator span { display: inline-block; transition: transform .45s var(--ease), opacity .45s; }
.rotator span.out { transform: translateY(-110%); opacity: 0; }
.rotator span.in { transform: translateY(110%); opacity: 0; transition: none; }
.hero p.sub { max-width: 560px; color: rgba(255, 255, 255, .9); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats div { padding: 12px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); min-width: 120px; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.hero-stats strong small { color: var(--gold); font-size: .7em; }
.hero-stats div > span { font-size: 13px; color: rgba(255, 255, 255, .82); font-weight: 600; }

.hero-visual { position: relative; }
.hero-bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .92; }
.bento { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--blue-700); box-shadow: var(--shadow-lg); color: #fff; text-align: left; }
.bento:first-child { grid-row: span 2; }
.bento .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease, transform 6s ease; transform: scale(1.06); }
.bento .slide.active { opacity: 1; transform: scale(1); }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento:hover img { transform: scale(1.06); }
.bento::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(26, 35, 126, .78)); pointer-events: none; }
.bento-label { position: absolute; left: 14px; bottom: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.bento-label small { display: block; font-size: 11px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.bento-label .go { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--blue-600); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.bento .dots { display: flex; gap: 5px; }
/* Points du slideshow : même dessin (8 px), mais zone tactile de 24 × 24 px (padding transparent) */
.bento .dots { gap: 0; }
.bento .dots button { width: 24px; height: 24px; padding: 8px; border-radius: 99px; background: rgba(255, 255, 255, .5); background-clip: content-box; transition: width .3s var(--ease), background .3s; }
.bento .dots button.active { width: 38px; background: var(--gold); background-clip: content-box; }
.hero-float {
    position: absolute; z-index: 3; left: -22px; top: 26px; background: #fff; color: var(--ink); border-radius: var(--r);
    padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 700;
    animation: floaty 5s ease-in-out infinite;
}
.hero-float i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.hero-float small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 70px); z-index: 1; color: var(--bg); pointer-events: none; }
.hero-wave svg { width: 100%; height: 100%; display: block; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 640px; width: 100%; margin: 0 auto; }
    .hero-float { left: 10px; top: 10px; }
}
@media (max-width: 520px) {
    .hero-bento { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px; gap: 10px; }
    .bento:first-child { grid-row: auto; grid-column: span 2; }
    .bento-label { font-size: 13px; left: 10px; right: 10px; bottom: 10px; }
    .hero-float { display: none; }
    .hero-cta .btn { flex: 1 1 100%; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .hero-stats div { min-width: 0; padding: 10px 6px; text-align: center; }
    .hero-stats strong { font-size: 1.3rem; }
    .hero-stats div > span { font-size: 11.5px; line-height: 1.3; display: block; }
}

/* ---------- Atouts (chevauchent le hero) ---------- */
.features { position: relative; z-index: 3; margin-top: clamp(-100px, -9vw, -64px); }
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; transition: transform .4s var(--ease); }
.feature:hover { transform: translateY(-4px); }
.feature i { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); font-size: 19px; }
.feature:nth-child(2n) i { background: var(--gold-100); color: #b57f00; }
.feature h2 { margin: 0; font-size: 1.02rem; color: var(--ink); font-weight: 800; }
.feature p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
    .features-grid { gap: 10px; }
    .feature { flex-direction: column; padding: 16px; gap: 10px; border-radius: var(--r); }
    .feature i { width: 40px; height: 40px; font-size: 16px; }
    .feature h2 { font-size: .95rem; }
    .feature p { font-size: 12.5px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.white { background: #fff; }

/* À propos */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-media { position: relative; padding: 0 0 32px 32px; isolation: isolate; }
.about-media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border-radius: var(--r-xl); background: var(--blue-100); z-index: -1; }
.about-media .main { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 5.4; box-shadow: var(--shadow); }
.about-media .main img { width: 100%; height: 100%; object-fit: cover; }
.about-exp { position: absolute; z-index: 2; right: -14px; bottom: 56px; background: var(--blue-600); color: #fff; border-radius: var(--r-lg); padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 210px; }
.about-exp strong { display: block; font-size: 2.2rem; line-height: 1; font-weight: 800; color: var(--gold); }
.about-exp span { font-size: 13.5px; font-weight: 600; }
.about-text p { color: var(--muted); margin: 18px 0 0; }
.about-text p strong { color: var(--blue-600); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.value { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.value:hover { border-color: var(--blue-200); background: #fff; }
.value i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--blue-600); color: #fff; font-size: 15px; }
.value h3 { margin: 0; font-size: 15px; color: var(--ink); }
.value p { margin: 0 !important; font-size: 13px; color: var(--muted); }
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; } .about-media { max-width: 560px; width: 100%; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } .about-media { padding: 0 0 20px 20px; } .about-exp { right: 8px; bottom: 36px; padding: 14px 16px; } .about-exp strong { font-size: 1.8rem; } }

/* Catégories (bento) */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 18vw, 230px); gap: 14px; }
.cat { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--blue-200); text-align: left; color: #fff; isolation: isolate; }
.cat:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.cat:nth-child(4) { grid-column: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26, 35, 126, 0) 35%, rgba(26, 35, 126, .85)); transition: background .4s; }
.cat:hover img { transform: scale(1.07); }
.cat:hover::before { background: linear-gradient(180deg, rgba(57, 73, 171, .15) 0%, rgba(26, 35, 126, .9)); }
.cat-body { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.cat-body strong { display: block; font-size: clamp(1.05rem, .9rem + .6vw, 1.45rem); font-weight: 800; line-height: 1.15; }
.cat-body small { font-size: 13px; font-weight: 600; opacity: .9; }
.cat-body .go { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.cat:hover .go { transform: rotate(-45deg); }
@media (max-width: 860px) {
    .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
    .cat:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .cat:nth-child(4) { grid-column: auto; }
}
@media (max-width: 380px) { .cats { grid-auto-rows: 150px; gap: 10px; } .cat-body { left: 12px; right: 12px; bottom: 12px; } .cat-body .go { width: 32px; height: 32px; font-size: 12px; } }

/* ---------- Catalogue ---------- */
.toolbar { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0; margin-bottom: 20px; border-bottom: 1px solid transparent; transition: border-color .3s; }
.toolbar.stuck { border-color: var(--line); }
.toolbar-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.filter-btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
    background: var(--bg); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14px; transition: all .25s;
}
.filter-btn .count { font-size: 11.5px; min-width: 22px; padding: 2px 6px; border-radius: 999px; background: #fff; color: var(--muted); text-align: center; }
.filter-btn:hover { border-color: var(--blue-300); color: var(--blue-600); }
.filter-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.filter-btn.active .count { background: var(--gold); color: var(--ink); }
.search { position: relative; flex: 0 0 280px; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 40px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); outline: none; font-size: 16px; transition: border-color .25s, box-shadow .25s, background .25s; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(63, 81, 181, .14); }
.search-clear { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }
.search-clear:hover { background: var(--blue-50); color: var(--ink); }
.result-info { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.result-info strong { color: var(--ink); }
@media (max-width: 760px) {
    .toolbar-row { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .search { flex: auto; }
    .chips { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pcard {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line);
    overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
    animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.pcard-media { position: relative; aspect-ratio: 1; background: linear-gradient(180deg, #fafbff, #eef0fa); overflow: hidden; cursor: pointer; display: block; width: 100%; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.pcard-media img.contain { object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.pcard-media img.alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .pcard:hover .pcard-media img.alt { opacity: 1; } }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; background: rgba(255, 255, 255, .95); color: var(--blue-600); box-shadow: var(--shadow-sm); white-space: nowrap; }
.pill.dark { background: rgba(20, 26, 61, .62); color: #fff; box-shadow: none; }
.pcard-view {
    position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 160%); z-index: 2; padding: 9px 16px; border-radius: 999px;
    background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: var(--shadow); transition: transform .4s var(--ease); white-space: nowrap;
}
.pcard:hover .pcard-view { transform: translate(-50%, 0); }
.pcard-body { padding: 16px 16px 12px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.pcard-cat { font-size: 12px; font-weight: 700; color: var(--blue-500); text-transform: uppercase; letter-spacing: .06em; }
.pcard-body h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.pcard-body h3 button { text-align: left; }
.pcard-body h3 button:hover { color: var(--blue-600); }
.pcard-body p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.swatches { display: flex; }
.swatches span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); margin-left: -4px; }
.swatches span:first-child { margin-left: 0; }
.pcard-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.pcard-actions .btn { flex: 1; --h: 42px; font-size: 13.5px; padding: 0 12px; min-width: 0; }
.pcard-actions .icon-btn { width: 42px; height: 42px; }
.add-quote.added { background: var(--success); box-shadow: none; }
@media (max-width: 760px) {
    .pcard { border-radius: var(--r); }
    .pcard-body { padding: 12px 12px 8px; gap: 4px; }
    .pcard-body h3 { font-size: .92rem; }
    .pcard-body p, .pcard-view, .pcard-cat { display: none; }
    .pcard-actions { padding: 0 10px 10px; gap: 6px; }
    .pcard-actions .btn { --h: 38px; font-size: 12.5px; padding: 0 8px; gap: 6px; }
    .pcard-actions .icon-btn { width: 38px; height: 38px; font-size: 13px; }
    .pill { font-size: 10px; padding: 4px 8px; }
    .pcard-badges { top: 8px; left: 8px; right: 8px; }
}
/* (le libellé « Ajouter » reste toujours visible, même sur les petits téléphones) */

.grid-empty { grid-column: 1 / -1; text-align: center; padding: 64px 16px; color: var(--muted); background: var(--bg); border-radius: var(--r-lg); border: 1px dashed var(--line); }
.grid-empty i { font-size: 34px; color: var(--blue-400); margin-bottom: 10px; }
.more-wrap { text-align: center; margin-top: 36px; }

/* ---------- Comment ça marche (devis) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--r-lg); padding: 28px 24px; border: 1px solid var(--line); counter-increment: s; }
.step::before { content: "0" counter(s); position: absolute; top: 18px; right: 22px; font-size: 2.6rem; font-weight: 800; color: var(--blue-100); line-height: 1; }
.step i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-600); color: #fff; font-size: 20px; box-shadow: 0 12px 24px -10px rgba(57, 73, 171, .7); }
.step:nth-child(2) i { background: var(--gold); color: var(--ink); box-shadow: 0 12px 24px -10px rgba(255, 179, 0, .8); }
.step:nth-child(3) i { background: var(--wa); box-shadow: 0 12px 24px -10px rgba(37, 211, 102, .7); }
.step h3 { margin: 18px 0 6px; font-size: 1.15rem; color: var(--ink); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.quote-banner {
    margin-top: 24px; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); color: #fff; isolation: isolate;
    background: linear-gradient(120deg, var(--blue-600), var(--blue-400)); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.quote-banner::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 193, 7, .3); filter: blur(10px); z-index: -1; }
.quote-banner h3 { margin: 0; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); font-weight: 800; }
.quote-banner p { margin: 6px 0 0; color: rgba(255, 255, 255, .88); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .quote-banner .btn { width: 100%; } }

/* ---------- Marques ---------- */
.brands { padding: clamp(40px, 6vw, 72px) 0; background: #fff; border-block: 1px solid var(--line); }
.brands-title { text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.brand { width: clamp(130px, 16vw, 180px); height: clamp(72px, 8vw, 92px); flex-shrink: 0; display: grid; place-items: center; padding: 14px 20px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.brand img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.brand:hover img { filter: none; opacity: 1; }

/* ---------- Avis ---------- */
.reviews { background: linear-gradient(160deg, var(--blue-600), var(--blue-500)); color: #fff; position: relative; overflow: hidden; }
.reviews .title { color: #fff; }
.reviews .title .hl { color: var(--gold); }
.reviews-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.score { display: flex; gap: 16px; align-items: center; margin-top: 26px; }
.score strong { font-size: 3.6rem; font-weight: 800; line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; }
.score span { display: block; font-size: 14px; color: rgba(255, 255, 255, .85); }
.review-cta { margin-top: 26px; transition: background .2s, transform .25s var(--ease), box-shadow .25s; }
/* .reveal.active resets transform, so the hover lift needs the extra .active */
.review-cta.active:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255, 193, 7, .25), 0 12px 30px -6px rgba(255, 193, 7, .85); }
.review-cta.active { animation: review-pulse 1.4s ease-out 1s 1; }
@keyframes review-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, .7); } 100% { box-shadow: 0 0 0 18px rgba(255, 193, 7, 0); } }
@media (prefers-reduced-motion: reduce) { .review-cta.active { animation: none; } .review-cta.active:hover { transform: none; } }
.tcard { background: #fff; color: var(--text); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); position: relative; min-height: 320px; display: flex; flex-direction: column; }
.tcard .q { position: absolute; top: 14px; right: 26px; font-size: 5rem; line-height: 1; color: var(--blue-100); font-weight: 800; font-family: Georgia, serif; }
#testimonial-slider { transition: opacity .3s, transform .3s; position: relative; }
#testimonial-slider.fading { opacity: 0; transform: translateY(8px); }
.ttext { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.55; color: var(--ink); font-weight: 600; margin: 14px 0 0; }
.tauthor { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.tauthor .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); color: #fff; font-weight: 800; }
.tauthor h3 { margin: 0; font-size: 15px; color: var(--ink); }
.tauthor span { font-size: 13px; color: var(--muted); }
.tnav { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 24px; }
.tdots { display: flex; gap: 6px; }
.testimonial-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--blue-100); transition: width .3s var(--ease), background .3s; }
.testimonial-dot.active { width: 28px; background: var(--blue-600); }
.tarrows { display: flex; gap: 8px; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; }
.cinfo { background: var(--blue-600); color: #fff; border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.cinfo h3 { margin: 0; font-size: 1.4rem; }
.cinfo > p { margin: -10px 0 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.crow { display: flex; gap: 14px; align-items: flex-start; }
.crow .ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, .15); color: var(--gold); display: grid; place-items: center; }
.crow h4 { margin: 0 0 2px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.crow a, .crow p { display: block; margin: 0; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.crow a:hover { color: var(--gold); }
.map { border-radius: var(--r); overflow: hidden; margin-top: auto; }
.map iframe { display: block; width: 100%; height: 220px; border: 0; }
.cform { background: #fff; border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 40px); border: 1px solid var(--line); min-width: 0; }
.cform h3 { margin: 0; font-size: 1.4rem; color: var(--ink); }
.cform > p { margin: 4px 0 22px; color: var(--muted); font-size: 14.5px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { margin-bottom: 14px; min-width: 0; }
.field label, .field .label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
    outline: none; font-size: 16px; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(63, 81, 181, .12); }
.field .invalid { border-color: var(--danger) !important; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { margin: 0; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--text); transition: all .2s; }
.seg input:checked + span { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form-alert.hidden { display: none; }
.form-alert.success { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.form-alert.error { background: #fef3f2; color: #912018; border: 1px solid #fecdca; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--blue-800); color: rgba(255, 255, 255, .82); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 48px); padding: clamp(48px, 7vw, 80px) 0 40px; }
.footer-top img { height: 48px; width: auto; }
.footer-top p { font-size: 14px; margin: 16px 0 0; max-width: 340px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer ul a:hover { color: var(--gold); }
.fcontact li { display: flex; gap: 10px; }
.fcontact i { color: var(--gold); margin-top: 5px; width: 14px; flex-shrink: 0; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: #fff; transition: background .25s, color .25s; }
.socials a:hover { background: var(--gold); color: var(--ink); }
.newsletter { display: flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .12); margin-top: 16px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0 12px; color: #fff; font-size: 16px; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter button { min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--gold); }
@media (max-width: 920px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } .footer-bottom { padding-bottom: 96px; } }

/* ---------- Boutons flottants ---------- */
.fab-wa {
    position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 800;
    width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 28px; display: grid; place-items: center;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65); transition: transform .3s var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa .tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
@media (hover: hover) { .fab-wa:hover .tip { opacity: 1; } }
.fab-quote {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 800;
    display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 999px;
    background: var(--blue-600); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 16px 34px -12px rgba(57, 73, 171, .8);
    transform: translateY(160%); transition: transform .45s var(--ease), background .25s;
}
.fab-quote.show { transform: none; }
.fab-quote:hover { background: var(--blue-700); }
.fab-quote i { font-size: 18px; }
.back-top {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 790;
    width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blue-600); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), bottom .3s var(--ease);
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top.raised { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px); }
@media (max-width: 480px) { .fab-quote { min-height: 52px; padding: 0 16px; } .fab-wa { width: 52px; height: 52px; font-size: 26px; } .fab-quote .lbl { display: none; } .back-top.raised { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; top: calc(var(--nav-h) + 14px); transform: translateX(-50%); z-index: 2000; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 10px 10px 10px 12px; border-radius: 16px; box-shadow: var(--shadow-lg); animation: toastIn .45s var(--ease); }
.toast img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; flex-shrink: 0; }
.toast .t-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--success); display: grid; place-items: center; flex-shrink: 0; }
.toast div { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.toast div strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast button { flex-shrink: 0; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 12.5px; }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* =========================================================
   FICHE PRODUIT (product viewer)
   ========================================================= */
.pv {
    position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center;
    padding: clamp(0px, 3vw, 32px); background: rgba(20, 26, 61, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.pv.open { opacity: 1; visibility: visible; }
.pv-dialog {
    position: relative; width: 100%; max-width: 1180px; height: min(880px, 100%); background: #fff; border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
    transform: translateY(24px) scale(.98); transition: transform .5s var(--ease);
}
.pv.open .pv-dialog { transform: none; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; min-height: 60px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; white-space: nowrap; }
.crumbs b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumbs i { font-size: 10px; flex-shrink: 0; }
.crumbs button { color: var(--blue-600); font-weight: 700; flex-shrink: 0; }
.pv-top-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pv-top-actions .icon-btn { width: 40px; height: 40px; font-size: 14px; }
.pv-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; min-height: 0; }
.pv-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }

/* Galerie */
.pv-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 24px; background: linear-gradient(180deg, #fafbff, #f0f2fb); position: sticky; top: 0; }
.pv-gallery.single { grid-template-columns: minmax(0, 1fr); }
.pv-thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; scrollbar-width: none; }
.pv-thumbs::-webkit-scrollbar { display: none; }
.pv-thumb { width: 76px; height: 76px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 2px solid transparent; transition: border-color .2s, opacity .2s; opacity: .7; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pv-thumb:hover { opacity: 1; }
.pv-thumb.active { border-color: var(--blue-600); opacity: 1; }
.pv-stage { position: relative; min-width: 0; }
.pv-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); background: #fff; aspect-ratio: 1; }
.pv-track::-webkit-scrollbar { display: none; }
.pv-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; overflow: hidden; cursor: zoom-in; }
.pv-slide img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease-out; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.pv-slide.zoomed { cursor: zoom-out; }
.pv-slide.zoomed img { transform: scale(2.2); transition: none; }
/* blurred copy of the same photo fills the empty margins, so tall and wide photos all look like a full square */
.pv-slide img:not(.pv-bg) { position: relative; z-index: 1; }
.pv-slide img.pv-bg { position: absolute; inset: 0; object-fit: cover; filter: blur(28px) saturate(1.15); opacity: .55; transform: scale(1.2); transition: none; }
.pv-slide.zoomed img.pv-bg { transform: scale(1.2); }
.pv-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; transition: background .2s, color .2s; }
.pv-arrow:hover { background: var(--blue-600); color: #fff; }
.pv-arrow.prev { left: 12px; }
.pv-arrow.next { right: 12px; }
/* mouse users: arrows stay hidden so they never cover the photo; they fade in when the pointer is over the image */
@media (hover: hover) { .pv-arrow { opacity: 0; pointer-events: none; transition: opacity .25s, background .2s, color .2s; } .pv-stage:hover .pv-arrow, .pv-arrow:focus-visible { opacity: 1; pointer-events: auto; } }
.pv-counter { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(20, 26, 61, .7); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.pv-zoom-hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--muted); font-size: 12px; font-weight: 600; pointer-events: none; }
.pv-dots { display: none; justify-content: center; gap: 6px; padding: 10px 0 0; }
.pv-dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--blue-200); transition: width .3s var(--ease), background .3s; }
.pv-dots button.active { width: 22px; background: var(--blue-600); }

/* Infos */
.pv-info { padding: 28px clamp(20px, 3vw, 40px) 32px; display: flex; flex-direction: column; min-width: 0; }
.pv-name { margin: 14px 0 0; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.pv-short { margin: 10px 0 0; color: var(--text); font-weight: 600; }
.pv-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pv-highlights span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text); }
.pv-highlights i { color: var(--success); }
.pv-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pv-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.pv-label strong { color: var(--ink); }
.pv-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-color { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; transition: border-color .2s, box-shadow .2s; }
.pv-color span { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); flex-shrink: 0; }
.pv-color:hover { border-color: var(--blue-300); }
.pv-color.active { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(57, 73, 171, .15); }
.pv-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-size { min-height: 42px; min-width: 64px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; transition: all .2s; }
.pv-size:hover { border-color: var(--blue-300); }
.pv-size.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; height: 50px; flex-shrink: 0; }
.qty button { width: 44px; height: 100%; font-size: 14px; color: var(--ink); border-radius: 999px; }
.qty button:hover { color: var(--blue-600); }
.qty input { width: 46px; text-align: center; border: 0; outline: none; font-weight: 800; font-size: 16px; background: transparent; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; font-size: 12px; }
.qty.sm input { width: 34px; font-size: 14px; }
.pv-buy { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-buy .btn-primary { flex: 1 1 200px; }
.pv-buy .btn-wa { flex: 1 1 100%; }
.pv-in-quote { margin-top: 10px; font-size: 13.5px; color: var(--success); font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pv-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tabs button { padding: 10px 2px; margin-right: 20px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.pv-tabs button.active { color: var(--blue-600); border-color: var(--blue-600); }
.pv-panel { font-size: 14.5px; color: var(--text); }
.pv-panel p { margin: 0; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; vertical-align: top; }
.spec th { width: 40%; color: var(--muted); font-weight: 600; padding-right: 12px; }
.spec td { color: var(--ink); font-weight: 700; }
.pv-assure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.pv-assure div { padding: 12px 8px; border-radius: 14px; background: var(--bg); text-align: center; font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.35; }
.pv-assure i { display: block; color: var(--blue-600); font-size: 18px; margin-bottom: 6px; }

/* Produits similaires */
.pv-related { padding: 28px 24px 32px; border-top: 1px solid var(--line); background: var(--bg); }
.pv-related h3 { margin: 0 0 16px; font-size: 1.15rem; color: var(--ink); }
.rel-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 19%, 210px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.rel { scroll-snap-align: start; background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; text-align: left; transition: border-color .2s, transform .3s var(--ease); }
.rel:hover { border-color: var(--blue-300); transform: translateY(-3px); }
.rel img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f0f2fb; }
.rel img.contain { object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.rel span { display: block; padding: 10px 12px; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }

.pv-bar { display: none; }

@media (max-width: 900px) {
    .pv { padding: 0; align-items: stretch; }
    .pv-dialog { height: 100%; max-width: none; border-radius: 0; }
    .pv-top { padding: 8px 10px 8px 16px; min-height: 56px; }
    .pv-main { grid-template-columns: minmax(0, 1fr); }
    .pv-gallery, .pv-gallery.single { position: static; grid-template-columns: minmax(0, 1fr); padding: 0 0 4px; background: #fff; }
    .pv-thumbs { display: none; }
    .pv-track { border-radius: 0; aspect-ratio: 1 / .9; background: linear-gradient(180deg, #fafbff, #eef0fa); }
    .pv-arrow, .pv-zoom-hint { display: none; }
    .pv-dots { display: flex; }
    .pv-info { padding: 16px var(--gutter) 24px; }
    .pv-desktop-buy { display: none; }
    .pv-related { padding: 24px var(--gutter) 28px; }
    .rel-track { grid-auto-columns: minmax(140px, 42%); }
    .pv-bar {
        display: flex; gap: 8px; align-items: center; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; box-shadow: 0 -8px 24px -12px rgba(20, 26, 61, .15);
    }
    .pv-bar .btn-primary { flex: 1; --h: 48px; padding: 0 12px; min-width: 0; }
    .pv-bar .qty { height: 48px; }
    .pv-bar .btn-wa { flex: 0 0 48px; width: 48px; padding: 0; --h: 48px; font-size: 20px; }
}
@media (max-width: 420px) { .pv-top-actions .pv-share { display: none; } }
@media (max-width: 370px) {
    .pv-assure { grid-template-columns: 1fr; }
    .pv-assure div { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; }
    .pv-assure i { margin: 0; }
    .pv-bar .qty button { width: 32px; }
    .pv-bar .qty input { width: 30px; }
    .pv-bar .btn-primary .lbl-long { display: none; }
}
@media (min-width: 371px) { .pv-bar .btn-primary .lbl-short { display: none; } }
@media (min-width: 901px) and (max-height: 700px) { .pv { padding: 12px; } .pv-dialog { height: 100%; } }

/* =========================================================
   PANIER DEVIS (drawer)
   ========================================================= */
.qd { position: fixed; inset: 0; z-index: 1600; background: rgba(20, 26, 61, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.qd.open { opacity: 1; visibility: visible; }
.qd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); box-shadow: var(--shadow-lg); }
.qd.open .qd-panel { transform: none; }
.qd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.qd-head h2 { margin: 0; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.qd-head h2 i { color: var(--blue-600); }
.qd-steps { display: flex; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--bg); flex-shrink: 0; }
.qd-steps span { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 0; white-space: nowrap; }
.qd-steps span b { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-size: 12px; }
.qd-steps span.active { color: var(--blue-600); }
.qd-steps span.active b, .qd-steps span.done b { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.qd-body { flex: 1; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; min-height: 0; }
.qd-foot { padding: 14px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; display: grid; gap: 10px; }
.qd-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.qd-summary strong { color: var(--ink); font-size: 15px; }
.qd-row { display: flex; gap: 10px; }
.qd-row .btn { flex: 1; padding: 0 14px; min-width: 0; }

.qitem { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qitem:first-child { padding-top: 4px; }
.qitem > button img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--bg); }
.qitem-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.qitem h4 { margin: 0; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.qitem h4 button { text-align: left; }
.qitem h4 button:hover { color: var(--blue-600); }
.qitem-rm { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }
.qitem-rm:hover { background: #fef3f2; color: var(--danger); }
.qitem-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.qitem-opts select {
    height: 34px; padding: 0 28px 0 10px; border-radius: 999px; border: 1px solid var(--line); max-width: 100%; font-size: 13px; font-weight: 600;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7194' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none; appearance: none;
}
.qitem-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.qitem-bottom small { font-size: 12px; color: var(--muted); }
.qd-empty { text-align: center; padding: 48px 12px; }
.qd-empty .ill { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; font-size: 36px; color: var(--blue-400); }
.qd-empty h3 { margin: 0; color: var(--ink); }
.qd-empty p { color: var(--muted); margin: 8px 0 20px; font-size: 14.5px; }
.qd-note { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--gold-100); color: #7a5600; font-size: 13px; font-weight: 600; margin-top: 14px; }
.qd-mini { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; align-items: center; }
.qd-mini img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.qd-mini span { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; padding-left: 4px; }
.qd-done { text-align: center; padding: 40px 8px; }
.qd-done .ok { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; background: #ecfdf3; color: var(--success); display: grid; place-items: center; font-size: 38px; }
.qd-done h3 { margin: 0; font-size: 1.4rem; color: var(--ink); }
.qd-done p { color: var(--muted); margin: 10px 0 0; }
.qd-ref { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-weight: 800; letter-spacing: .05em; }
.link-btn { color: var(--blue-600); font-weight: 700; font-size: 13.5px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
@media (max-width: 520px) {
    .qd-head, .qd-body, .qd-foot, .qd-steps { padding-left: 16px; padding-right: 16px; }
    .qd-steps span em { display: none; }
    .qitem { grid-template-columns: 60px minmax(0, 1fr); }
    .qitem > button img { width: 60px; height: 60px; }
}
@media (max-width: 360px) { .qd-row { flex-direction: column; } }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.feature.reveal.active:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Impression du devis ---------- */
#print-area { display: none; }
@media print {
    body > *:not(#print-area) { display: none !important; }
    #print-area { display: block; font-family: var(--font); color: #000; padding: 12px; }
    #print-area .p-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #3949ab; padding-bottom: 14px; margin-bottom: 18px; }
    #print-area .p-head img { height: 56px; background: #3949ab; padding: 6px 12px; border-radius: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    #print-area h1 { font-size: 20px; margin: 0; }
    #print-area table { width: 100%; border-collapse: collapse; margin-top: 14px; }
    #print-area th, #print-area td { border: 1px solid #ccc; padding: 8px; text-align: left; font-size: 12px; vertical-align: middle; }
    #print-area th { background: #e8eaf6; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    #print-area td img { width: 48px; height: 48px; object-fit: cover; }
    #print-area .p-foot { margin-top: 24px; font-size: 11px; color: #555; }
}

/* ---------- Ajustements ---------- */
.pv-info > .tag { align-self: flex-start; }
.l-short { display: none; }
@media (max-width: 760px) { .pcard-actions .l-long { display: none; } .pcard-actions .l-short { display: inline; } }
@media (max-width: 900px) { .pv-track { max-height: min(62vh, 560px); width: 100%; } }

/* =========================================================
   Correctifs revue responsive (v3.1)
   ========================================================= */
/* Libellés des boutons de carte : version courte jusqu'à 880px + sécurité anti-débordement */
.pcard-actions .btn { overflow: hidden; }
.pcard-actions .btn .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 880px) { .pcard-actions .l-long { display: none; } .pcard-actions .l-short { display: inline; } }

/* Barre d'action mobile de la fiche produit */
.pv-bar .btn-primary { overflow: hidden; }
@media (max-width: 440px) { .pv-bar .btn-primary .lbl-long { display: none; } .pv-bar .btn-primary .lbl-short { display: inline; } }
@media (min-width: 441px) { .pv-bar .btn-primary .lbl-short { display: none; } .pv-bar .btn-primary .lbl-long { display: inline; } }

/* Étapes du devis : seul le libellé actif sur petit écran */
.qd-steps span em { font-style: normal; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 520px) { .qd-steps span em { display: inline; } .qd-steps span:not(.active) em { display: none; } .qd-steps span:not(.active) { flex: 0 0 auto; } }

/* iOS : pas de zoom automatique sur les champs du devis */
.qty.sm input { font-size: 16px; width: 40px; }
.qitem-opts select { font-size: 16px; height: 38px; }

/* Grille catégories : pas de trou avec 6 catégories */
.cat:nth-child(4) { grid-column: auto; }
.cat:last-child:nth-child(even) { grid-column: 1 / -1; }

/* Écrans peu hauts (téléphones en paysage) */
@media (max-height: 500px) {
    :root { --nav-h: 56px; }
    .nav-logo img { height: 34px; }
    .toolbar { position: static; }
    .qd-steps { display: none; }
    .qd-head { padding-block: 6px; }
    .qd-panel { overflow-y: auto; }
    .qd-body { flex: none; overflow: visible; min-height: auto; }
    .qd-foot { position: sticky; bottom: 0; }
    .qd-foot .btn { --h: 42px; }
    .pv-track { max-height: 70vh; }
}

/* Footer non masqué par les boutons flottants */
@media (max-width: 1399px) { .footer-bottom { padding-bottom: 96px; } }

/* Zoom uniquement sur appareils à souris */
.pv-zoom-hint { display: none; }
.pv-slide { cursor: default; }
@media (hover: hover) and (min-width: 901px) { .pv-zoom-hint { display: inline-flex; align-items: center; gap: 6px; } .pv-slide { cursor: zoom-in; } }
.qd-done h3:focus, .pv-name:focus { outline: none; }
@media (max-height: 500px) { .qd-foot { position: static; box-shadow: none; } }

/* =========================================================
   v3.3 — Mot rotatif, hauteurs fixes, filtres, échelle mobile
   ========================================================= */
/* Mot rotatif du hero : texte or + soulignement animé (sans boîte) */
.rotator {
    background: none; padding: 0 2px 10px; margin-bottom: -10px; border-radius: 0;
    color: var(--gold); font-weight: 800; letter-spacing: -.01em;
    text-shadow: 0 6px 24px rgba(255, 193, 7, .35);
}
.rotator::after {
    content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--gold), #fff3c4 60%, rgba(255, 255, 255, 0));
    transform-origin: left center; transform: scaleX(1);
}
.rotator.draw::after { animation: drawLine 2.6s var(--ease); }
@keyframes drawLine { 0% { transform: scaleX(0); } 22% { transform: scaleX(1); } 82% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: .25; } }

/* Onglets de la fiche produit : hauteur constante (panneaux superposés) */
.pv-panels { display: grid; }
.pv-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .25s ease; }
.pv-panel.is-active { visibility: visible; opacity: 1; }
.pv-panel[hidden] { display: block !important; }

/* Avis : hauteur constante (slides superposées) */
#testimonial-slider { display: grid; }
.tslide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s ease, transform .4s var(--ease), visibility .4s; }
.tslide.active { opacity: 1; visibility: visible; transform: none; }
.tcard { min-height: 0; }

/* Filtres : toutes les catégories visibles (retour à la ligne) */
.chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 760px) {
    .chips { margin-inline: 0; padding-inline: 0; gap: 6px; }
    .toolbar { position: static; padding: 4px 0 8px; background: #fff; backdrop-filter: none; }
}

/* ---------- Échelle tablette (≤ 768px) ---------- */
@media (max-width: 768px) {
    body { font-size: 15px; }
    :root { --r-lg: 20px; --r-xl: 24px; }
    .section { padding: 56px 0; }
    .head { margin-bottom: 24px; gap: 12px; }
    .tag { font-size: 11px; padding: 5px 11px; gap: 6px; }
    .title { font-size: clamp(1.45rem, 1.05rem + 2.2vw, 1.95rem); margin-top: 10px; }
    .lead { font-size: .95rem; margin-top: 8px; }
    .btn { --h: 44px; font-size: 14px; padding: 0 18px; gap: 8px; }
    .btn-sm { --h: 36px; font-size: 13px; }
    .icon-btn { width: 40px; height: 40px; font-size: 14px; }

    .hero { padding: 32px 0 96px; }
    .hero h1 { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.6rem); margin-top: 14px; }
    .hero-leader { font-size: clamp(1.05rem, .9rem + 1vw, 1.35rem); margin-top: 10px; }
    .hero p.sub { font-size: .95rem; margin-top: 14px; }
    .hero-cta { margin-top: 22px; gap: 10px; }
    .hero-stats { margin-top: 24px; }
    .hero-stats strong { font-size: 1.3rem; }
    .hero-stats div { padding: 10px 14px; }
    .hero-bento { gap: 10px; }
    .bento-label { font-size: 13px; }
    .bento-label .go { width: 30px; height: 30px; font-size: 12px; }

    .features { margin-top: -60px; }
    .feature { padding: 16px; gap: 12px; }
    .feature i { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
    .feature h2 { font-size: .95rem; }
    .feature p { font-size: 12.5px; }

    .about-text p { font-size: .95rem; }
    .about-exp strong { font-size: 1.7rem; }
    .about-exp { padding: 14px 16px; }
    .value { padding: 12px; }
    .value i { width: 36px; height: 36px; font-size: 13px; }
    .value h3 { font-size: 14px; }

    .cats { grid-auto-rows: 160px; gap: 10px; }
    .cat-body strong { font-size: 1.05rem; }
    .cat-body small { font-size: 12px; }
    .cat-body .go { width: 32px; height: 32px; font-size: 12px; }

    .filter-btn { min-height: 36px; padding: 0 12px; font-size: 13px; gap: 6px; }
    .filter-btn .count { font-size: 10.5px; min-width: 20px; padding: 1px 5px; }
    .search input { height: 42px; }
    .result-info { font-size: 13px; margin-bottom: 12px; }

    .step { padding: 22px 18px; }
    .step i { width: 46px; height: 46px; font-size: 17px; }
    .step h3 { font-size: 1.02rem; margin-top: 14px; }
    .step p { font-size: 13.5px; }
    .step::before { font-size: 2rem; }

    .score strong { font-size: 2.8rem; }
    .ttext { font-size: 1.02rem; }
    .tcard .q { font-size: 3.6rem; }
    .tauthor .av { width: 42px; height: 42px; font-size: 14px; }

    .cinfo h3, .cform h3 { font-size: 1.2rem; }
    .crow .ico { width: 38px; height: 38px; }
    .crow a, .crow p { font-size: 14px; }
    .map iframe { height: 190px; }

    .footer-top { gap: 28px; }
    .footer ul { font-size: 14px; }

    .pv-name { font-size: clamp(1.3rem, 1rem + 1.6vw, 1.7rem); }
    .pv-short, .pv-panel { font-size: 14px; }
    .pv-color, .pv-size { min-height: 38px; font-size: 13px; }
    .pv-color span { width: 24px; height: 24px; }
    .qd-head h2 { font-size: 1.1rem; }
}

/* ---------- Échelle téléphone (≤ 480px) ---------- */
@media (max-width: 480px) {
    body { font-size: 14.5px; }
    .section { padding: 48px 0; }
    .title { font-size: clamp(1.35rem, 1.1rem + 1.6vw, 1.6rem); }
    .hero { padding: 26px 0 88px; }
    .hero h1 { font-size: clamp(1.75rem, 1.35rem + 2.4vw, 2.1rem); }
    .hero-leader { font-size: 1.05rem; }
    .hero p.sub { font-size: .92rem; }
    .btn { --h: 44px; font-size: 14px; }
    .hero-stats strong { font-size: 1.15rem; }
    .hero-stats div > span { font-size: 11px; }
    .hero-bento { grid-template-rows: 190px 112px; }
    .features { margin-top: -56px; }
    .feature { padding: 14px; }
    .feature p { display: none; }
    .cats { grid-auto-rows: 136px; }
    .cat-body { left: 12px; right: 12px; bottom: 12px; }
    .cat-body strong { font-size: .98rem; }
    .pcard-body h3 { font-size: .88rem; }
    .pill { font-size: 9.5px; }
    .filter-btn { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
    .quote-banner h3 { font-size: 1.15rem; }
    .quote-banner p { font-size: 13.5px; }
    .score strong { font-size: 2.4rem; }
    .ttext { font-size: .97rem; }
    .tcard { padding: 22px 18px; }
    .footer-top img { height: 40px; }
}
@media (max-width: 1100px) {
    .toolbar-row { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .search { flex: auto; }
}

/* =========================================================
   v3.6 — Mobile plus compact (icones, boutons, textes)
   ========================================================= */
@media (max-width: 768px) {
    .btn { --h: 42px; font-size: 13.5px; }
    .icon-btn { width: 38px; height: 38px; font-size: 13px; }
    .fab-wa { width: 50px; height: 50px; font-size: 25px; }
    .fab-quote { min-height: 50px; font-size: 14px; }
    .back-top { width: 42px; height: 42px; }
    .quote-trigger { min-height: 40px; font-size: 13.5px; }
    .burger { width: 40px; height: 40px; font-size: 16px; }
}

@media (max-width: 480px) {
    :root { --nav-h: 58px; --gutter: 14px; }
    body { font-size: 14px; }

    /* Navigation */
    .nav-logo img { height: 34px; }
    .quote-trigger { min-height: 36px; padding: 0 10px; gap: 6px; }
    .quote-trigger i { font-size: 14px; }
    .badge { min-width: 19px; height: 19px; font-size: 10.5px; padding: 0 5px; }
    .burger { width: 36px; height: 36px; font-size: 15px; }
    .mnav nav a { font-size: 15px; padding: 11px 4px; }
    .mnav nav a i { width: 32px; height: 32px; font-size: 13px; }

    /* Typo et boutons */
    .tag { font-size: 10px; padding: 4px 10px; }
    .title { font-size: clamp(1.25rem, 1.05rem + 1.2vw, 1.45rem); }
    .lead { font-size: .88rem; }
    .btn { --h: 40px; font-size: 13px; padding: 0 16px; gap: 7px; }
    .btn-sm { --h: 34px; font-size: 12.5px; }
    .icon-btn { width: 34px; height: 34px; font-size: 12.5px; }

    /* Hero */
    .hero { padding: 22px 0 80px; }
    .hero h1 { font-size: clamp(1.55rem, 1.25rem + 1.8vw, 1.85rem); margin-top: 12px; }
    .hero-leader { font-size: .98rem; margin-top: 8px; }
    .hero p.sub { font-size: .88rem; line-height: 1.55; margin-top: 12px; }
    .hero-cta { margin-top: 18px; gap: 8px; }
    .hero-stats { margin-top: 18px; gap: 6px; }
    .hero-stats div { padding: 8px 4px; border-radius: 12px; }
    .hero-stats strong { font-size: 1.05rem; }
    .hero-stats div > span { font-size: 10.5px; }
    .hero-bento { grid-template-rows: 170px 100px; gap: 8px; }
    .bento { border-radius: 16px; }
    .bento-label { font-size: 12px; left: 10px; right: 10px; bottom: 10px; }
    .bento-label small { font-size: 9.5px; }
    .bento-label .go { width: 26px; height: 26px; font-size: 11px; }
    .rotator::after { height: 3px; }

    /* Atouts, a propos */
    .features { margin-top: -50px; }
    .features-grid { gap: 8px; }
    .feature { padding: 12px; gap: 8px; border-radius: 14px; }
    .feature i { width: 32px; height: 32px; font-size: 13px; border-radius: 10px; }
    .feature h2 { font-size: .84rem; }
    .about-text p { font-size: .88rem; }
    .about-exp { padding: 10px 12px; max-width: 170px; }
    .about-exp strong { font-size: 1.4rem; }
    .about-exp span { font-size: 12px; }
    .value { padding: 10px; gap: 10px; }
    .value i { width: 32px; height: 32px; font-size: 12px; border-radius: 10px; }
    .value h3 { font-size: 13.5px; }
    .value p { font-size: 12px; }

    /* Categories */
    .cats { grid-auto-rows: 120px; gap: 8px; }
    .cat { border-radius: 16px; }
    .cat-body { left: 10px; right: 10px; bottom: 10px; }
    .cat-body strong { font-size: .9rem; }
    .cat-body small { font-size: 11px; }
    .cat-body .go { width: 26px; height: 26px; font-size: 10.5px; }

    /* Catalogue */
    .filter-btn { min-height: 32px; padding: 0 10px; font-size: 12px; gap: 5px; }
    .filter-btn .count { font-size: 10px; min-width: 18px; }
    .search input { height: 40px; padding-left: 38px; }
    .search i { left: 14px; font-size: 13px; }
    .result-info { font-size: 12.5px; }
    .product-grid { gap: 8px; }
    .pcard { border-radius: 14px; }
    .pcard-body { padding: 10px 10px 6px; }
    .pcard-body h3 { font-size: .84rem; }
    .pcard-meta { font-size: 11px; gap: 6px; }
    .swatches span { width: 13px; height: 13px; }
    .pcard-actions { padding: 0 8px 8px; gap: 5px; }
    .pcard-actions .btn { --h: 34px; font-size: 12px; padding: 0 8px; gap: 5px; }
    .pcard-actions .icon-btn { width: 34px; height: 34px; font-size: 12px; }
    .pill { font-size: 9px; padding: 3px 7px; gap: 4px; }

    /* Devis : etapes et banniere */
    .step { padding: 18px 16px; }
    .step i { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; }
    .step h3 { font-size: .95rem; margin-top: 12px; }
    .step p { font-size: 13px; }
    .step::before { font-size: 1.7rem; }
    .quote-banner { padding: 20px 16px; border-radius: 18px; }
    .quote-banner h3 { font-size: 1.05rem; }
    .quote-banner p { font-size: 13px; }

    /* Marques, avis, contact, footer */
    .brand { width: 112px; height: 62px; padding: 10px 14px; }
    .brand img { max-height: 40px; }
    .score { gap: 12px; margin-top: 18px; }
    .score strong { font-size: 2.1rem; }
    .score span { font-size: 12.5px; }
    .ttext { font-size: .92rem; }
    .tcard { padding: 20px 16px; border-radius: 18px; }
    .tcard .q { font-size: 3rem; right: 18px; }
    .tauthor .av { width: 38px; height: 38px; font-size: 13px; }
    .tauthor h3 { font-size: 14px; }
    .testimonial-dot { width: 8px; height: 8px; }
    .testimonial-dot.active { width: 22px; }
    .cinfo, .cform { border-radius: 18px; }
    .cinfo h3, .cform h3 { font-size: 1.1rem; }
    .crow { gap: 10px; }
    .crow .ico { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
    .crow h4 { font-size: 10.5px; }
    .crow a, .crow p { font-size: 13.5px; }
    .field label, .field .label { font-size: 12.5px; }
    .field input, .field select, .field textarea { min-height: 44px; padding: 10px 12px; }
    .seg span { min-height: 36px; font-size: 13px; padding: 0 12px; }
    .footer ul, .fcontact li { font-size: 13.5px; }
    .footer-top p { font-size: 13px; }
    .socials a { width: 36px; height: 36px; font-size: 13px; }

    /* Flottants */
    .fab-wa { width: 46px; height: 46px; font-size: 23px; }
    .fab-quote { min-height: 46px; padding: 0 14px; gap: 8px; }
    .fab-quote i { font-size: 16px; }
    .back-top { width: 38px; height: 38px; font-size: 13px; }
    .back-top.raised { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px); }
    .toast { padding: 8px 8px 8px 10px; gap: 10px; border-radius: 14px; }
    .toast img { width: 38px; height: 38px; }
    .toast div { font-size: 12.5px; }
    .toast button { min-height: 32px; font-size: 12px; padding: 0 10px; }

    /* Fiche produit */
    .pv-top { min-height: 50px; padding: 6px 8px 6px 14px; }
    .pv-top-actions { gap: 6px; }
    .pv-top-actions .icon-btn { width: 34px; height: 34px; font-size: 12.5px; }
    .crumbs { font-size: 12.5px; }
    .pv-name { font-size: 1.25rem; }
    .pv-short, .pv-panel { font-size: 13.5px; }
    .pv-highlights span { font-size: 11.5px; padding: 5px 10px; }
    .pv-block { margin-top: 16px; padding-top: 16px; }
    .pv-label { font-size: 12.5px; }
    .pv-color { min-height: 34px; font-size: 12.5px; padding: 0 12px 0 5px; gap: 6px; }
    .pv-color span { width: 22px; height: 22px; }
    .pv-size { min-height: 34px; min-width: 56px; font-size: 12.5px; padding: 0 12px; }
    .pv-tabs button { font-size: 13px; margin-right: 16px; }
    .spec th, .spec td { font-size: 13px; padding: 8px 0; }
    .pv-assure div { font-size: 11px; padding: 10px 6px; }
    .pv-assure i { font-size: 15px; }
    .pv-related h3 { font-size: 1rem; }
    .rel span { font-size: 12.5px; padding: 8px 10px; }
    .pv-bar { gap: 6px; padding-top: 8px; }
    .pv-bar .qty { height: 42px; }
    .pv-bar .qty button { width: 34px; }
    .pv-bar .qty input { width: 32px; font-size: 16px; }
    .pv-bar .btn-primary { --h: 42px; }
    .pv-bar .btn-wa { flex-basis: 42px; width: 42px; --h: 42px; font-size: 18px; }
    .pv-dots button { width: 7px; height: 7px; }
    .pv-dots button.active { width: 18px; }
    .pv-counter { font-size: 11px; padding: 4px 10px; }

    /* Panier devis */
    .qd-head { padding-block: 10px; }
    .qd-head h2 { font-size: 1rem; }
    .qd-steps { padding-block: 8px; }
    .qd-steps span { font-size: 11.5px; }
    .qd-steps span b { width: 20px; height: 20px; font-size: 10.5px; }
    .qitem { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
    .qitem > button img { width: 54px; height: 54px; border-radius: 10px; }
    .qitem h4 { font-size: 13.5px; }
    .qd-summary { font-size: 13px; }
    .qd-note { font-size: 12px; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 1.45rem; }
    .title { font-size: 1.2rem; }
    .pcard-body h3 { font-size: .8rem; }
    .hero-stats div > span { font-size: 10px; }
}

/* v3.7 — Navbar, menu mobile et panier devis : compact téléphone (append at END of style.css) */
@media (max-width: 480px) {
    /* Navbar */
    :root { --nav-h: 56px; }
    .nav .container { gap: 10px; }
    .nav-actions { gap: 8px; }
    .nav-logo img { height: 32px; }
    .quote-trigger { min-height: 34px; padding: 0 9px 0 10px; gap: 6px; }
    .quote-trigger i { font-size: 13px; }
    .badge { min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; }
    .burger { width: 34px; height: 34px; font-size: 14px; }

    /* Menu mobile */
    .mnav-panel { padding: 14px 16px; }
    .mnav-top { padding-bottom: 12px; }
    .logo-chip { padding: 6px 12px; border-radius: 10px; }
    .logo-chip img { height: 26px; }
    .mnav-top .icon-btn { width: 32px; height: 32px; font-size: 12px; }
    .mnav nav { padding: 6px 0; }
    .mnav nav a { font-size: 14px; padding: 10px 2px; gap: 12px; }
    .mnav nav a i { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; }
    .mnav-foot { gap: 8px; padding-top: 12px; }
    .mnav-foot .btn { --h: 40px; font-size: 13px; }

    /* Panier devis : en-tête, corps, pied */
    .qd-head h2 { font-size: 15.5px; gap: 8px; }
    .qd-head .icon-btn { width: 32px; height: 32px; font-size: 12px; }
    .qd-body { padding-top: 14px; padding-bottom: 14px; }
    .qd-foot { padding: 12px 14px max(12px, env(safe-area-inset-bottom)); gap: 8px; }
    .qd-row { gap: 8px; }
    .qd-summary { font-size: 12.5px; }
    .qd-summary strong { font-size: 13.5px; }
    .link-btn { font-size: 12.5px; }

    /* Articles */
    .qitem-rm { width: 30px; height: 30px; font-size: 12.5px; }
    .qitem-opts select { height: 36px; padding: 0 26px 0 10px; font-size: 16px; }
    .qitem-bottom small { font-size: 11.5px; }
    .qd .qty.sm { height: 34px; }
    .qd .qty.sm button { width: 30px; font-size: 11px; }
    .qd .qty.sm input { width: 36px; font-size: 16px; }

    /* États vide / envoyé / note / mini */
    .qd-empty { padding: 32px 8px; }
    .qd-empty .ill { width: 72px; height: 72px; font-size: 28px; margin-bottom: 12px; }
    .qd-empty h3 { font-size: 16px; }
    .qd-empty p { font-size: 13.5px; margin: 6px 0 16px; }
    .qd-note { padding: 10px 12px; gap: 8px; font-size: 12px; line-height: 1.45; margin-top: 12px; }
    .qd-mini { margin-bottom: 12px; }
    .qd-mini img { width: 38px; height: 38px; border-radius: 9px; }
    .qd-mini span { font-size: 12px; }
    .qd-done { padding: 28px 8px; }
    .qd-done .ok { width: 68px; height: 68px; font-size: 28px; margin-bottom: 14px; }
    .qd-done h3 { font-size: 18px; }
    .qd-done p { font-size: 13.5px; }
    .qd-ref { padding: 6px 14px; font-size: 13px; }

    /* Formulaire du devis (font-size 16px conservé : pas de zoom iOS) */
    #quote-form .field { margin-bottom: 12px; }
    #quote-form .field label { font-size: 12px; margin-bottom: 5px; }
    #quote-form .field input,
    #quote-form .field select,
    #quote-form .field textarea { min-height: 42px; padding: 9px 12px; border-radius: 11px; font-size: 16px; }
    #quote-form .field textarea { min-height: 84px; }
    #quote-form .form-row:nth-child(1),
    #quote-form .form-row:nth-child(3) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    #quote-form .form-alert { padding: 10px 12px; font-size: 13px; }
}
@media (max-width: 340px) {
    #quote-form .form-row:nth-child(1),
    #quote-form .form-row:nth-child(3) { grid-template-columns: 1fr; gap: 0; }
}

/* v3.7 - Contact, avis, marques, footer, flottants : finition mobile */
@media (max-width: 480px) {
    /* Contact */
    #contact .head { margin-bottom: 20px; }
    .contact-grid { gap: 14px; }
    .cinfo { padding: 16px; gap: 14px; border-radius: 16px; }
    .cinfo > p { font-size: 13px; margin: -6px 0 0; }
    .cinfo h3, .cform h3 { font-size: 16.5px; }
    .crow .ico { width: 32px; height: 32px; font-size: 12.5px; }
    .crow a, .crow p { line-height: 1.55; }
    .map { border-radius: 12px; }
    .map iframe { height: 170px; }
    .cform { padding: 16px; border-radius: 16px; }
    .cform > p { font-size: 13px; margin: 4px 0 16px; }
    .cform .link-btn { font-size: 13px; }
    .field { margin-bottom: 12px; }
    .field label, .field .label { font-size: 12px; margin-bottom: 5px; }
    .field input, .field select { min-height: 42px; padding: 8px 12px; line-height: 1.4; font-size: 16px; }
    .field textarea { min-height: 96px; padding: 10px 12px; line-height: 1.45; font-size: 16px; }
    .seg { gap: 6px; }
    .seg span { min-height: 34px; padding: 0 11px; font-size: 12.5px; }
    .form-alert { padding: 10px 12px; gap: 8px; font-size: 13px; margin-bottom: 12px; }

    /* Avis */
    .reviews-grid { gap: 20px; }
    .score strong { font-size: 1.9rem; }
    .stars { font-size: 12px; letter-spacing: 1px; }
    .tcard { border-radius: 16px; }
    .ttext { font-size: 14px; margin-top: 10px; }
    .tauthor { margin-top: 16px; gap: 10px; }
    .tauthor span { font-size: 12px; }
    .tnav { padding-top: 16px; }

    /* Marques */
    .brands { padding: 28px 0; }
    .brands-title { font-size: 11px; margin-bottom: 16px; }
    .brand { width: 100px; height: 54px; padding: 8px 12px; border-radius: 12px; }
    .brand img { max-height: 36px; }

    /* Footer */
    .footer-top { padding: 36px 0 28px; gap: 22px; }
    .footer-top img { height: 36px; }
    .footer-top p { margin-top: 12px; }
    .footer h4 { font-size: 12.5px; margin-bottom: 10px; }
    .footer ul { gap: 8px; }
    .fcontact i { margin-top: 4px; }
    .socials { margin-top: 14px; gap: 8px; }
    .socials a { width: 34px; height: 34px; }
    .newsletter { padding: 4px; margin-top: 12px; }
    .newsletter input { font-size: 16px; }
    .newsletter button { min-height: 34px; padding: 0 14px; font-size: 12.5px; }
    .footer-bottom { padding: 16px 0 80px; font-size: 12px; }
    .footer-bottom nav { gap: 14px; }

    /* Flottants et toasts */
    .fab-wa { width: 44px; height: 44px; font-size: 21px; }
    .fab-quote { min-height: 44px; padding: 0 13px; }
    .back-top.raised { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 54px); }
    .toasts { top: calc(var(--nav-h) + 10px); }
    .toast img { width: 34px; height: 34px; border-radius: 8px; }
    .toast .t-ico { width: 30px; height: 30px; font-size: 12px; }
}

@media (max-width: 480px) {
    /* Sections & titres */
    .section { padding: 42px 0; }
    .head { margin-bottom: 18px; }
    .title { font-size: clamp(1.15rem, 1rem + 1.1vw, 1.32rem); }

    /* Hero */
    .hero-grid { gap: 22px; }
    .hero h1 { font-size: clamp(1.45rem, 1.2rem + 1.4vw, 1.65rem); }
    .hero-leader { font-size: .92rem; }
    .hero p.sub { font-size: .86rem; margin-top: 10px; }
    .hero-cta .btn { flex: 1 1 auto; padding: 0 12px; }
    .hero-stats strong { font-size: 1rem; }
    .hero-wave { height: 28px; }

    /* Atouts */
    .feature { flex-direction: row; align-items: center; }
    .feature > div { min-width: 0; }

    /* A propos */
    .about-grid { gap: 24px; }
    .about-media .main { aspect-ratio: 5 / 4.2; border-radius: 16px; }
    .about-media::before { border-radius: 16px; }
    .about-text p { font-size: .86rem; margin-top: 12px; }
    .values { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
    .value { gap: 8px; }
    .value > div { min-width: 0; }
    .value i { width: 30px; height: 30px; font-size: 11.5px; }
    .value h3 { font-size: 13px; }

    /* Catalogue */
    .toolbar { margin-bottom: 10px; }
    .result-info { margin-bottom: 10px; }
    .search-clear { width: 28px; height: 28px; right: 6px; }
    .more-wrap { margin-top: 22px; }
    .grid-empty { padding: 36px 14px; font-size: 13px; }
    .grid-empty i { font-size: 26px; }
    .pcard-body { gap: 3px; }
    .pcard-meta { padding-top: 4px; }

    /* Devis : etapes et banniere */
    .steps { gap: 10px; }
    .step::before { top: 14px; right: 16px; }
    .step i { width: 36px; height: 36px; font-size: 14px; }
    .step h3 { margin: 10px 0 4px; }
    .quote-banner { margin-top: 14px; gap: 14px; border-radius: 16px; }
    .quote-banner p { margin-top: 4px; }

    /* Fiche produit */
    .crumbs i { font-size: 9px; }
    .pv-top-actions .icon-btn { width: 32px; height: 32px; font-size: 12px; }
    .pv-dots { padding-top: 8px; }
    .pv-info { padding: 14px var(--gutter) 20px; }
    .pv-name { font-size: 1.15rem; margin-top: 10px; }
    .pv-short { margin-top: 8px; }
    .pv-highlights { margin-top: 12px; gap: 6px; }
    .pv-highlights span { padding: 4px 9px; }
    .pv-block { margin-top: 14px; padding-top: 14px; }
    .pv-label { margin-bottom: 8px; }
    .pv-colors, .pv-sizes { gap: 6px; }
    .pv-in-quote { font-size: 12.5px; }
    .pv-tabs { margin-bottom: 10px; }
    .pv-tabs button { padding: 8px 2px; }
    .pv-assure { gap: 6px; margin-top: 14px; }
    .pv-assure div { border-radius: 12px; }
    .pv-related { padding: 18px var(--gutter) 20px; }
    .pv-related h3 { margin-bottom: 10px; }
    .rel-track { gap: 10px; grid-auto-columns: minmax(128px, 38%); }
    .pv-bar .qty { height: 40px; }
    .pv-bar .btn-primary { --h: 40px; }
    .pv-bar .btn-wa { flex-basis: 40px; width: 40px; --h: 40px; font-size: 17px; }
}
/* v3.7 — Champs plus fins sur mobile (zoom iOS désactivé via le meta viewport) */
@media (max-width: 480px) {
    .field input, .field select, .field textarea,
    #quote-form .field input, #quote-form .field select, #quote-form .field textarea { font-size: 14px; }
    .qitem-opts select { font-size: 12.5px; height: 32px; }
    .qd .qty.sm input, .qty.sm input { font-size: 13.5px; width: 32px; }
    .search input { font-size: 14px; }
    .newsletter input { font-size: 14px; }
    .pv-bar .qty input, .qty input { font-size: 14.5px; }
}

@media (max-width: 480px) and (min-width: 341px) { .cform .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } }

/* v3.9 — Champs de formulaire plus fins (contact + Mon devis) */
.field input, .field select, .field textarea,
#quote-form .field input, #quote-form .field select, #quote-form .field textarea {
    min-height: 44px; padding: 9px 13px; font-size: 15px; border-radius: 11px; border-width: 1.5px;
}
.field textarea, #quote-form .field textarea { min-height: 100px; }
.field label, .field .label { margin-bottom: 5px; }
.field input::placeholder, .field textarea::placeholder { color: #9a9fba; }

@media (max-width: 768px) {
    .field input, .field select, .field textarea,
    #quote-form .field input, #quote-form .field select, #quote-form .field textarea {
        min-height: 40px; padding: 8px 12px; font-size: 14px; border-radius: 10px;
    }
    .field textarea, #quote-form .field textarea { min-height: 88px; }
}

@media (max-width: 480px) {
    .field, #quote-form .field { margin-bottom: 10px; }
    .field label, .field .label, #quote-form .field label { font-size: 11.5px; margin-bottom: 4px; }
    .field input, .field select, .field textarea,
    #quote-form .field input, #quote-form .field select, #quote-form .field textarea {
        min-height: 36px; padding: 6px 11px; font-size: 13.5px; line-height: 1.35; border-radius: 9px; border-width: 1px;
    }
    .field textarea, #quote-form .field textarea { min-height: 76px; padding: 8px 11px; }
    .form-row, .cform .form-row, #quote-form .form-row:nth-child(1), #quote-form .form-row:nth-child(3) { gap: 8px; }
    .seg span { min-height: 32px; font-size: 12px; padding: 0 10px; }
    .cform > p { margin-bottom: 12px; }
}

/* =========================================================
   v4.0 — PROMOTIONS
   ========================================================= */
:root { --promo: #e5484d; --promo-2: #ff6b3d; }

/* ---------- Ruban ---------- */
.promo-ribbon { background: #fff; color: var(--ink); border-bottom: 1px solid #eceef6; font-size: 13.5px; position: relative; z-index: 901; }
.ribbon-closed .promo-ribbon, .no-promo .promo-ribbon { display: none; }
.promo-ribbon .container { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.promo-ribbon-link { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; }
.pr-hot { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #fdecec; color: #c9363b; font-weight: 800; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
.pr-hot i { color: var(--promo); animation: flame 1.4s ease-in-out infinite; }
@keyframes flame { 50% { transform: scale(1.2) rotate(-8deg); } }
.pr-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-text b { font-weight: 800; color: var(--promo); }
.pr-cta { flex-shrink: 0; font-weight: 800; color: var(--promo); }
.promo-ribbon-link:hover .pr-cta { text-decoration: underline; text-underline-offset: 3px; }
.pr-close { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }
.pr-close:hover { background: #f1f2f8; color: var(--ink); }

/* ---------- Lien nav ---------- */
.nav-promo { position: relative; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.mnav-promo-badge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--promo); padding: 3px 8px; border-radius: 999px; }
.mnav nav a.nav-promo i { background: #fdecec; color: var(--promo); }

/* ---------- Section ---------- */
.promos { padding-bottom: clamp(32px, 5vw, 64px); }
/* Ordinateur seulement : la section Promotions (masquée jusqu'à l'arrivée des promos) garde 1 écran de place pendant
   le chargement, sinon elle pousse « Qui sommes-nous », visible sur grand écran (CLS). Téléphone : inchangé. */
@media (min-width: 901px) { .promos.promos-loading[hidden] { display: block !important; min-height: 100vh; } }
.no-promo .promos.promos-loading[hidden] { display: none !important; } /* aucune promo à la dernière visite : pas de place réservée */
.tag-promo { background: #fdecec; color: #c62a2f; } /* rouge plus foncé : contraste 4,9 (min. 4,5) */
.promos .title .hl { color: var(--promo); }

/* ---------- Carrousel ---------- */
.promo-slider { position: relative; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-xl); }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide {
    flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px;
    min-height: 420px; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); color: #fff;
}
.promo-slide::before, .promo-slide::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.promo-slide::before { width: 520px; height: 520px; right: -140px; top: -180px; background: rgba(255, 255, 255, .1); }
.promo-slide::after { width: 260px; height: 260px; left: 38%; bottom: -150px; background: rgba(255, 255, 255, .07); }
.promo-slide.theme-blue { background: linear-gradient(120deg, #3949ab 0%, #3f51b5 50%, #5c6bc0 100%); }
.promo-slide.theme-dark { background: linear-gradient(120deg, #141a3d 0%, #1f2766 55%, #283593 100%); }
.promo-slide.theme-gold { background: linear-gradient(120deg, #ffb300 0%, #ffc107 50%, #ffd54f 100%); color: var(--ink); }
.promo-slide.theme-gold::before { background: rgba(255, 255, 255, .25); }

.promo-copy { position: relative; min-width: 0; }
.promo-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.theme-gold .promo-label { background: rgba(20, 26, 61, .1); }
.promo-discount { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; line-height: .9; }
.promo-discount strong { font-size: clamp(3.6rem, 2.4rem + 4vw, 6rem); font-weight: 800; letter-spacing: -.05em; }
.promo-discount strong sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.promo-discount span { font-size: 14px; font-weight: 700; opacity: .85; padding-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.25; }
.theme-blue .promo-discount strong, .theme-dark .promo-discount strong { color: var(--gold); }
.promo-copy h3 { margin: 14px 0 0; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.promo-copy p { margin: 10px 0 0; max-width: 480px; opacity: .88; font-size: 15px; }

.countdown { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.countdown-label { width: 100%; font-size: 12px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.countdown div { min-width: 58px; padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, .14); text-align: center; backdrop-filter: blur(6px); }
.theme-gold .countdown div { background: rgba(20, 26, 61, .1); }
.countdown b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 10.5px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.promo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.theme-gold .btn-gold { background: var(--ink); color: #fff; box-shadow: none; }
.theme-gold .btn-glass { color: var(--ink); border-color: rgba(20, 26, 61, .3); background: rgba(255, 255, 255, .35); }

/* Visuel */
.promo-visual { position: relative; height: 100%; min-height: 300px; display: grid; place-items: center; }
.promo-frame { position: relative; width: min(100%, 420px); aspect-ratio: 1; border-radius: 28px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); transform: rotate(-2deg); transition: transform .6s var(--ease); }
.promo-slide:hover .promo-frame { transform: rotate(0) scale(1.02); }
.promo-frame img { width: 100%; height: 100%; object-fit: cover; }
.promo-frame img.contain { object-fit: contain; padding: 10%; }
.promo-minis { position: absolute; left: 0; bottom: 6%; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.promo-minis img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; background: #fff; border: 4px solid #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); }
.promo-minis img.contain { object-fit: contain; padding: 6px; }
.promo-sticker {
    position: absolute; right: 4%; top: 2%; z-index: 3; width: 104px; height: 104px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--promo-2), var(--promo)); color: #fff; display: grid; place-items: center; text-align: center;
    font-weight: 800; line-height: 1; box-shadow: 0 16px 30px -10px rgba(229, 72, 77, .8); transform: rotate(12deg); animation: stickerPop 3s ease-in-out infinite;
}
.promo-sticker b { font-size: 1.9rem; display: block; }
.promo-sticker small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
@keyframes stickerPop { 50% { transform: rotate(12deg) scale(1.07); } }

.promo-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; transition: background .25s, color .25s; }
.promo-arrow:hover { background: var(--promo); color: #fff; }
.promo-arrow.prev { left: -18px; }
.promo-arrow.next { right: -18px; }
.promo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.promo-dots button { position: relative; width: 28px; height: 6px; border-radius: 6px; background: var(--blue-100); overflow: hidden; }
.promo-dots button.active { width: 52px; }
.promo-dots button.active::after { content: ""; position: absolute; inset: 0; background: var(--promo); transform-origin: left; animation: dotFill var(--promo-delay, 6.5s) linear forwards; }
.promo-slider.paused .promo-dots button.active::after { animation-play-state: paused; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Rangée de produits en promo */
.promo-strip { margin-top: clamp(28px, 4vw, 44px); }
.promo-strip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.promo-strip-head h3 { margin: 0; font-size: 1.15rem; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.promo-strip-head h3 i { color: var(--promo); }
.promo-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; scrollbar-width: thin; }
.promo-row .pcard { scroll-snap-align: start; }
/* Moins de cartes qu'une rangée : centrées au lieu de collées à gauche. « safe » : dès que la rangée défile,
   retour à gauche (sinon les premières cartes seraient inaccessibles) ; navigateur trop ancien = à gauche comme avant. */
.promo-row { justify-content: safe center; }

/* ---------- Badges produits ---------- */
.pb-left { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.pill.promo { background: linear-gradient(90deg, var(--promo), var(--promo-2)); color: #fff; box-shadow: 0 6px 14px -6px rgba(229, 72, 77, .8); }
.pcard.is-promo { border-color: #f9c9ca; }
.pcard-promo-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--promo); }
.qitem .pill.promo { font-size: 10.5px; padding: 3px 8px; }

.filter-btn.promo-chip { border-color: #f9c9ca; color: #c62a2f; background: #fff5f5; }
.filter-btn.promo-chip .count { background: #c62a2f; color: #fff; }
.filter-btn.promo-chip.active { background: var(--promo); border-color: var(--promo); color: #fff; }
.filter-btn.promo-chip.active .count { background: #fff; color: var(--promo); }

/* Encart promo dans la fiche produit */
.pv-promo { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, #fff1f1, #fff7f2); border: 1px solid #f9c9ca; }
.pv-promo .pp-badge { flex-shrink: 0; min-width: 62px; height: 46px; padding: 0 10px; border-radius: 12px; background: linear-gradient(135deg, var(--promo), var(--promo-2)); color: #fff; font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; }
.pv-promo .pp-text { min-width: 0; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.pv-promo .pp-text strong { display: block; color: var(--promo); font-size: 14px; }
.pv-promo .pp-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .promo-row { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; } .promo-arrow.prev { left: 8px; } .promo-arrow.next { right: 8px; } }
@media (max-width: 860px) {
    .promo-slide { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 18px 18px 22px; }
    .promo-visual { order: -1; min-height: 0; height: auto; }
    .promo-frame { width: 100%; aspect-ratio: 16 / 9; transform: none; border-radius: 18px; }
    .promo-slide:hover .promo-frame { transform: none; }
    .promo-minis { display: none; }
    .promo-sticker { width: 74px; height: 74px; right: 10px; top: 10px; }
    .promo-sticker b { font-size: 1.35rem; }
    .promo-sticker small { font-size: 9px; }
    .promo-arrow { display: none; }
    .promo-slide::before { width: 300px; height: 300px; }
    .promo-row { grid-auto-columns: calc((100% - 12px) / 2.3); gap: 12px; }
}
@media (max-width: 760px) {
    .promo-ribbon { font-size: 12.5px; }
    .promo-ribbon .container { min-height: 36px; gap: 6px; }
    .promo-ribbon-link { justify-content: flex-start; gap: 8px; }
    .pr-cta { display: none; }
    .pr-hot { font-size: 10px; padding: 2px 8px; }
}
@media (max-width: 480px) {
    .promo-ribbon { font-size: 12px; }
    .promo-track { border-radius: 18px; }
    .promo-slide { border-radius: 18px; padding: 12px 12px 18px; gap: 12px; }
    .promo-frame { border-radius: 14px; }
    .promo-label { font-size: 10px; padding: 4px 10px; gap: 6px; }
    .promo-discount { margin-top: 10px; gap: 8px; }
    .promo-discount strong { font-size: 2.7rem; }
    .promo-discount span { font-size: 11px; padding-bottom: 5px; }
    .promo-copy h3 { font-size: 1.12rem; margin-top: 8px; }
    .promo-copy p { font-size: 13px; margin-top: 6px; }
    .countdown { margin-top: 12px; gap: 6px; }
    .countdown-label { font-size: 10.5px; }
    .countdown div { min-width: 0; flex: 1; padding: 6px 4px; border-radius: 10px; }
    .countdown b { font-size: 1rem; }
    .countdown small { font-size: 9px; }
    .promo-actions { margin-top: 14px; gap: 8px; }
    .promo-actions .btn { flex: 1 1 0; padding: 0 10px; min-width: 0; }
    .promo-sticker { width: 60px; height: 60px; }
    .promo-sticker b { font-size: 1.1rem; }
    .promo-dots { margin-top: 10px; }
    .promo-dots button { width: 20px; height: 5px; }
    .promo-dots button.active { width: 36px; }
    .promo-strip-head h3 { font-size: .98rem; }
    .promo-row { grid-auto-columns: 46%; gap: 8px; }
    .pv-promo { padding: 10px 12px; gap: 10px; }
    .pv-promo .pp-badge { min-width: 52px; height: 40px; font-size: 1.05rem; }
    .pv-promo .pp-text { font-size: 12.5px; }
    .pv-promo .pp-text strong { font-size: 13px; }
    #promo-see-all { --h: 34px; font-size: 12px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .promo-dots button.active::after { animation: none; transform: none; } }

/* v4.1 — correctifs promotions */
@media (min-width: 861px) and (max-width: 1100px) { .promo-slide { padding-inline: 64px; } }
.promo-row { padding: 12px 4px 18px; margin-top: -8px; }

/* Produit sans photo */
.pcard-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue-200); font-size: 2.2rem; }

/* v4.9 — Boutons des cartes produit plus compacts (tablette et moins) */
.hero-stats strong span { font-variant-numeric: tabular-nums; }
@media (max-width: 1024px) {
    .pcard-actions { gap: 6px; }
    .pcard-actions .btn { --h: 36px; font-size: 12.5px; padding: 0 10px; gap: 6px; }
    .pcard-actions .btn i { font-size: 12px; }
    .pcard-actions .icon-btn { width: 36px; height: 36px; font-size: 13px; }
}
@media (max-width: 760px) {
    .pcard-actions { padding: 0 10px 10px; gap: 5px; }
    .pcard-actions .btn { --h: 32px; font-size: 12px; padding: 0 8px; gap: 5px; }
    .pcard-actions .btn i { font-size: 11px; }
    .pcard-actions .icon-btn { width: 32px; height: 32px; font-size: 12px; }
}
@media (max-width: 480px) {
    .pcard-actions { padding: 0 8px 8px; gap: 4px; }
    .pcard-actions .btn { --h: 30px; font-size: 11.5px; padding: 0 7px; gap: 4px; }
    .pcard-actions .btn i { font-size: 10.5px; }
    .pcard-actions .icon-btn { width: 30px; height: 30px; font-size: 11px; }
}

/* v5.0 — Bouton « Ajouter » : icône + texte toujours visibles, bien centrés sur téléphone */
.pcard-actions .btn .lbl { display: inline; white-space: nowrap; }
@media (max-width: 480px) {
    .pcard-actions .btn { justify-content: center; letter-spacing: 0; }
}
@media (max-width: 360px) {
    .pcard-actions .btn { padding: 0 6px; gap: 4px; font-size: 11px; }
    .pcard-actions .btn i { font-size: 10px; }
}

/* v5.1 — Barre filtres + recherche compacte (≤ 1024px), sans masquer les produits */
.pill.photos b { font-weight: 800; }
@media (max-width: 1024px) {
    .toolbar { position: static; padding: 4px 0 6px; margin-bottom: 10px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
    .toolbar-row { gap: 8px; }
    .chips { gap: 6px; }
    .filter-btn { min-height: 32px; padding: 0 11px; font-size: 12.5px; gap: 5px; }
    .filter-btn .count { font-size: 10.5px; min-width: 18px; padding: 1px 5px; }
    .filter-btn i { font-size: 11px; }
    .search input { height: 38px; font-size: 14px; padding-left: 36px; }
    .search i { left: 13px; font-size: 12.5px; }
    .result-info { margin-bottom: 10px; font-size: 13px; }
}
@media (max-width: 480px) {
    .filter-btn { min-height: 30px; padding: 0 9px; font-size: 12px; }
    .filter-btn .count { font-size: 10px; min-width: 16px; padding: 0 4px; }
    .search input { height: 36px; }
}

/* Pastille « nombre de photos » sur téléphone : petite capsule horizontale (icône + chiffre côte à côte) */
@media (max-width: 760px) {
    .pill.photos {
        height: 20px; padding: 0 7px; gap: 3px; border-radius: 999px;
        justify-content: center; flex-shrink: 0; white-space: nowrap; line-height: 1;
    }
    .pill.photos i { font-size: 9.5px; }
    .pill.photos b { font-size: 10px; font-weight: 800; line-height: 1; }
}


/* v5.3 — Bouton flottant « Filtres » (tablette et téléphone) */
.fab-filters {
    position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 805;
    display: none; align-items: center; gap: 8px; max-width: calc(100vw - 150px);
    height: 40px; padding: 0 8px 0 14px; border-radius: 999px;
    background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
    box-shadow: 0 14px 30px -10px rgba(20, 26, 61, .6), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
    transition: transform .4s var(--ease), opacity .3s ease;
}
.fab-filters .ff-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab-filters .ff-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; flex-shrink: 0; }
.fab-filters .ff-up { font-size: 11px; opacity: .7; margin-right: 4px; }
.fab-filters i:first-child { color: var(--gold); font-size: 13px; }
.fab-filters.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.fab-filters:active { transform: translate(-50%, 0) scale(.96); }
@media (max-width: 1024px) { .fab-filters { display: inline-flex; } }
@media (max-width: 480px) {
    .fab-filters { height: 36px; font-size: 12px; gap: 6px; padding: 0 6px 0 12px; bottom: max(20px, env(safe-area-inset-bottom)); max-width: calc(100vw - 130px); }
    .fab-filters .ff-count { min-width: 20px; height: 20px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .fab-filters { transition: opacity .2s; } }

/* v5.4 — Ordinateur portable 900-1180px : cartes produit plus petites (4 par ligne) */
@media (min-width: 900px) and (max-width: 1180px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .pcard { border-radius: 18px; }
    .pcard-badges { top: 8px; left: 8px; right: 8px; }
    .pill { font-size: 10px; padding: 4px 8px; }
    .pcard-body { padding: 12px 12px 8px; gap: 4px; }
    .pcard-cat { font-size: 10.5px; }
    .pcard-body h3 { font-size: .9rem; }
    .pcard-body p { font-size: 12.5px; line-height: 1.45; }
    .pcard-meta { font-size: 11.5px; padding-top: 4px; }
    .swatches span { width: 14px; height: 14px; }
    .pcard-actions { padding: 0 12px 12px; gap: 6px; }
    .pcard-actions .btn { --h: 34px; font-size: 12px; padding: 0 8px; }
    .pcard-actions .icon-btn { width: 34px; height: 34px; font-size: 12.5px; }
    .pcard-view { font-size: 12px; padding: 7px 12px; }
}

/* v5.5 — « Produits en promotion » : cartes plus petites sur portable (1024px) et tablette (768px) */
@media (min-width: 900px) and (max-width: 1180px) {
    .promo-row { grid-auto-columns: calc((100% - 4 * 12px) / 4.6); gap: 12px; }
    .promo-row .pcard-body { padding: 10px 10px 6px; }
    .promo-row .pcard-body h3 { font-size: .85rem; }
    .promo-row .pcard-body p { font-size: 12px; -webkit-line-clamp: 2; }
    .promo-row .pcard-cat { font-size: 10px; }
    .promo-row .pcard-actions { padding: 0 10px 10px; gap: 5px; }
    .promo-row .pcard-actions .btn { --h: 32px; font-size: 11.5px; padding: 0 7px; gap: 5px; }
    .promo-row .pcard-actions .icon-btn { width: 32px; height: 32px; font-size: 12px; }
    .promo-row .pill { font-size: 9.5px; padding: 3px 7px; }
}
@media (min-width: 600px) and (max-width: 899px) {
    .promo-row { grid-auto-columns: calc((100% - 3 * 12px) / 3.4); gap: 12px; }
    .promo-row .pcard { border-radius: 16px; }
    .promo-row .pcard-badges { top: 8px; left: 8px; right: 8px; }
    .promo-row .pill { font-size: 9.5px; padding: 3px 7px; }
    .promo-row .pcard-body { padding: 10px 10px 6px; gap: 3px; }
    .promo-row .pcard-cat { font-size: 10px; }
    .promo-row .pcard-body h3 { font-size: .84rem; }
    .promo-row .pcard-body p { font-size: 11.5px; -webkit-line-clamp: 2; }
    .promo-row .pcard-meta { font-size: 11px; padding-top: 3px; }
    .promo-row .pcard-actions { padding: 0 10px 10px; gap: 5px; }
    .promo-row .pcard-actions .btn { --h: 30px; font-size: 11.5px; padding: 0 7px; gap: 4px; }
    .promo-row .pcard-actions .icon-btn { width: 30px; height: 30px; font-size: 11.5px; }
}

/* v5.6 — Bannière « Offres du moment » plus compacte sur tablette (600-899px) :
   texte à gauche, photo plus petite à droite */
@media (min-width: 600px) and (max-width: 899px) {
    .promo-slide { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 18px; padding: 22px 22px 24px; min-height: 0; align-items: center; }
    .promo-visual { order: 0; min-height: 0; height: auto; }
    .promo-frame { width: 100%; max-width: 250px; aspect-ratio: 1; border-radius: 20px; transform: rotate(-2deg); margin: 0 auto; }
    .promo-minis { display: none; }
    .promo-sticker { width: 66px; height: 66px; right: 2%; top: -8px; }
    .promo-sticker b { font-size: 1.2rem; }
    .promo-sticker small { font-size: 9px; }
    .promo-label { font-size: 10.5px; padding: 5px 11px; }
    .promo-discount { margin-top: 10px; }
    .promo-discount strong { font-size: 2.9rem; }
    .promo-discount span { font-size: 11.5px; padding-bottom: 6px; }
    .promo-copy h3 { font-size: 1.25rem; margin-top: 8px; }
    .promo-copy p { font-size: 13px; margin-top: 6px; }
    .countdown { margin-top: 12px; gap: 6px; }
    .countdown-label { font-size: 10.5px; }
    .countdown div { min-width: 46px; padding: 6px 4px; border-radius: 10px; }
    .countdown b { font-size: 1.05rem; }
    .countdown small { font-size: 9px; }
    .promo-actions { margin-top: 14px; gap: 8px; }
    .promo-actions .btn { --h: 38px; font-size: 13px; padding: 0 14px; }
}

/* =========================================================
   v5.7 — Tablette : sections plus compactes
   ========================================================= */
/* Hero : bloc des 3 photos moins haut (le hero passe en 1 colonne sous 980px) */
@media (min-width: 600px) and (max-width: 980px) {
    .hero-visual { max-width: 560px; }
    .hero-bento { aspect-ratio: 1 / .66; gap: 10px; }
    .bento { border-radius: 18px; }
    .bento-label { font-size: 12.5px; left: 12px; right: 12px; bottom: 12px; }
    .bento-label .go { width: 28px; height: 28px; font-size: 11px; }
    .hero-float { padding: 9px 12px; font-size: 12px; gap: 9px; }
    .hero-float i { width: 30px; height: 30px; font-size: 13px; border-radius: 10px; }
}

@media (min-width: 600px) and (max-width: 899px) {
    /* À propos : photo plus petite, centrée */
    .about-grid { gap: 32px; }
    .about-media { max-width: 420px; margin: 0 auto; padding: 0 0 20px 20px; }
    .about-media .main { aspect-ratio: 5 / 4; border-radius: 20px; }
    .about-media::before { border-radius: 20px; }
    .about-exp { right: -8px; bottom: 34px; padding: 12px 14px; max-width: 170px; border-radius: 16px; }
    .about-exp strong { font-size: 1.5rem; }
    .about-exp span { font-size: 12px; }
    .values { gap: 8px; margin-top: 18px; }

    /* Catégories : 3 par ligne, moins hautes */
    .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 122px; gap: 10px; }
    .cat:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .cat:last-child:nth-child(even) { grid-column: auto; }
    .cat { border-radius: 16px; }
    .cat-body { left: 12px; right: 12px; bottom: 10px; }
    .cat-body strong { font-size: .95rem; }
    .cat-body small { font-size: 11px; }
    .cat-body .go { width: 28px; height: 28px; font-size: 11px; }

    /* Comment demander un devis : 3 étapes côte à côte */
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .step { padding: 16px 14px; border-radius: 16px; }
    .step::before { font-size: 1.5rem; top: 12px; right: 12px; }
    .step i { width: 38px; height: 38px; font-size: 14px; border-radius: 12px; }
    .step h3 { font-size: .9rem; margin: 10px 0 4px; }
    .step p { font-size: 12.5px; line-height: 1.45; }
    .quote-banner { margin-top: 12px; padding: 18px 20px; border-radius: 18px; gap: 12px; }
    .quote-banner h3 { font-size: 1.05rem; }
    .quote-banner p { font-size: 13px; margin-top: 4px; }
    .quote-banner .btn { --h: 40px; font-size: 13px; }

    /* Avis : carte et textes plus petits */
    .reviews-grid { gap: 20px; }
    .score { margin-top: 14px; gap: 12px; }
    .score strong { font-size: 2.2rem; }
    .score span { font-size: 12.5px; }
    .tcard { padding: 22px 20px; border-radius: 20px; }
    .tcard .q { font-size: 3rem; top: 10px; right: 18px; }
    .ttext { font-size: .98rem; line-height: 1.5; margin-top: 10px; }
    .tauthor { margin-top: 14px; gap: 10px; }
    .tauthor .av { width: 38px; height: 38px; font-size: 13px; }
    .tauthor h3 { font-size: 14px; }
    .tnav { padding-top: 14px; }

    /* Contact : informations sur 2 colonnes, carte plus petite */
    .cinfo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 20px; border-radius: 20px; }
    .cinfo h3, .cinfo > p, .cinfo .map { grid-column: 1 / -1; }
    .cinfo h3 { font-size: 1.1rem; }
    .cinfo > p { margin: -8px 0 0; font-size: 13px; }
    .crow { gap: 10px; }
    .crow .ico { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
    .crow h4 { font-size: 10.5px; }
    .crow a, .crow p { font-size: 13px; line-height: 1.6; }
    .map iframe { height: 160px; }
    .cform { padding: 20px; border-radius: 20px; }

    /* Footer : 3 colonnes, plus compact */
    .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; padding: 36px 0 24px; }
    .footer-top > div:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px; }
    .footer-top > div:first-child p { margin: 0; font-size: 13px; max-width: none; }
    .footer-top > div:first-child .socials { grid-column: 2; margin-top: 4px; }
    .footer-top img { height: 38px; }
    .footer h4 { font-size: 12.5px; margin-bottom: 10px; }
    .footer ul { gap: 7px; font-size: 13px; }
    .fcontact li { font-size: 12.5px; }
    .socials a { width: 34px; height: 34px; font-size: 13px; }
    .newsletter { margin-top: 10px; }
    .newsletter input { font-size: 13px; }
    .newsletter button { min-height: 32px; font-size: 12px; padding: 0 12px; }
    .footer-bottom { padding: 14px 0 90px; font-size: 12px; }
}

/* =========================================================
   v5.8 — Tablette (600-899px) : le reste du site plus compact
   ========================================================= */
@media (min-width: 600px) and (max-width: 899px) {
    /* --- Navigation & ruban --- */
    :root { --nav-h: 62px; }
    .nav-logo img { height: 38px; }
    .quote-trigger { min-height: 38px; font-size: 13px; padding: 0 12px 0 11px; gap: 7px; }
    .quote-trigger i { font-size: 14px; }
    .badge { min-width: 19px; height: 19px; font-size: 10.5px; }
    .burger { width: 38px; height: 38px; font-size: 15px; }
    .promo-ribbon { font-size: 12.5px; }
    .promo-ribbon .container { min-height: 34px; }

    /* --- Titres & sections --- */
    .section { padding: 48px 0; }
    .head { margin-bottom: 20px; gap: 10px; }
    .tag { font-size: 10.5px; padding: 4px 10px; }
    .title { font-size: 1.6rem; margin-top: 8px; }
    .lead { font-size: .9rem; margin-top: 6px; }

    /* --- Hero (texte, boutons, chiffres) --- */
    .hero { padding: 28px 0 86px; }
    .hero h1 { font-size: 2.15rem; margin-top: 12px; }
    .hero-leader { font-size: 1.08rem; margin-top: 8px; }
    .hero p.sub { font-size: .9rem; margin-top: 12px; max-width: 520px; }
    .hero-cta { margin-top: 18px; gap: 8px; }
    .hero-cta .btn { --h: 40px; font-size: 13px; padding: 0 16px; }
    .hero-stats { margin-top: 18px; gap: 8px; }
    .hero-stats div { padding: 8px 12px; min-width: 96px; border-radius: 12px; }
    .hero-stats strong { font-size: 1.15rem; }
    .hero-stats div > span { font-size: 11px; }
    .hero-grid { gap: 28px; }

    /* --- Atouts (4 cartes sous le hero) --- */
    .features { margin-top: -54px; }
    .features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .feature { flex-direction: column; padding: 12px; gap: 8px; border-radius: 14px; }
    .feature i { width: 32px; height: 32px; font-size: 13px; border-radius: 10px; }
    .feature h2 { font-size: .84rem; }
    .feature p { font-size: 11.5px; line-height: 1.4; }

    /* --- À propos (texte) --- */
    .about-text p { font-size: .88rem; margin-top: 12px; }
    .value { padding: 10px; gap: 10px; border-radius: 12px; }
    .value i { width: 32px; height: 32px; font-size: 12px; border-radius: 10px; }
    .value h3 { font-size: 13px; }
    .value p { font-size: 11.5px; }

    /* --- Cartes produit (catalogue) --- */
    .product-grid { gap: 12px; }
    .pcard { border-radius: 16px; }
    .pcard-badges { top: 8px; left: 8px; right: 8px; }
    .pill { font-size: 9.5px; padding: 3px 7px; }
    .pcard-body { padding: 10px 10px 6px; gap: 3px; }
    .pcard-cat { font-size: 10px; }
    .pcard-body h3 { font-size: .86rem; }
    .pcard-body p { font-size: 12px; line-height: 1.4; }
    .pcard-meta { font-size: 11px; padding-top: 3px; }
    .swatches span { width: 13px; height: 13px; }
    .more-wrap { margin-top: 22px; }
    .more-wrap .btn { --h: 38px; font-size: 13px; }

    /* --- Marques --- */
    .brands { padding: 30px 0; }
    .brands-title { font-size: 11px; margin-bottom: 14px; }
    .brand { width: 120px; height: 64px; padding: 10px 14px; border-radius: 12px; }
    .brand img { max-height: 40px; }

    /* --- Formulaire de contact --- */
    .cform h3 { font-size: 1.1rem; }
    .cform > p { font-size: 13px; margin-bottom: 14px; }
    .field { margin-bottom: 10px; }
    .field label, .field .label { font-size: 12px; margin-bottom: 4px; }
    .field input, .field select, .field textarea { min-height: 38px; padding: 7px 11px; font-size: 13.5px; border-radius: 10px; }
    .field textarea { min-height: 84px; }
    .form-row { gap: 10px; }
    .seg span { min-height: 32px; font-size: 12.5px; padding: 0 11px; }
    .cform .btn { --h: 40px; font-size: 13px; }

    /* --- Boutons flottants --- */
    .fab-wa { width: 46px; height: 46px; font-size: 23px; }
    .fab-quote { min-height: 44px; font-size: 13px; padding: 0 14px; }
    .back-top { width: 40px; height: 40px; font-size: 13px; }
    .back-top.raised { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px); }
    .fab-filters { height: 38px; font-size: 12.5px; }

    /* --- Menu mobile --- */
    .mnav-panel { width: min(340px, 80vw); padding: 16px; }
    .logo-chip img { height: 28px; }
    .mnav nav a { font-size: 14.5px; padding: 10px 2px; gap: 12px; }
    .mnav nav a i { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; }
    .mnav-foot .btn { --h: 40px; font-size: 13px; }

    /* --- Fiche produit (plein écran sur tablette) --- */
    .pv-top { min-height: 52px; padding: 6px 10px 6px 16px; }
    .pv-top-actions .icon-btn { width: 36px; height: 36px; font-size: 13px; }
    .crumbs { font-size: 13px; }
    .pv-track { max-height: min(48vh, 440px); }
    .pv-info { padding: 14px 22px 22px; }
    .pv-name { font-size: 1.4rem; margin-top: 10px; }
    .pv-short, .pv-panel { font-size: 13.5px; }
    .pv-highlights span { font-size: 11.5px; padding: 4px 10px; }
    .pv-block { margin-top: 14px; padding-top: 14px; }
    .pv-label { font-size: 12.5px; }
    .pv-color { min-height: 36px; font-size: 12.5px; }
    .pv-color span { width: 22px; height: 22px; }
    .pv-size { min-height: 36px; min-width: 58px; font-size: 13px; }
    .pv-tabs button { font-size: 13px; }
    .spec th, .spec td { font-size: 13px; padding: 8px 0; }
    .pv-assure div { font-size: 11.5px; padding: 10px 6px; }
    .pv-related { padding: 18px 22px 22px; }
    .pv-related h3 { font-size: 1rem; }
    .rel-track { grid-auto-columns: minmax(130px, 24%); gap: 10px; }
    .rel span { font-size: 12.5px; padding: 8px 10px; }
    .pv-bar .qty { height: 44px; }
    .pv-bar .btn-primary { --h: 44px; font-size: 13.5px; }
    .pv-bar .btn-wa { flex-basis: 44px; width: 44px; --h: 44px; font-size: 19px; }
    .pv-promo { padding: 10px 12px; }
    .pv-promo .pp-badge { min-width: 54px; height: 40px; font-size: 1.1rem; }

    /* --- Panier « Mon devis » --- */
    .qd-panel { width: min(460px, 100%); }
    .qd-head { padding: 12px 18px; }
    .qd-head h2 { font-size: 1.05rem; }
    .qd-steps { padding: 9px 18px; }
    .qd-steps span { font-size: 12px; }
    .qd-body { padding: 14px 18px; }
    .qd-foot { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); gap: 8px; }
    .qd-foot .btn { --h: 42px; font-size: 13.5px; }
    .qitem { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
    .qitem > button img { width: 60px; height: 60px; border-radius: 10px; }
    .qitem h4 { font-size: 13.5px; }
    .qd-summary { font-size: 13px; }
    .qd-note { font-size: 12.5px; }

    /* --- Notifications --- */
    .toast { padding: 8px 8px 8px 10px; gap: 10px; }
    .toast img { width: 38px; height: 38px; }
    .toast div { font-size: 12.5px; }
}

@media (min-width: 600px) and (max-width: 899px) {
    .qitem-opts select { font-size: 12.5px; height: 32px; padding: 0 26px 0 10px; }
    .qty.sm { height: 34px; }
    .qty.sm button { width: 30px; font-size: 11px; }
    .qty.sm input { font-size: 13.5px; width: 34px; }
}

/* =========================================================
   v6.0 — Tablette : plus d'espaces vides
   ========================================================= */
/* Hero : les 3 photos occupent toute la largeur (bloc large et peu haut) */
@media (min-width: 600px) and (max-width: 980px) {
    .hero-visual { max-width: none; width: 100%; }
    .hero-bento { aspect-ratio: 2.1 / 1; grid-template-columns: 1.45fr 1fr; gap: 10px; }
    .hero-float { left: 12px; top: 12px; }
}

@media (min-width: 600px) and (max-width: 899px) {
    /* 4 atouts : petites bandes horizontales (icône + titre) */
    .features { margin-top: -48px; }
    .features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .feature { flex-direction: row; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; min-height: 0; }
    .feature > div { min-width: 0; }
    .feature i { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; flex-shrink: 0; }
    .feature h2 { font-size: .8rem; line-height: 1.25; }
    .feature p { display: none; }

    /* À propos : photo à gauche, texte à droite (plus de photo seule au milieu) */
    .about-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 24px; align-items: start; }
    .about-media { max-width: none; margin: 0; padding: 0 0 16px 16px; position: sticky; top: calc(var(--nav-h) + 14px); }
    .about-media .main { aspect-ratio: 4 / 5; }
    .about-exp { right: -6px; bottom: 28px; padding: 10px 12px; max-width: 150px; }
    .about-exp strong { font-size: 1.3rem; }
    .about-exp span { font-size: 11px; }
    .about-text .title { font-size: 1.45rem; }
    .values { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* v6.1 — Portable (860-1440px) : 4 produits par ligne, cartes moins hautes (photo 4:3) */
@media (min-width: 860px) and (max-width: 1440px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .pcard-media { aspect-ratio: 4 / 3; }
    .pcard-media img.contain { padding: 8%; }
    .pcard-body { padding: 10px 12px 6px; gap: 2px; }
    .pcard-cat { font-size: 10.5px; }
    .pcard-body h3 { font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
    .pcard-body p { font-size: 12px; -webkit-line-clamp: 1; line-height: 1.4; }
    .pcard-meta { padding-top: 4px; font-size: 11px; }
    .pcard-actions { padding: 0 12px 12px; gap: 6px; }
    .pcard-actions .btn { --h: 34px; font-size: 12px; padding: 0 8px; }
    .pcard-actions .icon-btn { width: 34px; height: 34px; font-size: 12.5px; }
    .pcard-badges { top: 8px; left: 8px; right: 8px; }
    .pill { font-size: 10px; padding: 3px 8px; }
    .promo-row .pcard-media { aspect-ratio: 4 / 3; }
}
@media (min-width: 860px) and (max-width: 899px) {
    .pcard-actions .l-long { display: none; }
    .pcard-actions .l-short { display: inline; }
}

/* =========================================================
   v6.2 — Portable (900-1440px) : navbar et « Mon devis » plus compacts
   ========================================================= */
@media (min-width: 900px) and (max-width: 1440px) {
    /* Barre d'infos du haut */
    .topbar { font-size: 12px; }
    .topbar .container { min-height: 32px; }
    .topbar-info { gap: 16px; }
    .promo-ribbon { font-size: 12.5px; }
    .promo-ribbon .container { min-height: 34px; }
    .pr-hot { font-size: 10.5px; padding: 2px 9px; }

    /* Navbar */
    :root { --nav-h: 60px; }
    .nav-logo img { height: 38px; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 7px 11px; font-size: 13px; }
    .nav-actions { gap: 8px; }
    .burger { width: 38px; height: 38px; font-size: 15px; }

    /* Bouton « Mon devis » (navbar) */
    .quote-trigger { min-height: 36px; padding: 0 12px 0 11px; gap: 7px; font-size: 13px; }
    .quote-trigger i { font-size: 13.5px; }
    .badge { min-width: 19px; height: 19px; font-size: 10.5px; padding: 0 5px; }

    /* Boutons flottants (bas de l'écran) */
    .fab-quote { min-height: 46px; padding: 0 15px; gap: 8px; font-size: 13px; }
    .fab-quote i { font-size: 15px; }
    .fab-wa { width: 48px; height: 48px; font-size: 24px; }
    .back-top { width: 40px; height: 40px; font-size: 13px; }
    .back-top.raised { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 58px); }

    /* Panneau « Mon devis » */
    .qd-panel { width: min(440px, 100%); }
    .qd-head { padding: 12px 18px; }
    .qd-head h2 { font-size: 1.05rem; gap: 8px; }
    .qd-head .icon-btn { width: 36px; height: 36px; font-size: 13px; }
    .qd-steps { padding: 9px 18px; }
    .qd-steps span { font-size: 12px; }
    .qd-steps span b { width: 22px; height: 22px; font-size: 11px; }
    .qd-body { padding: 14px 18px; }
    .qd-foot { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); gap: 8px; }
    .qd-foot .btn { --h: 42px; font-size: 13.5px; }
    .qd-summary { font-size: 13px; }
    .qd-summary strong { font-size: 13.5px; }
    .link-btn { font-size: 12.5px; }
    .qitem { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
    .qitem > button img { width: 60px; height: 60px; border-radius: 10px; }
    .qitem h4 { font-size: 13.5px; }
    .qitem-rm { width: 30px; height: 30px; font-size: 12.5px; }
    .qitem-opts select { font-size: 12.5px; height: 32px; }
    .qitem-bottom small { font-size: 11.5px; }
    .qty.sm { height: 34px; }
    .qty.sm button { width: 30px; font-size: 11px; }
    .qty.sm input { font-size: 13.5px; width: 34px; }
    .qd-note { font-size: 12.5px; padding: 10px 12px; }
    .qd-empty .ill { width: 78px; height: 78px; font-size: 30px; }
    .qd-empty h3 { font-size: 1.05rem; }
    .qd-empty p { font-size: 13.5px; }
    .qd-mini img { width: 40px; height: 40px; }
    .qd-mini span { font-size: 12.5px; }
    #quote-form .field label { font-size: 12px; }
    #quote-form .field input, #quote-form .field textarea { min-height: 38px; font-size: 13.5px; padding: 7px 11px; }
    #quote-form .field textarea { min-height: 84px; }
    .qd-done .ok { width: 72px; height: 72px; font-size: 30px; }
    .qd-done h3 { font-size: 1.2rem; }
    .qd-done p { font-size: 13.5px; }
}

/* v6.3 — Portable (900-1440px) : menu latéral (bouton ☰) plus compact */
@media (min-width: 900px) and (max-width: 1440px) {
    .mnav-panel { width: min(320px, 86vw); padding: 16px; }
    .mnav-top { padding-bottom: 12px; }
    .logo-chip { padding: 6px 12px; border-radius: 10px; }
    .logo-chip img { height: 26px; }
    #mobile-menu-close { width: 34px; height: 34px; font-size: 13px; }
    .mnav nav { padding: 8px 0; }
    .mnav nav a { font-size: 14px; padding: 9px 2px; gap: 12px; }
    .mnav nav a i { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; }
    .mnav-promo-badge { font-size: 10.5px; padding: 2px 7px; }
    .mnav-foot { gap: 8px; padding-top: 12px; }
    .mnav-foot .btn { --h: 40px; font-size: 13px; gap: 8px; }
}


/* =========================================================
   v6.4 — ESSAI « style Amazon » (téléphone / tablette)
   Tout ce bloc ne s'applique que si <html class="xp">
   (interrupteur EXPERIMENT_MOBILE_UX dans script.js).
   Pour supprimer l'essai : effacer ce bloc + le bloc ESSAI de index.html et de script.js.
   ========================================================= */

/* --- 1. Bouton loupe dans la navbar (là où le burger apparaît) --- */
.xp-search-btn { display: none; }
@media (max-width: 1100px) {
    .xp .xp-search-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 15px; transition: background .2s; }
    .xp .xp-search-btn:hover { background: rgba(255, 255, 255, .26); }
}
@media (min-width: 481px) and (max-width: 599px) { .xp .xp-search-btn { width: 40px; height: 40px; font-size: 16px; } }
@media (max-width: 480px) { .xp .xp-search-btn { width: 34px; height: 34px; font-size: 14px; } }

/* --- 2. Barre de navigation du bas (téléphone) --- */
.xp-tabbar { display: none; }
@media (max-width: 599px) {
    .xp .xp-tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
        display: flex; align-items: stretch; justify-content: space-around;
        height: calc(58px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -14px rgba(20, 26, 61, .25);
    }
    .xp .xp-tabbar > a, .xp .xp-tabbar > button {
        position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        color: var(--muted); font-size: 10.5px; font-weight: 700; background: none; border: 0; padding: 0; text-decoration: none;
        -webkit-tap-highlight-color: transparent; transition: color .2s;
    }
    .xp .xp-tabbar > [hidden] { display: none; }
    .xp .xp-tabbar i { font-size: 17px; line-height: 1; }
    .xp .xp-tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .xp .xp-tabbar .is-active { color: var(--blue-600); }
    .xp .xp-tabbar .is-active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue-600); }
    .xp .xp-tabbar [data-xp-tab="promos"] i { color: var(--promo, #e53935); }
    .xp .xp-tabbar > *:active { transform: scale(.94); }
    .xp .xp-badge {
        position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
        background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; line-height: 1;
    }

    /* Place libre en bas de page pour la barre */
    .xp body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .xp .footer-bottom { padding-bottom: 20px; }

    /* Boutons flottants remontés au-dessus de la barre ; « Mon devis » est déjà dans la barre */
    .xp .fab-quote { display: none; }
    .xp .fab-wa { width: 46px; height: 46px; font-size: 23px; bottom: calc(70px + env(safe-area-inset-bottom)); }
    .xp .back-top, .xp .back-top.raised { width: 40px; height: 40px; font-size: 13px; bottom: calc(72px + env(safe-area-inset-bottom)); }
    .xp .fab-filters { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* --- 3. Panneau « Rechercher & filtrer » (s'ouvre par le bas) --- */
.xp-sheet { display: none; }
@media (max-width: 1100px) {
    .xp .xp-sheet {
        position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center;
        background: rgba(20, 26, 61, .45); opacity: 0; transition: opacity .3s;
    }
    .xp .xp-sheet[hidden] { display: none; }
    .xp .xp-sheet.open { opacity: 1; }
    .xp .xp-sheet-panel {
        width: min(640px, 100%); max-height: 86vh; max-height: 86dvh; display: flex; flex-direction: column;
        background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px -20px rgba(20, 26, 61, .45);
        transform: translateY(100%); transition: transform .38s var(--ease); outline: none;
    }
    .xp .xp-sheet.open .xp-sheet-panel { transform: none; }
    .xp .xp-grip { display: block; width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 8px auto 2px; flex-shrink: 0; }
    .xp .xp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 14px 10px 18px; border-bottom: 1px solid var(--line); }
    .xp .xp-sheet-head h2 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
    .xp .xp-sheet-head h2 i { color: var(--blue-600); font-size: .9em; }
    .xp .xp-sheet-head .icon-btn { width: 36px; height: 36px; font-size: 14px; }
    .xp .xp-sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 6px; }
    .xp .xp-group + .xp-group { margin-top: 16px; }
    .xp .xp-group h3 { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
    .xp .xp-sheet .search { flex: none; width: 100%; }
    .xp .xp-sheet .search input { height: 44px; font-size: 16px; }
    .xp .xp-sheet .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 0; }
    .xp .xp-sheet .chips .filter-btn { width: 100%; justify-content: center; text-align: center; min-height: 40px; font-size: 13px; padding: 6px 10px; white-space: normal; line-height: 1.2; }
    .xp .xp-sheet-foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
    .xp .xp-sheet-foot .btn { --h: 44px; font-size: 14px; }
    .xp .xp-sheet-foot .btn-outline { flex: 0 0 auto; }
    .xp .xp-sheet-foot .btn-primary { flex: 1; justify-content: center; }
    /* Le bouton flottant « Filtres » ouvre maintenant le panneau : la flèche ↑ n'a plus de sens */
    .xp .fab-filters .ff-up { display: none; }
    .xp .fab-filters { padding-right: 8px; }
}
@media (min-width: 600px) and (max-width: 1100px) {
    .xp .xp-sheet .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
    .xp .xp-sheet .chips .filter-btn { font-size: 12px; min-height: 38px; }
    .xp .xp-tabbar > a, .xp .xp-tabbar > button { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) { .xp .xp-sheet, .xp .xp-sheet-panel { transition: none; } }


/* =========================================================
   v6.5 — Portable (900-1440px) : page d'accueil plus compacte
   Hero, atouts, Offres du moment, catégories, devis, avis.
   Texte + icônes + cadres + images réduits ensemble (proportions gardées).
   Les tailles s'adaptent : plus petit à 1024px, un peu plus grand à 1366px.
   ========================================================= */
@media (min-width: 900px) and (max-width: 1440px) {
    /* --- Titres de sections --- */
    .section { padding: clamp(54px, 5.6vw, 80px) 0; }
    .head { margin-bottom: clamp(22px, 2.4vw, 34px); gap: 14px 30px; }
    .tag { font-size: 11px; padding: 5px 12px; gap: 6px; }
    .title { font-size: clamp(1.7rem, .85rem + 1.55vw, 2.3rem); margin-top: 10px; }
    .lead { font-size: clamp(.88rem, .7rem + .3vw, .98rem); margin-top: 8px; }

    /* --- Hero --- */
    .hero { padding: clamp(30px, 3.4vw, 48px) 0 clamp(92px, 9vw, 124px); }
    .hero-grid { gap: clamp(28px, 3.6vw, 52px); }
    .hero h1 { font-size: clamp(2.6rem, 1rem + 2.9vw, 3.4rem); margin-top: 14px; }
    .hero-leader { font-size: clamp(1.15rem, .55rem + 1vw, 1.5rem); margin-top: 10px; }
    .hero p.sub { font-size: clamp(.92rem, .75rem + .3vw, 1.02rem); margin-top: 14px; max-width: 480px; }
    .hero-cta { margin-top: 20px; gap: 10px; }
    .hero-cta .btn { --h: 44px; font-size: 14px; padding: 0 20px; }
    .hero-stats { margin-top: 22px; gap: 10px; }
    .hero-stats div { padding: 9px 14px; min-width: 100px; border-radius: 13px; }
    .hero-stats strong { font-size: 1.3rem; }
    .hero-stats div > span { font-size: 12px; }
    .hero-bento { aspect-ratio: 1 / .76; gap: 12px; }
    .bento { border-radius: 20px; }
    .bento-label { left: 12px; right: 12px; bottom: 12px; font-size: 13px; }
    .bento-label small { font-size: 10px; }
    .bento-label .go { width: 28px; height: 28px; font-size: 11px; }
    .hero-float { padding: 9px 13px; gap: 10px; font-size: 12.5px; border-radius: 13px; top: 18px; left: -16px; }
    .hero-float i { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
    .hero-float small { font-size: 11px; }

    /* --- Atouts (Qualité Premium, Stock Garanti…) : 4 sur une ligne, plus petits --- */
    .features { margin-top: -58px; }
    .features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .feature { padding: 14px; gap: 10px; border-radius: 16px; align-items: center; }
    .feature i { width: 38px; height: 38px; font-size: 15px; border-radius: 11px; }
    .feature h2 { font-size: .9rem; }
    .feature p { font-size: 12px; line-height: 1.4; }

    /* --- Offres du moment --- */
    .promo-slide { min-height: 0; padding: clamp(26px, 2.6vw, 36px) clamp(44px, 4.4vw, 60px); gap: 20px; border-radius: 24px; }
    .promo-label { font-size: 11px; padding: 5px 12px; gap: 6px; }
    .promo-discount { margin-top: 12px; gap: 8px; }
    .promo-discount strong { font-size: clamp(3rem, 1.4rem + 2.6vw, 4rem); }
    .promo-discount span { font-size: 12px; padding-bottom: 7px; }
    .promo-copy h3 { font-size: clamp(1.3rem, .75rem + .9vw, 1.6rem); margin-top: 10px; }
    .promo-copy p { font-size: 13.5px; margin-top: 8px; max-width: 420px; }
    .countdown { margin-top: 14px; gap: 6px; }
    .countdown-label { font-size: 11px; }
    .countdown div { min-width: 50px; padding: 6px 5px; border-radius: 10px; }
    .countdown b { font-size: 1.1rem; }
    .countdown small { font-size: 9.5px; }
    .promo-actions { margin-top: 18px; gap: 8px; }
    .promo-actions .btn { --h: 40px; font-size: 13px; padding: 0 16px; }
    .promo-visual { min-height: 240px; }
    .promo-frame { width: min(100%, clamp(250px, 24vw, 320px)); border-radius: 22px; }
    .promo-minis { gap: 8px; }
    .promo-minis img { width: 64px; height: 64px; border-radius: 14px; border-width: 3px; }
    .promo-sticker { width: 82px; height: 82px; }
    .promo-sticker b { font-size: 1.45rem; }
    .promo-sticker small { font-size: 9.5px; }
    .promo-arrow { width: 38px; height: 38px; font-size: 13px; }
    .promo-strip { margin-top: 26px; }
    .promo-strip-head { margin-bottom: 10px; }
    .promo-strip-head h3 { font-size: 1rem; gap: 8px; }
    #promo-see-all { font-size: 12.5px; }

    /* --- Explorez par catégorie --- */
    .cats { grid-auto-rows: clamp(130px, 12.6vw, 176px); gap: 12px; }
    .cat { border-radius: 18px; }
    .cat-body { left: 14px; right: 14px; bottom: 12px; gap: 8px; }
    .cat-body strong { font-size: clamp(.98rem, .6rem + .55vw, 1.2rem); }
    .cat-body small { font-size: 11.5px; }
    .cat-body .go { width: 32px; height: 32px; font-size: 12px; }

    /* --- Comment demander un devis --- */
    .steps { gap: 14px; }
    .step { padding: 20px 18px; border-radius: 18px; }
    .step::before { font-size: 2rem; top: 14px; right: 18px; }
    .step i { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
    .step h3 { font-size: 1rem; margin: 14px 0 5px; }
    .step p { font-size: 13px; line-height: 1.5; }
    .quote-banner { margin-top: 18px; padding: 22px 28px; border-radius: 22px; gap: 16px; }
    .quote-banner::after { width: 200px; height: 200px; }
    .quote-banner h3 { font-size: clamp(1.15rem, .7rem + .75vw, 1.4rem); }
    .quote-banner p { font-size: 13.5px; margin-top: 4px; }
    .quote-banner .btn { --h: 42px; font-size: 13.5px; padding: 0 18px; }

    /* --- Avis clients --- */
    .reviews-grid { gap: clamp(28px, 4vw, 52px); }
    .score { margin-top: 18px; gap: 12px; }
    .score strong { font-size: 2.7rem; }
    .score .stars { font-size: 14px; }
    .score span { font-size: 13px; }
    .tcard { padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; min-height: 0; }
    .tcard .q { font-size: 3.6rem; top: 10px; right: 20px; }
    .tcard .stars { font-size: 13px; }
    .ttext { font-size: clamp(.95rem, .7rem + .4vw, 1.08rem); margin-top: 10px; }
    .tauthor { margin-top: 18px; gap: 10px; }
    .tauthor .av { width: 40px; height: 40px; font-size: 14px; }
    .tauthor h3 { font-size: 14px; }
    .tauthor span { font-size: 12px; }
    .tnav { padding-top: 18px; }
    .tnav .icon-btn { width: 36px; height: 36px; font-size: 13px; }
}


/* =========================================================
   v6.7 — Tablette (600-859px) : catalogue plus compact
   - 3 produits par ligne (inchangé) mais photos moins hautes (4:3 au lieu de carré)
   - Filtres (catégories) et recherche plus petits, proportionnels à l'écran
   ========================================================= */
@media (min-width: 600px) and (max-width: 859px) {
    /* --- Cartes produit --- */
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 14px); }
    .pcard-media { aspect-ratio: 4 / 3; }
    .pcard-media img.contain { padding: 7%; }
    .pcard-body { padding: 8px 10px 5px; gap: 2px; }
    .pcard-cat { font-size: 10px; }
    .pcard-body h3 { font-size: clamp(.8rem, .55rem + .5vw, .88rem); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
    .pcard-body p { font-size: 11.5px; -webkit-line-clamp: 1; line-height: 1.4; }
    .pcard-meta { padding-top: 3px; font-size: 10.5px; }
    .swatches span { width: 12px; height: 12px; }
    .pcard-actions { padding: 0 10px 10px; gap: 5px; }
    .pcard-actions .btn { --h: 30px; font-size: 11.5px; padding: 0 7px; }
    .pcard-actions .btn i { font-size: 11px; }
    .pcard-actions .icon-btn { width: 30px; height: 30px; font-size: 11.5px; }
    .pcard-badges { top: 7px; left: 7px; right: 7px; }
    .pill { font-size: 9.5px; padding: 3px 7px; }

    /* --- Recherche : champ plus court, adapté à la largeur --- */
    .toolbar-row { gap: 8px; }
    .toolbar .search { flex: none; align-self: flex-start; width: clamp(250px, 44vw, 360px); }
    .toolbar .search input { height: 34px; font-size: 13px; padding: 0 34px 0 32px; }
    .toolbar .search i { left: 12px; font-size: 11.5px; }
    .toolbar .search-clear { width: 26px; height: 26px; font-size: 11px; }

    /* --- Catégories (puces filtres) --- */
    .chips { gap: 5px; }
    .filter-btn { min-height: 28px; padding: 0 9px; font-size: clamp(11px, .45rem + .6vw, 12px); gap: 4px; }
    .filter-btn i { font-size: 10px; }
    .filter-btn .count { font-size: 9.5px; min-width: 18px; padding: 1px 5px; }
    .result-info { font-size: 12px; }
}


/* =========================================================
   v6.8 — Panneau « Rechercher & filtrer » (ESSAI) plus compact
   tablette et téléphone (≤1100px)
   ========================================================= */
@media (max-width: 1100px) {
    .xp .xp-sheet-panel { width: min(560px, 100%); border-radius: 18px 18px 0 0; }
    .xp .xp-grip { width: 36px; height: 4px; margin: 7px auto 1px; }
    .xp .xp-sheet-head { padding: 4px 12px 8px 16px; }
    .xp .xp-sheet-head h2 { font-size: .9rem; gap: 7px; }
    .xp .xp-sheet-head h2 i { font-size: 12px; }
    .xp .xp-sheet-head .icon-btn { width: 30px; height: 30px; font-size: 12px; }
    .xp .xp-sheet-body { padding: 12px 16px 4px; }
    .xp .xp-group + .xp-group { margin-top: 12px; }
    .xp .xp-group h3 { font-size: 10px; margin-bottom: 6px; }
    .xp .xp-sheet .search input { height: 38px; font-size: 14px; padding: 0 36px 0 34px; }
    .xp .xp-sheet .search i { left: 13px; font-size: 12px; }
    .xp .xp-sheet .search-clear { width: 26px; height: 26px; font-size: 11px; }
    .xp .xp-sheet .chips { gap: 6px; }
    .xp .xp-sheet .chips .filter-btn { min-height: 32px; font-size: 12px; padding: 4px 8px; gap: 5px; }
    .xp .xp-sheet .chips .filter-btn i { font-size: 10.5px; }
    .xp .xp-sheet .chips .filter-btn .count { font-size: 9px; min-width: 17px; padding: 1px 5px; }
    .xp .xp-sheet-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
    .xp .xp-sheet-foot .btn { --h: 38px; font-size: 13px; padding: 0 14px; }
}
@media (max-width: 480px) {
    .xp .xp-sheet-head h2 { font-size: .86rem; }
    .xp .xp-sheet .chips .filter-btn { min-height: 30px; font-size: 11.5px; }
    .xp .xp-sheet-foot .btn { --h: 36px; font-size: 12.5px; }
}

/* =========================================================
   v6.8 — Tablette (600-899px) : navbar, menu ☰ et « Mon devis » plus petits
   ========================================================= */
@media (min-width: 600px) and (max-width: 899px) {
    /* Navbar */
    :root { --nav-h: 58px; }
    .nav-logo img { height: 34px; }
    .nav-actions { gap: 7px; }
    .burger, .xp .xp-search-btn { width: 34px; height: 34px; font-size: 13px; }
    .quote-trigger { min-height: 34px; padding: 0 10px 0 10px; gap: 6px; font-size: 12px; }
    .quote-trigger i { font-size: 12.5px; }
    .quote-trigger .badge { min-width: 17px; height: 17px; font-size: 9.5px; padding: 0 5px; }

    /* Menu caché (bouton ☰) */
    .mnav-panel { width: min(300px, 80vw); padding: 14px; }
    .mnav-top { padding-bottom: 10px; }
    .logo-chip { padding: 6px 11px; border-radius: 10px; }
    .logo-chip img { height: 24px; }
    #mobile-menu-close { width: 32px; height: 32px; font-size: 12px; }
    .mnav nav { padding: 6px 0; }
    .mnav nav a { font-size: 13px; padding: 8px 2px; gap: 10px; }
    .mnav nav a i { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
    .mnav-promo-badge { font-size: 10px; padding: 2px 6px; }
    .mnav-foot { gap: 7px; padding-top: 10px; }
    .mnav-foot .btn { --h: 36px; font-size: 12px; gap: 7px; }

    /* Boutons du bas : « Mon devis », WhatsApp, retour en haut */
    .fab-quote { min-height: 40px; padding: 0 13px; gap: 7px; font-size: 12px; }
    .fab-quote i { font-size: 14px; }
    .fab-quote .badge { min-width: 17px; height: 17px; font-size: 9.5px; padding: 0 5px; }
    .fab-wa { width: 42px; height: 42px; font-size: 21px; }
    .back-top { width: 36px; height: 36px; font-size: 12px; }
    .back-top.raised { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 50px); }
    .fab-filters { height: 34px; font-size: 12px; }
}


/* =========================================================
   v6.9 — Partager une promotion (bouton + petit menu sur ordinateur)
   ========================================================= */
.promo-actions .promo-share { gap: 8px; }
.promo-actions .promo-share i { font-size: .95em; }
@media (max-width: 599px) {
    .promo-actions .promo-share { width: var(--h, 44px); padding: 0; justify-content: center; }
    .promo-actions .promo-share span { display: none; }
}
.share-pop {
    position: fixed; z-index: 2100; display: grid; gap: 4px; min-width: 200px; padding: 8px;
    background: #fff; border-radius: 16px; box-shadow: 0 20px 50px -14px rgba(20, 26, 61, .45), 0 0 0 1px rgba(20, 26, 61, .06);
    animation: sharePopIn .2s var(--ease);
}
@keyframes sharePopIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.share-pop a, .share-pop button {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px;
    color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; background: none; border: 0; width: 100%; text-align: left;
}
.share-pop a:hover, .share-pop button:hover, .share-pop a:focus-visible, .share-pop button:focus-visible { background: var(--blue-50, #eef0fb); outline: none; }
.share-pop i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; color: #fff; flex-shrink: 0; }
.share-pop .sp-wa i { background: #25d366; }
.share-pop .sp-fb i { background: #1877f2; }
.share-pop .sp-copy i { background: var(--blue-600); }
@media (prefers-reduced-motion: reduce) { .share-pop { animation: none; } }

/* v7.0 — Survol carte produit : la 2e photo remplace la 1re (plus de superposition des photos détourées « Outillage ») */
@media (hover: hover) { .pcard:hover .pcard-media img.has-alt { opacity: 0; } }

/* v7.1 — Champ piège anti-robots (invisible pour les visiteurs) */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }


/* =========================================================
   v7.3 — Téléphone (< 600px) : texte un peu plus grand (≈ +1px, +7 à 10 %)
   Lisibilité seulement : mises en page, boutons et images inchangés.
   ========================================================= */
@media (max-width: 599px) {
    body { font-size: 15px; }
    .promo-ribbon { font-size: 12.5px; }
    .tag, .promo-label { font-size: 11px; }
    .mnav nav a { font-size: 15px; }

    /* Hero */
    .hero h1 { font-size: 1.7rem; }
    .hero-leader { font-size: 1rem; }
    .hero p.sub { font-size: 14.8px; }
    .hero-cta .btn { font-size: 14px; }
    .hero-stats div > span { font-size: 11.5px; }

    /* Titres de sections */
    .title { font-size: 1.38rem; }
    .lead { font-size: 15px; }

    /* Atouts, à propos */
    .feature h2 { font-size: 14.4px; }
    .feature p { font-size: 13.5px; }
    .about-text p, .value p { font-size: 14.8px; }
    .value h3 { font-size: 14px; }

    /* Offres du moment */
    .promo-copy h3 { font-size: 19px; }
    .promo-copy p { font-size: 14px; }
    .countdown small { font-size: 10px; }

    /* Catégories */
    .cat-body strong { font-size: 15.4px; }
    .cat-body small { font-size: 12px; }

    /* Catalogue */
    .filter-btn { font-size: 13px; }
    .search input { font-size: 15px; }
    .result-info { font-size: 14px; }
    .pcard-cat { font-size: 12.5px; }
    .pcard-body h3 { font-size: 14.4px; }
    .pcard-body p { font-size: 14px; }
    .pcard-meta { font-size: 12px; }
    .pcard-actions .btn { font-size: 12.5px; }
    .pill { font-size: 10px; }

    /* Devis */
    .step h3 { font-size: 16px; }
    .step p { font-size: 14px; }
    .quote-banner h3 { font-size: 17.8px; }
    .quote-banner p { font-size: 14px; }

    /* Marques, avis */
    .brands-title { font-size: 12px; }
    .ttext { font-size: 15px; }
    .tauthor h3 { font-size: 15px; }
    .tauthor span { font-size: 13px; }
    .score span { font-size: 13.5px; }

    /* Contact */
    .cform h3 { font-size: 17.5px; }
    .cform > p { font-size: 14px; }
    .field label, .field .label { font-size: 12.5px; }
    .field input, .field select, .field textarea { font-size: 16px; }

    /* Pied de page, barre du bas */
    footer p { font-size: 14px; }
    footer li { font-size: 14.5px; }
    footer h4 { font-size: 13.5px; }
    .footer-bottom p { font-size: 13px; }
    .xp .xp-tabbar > a, .xp .xp-tabbar > button { font-size: 11.5px; }
}
@media (max-width: 360px) {
    .xp .xp-tabbar > a, .xp .xp-tabbar > button { font-size: 10.5px; }
    .pcard-actions .btn { font-size: 12px; }
}
@media (max-width: 360px) {
    .promo-actions { flex-wrap: wrap; }
    .promo-actions .btn-gold { flex: 1 1 100%; justify-content: center; }
}

/* =========================================================
   v7.6 — Grands écrans (≥ 1441px)
   - Catégories : tuiles moins hautes, texte intérieur un peu plus petit
   - Produits : 4 par ligne, photos moins hautes (4:3)
   - Devis : bandeau « Votre devis » plus compact (formes seulement, texte inchangé)
   - Avis : carte et éléments plus compacts (formes seulement)
   ========================================================= */
@media (min-width: 1441px) {
    /* Explorez par catégorie */
    .cats { grid-auto-rows: 180px; gap: 12px; }
    .cat { border-radius: 20px; }
    .cat-body { left: 16px; right: 16px; bottom: 14px; }
    .cat-body strong { font-size: 1.15rem; }
    .cat-body small { font-size: 12px; }
    .cat-body .go { width: 34px; height: 34px; font-size: 13px; }

    /* Produits : toujours 4 par ligne, photos moins hautes (4:3 au lieu de carré) */
    .pcard-media { aspect-ratio: 4 / 3; }
    .pcard-media img.contain { padding: 8%; }
    .promo-row .pcard-media { aspect-ratio: 4 / 3; }

    /* Devis : bandeau final (formes) */
    .quote-banner { padding: 24px 32px; border-radius: 22px; margin-top: 18px; }
    .quote-banner::after { width: 180px; height: 180px; right: -40px; top: -60px; }
    .quote-banner .btn { --h: 44px; padding: 0 20px; }

    /* Avis (formes) */
    .reviews-grid { gap: 48px; }
    .tcard { padding: 30px 34px; border-radius: 24px; min-height: 0; }
    .tcard .q { font-size: 4rem; top: 12px; right: 24px; }
    .tauthor { margin-top: 18px; }
    .tauthor .av { width: 42px; height: 42px; }
    .tnav { padding-top: 18px; }
    .tnav .icon-btn { width: 38px; height: 38px; }
    .testimonial-dot { height: 8px; }
}

/* v7.7 — Fiche produit : icône WhatsApp plus grande, à l'échelle du texte du bouton */
#pv-wa { gap: 10px; }
#pv-wa i { font-size: 1.45em; line-height: 1; }
#pv-wa-m i { font-size: 1.2em; }

/* v7.8 — Encadré « +60 » (À propos) : les deux lignes du texte bien serrées, sous le chiffre */
.about-exp span { display: block; line-height: 1.3; margin-top: 6px; }

/* v7.8 — Avis : guillemets en couleur (or de la marque) au lieu du gris pâle */
.tcard .q { color: var(--gold); opacity: .9; }

/* v7.8 — Grands écrans (≥ 1441px) : filtres et recherche du catalogue un peu plus petits */
@media (min-width: 1441px) {
    .filter-btn { min-height: 36px; padding: 0 13px; font-size: 13px; gap: 6px; }
    .filter-btn .count { font-size: 10.5px; min-width: 20px; padding: 1px 5px; }
    .toolbar .search { flex-basis: 260px; }
    .toolbar .search input { height: 40px; font-size: 14.5px; padding-left: 38px; }
    .toolbar .search i { left: 14px; font-size: 13px; }
}

/* v7.9 — Grands écrans (≥ 1440px) : le cadre des filtres réduit aussi (pas seulement le texte) */
@media (min-width: 1440px) {
    .filter-btn { min-height: 32px; padding: 0 11px; font-size: 13px; gap: 5px; border-width: 1px; }
    .filter-btn i { font-size: 11px; }
    .filter-btn .count { font-size: 10.5px; min-width: 18px; padding: 1px 5px; line-height: 1.5; }
    .chips { gap: 6px; }
    .toolbar .search { flex-basis: 260px; }
    .toolbar .search input { height: 38px; font-size: 14.5px; padding-left: 38px; }
    .toolbar .search i { left: 14px; font-size: 13px; }
}

/* v8.0 — Carte produit : étiquette de catégorie sur la photo en bleu de la marque
   (lisible sur les photos claires comme sur les sombres) */
.pcard-badges .pb-left .pill:not(.promo) {
    background: var(--blue-600); color: #fff;
    box-shadow: 0 4px 10px -4px rgba(26, 35, 126, .55);
}

/* v8.0 — « Comment demander un devis » : numéros 01 / 02 / 03 dans la couleur de leur étape */
.step::before { color: rgba(57, 73, 171, .22); }
.step:nth-child(2)::before { color: rgba(232, 166, 0, .35); }
.step:nth-child(3)::before { color: rgba(37, 211, 102, .3); }

/* v8.1 — Grands écrans (≥ 1440px) : filtres un peu plus grands que la v7.9 (texte, cadre, pastilles) */
@media (min-width: 1440px) {
    .filter-btn { min-height: 36px; padding: 0 11px; font-size: 13.8px; gap: 6px; }
    .filter-btn i { font-size: 12px; }
    .filter-btn .count { font-size: 11.5px; min-width: 21px; padding: 2px 6px; }
    .chips { gap: 6px; }
    .toolbar .search { flex-basis: 225px; }
    .toolbar .search input { height: 42px; font-size: 14.3px; padding-left: 34px; padding-right: 28px; }
    .toolbar .search i { left: 13px; font-size: 13px; }
}

/* =========================================================
   v8.6 — ESSAI « Hero dynamique » (actif seulement avec <html class="hero-v2">)
   Fond photo animé · vitrine de vrais produits qui défilent · chiffres en barre de verre.
   Pour revenir à l'ancien hero : HERO_V2 = false dans script.js.
   ========================================================= */
.hv2-bg, .hv2-reel { display: none; }

/* Fond : les 6 photos (7 s chacune) se relaient lentement avec un léger zoom, sous un voile indigo */
.hero-v2 .hv2-bg { display: block; position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #1f2766; }
/* Cycle décalé de -1,4 s (= fin du fondu d'entrée, 3,33 % de 42 s) : la 1re photo est visible dès l'affichage
   (sinon Google compte 1,4 s de retard sur le LCP) ; l'écart entre les photos reste identique. */
.hero-v2 .hv2-bg span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: hv2Fade 42s linear -1.4s infinite; will-change: opacity, transform; }
.hero-v2 .hv2-bg span:nth-child(2) { animation-delay: 5.6s; }
.hero-v2 .hv2-bg span:nth-child(3) { animation-delay: 12.6s; }
.hero-v2 .hv2-bg span:nth-child(4) { animation-delay: 19.6s; }
.hero-v2 .hv2-bg span:nth-child(5) { animation-delay: 26.6s; }
.hero-v2 .hv2-bg span:nth-child(6) { animation-delay: 33.6s; }
@keyframes hv2Fade {
    0% { opacity: 0; transform: scale(1.04); }
    3.33% { opacity: 1; }
    16.67% { opacity: 1; }
    20.67% { opacity: 0; transform: scale(1.16); }
    100% { opacity: 0; transform: scale(1.16); }
}
.hero-v2 .hero::before {
    z-index: -1; opacity: 1; -webkit-mask-image: none; mask-image: none;
    background:
        radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 26px 26px,
        linear-gradient(100deg, rgba(22, 28, 84, .95) 0%, rgba(38, 50, 136, .88) 45%, rgba(57, 73, 171, .62) 100%);
}

/* Chiffres : une seule barre de verre */
.hero-v2 .hero-stats { display: inline-flex; flex-wrap: nowrap; gap: 0; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-v2 .hero-stats div { background: none; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; min-width: 108px; padding: 8px 18px; }
.hero-v2 .hero-stats div + div { border-left: 1px solid rgba(255, 255, 255, .16); }

/* Vitrine : deux colonnes de produits qui défilent en sens inverse
   (désactivée : les images d'origine à droite sont conservées — voir HERO_V2_REEL dans script.js) */
.hero-v2 .hv2-reel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 540px; position: relative; }
.hero-v2 .hv2-reel[hidden] { display: none; }
.hv2-col { overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.hv2-track { display: flex; flex-direction: column; gap: 16px; animation: hv2Up 46s linear infinite; }
.hv2-col:nth-child(2) .hv2-track { animation-duration: 52s; animation-direction: reverse; }
.hv2-reel:hover .hv2-track, .hv2-reel:focus-within .hv2-track { animation-play-state: paused; }
@keyframes hv2Up { to { transform: translateY(calc(-50% - 8px)); } }
@keyframes hv2Left { to { transform: translateX(calc(-50% - 6px)); } }

.hv2-card { display: block; width: 100%; text-align: left; background: #fff; border-radius: 18px; overflow: hidden; color: var(--ink); box-shadow: 0 18px 40px -18px rgba(10, 14, 50, .65); transition: transform .3s var(--ease), box-shadow .3s; }
.hv2-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -18px rgba(10, 14, 50, .8); }
.hv2-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hv2-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #f3f4fa; }
.hv2-img img { width: 100%; height: 100%; object-fit: cover; }
.hv2-img.contain img { object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.hv2-img em { position: absolute; top: 10px; left: 10px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--promo); padding: 3px 8px; border-radius: 999px; }
.hv2-meta { display: grid; gap: 2px; padding: 10px 12px 12px; }
.hv2-meta small { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--blue-600); text-transform: uppercase; }
.hv2-meta b { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Étiquette « catégorie · nombre de produits » */
.hv2-chip { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: rgba(20, 26, 61, .82); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .14); transition: opacity .26s, transform .26s; }
.hv2-chip i { color: var(--gold); }
.hv2-chip.swap { opacity: 0; transform: translate(-50%, 6px); }

@media (min-width: 900px) and (max-width: 1100px) { .hero-v2 .hv2-reel { height: 460px; gap: 12px; } .hv2-track { gap: 12px; } }

/* Tablette et téléphone : une seule rangée de produits qui défile horizontalement */
@media (max-width: 899px) {
    .hero-v2 .hv2-reel { grid-template-columns: 1fr; height: auto; gap: 12px; margin-top: 4px; }
    .hv2-col:nth-child(2) { display: none; }
    .hv2-col { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
    .hv2-track { flex-direction: row; width: max-content; gap: 12px; animation-name: hv2Left; animation-duration: 40s; }
    .hv2-card { width: 160px; border-radius: 14px; }
    .hv2-meta { padding: 8px 10px 10px; }
    .hv2-meta b { font-size: 12.5px; }
    .hv2-chip { position: static; transform: none; justify-self: start; order: -1; padding: 8px 14px; font-size: 12.5px; }
    .hv2-chip.swap { transform: translateY(4px); }
    .hero-v2 .hero-stats { display: flex; width: 100%; }
    .hero-v2 .hero-stats div { flex: 1; min-width: 0; padding: 8px 10px; }
}
@media (max-width: 480px) { .hv2-card { width: 138px; } }

@media (prefers-reduced-motion: reduce) {
    .hero-v2 .hv2-bg span { animation: none; }
    .hero-v2 .hv2-bg span:first-child { opacity: 1; }
    .hv2-track { animation: none; }
}

/* v8.7 — Vitrine désactivée : images d origine à droite. Si HERO_V2_REEL = true, la vitrine remplace les images. */
.hero-v2-reel .hero-visual { display: none; }

/* v8.8 — Hero : changement de catégorie en fondu sur les 2 tuiles « Univers » */
.bento img.bento-next { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.bento img.bento-next.in { opacity: 1; }
.bento-label > span:first-child { transition: opacity .3s ease, transform .3s ease; }
.bento-label > span:first-child.swap { opacity: 0; transform: translateY(6px); }

/* v8.8 — Grands écrans (≥ 1440px) : barre des chiffres un peu plus grande */
@media (min-width: 1440px) {
    .hero-stats { margin-top: 26px; }
    .hero-v2 .hero-stats { padding: 8px; border-radius: 20px; }
    .hero-stats div, .hero-v2 .hero-stats div { min-width: 128px; padding: 12px 24px; }
    .hero-stats strong { font-size: 1.7rem; }
    .hero-stats div > span { font-size: 13.5px; }
}

/* v8.9 — Grands écrans (≥ 1440px) : barre des chiffres encore plus grande */
@media (min-width: 1440px) {
    .hero-stats { margin-top: 30px; }
    .hero-v2 .hero-stats { padding: 10px; border-radius: 22px; }
    .hero-stats div, .hero-v2 .hero-stats div { min-width: 150px; padding: 14px 30px; }
    .hero-stats strong { font-size: 2.15rem; }
    .hero-stats div > span { font-size: 15px; margin-top: 2px; display: block; }
}

/* v9.0 — Grands écrans (≥ 1440px) : images du hero (3 tuiles à droite) plus grandes,
   chiffres un peu réduits par rapport à la v8.9 */
@media (min-width: 1440px) {
    .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; }
    .hero-bento { aspect-ratio: 1 / .82; gap: 14px; }
    .bento { border-radius: 22px; }
    .bento-label { left: 16px; right: 16px; bottom: 16px; font-size: 15px; }
    .bento-label small { font-size: 11.5px; }
    .bento-label .go { width: 36px; height: 36px; }

    .hero-v2 .hero-stats { padding: 8px; border-radius: 20px; }
    .hero-stats div, .hero-v2 .hero-stats div { min-width: 136px; padding: 12px 26px; }
    .hero-stats strong { font-size: 1.85rem; }
    .hero-stats div > span { font-size: 14px; }
}

/* v9.1 — Grands écrans (≥ 1440px) : images du hero nettement plus grandes (largeur ET hauteur) */
@media (min-width: 1440px) {
    .hero .container.hero-grid { max-width: 1380px; }
    .hero-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 44px; }
    .hero-bento { aspect-ratio: 1 / .84; gap: 16px; }
    .hero-float { top: 30px; left: -26px; padding: 12px 16px; font-size: 14px; }
    .hero-float i { width: 38px; height: 38px; }
}

/* =========================================================
   v9.2 — Logo : plus grand en haut de page, et barre qui se réduit en douceur au défilement
   (--nav-h = hauteur réduite, utilisée par les éléments collants ; en haut de page la barre est plus haute)
   ========================================================= */
.nav .container { transition: height .3s var(--ease); }
.nav-logo img { transition: height .3s var(--ease); }

@media (min-width: 1441px) {
    :root { --nav-h: 66px; }
    .nav-logo img { height: 46px; }
    .nav:not(.scrolled) .container { height: 84px; }
    .nav:not(.scrolled) .nav-logo img { height: 58px; }
    .footer-top img { height: 62px; }
}
@media (min-width: 900px) and (max-width: 1440px) {
    :root { --nav-h: 60px; }
    .nav-logo img { height: 40px; }
    .nav:not(.scrolled) .container { height: 74px; }
    .nav:not(.scrolled) .nav-logo img { height: 50px; }
    .footer-top img { height: 56px; }
}
@media (min-width: 600px) and (max-width: 899px) {
    :root { --nav-h: 58px; }
    .nav-logo img { height: 38px; }
    .nav:not(.scrolled) .container { height: 68px; }
    .nav:not(.scrolled) .nav-logo img { height: 44px; }
    .footer-top img { height: 48px; }
}
@media (max-width: 599px) {
    :root { --nav-h: 56px; }
    .nav-logo img { height: 34px; }
    .nav:not(.scrolled) .container { height: 64px; }
    .nav:not(.scrolled) .nav-logo img { height: 40px; }
    .footer-top img { height: 44px; }
}
@media (max-width: 360px) {
    .nav-logo img { height: 30px; }
    .nav:not(.scrolled) .container { height: 58px; }
    .nav:not(.scrolled) .nav-logo img { height: 34px; }
    .footer-top img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .nav .container, .nav-logo img { transition: none; } }

/* =========================================================
   v9.3 — Nouveau logo (new-logo-web.png, proportions d'origine 640×219)
   Taille réglée par la LARGEUR + height: auto (jamais étiré ni coupé).
   En haut de page le logo est plus grand ; il se réduit au défilement (.nav.scrolled).
   ========================================================= */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.nav-logo img, .nav:not(.scrolled) .nav-logo img { height: auto; max-width: 100%; object-fit: contain; transition: width .3s var(--ease); }

@media (min-width: 1441px) {
    .nav-logo img { width: 140px; }
    .nav:not(.scrolled) .nav-logo img { width: 176px; }
}
@media (min-width: 900px) and (max-width: 1440px) {
    .nav-logo img { width: 122px; }
    .nav:not(.scrolled) .nav-logo img { width: 150px; }
}
@media (min-width: 600px) and (max-width: 899px) {
    .nav-logo img { width: 112px; }
    .nav:not(.scrolled) .nav-logo img { width: 132px; }
}
@media (max-width: 599px) {
    .nav-logo img { width: 100px; }
    .nav:not(.scrolled) .nav-logo img { width: 118px; }
}
@media (max-width: 360px) {
    .nav-logo img { width: 88px; }
    .nav:not(.scrolled) .nav-logo img { width: 100px; }
}

/* Menu latéral (bouton ☰) : logo sur sa pastille bleue */
.logo-chip { line-height: 0; }
.logo-chip img { height: auto; width: 120px; }

/* Pied de page */
.footer-top img { height: auto; width: 200px; max-width: 100%; }
@media (max-width: 1440px) { .footer-top img { width: 180px; } }
@media (max-width: 899px) { .footer-top img { width: 160px; } }
@media (max-width: 480px) { .footer-top img { width: 150px; } .logo-chip img { width: 104px; } }

/* Devis imprimé : logo blanc et or sur un bandeau foncé (lisible sur le papier blanc) */
@media print {
    #print-area .p-head img { height: auto; width: 190px; background: #1f2766; padding: 10px 14px; border-radius: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { .nav-logo img { transition: none; } }


/* =========================================================
   v9.6 — Navbar « capsule flottante »
   Une seule capsule arrondie, détachée des bords. En haut de page : verre clair posé sur le hero ;
   au défilement : capsule indigo plus compacte. TOUT rétrécit ensemble et en douceur
   (logo, liens, bouton devis, recherche, menu), pas seulement le logo.
   La barre ne prend aucune place dans la page : aucun saut de mise en page au défilement.
   ========================================================= */
:root { --nav-top: 82px; --cap-ease: cubic-bezier(.22, .8, .24, 1); --cap-dur: .35s; }
@media (min-width: 1441px) { :root { --nav-top: 92px; --nav-h: 74px; } .nav:not(.scrolled) .container { height: 92px; } }
@media (min-width: 900px) and (max-width: 1440px) { :root { --nav-h: 68px; } .nav:not(.scrolled) .container { height: 82px; } }
@media (min-width: 600px) and (max-width: 899px) { :root { --nav-top: 74px; --nav-h: 62px; } .nav:not(.scrolled) .container { height: 74px; } }
@media (max-width: 599px) { :root { --nav-top: 66px; --nav-h: 58px; } .nav:not(.scrolled) .container { height: 66px; } }
@media (max-width: 360px) { :root { --nav-top: 60px; --nav-h: 54px; } .nav:not(.scrolled) .container { height: 60px; } }

.nav, .nav.scrolled {
    background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    pointer-events: none; margin-bottom: calc(-1 * var(--nav-top));
    transition: margin-bottom var(--cap-dur) var(--cap-ease);
}
.nav.scrolled { margin-bottom: calc(-1 * var(--nav-h)); }
.nav .container { transition: height var(--cap-dur) var(--cap-ease); }
.hero > .hero-grid { margin-top: var(--nav-top); }

/* La capsule */
.nav-capsule {
    pointer-events: auto; flex: 1; min-width: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 6px 7px 6px 20px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 18px 40px -22px rgba(10, 14, 50, .55);
    transition: padding var(--cap-dur) var(--cap-ease), background-color var(--cap-dur) var(--cap-ease),
                border-color var(--cap-dur) var(--cap-ease), box-shadow var(--cap-dur) var(--cap-ease);
}
.nav.scrolled .nav-capsule {
    padding: 5px 6px 5px 16px;
    background: rgba(31, 39, 102, .95); border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 16px 36px -18px rgba(16, 22, 70, .7);
}

/* Logo : la largeur est déjà gérée (v9.3) ; même courbe que le reste */
.nav-logo img, .nav:not(.scrolled) .nav-logo img { transition: width var(--cap-dur) var(--cap-ease); }

/* Liens */
.nav .nav-links { gap: 2px; }
.nav .nav-links a {
    color: rgba(255, 255, 255, .9); padding: 9px 14px; font-size: 14.5px;
    transition: padding var(--cap-dur) var(--cap-ease), font-size var(--cap-dur) var(--cap-ease), color .2s, background-color .2s;
}
.nav .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .13); }
.nav .nav-links a.active { color: var(--ink); background: var(--gold); }
/* Lien Promos : même pastille rouge + flamme que le bandeau du haut */
.nav .nav-links a.nav-promo { color: #fff; background: linear-gradient(90deg, var(--promo), var(--promo-2)); box-shadow: 0 6px 14px -8px rgba(229, 72, 77, .9); }
.nav .nav-links a.nav-promo:hover { filter: brightness(1.08); }
.nav .nav-links a.nav-promo.active { box-shadow: inset 0 0 0 2px #fff; }
.nav .nav-links a.nav-promo i { margin-right: 2px; animation: flame 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .nav .nav-links a.nav-promo i { animation: none; } }
.nav.scrolled .nav-links a { padding: 7px 12px; font-size: 13.8px; }
@media (min-width: 900px) and (max-width: 1440px) {
    .nav .nav-links a { padding: 8px 12px; font-size: 13.8px; }
    .nav.scrolled .nav-links a { padding: 6px 10px; font-size: 13.1px; }
}
@media (min-width: 1101px) and (max-width: 1240px) {
    .nav .nav-links a { padding: 8px 9px; font-size: 13px; }
    .nav.scrolled .nav-links a { padding: 6px 8px; font-size: 12.5px; }
}

/* Actions */
.nav .nav-actions { gap: 8px; }
.nav .quote-trigger {
    background: var(--gold); color: var(--ink); min-height: 44px; padding: 0 16px 0 14px; font-size: 14.5px; gap: 9px;
    transition: min-height var(--cap-dur) var(--cap-ease), padding var(--cap-dur) var(--cap-ease), font-size var(--cap-dur) var(--cap-ease), transform .3s, box-shadow .3s;
}
.nav .quote-trigger .badge { background: #1f2766; color: #fff; transition: min-width var(--cap-dur) var(--cap-ease), height var(--cap-dur) var(--cap-ease), font-size var(--cap-dur) var(--cap-ease); }
.nav .quote-trigger i { transition: font-size var(--cap-dur) var(--cap-ease); }
.nav.scrolled .quote-trigger { min-height: 38px; padding: 0 13px 0 12px; font-size: 13.5px; gap: 8px; }
.nav.scrolled .quote-trigger i { font-size: 14px; }
.nav.scrolled .quote-trigger .badge { min-width: 19px; height: 19px; font-size: 11px; }

.nav .burger, .xp .nav .xp-search-btn {
    background: rgba(255, 255, 255, .14); color: #fff;
    transition: width var(--cap-dur) var(--cap-ease), height var(--cap-dur) var(--cap-ease), font-size var(--cap-dur) var(--cap-ease), background-color .2s;
}
.nav .burger:hover, .xp .nav .xp-search-btn:hover { background: rgba(255, 255, 255, .24); }
.nav .burger { width: 44px; height: 44px; font-size: 18px; }
.nav.scrolled .burger { width: 38px; height: 38px; font-size: 16px; }
.xp .nav .xp-search-btn { width: 40px; height: 40px; font-size: 15px; }
.xp .nav.scrolled .xp-search-btn { width: 36px; height: 36px; font-size: 14px; }

/* Téléphone */
@media (max-width: 599px) {
    .nav-capsule { padding: 5px 5px 5px 14px; gap: 8px; }
    .nav.scrolled .nav-capsule { padding: 4px 5px 4px 12px; }
    .nav .nav-actions { gap: 6px; }
    .nav .quote-trigger { min-height: 40px; padding: 0 11px; }
    .nav.scrolled .quote-trigger { min-height: 35px; padding: 0 10px; }
    .nav .burger { width: 40px; height: 40px; font-size: 17px; }
    .nav.scrolled .burger { width: 35px; height: 35px; font-size: 15px; }
    .xp .nav .xp-search-btn { width: 36px; height: 36px; font-size: 14px; }
    .xp .nav.scrolled .xp-search-btn { width: 32px; height: 32px; font-size: 13px; }
}
@media (max-width: 360px) {
    .nav-capsule, .nav.scrolled .nav-capsule { padding-left: 11px; }
    .nav .nav-actions { gap: 5px; }
    .nav .quote-trigger { min-height: 36px; padding: 0 9px; }
    .nav.scrolled .quote-trigger { min-height: 33px; padding: 0 8px; }
    .nav .burger { width: 36px; height: 36px; }
    .nav.scrolled .burger { width: 33px; height: 33px; }
    .xp .nav .xp-search-btn { width: 33px; height: 33px; }
    .xp .nav.scrolled .xp-search-btn { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .nav, .nav .container, .nav-capsule, .nav-logo img, .nav .nav-links a, .nav .quote-trigger, .nav .burger, .xp .nav .xp-search-btn { transition: none; }
}

/* =========================================================
   v9.7 — Barre de filtres collante (grands écrans) : même langage que la capsule de navigation
   Plus de bande blanche pleine largeur avec un trait : une barre flottante gris clair, arrondie,
   alignée sur la capsule du menu, qui apparaît en douceur quand la barre se colle.
   ========================================================= */
.toolbar, .toolbar.stuck {
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0;
    transition: padding .35s cubic-bezier(.22, .8, .24, 1);
}
.toolbar .toolbar-row { position: relative; isolation: isolate; transition: padding .35s cubic-bezier(.22, .8, .24, 1); }
.toolbar .toolbar-row::before {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: var(--gutter); right: var(--gutter);
    border-radius: 28px; pointer-events: none;
    background: rgba(238, 240, 247, .96); border: 1px solid rgba(57, 73, 171, .12);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 16px 34px -22px rgba(16, 22, 70, .5);
    opacity: 0; transform: scale(.985); transition: opacity .35s cubic-bezier(.22, .8, .24, 1), transform .35s cubic-bezier(.22, .8, .24, 1);
}
/* Seulement là où la barre est réellement collante (au-delà de 1024 px de large et 500 px de haut) */
@media (min-width: 1025px) and (min-height: 501px) {
    .toolbar.stuck { padding: 6px 0; }
    .toolbar.stuck .toolbar-row { padding: 8px calc(var(--gutter) + 10px); }
    .toolbar.stuck .toolbar-row::before { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .toolbar, .toolbar .toolbar-row, .toolbar .toolbar-row::before { transition: none; } }

/* Navigation des rangées de produits, sans barre de défilement. */
.product-rail { position: relative; min-width: 0; }
.product-rail > .promo-row, .product-rail > .rel-track {
    min-width: 0; scrollbar-width: none; scroll-snap-type: none;
    --rail-fade: clamp(28px, 4vw, 48px);
    -webkit-mask-image: linear-gradient(to right, transparent, #0003 calc(var(--rail-fade) * .2), #000b calc(var(--rail-fade) * .55), #000 var(--rail-fade), #000 calc(100% - var(--rail-fade)), #000b calc(100% - var(--rail-fade) * .55), #0003 calc(100% - var(--rail-fade) * .2), transparent);
    mask-image: linear-gradient(to right, transparent, #0003 calc(var(--rail-fade) * .2), #000b calc(var(--rail-fade) * .55), #000 var(--rail-fade), #000 calc(100% - var(--rail-fade)), #000b calc(100% - var(--rail-fade) * .55), #0003 calc(100% - var(--rail-fade) * .2), transparent);
}
.product-rail .pcard:hover, .product-rail .rel:hover { transform: none; }
.product-rail > .promo-row { scroll-padding-inline: 4px; }
.product-rail > .promo-row::-webkit-scrollbar, .product-rail > .rel-track::-webkit-scrollbar { display: none; }
.rail-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 3px 12px #00000018; }
.rail-prev { left: 4px; }
.rail-next { right: 4px; }
.rail-arrow:hover:not(:disabled) { background: var(--ink); color: #fff; }
.rail-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.rail-arrow { opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.product-rail.near-start .rail-prev, .product-rail.near-end .rail-next, .rail-arrow:focus-visible { opacity: 1; pointer-events: auto; }
.rail-arrow:disabled { cursor: default; box-shadow: none; }
.product-rail.near-start .rail-prev:disabled, .product-rail.near-end .rail-next:disabled { opacity: .3; }
@media (max-width: 767px) {
    .product-rail .rail-arrow { display: none; }
}
@media (max-width: 600px) {
    .rail-arrow { width: 32px; height: 32px; font-size: 12px; }
}

/* Fill the final row, accounting for the first tile occupying four cells. */
@media (min-width: 900px) {
    #category-tiles > .cat:last-child:nth-child(n+5):nth-child(4n+2) { grid-column: 1 / -1; }
    #category-tiles > .cat:last-child:nth-child(n+5):nth-child(4n+3) { grid-column: 2 / -1; }
    #category-tiles > .cat:last-child:nth-child(n+5):nth-child(4n) { grid-column: 3 / -1; }
    #category-tiles > .cat:last-child:nth-child(n+5):nth-child(4n+1) { grid-column: 4 / -1; }
}
@media (min-width: 600px) and (max-width: 899px) {
    #category-tiles > .cat:nth-child(4) { grid-column: auto; }
    #category-tiles > .cat:last-child:nth-child(n+4):nth-child(3n+1) { grid-column: 1 / -1; }
    #category-tiles > .cat:last-child:nth-child(n+4):nth-child(3n+2) { grid-column: 2 / -1; }
    #category-tiles > .cat:last-child:nth-child(n+4):nth-child(3n) { grid-column: 3 / -1; }
}

/* =========================================================
   v10.6 — Retouches après revue mobile / tablette / ordinateur / grand écran
   ========================================================= */
/* Tuiles catégories : nom lisible même sur une photo claire (Aluminium, Outillage, Fixation) */
.cat::before { background: linear-gradient(180deg, rgba(26, 35, 126, 0) 30%, rgba(20, 27, 100, .55) 62%, rgba(20, 27, 100, .92)); }
.cat-body strong, .cat-body small { text-shadow: 0 1px 8px rgba(13, 18, 70, .6); }
/* Newsletter : texte d'aide coupé proprement quand le champ est étroit (tablette) */
.newsletter input { text-overflow: ellipsis; }
/* Barre du bas : le bouton WhatsApp ne recouvre plus « Confidentialité » en fin de page */
@media (max-width: 599px) { .xp .footer-bottom { padding-bottom: 64px; } }
/* v10.7 — « Qui sommes-nous » sur téléphone : icône au-dessus du texte, les 4 cartes ont la même hauteur */
@media (max-width: 599px) {
    .values { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; }
    .values .value { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(26, 35, 126, .06); }
    .values .value i { width: 38px; height: 38px; font-size: 15px; border-radius: 11px; }
    .values .value h3 { font-size: 15px; line-height: 1.25; }
    .values .value p { font-size: 12.5px; line-height: 1.4; margin-top: 2px !important; }
}
/* v10.8 — Promotions sur téléphone : le bouton principal occupe toute la ligne et son texte
   revient à la ligne s'il est long (40 caractères possibles depuis l'espace de gestion) */
@media (max-width: 599px) {
    .promo-actions { flex-wrap: wrap; }
    .promo-actions .btn-gold { flex: 1 1 100%; justify-content: center; height: auto; min-height: var(--h, 40px); padding-block: 8px; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.25; }
}
/* v10.9 — Icônes chargées après l'affichage : place réservée pour éviter que le texte voisin ne bouge */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands { display: inline-block; min-width: 1em; }

/* ================= v11.0 — INTRO (écran d'ouverture, une fois par session) =================
   Affichée seulement si assets/js/intro.js pose « intro-on » sur <html> et si les animations
   ne sont pas réduites. Elle se retire seule en CSS (intro-end), même si le JS s'arrête. */
.intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .intro-on .intro {
        position: fixed; inset: 0; z-index: 9999; display: block; overflow: hidden;
        animation: intro-end 0s 1.9s forwards;
    }
}
.intro-panel {
    position: absolute; left: 0; right: 0; height: 50.5%; background: var(--blue-900);
    animation: intro-open .5s 1.4s cubic-bezier(.76, 0, .24, 1) forwards;
}
.intro-panel-top { top: 0; --intro-to: -101%; }
.intro-panel-bottom { bottom: 0; --intro-to: 101%; }
/* Filet doré qui se trace sur la jointure, puis part avec le volet du haut */
.intro-panel-top::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; animation: intro-seam .35s 1.05s var(--ease) forwards;
}
.intro-stage {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: radial-gradient(60vmin circle at 50% 50%, rgba(92, 107, 192, .5), transparent 70%);
    animation: intro-stage-out .25s 1.15s ease-in forwards;
}
.intro-stage::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 48px 48px; background-position: center;
    -webkit-mask-image: radial-gradient(circle at center, #000 20%, transparent 72%);
    mask-image: radial-gradient(circle at center, #000 20%, transparent 72%);
}
.intro-mark { position: relative; width: clamp(240px, 72vw, 560px); aspect-ratio: 760 / 340; }
.intro-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Logo 640×219 centré dans le cadre 760×340 */
.intro-mark img {
    position: absolute; left: 7.895%; top: 17.8%; width: 84.21%; height: auto;
    animation: intro-logo .6s .25s var(--ease) both;
}
.intro-draw {
    stroke: rgba(197, 202, 233, .75); stroke-width: 2.5; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw .6s .1s var(--ease) forwards;
}
.intro-dim { stroke: var(--gold); animation-duration: .45s; animation-delay: .55s; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-logo { from { clip-path: inset(0 100% 0 0); transform: translateX(-14px); } to { clip-path: inset(0); transform: none; } }
@keyframes intro-seam { to { transform: scaleX(1); } }
@keyframes intro-stage-out { to { opacity: 0; transform: scale(1.06); } }
@keyframes intro-open { to { transform: translateY(var(--intro-to)); } }
@keyframes intro-end { to { visibility: hidden; } }
