:root{
  --bg: #14181C;
  --panel: #1D242A;
  --panel-2: #232B32;
  --steel: #4A5A66;
  --steel-light: #6E828E;
  --line: #313B42;
  --text: #E7EAEC;
  --muted: #9AA7AF;
  --orange: #E8590C;
  --yellow: #F2B705;

  /* Polices système uniquement : aucune requête externe, aucun CDN. */
  --font-display: 'Oswald', 'Arial Narrow', 'Segoe UI Semibold', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:0.02em;
  font-weight:700;
  line-height:1.1;
}
.mono{ font-family:var(--font-mono); }
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{list-style:none;}
.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}
.stripe-divider{
  height:10px;
  background:repeating-linear-gradient(-45deg, var(--yellow) 0 18px, #1a1a1a 18px 36px);
}

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(20,24,28,0.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; max-width:1180px; margin:0 auto;
  gap:20px;
}
.logo{
  font-family:var(--font-display);
  font-weight:700; font-size:1.35rem;
  letter-spacing:0.03em;
  display:flex; align-items:center; gap:10px;
}
.logo .dot{color:var(--orange);}
.logo-mark{
  width:34px; height:34px; flex:none;
  background:var(--orange);
  display:flex; align-items:center; justify-content:center;
  transform:skewX(-8deg);
  font-family:var(--font-mono);
  font-weight:600; font-size:0.85rem; color:#14181C;
}
nav.main-nav{ display:flex; align-items:center; gap:28px; }
nav.main-nav a{ font-size:0.92rem; color:var(--muted); font-weight:500; transition:color .15s ease; }
nav.main-nav a:hover, nav.main-nav a:focus-visible{color:var(--text);}
.header-cta{ display:flex; align-items:center; gap:14px; }
.tel{ font-family:var(--font-mono); font-size:0.9rem; color:var(--text); display:flex; flex-direction:column; align-items:flex-end; line-height:1.25; }
.tel span{color:var(--muted); font-family:var(--font-body); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.06em;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px;
  background:var(--orange); color:#14181C;
  font-weight:600; font-size:0.9rem;
  border:none; cursor:pointer;
  clip-path:polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition:background .15s ease, transform .15s ease;
  font-family:var(--font-body);
}
.btn:hover{background:var(--yellow); transform:translateY(-1px);}
.burger{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer;}
.burger span{width:24px; height:2px; background:var(--text);}

/* ---------- Hero ---------- */
.hero{
  position:relative; padding:90px 0 70px; overflow:hidden;
  background: radial-gradient(ellipse 900px 500px at 85% -10%, rgba(232,89,12,0.18), transparent 60%), var(--bg);
  border-bottom:1px solid var(--line);
}
.hero-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:0.76rem; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--yellow); border:1px solid rgba(242,183,5,0.35); padding:6px 12px; margin-bottom:22px;
}
.eyebrow::before{content:"●"; font-size:0.6rem;}
.hero h1{ font-size:clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom:20px; }
.hero h1 .accent{color:var(--orange);}
.hero p.lead{ color:var(--muted); font-size:1.08rem; max-width:520px; margin-bottom:32px; }
.search-box{ display:flex; gap:0; max-width:560px; border:1px solid var(--steel); background:var(--panel); }
.search-box select{ background:var(--panel-2); color:var(--text); border:none; border-right:1px solid var(--line); padding:0 14px; font-family:var(--font-body); font-size:0.86rem; }
.search-box input{ flex:1; background:transparent; border:none; color:var(--text); padding:14px; font-size:0.92rem; outline:none; }
.search-box input::placeholder{color:var(--muted);}
.search-box button{ background:var(--orange); color:#14181C; border:none; padding:0 22px; font-weight:600; cursor:pointer; font-size:0.88rem; }
.search-box button:hover{background:var(--yellow);}
.hero-note{margin-top:14px; font-size:0.82rem; color:var(--steel-light);}
.hero-visual{ position:relative; border:1px solid var(--line); background:var(--panel); padding:26px; min-height:340px; }
.plate{ position:absolute; top:-1px; left:-1px; background:var(--yellow); color:#14181C; font-family:var(--font-mono); font-weight:600; font-size:0.72rem; padding:4px 10px; clip-path:polygon(0 0, 100% 0, 92% 100%, 0% 100%); }
.hero-visual svg{width:100%; height:auto;}
.hero-stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); margin-top:22px; border:1px solid var(--line); }
.hero-stats div{ background:var(--panel-2); padding:14px 16px; }
.hero-stats b{ display:block; font-family:var(--font-mono); font-size:1.3rem; color:var(--orange); }
.hero-stats span{font-size:0.74rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em;}

/* ---------- Trust strip ---------- */
.trust{ background:var(--panel); border-bottom:1px solid var(--line); padding:18px 0; }
.trust .wrap{ display:flex; flex-wrap:wrap; gap:28px; justify-content:space-between; }
.trust-item{ display:flex; align-items:center; gap:10px; font-size:0.85rem; color:var(--muted); flex:1; min-width:220px; }
.trust-item svg{flex:none; color:var(--orange); width:20px; height:20px;}
.trust-item strong{color:var(--text); font-weight:600;}

/* ---------- Section shared ---------- */
section{padding:76px 0;}
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:40px; flex-wrap:wrap; }
.section-head .tag{ font-family:var(--font-mono); color:var(--orange); font-size:0.78rem; text-transform:uppercase; letter-spacing:0.1em; display:block; margin-bottom:10px; }
.section-head h2{font-size:clamp(1.7rem,3vw,2.3rem);}
.section-head p{color:var(--muted); max-width:460px;}

/* ---------- Categories ---------- */
.cat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.cat-card{ position:relative; background:var(--panel); border:1px solid var(--line); padding:34px 30px; overflow:hidden; transition:border-color .2s ease, transform .2s ease; }
.cat-card:hover{border-color:var(--orange); transform:translateY(-3px);}
.cat-card .num{ font-family:var(--font-mono); font-size:0.78rem; color:var(--steel-light); display:block; margin-bottom:16px; }
.cat-card h3{font-size:1.6rem; margin-bottom:10px;}
.cat-card p{color:var(--muted); font-size:0.92rem; margin-bottom:22px; max-width:380px;}
.chip-row{display:flex; flex-wrap:wrap; gap:8px;}
.chip{ font-size:0.78rem; color:var(--muted); border:1px solid var(--line); padding:6px 12px; font-family:var(--font-mono); }
.cat-card::after{ content:""; position:absolute; right:-30px; bottom:-30px; width:150px; height:150px; border:1px solid var(--line); border-radius:50%; opacity:0.5; }

/* ---------- Products ---------- */
.filter-row{ display:flex; gap:10px; margin-bottom:32px; flex-wrap:wrap; }
.filter-btn{ font-family:var(--font-mono); font-size:0.78rem; padding:8px 16px; border:1px solid var(--line); background:transparent; color:var(--muted); cursor:pointer; transition:all .15s ease; }
.filter-btn.active, .filter-btn:hover{ border-color:var(--orange); color:var(--orange); }
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.product-card{ background:var(--panel); border:1px solid var(--line); position:relative; display:flex; flex-direction:column; }
.product-card .ribbon{ position:absolute; top:12px; right:-1px; background:var(--yellow); color:#14181C; font-family:var(--font-mono); font-weight:600; font-size:0.66rem; padding:3px 10px 3px 12px; letter-spacing:0.03em; }
.product-card .ribbon.rupture{background:var(--steel);color:#0f1215;}
.product-thumb{ height:110px; background:var(--panel-2); display:flex; align-items:center; justify-content:center; border-bottom:1px dashed var(--line); color:var(--steel-light); font-family:var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.06em; }
.product-body{padding:18px; display:flex; flex-direction:column; gap:8px; flex:1;}
.product-body .cat-label{ font-family:var(--font-mono); font-size:0.68rem; color:var(--steel-light); text-transform:uppercase; letter-spacing:0.06em; }
.product-body h4{font-size:1rem; text-transform:none; letter-spacing:0; font-weight:600; font-family:var(--font-body);}
.product-body .ref{font-family:var(--font-mono); font-size:0.74rem; color:var(--muted);}
.product-footer{ display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-top:1px dashed var(--line); }
.price{font-family:var(--font-mono); font-weight:600; color:var(--orange); font-size:1.02rem;}
.price small{color:var(--muted); font-weight:500; font-size:0.7rem;}
.empty-state{ grid-column:1/-1; text-align:center; padding:60px 20px; color:var(--muted); border:1px dashed var(--line); }
.product-footer{flex-wrap:wrap; gap:10px;}
.add-to-cart{padding:9px 16px; font-size:0.82rem;}

/* ---------- Panier ---------- */
.cart-toggle{
  position:relative; background:none; border:1px solid var(--line); color:var(--text);
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:border-color .15s ease;
}
.cart-toggle:hover{border-color:var(--orange);}
.cart-toggle svg{width:19px; height:19px;}
.cart-badge{
  position:absolute; top:-7px; right:-7px; background:var(--orange); color:#14181C;
  font-family:var(--font-mono); font-size:0.68rem; font-weight:700;
  min-width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  padding:0 4px;
}
.cart-overlay{
  position:fixed; inset:0; background:rgba(10,12,14,0.6); z-index:90;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.cart-overlay.open{opacity:1; pointer-events:auto;}
.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; width:min(400px, 100vw); z-index:91;
  background:var(--panel); border-left:1px solid var(--line);
  display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform .25s ease;
}
.cart-drawer.open{transform:translateX(0);}
.cart-drawer-head{ display:flex; justify-content:space-between; align-items:center; padding:20px 22px; border-bottom:1px solid var(--line); }
.cart-drawer-head h3{font-size:1.1rem;}
.cart-close{ background:none; border:none; color:var(--muted); font-size:1.6rem; line-height:1; cursor:pointer; }
.cart-close:hover{color:var(--text);}
.cart-items{ flex:1; overflow-y:auto; padding:14px 22px; }
.cart-empty{ color:var(--muted); text-align:center; padding:40px 0; font-size:0.9rem; }
.cart-item{ padding:14px 0; border-bottom:1px dashed var(--line); display:flex; flex-direction:column; gap:8px; }
.cart-item-info{display:flex; flex-direction:column; gap:3px;}
.cart-item-name{font-size:0.9rem; font-weight:600;}
.cart-item-ref{font-size:0.72rem; color:var(--muted);}
.cart-item-controls{display:flex; align-items:center; gap:10px;}
.cart-qty{ width:56px; background:var(--panel-2); border:1px solid var(--line); color:var(--text); padding:6px 8px; font-family:var(--font-mono); font-size:0.85rem; }
.cart-item-price{ flex:1; text-align:right; color:var(--orange); font-size:0.9rem; }
.cart-remove{ background:none; border:none; color:var(--muted); font-size:1.3rem; line-height:1; cursor:pointer; }
.cart-remove:hover{color:#E86A6A;}
.cart-drawer-foot{ padding:18px 22px 22px; border-top:1px solid var(--line); }
.cart-total-row{ display:flex; justify-content:space-between; align-items:center; font-size:1rem; margin-bottom:6px; }
.cart-total-row strong{font-family:var(--font-mono); color:var(--orange); font-size:1.15rem;}
.cart-note{color:var(--steel-light); font-size:0.76rem; margin-bottom:14px;}
.cart-checkout{width:100%; justify-content:center;}
.cart-checkout:disabled{opacity:0.5; cursor:not-allowed;}
.cart-checkout:disabled:hover{background:var(--orange); transform:none;}

/* ---------- Pourquoi nous ---------- */
.why{background:var(--panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.why-item{background:var(--bg); padding:30px 26px;}
.why-item svg{width:26px; height:26px; color:var(--orange); margin-bottom:16px;}
.why-item h4{font-size:1.02rem; margin-bottom:8px; text-transform:none; letter-spacing:0; font-family:var(--font-body); font-weight:600;}
.why-item p{color:var(--muted); font-size:0.86rem;}

/* ---------- Devis / Contact ---------- */
.devis-grid{ display:grid; grid-template-columns:1fr 0.85fr; gap:40px; }
form.devis{ background:var(--panel); border:1px solid var(--line); padding:32px; }
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px;}
.field{display:flex; flex-direction:column; gap:6px;}
.field.full{grid-column:1/-1;}
.field label{font-size:0.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em;}
.field input, .field select, .field textarea{ background:var(--panel-2); border:1px solid var(--line); color:var(--text); padding:11px 12px; font-family:var(--font-body); font-size:0.9rem; outline:none; }
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--orange);}
form.devis .btn{margin-top:6px; width:100%; justify-content:center;}
.form-msg{ margin-top:12px; font-size:0.86rem; }
.form-msg.ok{color:#7CCB7C;}
.form-msg.err{color:#E86A6A;}

.info-card{ background:var(--panel-2); border:1px solid var(--line); padding:30px; margin-bottom:1px; }
.info-card h3{font-size:1.15rem; margin-bottom:18px;}
.info-line{ display:flex; gap:12px; margin-bottom:16px; align-items:flex-start; }
.info-line svg{flex:none; width:18px; height:18px; color:var(--orange); margin-top:2px;}
.info-line div{font-size:0.88rem; color:var(--muted);}
.info-line strong{color:var(--text); display:block; margin-bottom:2px; font-weight:600;}

/* ---------- Footer ---------- */
footer{padding:50px 0 26px; background:var(--bg);}
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px; border-bottom:1px solid var(--line); }
.footer-grid h5{ font-family:var(--font-mono); font-size:0.76rem; color:var(--steel-light); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:16px; }
.footer-grid li{margin-bottom:10px;}
.footer-grid a{color:var(--muted); font-size:0.88rem;}
.footer-grid a:hover{color:var(--orange);}
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:22px; flex-wrap:wrap; gap:12px; }
.footer-bottom p{color:var(--steel-light); font-size:0.78rem;}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .cat-grid{grid-template-columns:1fr;}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .devis-grid{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  nav.main-nav{display:none;}
  .burger{display:flex;}
  .tel{display:none;}
}
@media (max-width:560px){
  .product-grid{grid-template-columns:1fr;}
  .why-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .trust .wrap{flex-direction:column;}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{transition:none !important;}
}
