/* =========================================================
   LPZ MATÉRIAUX — Direction artistique premium
   Toulouse — e-commerce de matériaux de construction
   ========================================================= */

:root {
  /* Palette premium */
  --brand-dark: #0F2B5B;      /* bleu nuit chantier */
  --brand: #2C5CA8;           /* bleu atelier */
  --brand-soft: #E6EDF8;      /* fond bleuté */
  --accent: #E8843C;          /* orange chantier */
  --accent-dark: #B45E1F;
  --accent-soft: #FDEBDB;
  --gold: #C8A15D;            /* or atelier */
  --gold-soft: #F3EAD4;
  --ink: #10182B;
  --ink-soft: #3A4458;
  --muted: #6B7385;
  --line: #E4E0D7;            /* ligne beige chaud */
  --line-strong: #CEC8BA;
  --bg: #F7F5F1;              /* beige warm — fond chaleureux */
  --bg-soft: #FBFAF7;
  --bg-darker: #EFEAE1;
  --success: #2E8F5A;
  --danger: #C53030;
  --white: #FFFFFF;

  /* Rayons (gamme généreuse) */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-pill: 999px;

  /* Ombres douces et colorées */
  --shadow-xs: 0 1px 2px rgba(15,43,91,.06);
  --shadow-sm: 0 2px 8px rgba(15,43,91,.06), 0 1px 3px rgba(15,43,91,.04);
  --shadow: 0 10px 30px rgba(15,43,91,.08), 0 2px 6px rgba(15,43,91,.05);
  --shadow-lg: 0 24px 60px rgba(15,43,91,.12), 0 6px 14px rgba(15,43,91,.06);
  --shadow-xl: 0 40px 90px rgba(15,43,91,.18);
  --shadow-warm: 0 14px 40px rgba(232,132,60,.22);
  --shadow-gold: 0 12px 30px rgba(200,161,93,.25);

  /* Layout */
  --max: 1280px;
  --t: .25s cubic-bezier(.4,0,.2,1);
  --t-slow: .5s cubic-bezier(.22,1,.36,1);
  --t-bounce: .5s cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Typographie — titres en serif chaleureux */
h1, h2, h3, h4 {
  margin: 0 0 .4em;
  color: var(--brand-dark);
  font-family: "Fraunces", "Canela", "Playfair Display", Georgia, serif;
  line-height: 1.12;
  letter-spacing: -.015em;
  font-weight: 600;
}
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== Eyebrow — étiquette pré-titre ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ========== TOP BAR ========== */
.topbar {
  background: var(--brand-dark);
  color: var(--white);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar strong { color: var(--gold); font-weight: 700; }

/* ========== HEADER ========== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--brand-dark); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 900; font-size: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.2);
  font-family: "Fraunces", serif;
}

.search {
  flex: 1;
  display: flex;
  max-width: 560px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: all var(--t);
}
.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  background: var(--white);
}
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 20px;
  font-size: 15px;
  background: transparent;
  font-family: inherit;
}
.search button {
  background: var(--brand-dark);
  color: var(--white);
  padding: 0 24px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--t);
}
.search button:hover { background: var(--brand); }

.header-actions { display: flex; gap: 8px; }
.iconbtn {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t);
  border: 1.5px solid transparent;
}
.iconbtn:hover { background: var(--bg); border-color: var(--line); color: var(--brand-dark); }
.iconbtn .badge {
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  min-width: 20px;
  text-align: center;
}

/* ========== NAV ========== */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; gap: 4px; padding: 4px 0; overflow-x: auto; }
.nav a {
  padding: 14px 18px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all var(--t);
  position: relative;
}
.nav a:hover { color: var(--brand-dark); background: var(--bg); }
.nav a.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.nav-pro {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white) !important;
  margin-left: auto;
  padding: 12px 20px !important;
  box-shadow: var(--shadow-warm);
}
.nav-pro:hover { transform: translateY(-1px); }

/* ========== CRUMBS ========== */
.crumbs {
  padding: 20px 24px 4px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-dark); }
.crumbs .sep { color: var(--line-strong); }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 56px 0 88px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1A3A7B 55%, var(--brand) 100%);
  color: var(--white);
  overflow: hidden;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 85% 20%, rgba(232,132,60,.25), transparent 60%),
    radial-gradient(600px 300px at 15% 80%, rgba(200,161,93,.18), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: path("M0,80 C360,10 1080,10 1440,80 L1440,80 L0,80 Z");
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); max-width: 560px; }
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero p.lead { font-size: 18px; max-width: 540px; color: rgba(255,255,255,.88); margin-bottom: 28px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 60%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: var(--shadow-xl);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(255,255,255,.4);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .005em;
  transition: all var(--t);
  cursor: pointer;
  font-family: inherit;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-warm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(232,132,60,.34); color: var(--white); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

.btn-ghost {
  background: var(--white);
  color: var(--brand-dark);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ========== SECTION ========== */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.section-warm { background: var(--white); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; margin-top: -24px; position: relative; z-index: 1; }
.section-cream { background: var(--bg); }

/* ========== USP STRIP ========== */
.usp {
  margin-top: -44px;
  position: relative;
  z-index: 5;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.usp-item { text-align: center; padding: 8px 14px; border-right: 1px solid var(--line); }
.usp-item:last-child { border-right: 0; }
.usp-item .ico {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid; place-items: center;
  font-size: 22px;
}
.usp-item strong { display: block; color: var(--brand-dark); font-size: 15px; margin-bottom: 2px; font-weight: 700; }
.usp-item span { color: var(--muted); font-size: 13px; }

/* ========== CATEGORIES GRID ========== */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 24px 22px;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0;
  transition: all var(--t-slow);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}
.cat-card:hover::after { opacity: 1; transform: scale(1.4); }
.cat-card .ico {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: var(--white);
  display: grid; place-items: center;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.cat-card h3 { margin: 0; font-size: 18px; position: relative; z-index: 1; }
.cat-card p { color: var(--muted); font-size: 14px; margin: 0; position: relative; z-index: 1; }
.cat-card .more { color: var(--accent-dark); font-weight: 700; font-size: 13.5px; margin-top: auto; display: inline-flex; align-items: center; gap: 4px; position: relative; z-index: 1; }
.cat-card:hover .more { gap: 8px; }

/* ========== PRODUCT CARDS ========== */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product .media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-darker), var(--bg));
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.product .media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform var(--t-slow);
}
.product:hover .media img { transform: scale(1.05); }
.media-img { background: linear-gradient(135deg, #FBFAF7 0%, #F0ECE3 100%); }
.media-img-dark {
  background: linear-gradient(135deg, #1A1D24 0%, #3A3F4B 100%);
}
.media-img-dark img { padding: 22px; }
.product-more { background: var(--brand-soft); border: 1.5px dashed var(--brand); }
.product-more:hover { background: var(--white); }
.media-more {
  background: transparent !important;
  color: var(--brand-dark);
  padding: 20px;
  text-align: center;
  font-size: 14px;
}
.media-more .more-ico {
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--accent);
  transition: transform var(--t);
}
.product-more:hover .media-more .more-ico { transform: translateX(6px); }
.media-more strong { display: block; font-size: 15px; color: var(--brand-dark); margin-bottom: 4px; }
.media-more span { font-size: 12.5px; color: var(--muted); }
.product .badge-product {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product .info { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .cat { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.product .name { font-size: 16px; color: var(--brand-dark); font-weight: 600; margin: 0 0 6px; font-family: inherit; line-height: 1.35; }
.product .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product .price { font-size: 22px; color: var(--brand-dark); font-weight: 800; font-family: "Fraunces", serif; }
.product .price-u { font-size: 12px; color: var(--muted); }
.product .price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.product .cart-btn {
  margin-top: 10px;
  padding: 11px 14px;
  background: var(--bg);
  color: var(--brand-dark);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: all var(--t);
  border: 1.5px solid transparent;
}
.product .cart-btn:hover { background: var(--brand-dark); color: var(--white); }

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(46,143,90,.1);
  border-radius: var(--radius-pill);
}
.stock-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ========== SIMULATOR PROMO ========== */
.sim-promo {
  background:
    radial-gradient(500px 250px at 90% 50%, rgba(200,161,93,.25), transparent 70%),
    linear-gradient(135deg, var(--brand-dark) 0%, #1A3A7B 100%);
  color: var(--white);
  border-radius: var(--radius-2xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.sim-promo::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,132,60,.35), transparent 70%);
}
.sim-promo h2 { color: var(--white); max-width: 460px; }
.sim-promo .eyebrow { background: rgba(200,161,93,.2); color: var(--gold); }
.sim-promo p { color: rgba(255,255,255,.85); font-size: 16px; }
.sim-promo-visual {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--ink);
  box-shadow: var(--shadow-xl);
  transform: rotate(-1.5deg);
  transition: transform var(--t-slow);
}
.sim-promo-visual:hover { transform: rotate(0deg); }

/* ========== PRO BLOCK ========== */
.pro-block {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pro-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold) 0%, #A57F3F 100%);
  box-shadow: var(--shadow-gold);
  display: grid; place-items: center;
  color: var(--white);
  font-size: 72px;
}
.pro-block ul { padding-left: 0; list-style: none; margin: 20px 0; }
.pro-block li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pro-block li::before {
  content: "✓";
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.pro-block li:last-child { border-bottom: 0; }

/* ========== TESTIMONIALS ========== */
.tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.test {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  transition: all var(--t);
}
.test:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.test::before {
  content: "\201C";
  position: absolute;
  top: -18px; left: 22px;
  font-size: 72px;
  color: var(--gold);
  line-height: 1;
  font-family: "Fraunces", serif;
}
.test .stars { color: var(--accent); margin-bottom: 10px; font-size: 15px; letter-spacing: 2px; }
.test blockquote { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; font-style: italic; font-family: "Fraunces", serif; }
.test .who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.test .who .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.test .who strong { display: block; color: var(--brand-dark); font-size: 14px; }
.test .who span { font-size: 12.5px; color: var(--muted); }

/* ========== DEPOT VISUAL ========== */
.depot-visual {
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), transparent 60%),
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.depot-visual::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px dashed rgba(255,255,255,.3);
  border-radius: var(--radius-lg);
}

/* ========== NEWSLETTER ========== */
.newsletter {
  background: linear-gradient(135deg, var(--gold) 0%, #A57F3F 100%);
  color: var(--white);
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before, .newsletter::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.newsletter::before { width: 200px; height: 200px; background: rgba(255,255,255,.1); top: -80px; right: -40px; }
.newsletter::after { width: 120px; height: 120px; background: rgba(255,255,255,.08); bottom: -40px; left: 10%; }
.newsletter h2 { color: var(--white); position: relative; z-index: 1; }
.newsletter p { color: rgba(255,255,255,.9); max-width: 480px; margin: 0 auto 22px; position: relative; z-index: 1; }
.newsletter form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.newsletter input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 20px;
  font-size: 14.5px;
  background: transparent;
  font-family: inherit;
}
.newsletter button {
  padding: 12px 24px;
  background: var(--brand-dark);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: background var(--t);
}
.newsletter button:hover { background: var(--accent); }

/* ========== FOOTER ========== */
.footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.78);
  padding: 64px 0 28px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer h4 { color: var(--white); margin-bottom: 14px; font-size: 15px; font-family: inherit; font-weight: 700; letter-spacing: .02em; }
.footer a { color: rgba(255,255,255,.72); transition: color var(--t); }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 14px; }
.footer .brand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 10px;
}
.footer .small { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* ========== CATEGORIE PAGE ========== */
.cat-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: var(--white);
  padding: 48px 0;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin-bottom: 40px;
}
.cat-hero h1 { color: var(--white); }
.cat-hero p { color: rgba(255,255,255,.85); max-width: 640px; }

.layout-side { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.filters {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.filters h4 { margin: 20px 0 10px; font-size: 14px; color: var(--brand-dark); font-family: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.filters h4:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.filters input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.filters .price-range { display: flex; gap: 8px; align-items: center; }
.filters .price-range input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.toolbar select {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
}

/* ========== PRODUCT PAGE ========== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.gallery {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-main {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-darker), var(--bg));
  display: grid; place-items: center;
  color: var(--brand);
  font-size: 90px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.gallery-thumbs .thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 2px solid transparent;
  display: grid; place-items: center;
  color: var(--brand);
  font-size: 24px;
  cursor: pointer;
  transition: all var(--t);
}
.gallery-thumbs .thumb.active { border-color: var(--accent); }
.gallery-thumbs .thumb:hover { border-color: var(--brand); }

.product-info { display: flex; flex-direction: column; gap: 12px; }
.product-info h1 { margin: 6px 0 10px; font-size: clamp(26px, 3vw, 34px); }
.product-info .price-block {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
}
.product-info .price-big { font-size: 34px; font-weight: 800; color: var(--brand-dark); font-family: "Fraunces", serif; }
.product-info .price-unit { color: var(--muted); font-size: 14px; }
.qty-control { display: inline-flex; align-items: center; background: var(--bg); border-radius: var(--radius-pill); padding: 4px; margin: 10px 0; }
.qty-control button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  font-weight: 800;
  color: var(--brand-dark);
  font-size: 18px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t);
}
.qty-control button:hover { transform: scale(1.1); }
.qty-control span { padding: 0 16px; font-weight: 700; font-size: 16px; }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 32px 0 24px; overflow-x: auto; }
.tab {
  padding: 12px 20px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--t);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab:hover { color: var(--brand-dark); background: var(--bg-soft); }
.tab.active { color: var(--accent-dark); border-color: var(--accent); }
.tab-content { display: none; padding: 14px 0 28px; }
.tab-content.active { display: block; animation: fadeIn .35s ease; }

.tab-content table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.tab-content th, .tab-content td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.tab-content th { background: var(--bg); font-weight: 600; color: var(--brand-dark); font-size: 14px; }
.tab-content td { font-size: 14px; color: var(--ink-soft); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ========== SIMULATOR ========== */
.sim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.sim-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sim-card::after {
  content: "→";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%) translateX(-8px);
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  opacity: 0;
  transition: all var(--t);
}
.sim-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.sim-card:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.sim-card.active { border-color: var(--accent); background: var(--accent-soft); }
.sim-card .ico {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: var(--white);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.sim-card h4 { margin: 0 0 4px; font-family: inherit; font-size: 15px; color: var(--brand-dark); font-weight: 700; }
.sim-card p { font-size: 12.5px; color: var(--muted); margin: 0; }

.sim-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  box-shadow: var(--shadow);
}
.sim-form h3 { font-size: 22px; margin-bottom: 6px; }
.sim-form p.hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.sim-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.sim-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sim-field label { font-weight: 600; font-size: 13.5px; color: var(--brand-dark); }
.sim-field input, .sim-field select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: all var(--t);
}
.sim-field input:focus, .sim-field select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.sim-result {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1A3A7B 100%);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.sim-result::before {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,161,93,.3), transparent 70%);
}
.sim-result h4 { color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; margin: 0; font-family: inherit; font-weight: 700; }
.sim-result .big { font-size: 42px; font-weight: 800; margin: 0; font-family: "Fraunces", serif; letter-spacing: -.01em; line-height: 1.1; }
.sim-result .big small { font-size: 15px; color: rgba(255,255,255,.7); font-weight: 500; font-family: inherit; display: block; margin-top: 4px; }
.sim-result ul { margin: 0; padding: 0; list-style: none; }
.sim-result li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.sim-result li:last-child { border-bottom: 0; }
.sim-result li strong { color: var(--gold); font-family: "Fraunces", serif; font-size: 15px; }

/* ========== SERVICE CARDS ========== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--t);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card .ico {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-warm);
}
.svc-card h3 { font-size: 19px; margin-bottom: 8px; }
.svc-card p { color: var(--ink-soft); font-size: 14.5px; }
.svc-card ul { padding-left: 20px; margin-top: 10px; }
.svc-card li { color: var(--ink-soft); font-size: 14px; margin-bottom: 6px; }

/* ========== PRO PAGE ========== */
.pro-hero {
  background:
    radial-gradient(600px 300px at 80% 50%, rgba(200,161,93,.3), transparent 70%),
    linear-gradient(135deg, var(--brand-dark) 0%, #1A3A7B 100%);
  color: var(--white);
  padding: 64px 0;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  margin-bottom: 48px;
}
.pro-hero h1 { color: var(--white); max-width: 720px; }
.pro-hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.pro-hero p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 640px; }

.pro-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pro-benefit {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  transition: all var(--t);
}
.pro-benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pro-benefit .ico {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-gold);
}
.pro-benefit h3 { font-size: 18px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .cats, .products, .sim-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .sim-panel, .pro-block, .sim-promo { grid-template-columns: 1fr; padding: 32px; }
  .usp { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 36px 0 64px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .section { padding: 48px 0; }
  .cats, .products, .sim-grid, .svc-grid, .tests, .pro-benefits { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter, .sim-promo, .pro-block, .pro-hero { padding: 32px 22px; }
  .usp { grid-template-columns: 1fr 1fr; }
  .usp-item:nth-child(2) { border-right: 0; }
  .sim-row { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .search { order: 3; width: 100%; max-width: none; }
}
@media (max-width: 480px) {
  .cats, .products, .sim-grid, .svc-grid, .tests, .pro-benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}

/* ========== ACCESSIBILITÉ ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
