/* =========================================================================
   Popup Masters — feuille de style unique
   Design repris de l'ancien site WordPress/Elementor, recodé sans framework.
   ========================================================================= */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/poppins-900.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/roboto-variable.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/raleway-variable.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/raleway-variable-italic.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
  --accent: #605be5;
  --accent-dark: #4a45cc;
  --gold: #c0a886;
  --gold-dark: #a8906d;
  --ink: #222;
  --text: #3d3d3d;
  --muted: #777;
  --navy: #223645;
  --band: #1b252f;
  --yellow: #f8f812;
  --topbar: #242424;
  --header: #272626;
  --footer: #242424;
  --light: #fbfbfb;
  --border: #e8e8e8;
  --field: #dedede;
  --success: #2e7d32;
  --error: #c62828;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-alt: "Raleway", "Poppins", system-ui, sans-serif;
  --container: 1140px;
  --gutter: 20px;
  --header-h: 116px;
  --radius: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: var(--ink); padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 16px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.center { text-align: center; }
.muted { color: var(--muted); }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-size: 15px; font-weight: 500; line-height: 1; padding: 12px 24px; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; font-weight: 400; border-radius: 2px; }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--topbar); color: #fff; font-family: var(--font-head); font-size: 13px; font-weight: 300; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.topbar-info { gap: 24px; }
.topbar-info a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.topbar-info a:hover { color: var(--gold); }
.topbar-info .icon { color: var(--accent); width: 16px; height: 16px; }
.social { gap: 14px; }
.social a { display: inline-flex; color: #fff; }
.topbar .social a { color: #fff; opacity: .85; }
.topbar .social a:hover { opacity: 1; color: #fff; }
.social .icon { width: 16px; height: 16px; }

.navbar { background: var(--header); transition: box-shadow .2s; }
.is-scrolled .navbar { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.navbar-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 200px; height: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; column-gap: 24px; white-space: nowrap; }
.menu > li { position: relative; }
.menu a, .sub-toggle { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-head); font-size: 15px; color: #fff; padding: 15px 0; background: none; border: 0; cursor: pointer; position: relative; }
.menu > li > a::after, .sub-toggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.menu > li > a:hover::after, .menu > li > a[aria-current="page"]::after, .has-sub.is-active > .sub-toggle::after, .has-sub:hover > .sub-toggle::after { transform: scaleX(1); }
.menu a:hover { color: #fff; }
.sub-toggle .icon { width: 14px; height: 14px; transition: transform .2s; }
.sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -16px; top: 100%; min-width: 220px; background: var(--header); border-top: 2px solid var(--gold); box-shadow: 0 12px 24px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.sub-menu a { display: block; padding: 10px 16px; font-size: 14px; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { color: var(--gold); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.navbar-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-mobile-cta { display: none; }
.quote-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #fff; color: var(--accent); }
.quote-link:hover { color: var(--accent-dark); }
.quote-link .icon { width: 18px; height: 18px; }
.quote-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: #fff; font: 600 11px/19px var(--font-head); text-align: center; }
.quote-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; content: ""; transition: transform .2s, top .2s, opacity .2s; }
.burger span { top: 20px; }
.burger span::before { top: -7px; left: 0; right: 0; }
.burger span::after { top: 7px; left: 0; right: 0; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; min-height: min(765px, 86vh); display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(42, 42, 42, .4); }
.hero-inner { position: relative; }
.hero-label { font-family: var(--font-head); font-size: 18px; margin: 0 0 8px; }
.hero-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(38px, 6.4vw, 83px); line-height: 1; color: #fff; margin: 0 0 16px; }
.hero-text { font-family: var(--font-alt); font-weight: 700; font-size: clamp(16px, 1.6vw, 21px); margin: 0 auto; max-width: 1000px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 3.4vw, 45px); line-height: 1.1; color: var(--ink); text-align: center; margin: 0 0 48px; }
.section-title-light { font-weight: 400; font-size: clamp(26px, 2.7vw, 35px); margin-bottom: 28px; }
.section-title-sm { font-family: var(--font-body); font-size: clamp(24px, 2.5vw, 32px); color: #54595f; margin-bottom: 32px; }
.section-title-navy { font-weight: 900; color: var(--navy); margin: 70px 0 40px; }
.block-title { font-size: 22px; font-weight: 600; margin-bottom: 16px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.service { text-align: center; }
.service-link { display: block; color: inherit; }
.service img { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 8px; transition: transform .25s; }
.service-link:hover img { transform: translateY(-4px); }
.service h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; text-transform: uppercase; color: #000; margin: 8px 0 16px; }
.service-link:hover h3 { color: var(--accent); }
.service p { font-size: 13px; line-height: 1.5; color: var(--text); max-width: 340px; margin: 0 auto; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 32px; }
.filters button { background: none; border: 0; padding: 4px 0; font-family: var(--font-head); font-size: 14px; color: #666; cursor: pointer; border-bottom: 2px solid transparent; }
.filters button:hover { color: var(--ink); }
.filters button.is-active { color: var(--ink); border-bottom-color: var(--gold); }

/* Grille produits */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 30px; margin-bottom: 40px; }
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { text-align: left; }
.product-price { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--gold); margin: 0 0 8px; }
.product-price small, .product-price-lg small { font-weight: 400; font-size: .75em; color: var(--muted); margin-left: 3px; }
.product-media { position: relative; aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.product-media > a { display: block; width: 100%; height: 100%; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.btn-quote { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 12px); opacity: 0; background: #fff; color: var(--text); border: 0; border-radius: 4px; padding: 9px 22px; font: 13px var(--font-head); box-shadow: 0 4px 14px rgba(0, 0, 0, .14); cursor: pointer; transition: opacity .2s, transform .2s, background-color .2s, color .2s; white-space: nowrap; }
.product-card:hover .btn-quote, .btn-quote:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.btn-quote:hover { background: var(--gold); color: #fff; }
.btn-quote.is-added { background: var(--accent); color: #fff; opacity: 1; transform: translate(-50%, 0); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font: 500 11px/1 var(--font-head); padding: 6px 9px; border-radius: 20px; }
.product-title { font-family: var(--font-head); font-weight: 400; font-size: 17px; line-height: 1.3; margin: 14px 0 0; }
.product-title a { color: var(--ink); }
.product-title a:hover { color: var(--accent); }
.product-card.is-hidden { display: none; }
@media (hover: none) { .btn-quote { opacity: 1; transform: translate(-50%, 0); } }

/* Clients + témoignage */
.customers { padding-top: 10px; }
.customers-strip { background: var(--light); padding: 50px 0; }
.customers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.customers-list img { max-height: 65px; max-width: 120px; width: auto; object-fit: contain; }
.testimonial { padding: 90px 0 100px; text-align: center; }
.quote-icon { width: 45px; height: 45px; margin: 0 auto 18px; }
.testimonial blockquote { margin: 0 auto; max-width: 1040px; font-family: var(--font-alt); font-weight: 500; font-size: 15px; line-height: 1.5; color: #333; }
.testimonial footer { margin-top: 24px; }

/* ---------- Bloc contact (toutes les pages) ---------- */
.contact-block { padding: 0 0 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-top: 1px solid #d5d5d5; padding-top: 70px; }
.contact-title { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 2.7vw, 35px); line-height: 1.1; max-width: 460px; margin-bottom: 14px; }
.contact-sub { font-family: var(--font-alt); font-weight: 500; font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 22px; height: 22px; color: var(--gold); margin-top: 6px; }
.contact-list strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-family: var(--font-head); font-size: 14px; color: var(--muted); }
.contact-list a:hover { color: var(--accent); }

/* Formulaires */
.form .field { margin-bottom: 16px; }
.form label { display: block; font-family: var(--font-head); font-size: 14px; line-height: 1; color: #818181; padding-bottom: 7px; }
.form .req { color: var(--error); }
.form input, .form select, .form textarea { width: 100%; font-family: var(--font-head); font-size: 14px; color: var(--text); background: #fff; border: 1px solid var(--field); border-radius: 3px; padding: 9px 12px; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 120px; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(96, 91, 229, .15); }
.form .is-invalid { border-color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-family: var(--font-head); font-size: 14px; min-height: 1.4em; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer); color: #a7a7a7; font-family: var(--font-head); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 50px; padding-bottom: 40px; }
.footer-brand img { width: 300px; max-width: 100%; margin-bottom: 18px; }
.footer-brand p { margin: 0; color: #a7a7a7; }
.footer-title { font-family: var(--font-alt); font-weight: 600; font-size: 16px; color: #fff; margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #b3b3b3; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #3a3a3a; padding-top: 14px; padding-bottom: 14px; padding-right: 84px; }
.footer-bottom p { margin: 0; color: #a2a2a2; }
.footer-bottom p a { color: #808080; }
.footer-bottom p a:hover { color: #fff; }
.social-boxed { gap: 8px; list-style: none; margin: 0; padding: 0; display: flex; }
.social-boxed a { width: 29px; height: 29px; border: 1px solid #69727d; border-radius: 3px; color: #69727d; display: inline-flex; align-items: center; justify-content: center; }
.social-boxed a:hover { color: #fff; border-color: #fff; }
.social-boxed .icon { width: 13px; height: 13px; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 45px; height: 45px; border-radius: 50%; background: #fff; border: 1px solid var(--topbar); color: var(--topbar); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--topbar); color: #fff; }
.to-top .icon { width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translateX(-50%); background: var(--topbar); color: #fff; font: 14px var(--font-head); padding: 12px 20px; border-radius: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; gap: 12px; align-items: center; }
.toast a { color: var(--gold); text-decoration: underline; }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; min-height: 300px; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 20, 20, .45), rgba(20, 20, 20, .55)); }
.page-hero-inner { position: relative; text-align: center; }
.page-hero-label { font-family: var(--font-head); font-size: 16px; margin: 0 0 6px; }
.page-hero-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 5.6vw, 72px); line-height: 1.05; text-transform: uppercase; letter-spacing: .5px; color: #fff; margin: 0; }

.intro { padding: 34px 0 6px; text-align: center; }
.intro .container { max-width: calc(980px + 2 * var(--gutter)); }
.intro p { font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.6; color: #666; }
.intro strong { font-weight: 600; }

.split-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.split-media img { width: 100%; }
.split-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(32px, 3.4vw, 45px); line-height: 1; color: var(--navy); margin-bottom: 22px; }
.split-text { color: #7a7a7a; }
.split-text p { margin-bottom: 14px; }
.split-text strong { color: #555; }
.split-extra { padding-top: 30px; }
.split-extra .split-grid { grid-template-columns: 2fr 1fr; align-items: center; }
.split-extra .split-text { font-size: 15px; color: #515151; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collage img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.band { background: var(--band); color: #cfcfcf; margin-top: 24px; }
.band-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.band-media { background-size: cover; background-position: center; min-height: 320px; }
.band-right .band-media { order: 2; }
.band-text { padding: 48px 60px; display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
.band-left .band-text { justify-self: start; }
.band-right .band-text { justify-self: end; }
.band-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.4vw, 45px); line-height: 1; text-transform: uppercase; text-align: center; color: var(--yellow); margin: 0 0 26px; }
.band-body { font-size: 17px; line-height: 1.45; }
.band-body p { margin-bottom: 12px; }
.band-body strong { color: #fff; }
.band-body ul { margin: 6px 0 0; }

.clients { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.8; color: #666; }

.gallery { columns: 3 280px; column-gap: 12px; margin: 0 0 20px; }
.gallery-item { position: relative; display: block; margin: 0 0 12px; break-inside: avoid; overflow: hidden; background: #f3f3f3; }
.gallery-item img { width: 100%; transition: transform .4s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.04); opacity: .9; }
.gallery-zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.gallery-zoom .icon { width: 16px; height: 16px; }
.gallery-item:hover .gallery-zoom, .product-main-img:hover .gallery-zoom { opacity: 1; }

.story { padding: 50px 0 30px; }
.story-text { max-width: 1100px; margin-bottom: 30px; color: #333; }
.story-text h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); color: #000; margin-bottom: 18px; }

.about-text p { font-size: 17px; line-height: 1.7; color: #555; }

/* ---------- Catalogue ---------- */
.catalog { padding-top: 50px; }
.catalog-grid { display: grid; grid-template-columns: 250px 1fr; gap: 50px; align-items: start; }
.catalog-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-box { margin-bottom: 34px; }
.sidebar-title { font-family: var(--font-head); font-weight: 500; font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--field); border-radius: 3px; padding: 0 10px; color: var(--muted); }
.search-field input { border: 0; padding: 10px 0; width: 100%; font-family: var(--font-head); font-size: 14px; background: transparent; }
.search-field input:focus { outline: none; }
.search-field:focus-within { border-color: var(--accent); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 7px 0; font-family: var(--font-head); font-size: 14px; color: var(--text); }
.cat-list a span { color: var(--muted); font-size: 12px; }
.cat-list a:hover, .cat-list a[aria-current="page"] { color: var(--accent); }
.catalog-count { font-family: var(--font-head); font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.empty-state { font-family: var(--font-head); color: var(--muted); }

/* ---------- Fiche produit ---------- */
.product-page { padding-top: 40px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-head); font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-main-img { position: relative; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; aspect-ratio: 1; overflow: hidden; }
.product-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.product-thumbs a { width: 90px; height: 90px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.product-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-name { font-weight: 500; font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.product-price-lg { font-family: var(--font-head); font-weight: 600; font-size: 24px; color: var(--gold); margin-bottom: 8px; }
.stock { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 14px; color: var(--success); }
.product-desc { color: #555; margin: 18px 0 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.add-quote-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: 3px; }
.qty input { width: 54px; border: 0; text-align: center; padding: 10px 0; font-family: var(--font-head); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 38px; height: 40px; border: 0; background: none; font-size: 18px; color: var(--text); cursor: pointer; }
.qty-btn:hover { color: var(--accent); }
.product-meta { font-family: var(--font-head); font-size: 14px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--border); }
.product-share { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 14px; color: var(--muted); }
.share { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.share a { width: 34px; height: 34px; border-radius: 50%; background: #f1f1f1; color: #555; display: inline-flex; align-items: center; justify-content: center; }
.share a:hover { background: var(--accent); color: #fff; }
.share .icon { width: 15px; height: 15px; }
.product-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--font-head); font-size: 14px; }
.product-pager a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.product-pager a:hover { color: var(--accent); }
.related { padding-top: 20px; }

/* ---------- Devis ---------- */
.quote-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.quote-item { display: grid; grid-template-columns: 74px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.quote-item img { width: 74px; height: 74px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; padding: 4px; background: #fff; }
.quote-item-name { font-family: var(--font-head); font-size: 15px; color: var(--ink); display: block; }
.quote-item-price { font-family: var(--font-head); font-size: 13px; color: var(--gold); }
.quote-remove { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
.quote-remove:hover { color: var(--error); }
.quote-remove .icon { width: 16px; height: 16px; }
.quote-total { font-family: var(--font-head); font-size: 15px; color: var(--ink); margin-top: 18px; }
.quote-form-wrap { background: var(--light); border: 1px solid var(--border); padding: 30px; border-radius: var(--radius); }

/* ---------- Pages légales ---------- */
.legal-title { font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 30px; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 34px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.legal p, .legal li { color: #444; }
.legal li { margin-bottom: 6px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10, 10, 10, .94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .icon { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ccc; font: 13px var(--font-head); }
body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .navbar-inner { gap: 18px; }
  .menu { column-gap: 16px; }
  .menu a, .sub-toggle { font-size: 14px; }
  .brand img { width: 160px; }
  .nav-cta { padding: 11px 16px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .topbar { display: none; }
  .navbar-inner { min-height: 70px; justify-content: space-between; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: var(--header); flex-direction: column; justify-content: flex-start; padding: 16px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s, visibility 0s .3s; visibility: hidden; }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .3s, visibility 0s; }
  .nav .sub-menu, .has-sub.is-open .sub-menu { visibility: inherit; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu > li { border-bottom: 1px solid #3a3939; }
  .menu a, .sub-toggle { width: 100%; justify-content: space-between; font-size: 16px; padding: 14px 0; }
  .menu > li > a::after, .sub-toggle::after { display: none; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; display: none; min-width: 0; }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .nav-mobile-cta { display: inline-flex; margin-top: 24px; align-self: flex-start; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .split-grid, .split-extra .split-grid { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr; min-height: 0; }
  .band-media { min-height: 260px; }
  .band-right .band-media { order: 0; }
  .band-text { padding: 40px var(--gutter); max-width: none; }
  .catalog-grid { grid-template-columns: 1fr; gap: 20px; }
  .catalog-sidebar { position: static; }
  .cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-list a { border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; gap: 6px; }
  .product-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .quote-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .brand img { width: 150px; }
  .hero { min-height: 70vh; }
  .services { grid-template-columns: 1fr; gap: 40px; }
  .product-grid, .product-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .product-title { font-size: 15px; }
  .btn-quote { padding: 8px 14px; font-size: 12px; bottom: 8px; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
  .page-hero { min-height: 220px; }
  .field-row { grid-template-columns: 1fr; }
  .quote-item { grid-template-columns: 56px 1fr auto; }
  .quote-item img { width: 56px; height: 56px; }
  .quote-item .qty { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; padding-right: var(--gutter); padding-bottom: 76px; }
  .customers-list { justify-content: center; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
