/* ================================================================
   le-robot-tondeuse.fr — Feuille de style principale
   Palette : Charbon #0c0e0b | Citron #c8f135 | Crème #f7f6f0
   ================================================================ */

:root {
  --ink:     #0c0e0b;
  --lime:    #c8f135;
  --lime-d:  #a8ce1e;
  --lime-bg: #f3fce0;
  --cream:   #f7f6f0;
  --panel:   #1e201c;
  --body:    #2d2f2a;
  --muted:   #767870;
  --border:  #e4e3dc;
  --white:   #ffffff;
  --r:       8px;
  --rl:      14px;
  --sh:      0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --sh2:     0 8px 32px rgba(0,0,0,.12);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--body); background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased }
a { color: inherit; text-decoration: none }
img { display: block; max-width: 100% }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--ink);
  height: 60px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 800; font-size: .95rem; color: var(--lime); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; text-decoration: none }
.logo-dot { display: none }
.nav-links { display: flex; gap: 0; list-style: none }
.nav-item { position: relative }
.nav-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 13px; border-radius: 5px;
  font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.6);
  background: none; border: none; font-family: inherit; cursor: pointer;
  transition: color .12s, background .12s; white-space: nowrap;
}
.nav-btn svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform .18s }
.nav-btn:hover, .nav-item:hover .nav-btn, .nav-item.open .nav-btn { color: var(--white); background: rgba(255,255,255,.07) }
.nav-item:hover .nav-btn svg, .nav-item.open .nav-btn svg { transform: rotate(180deg) }
.dd {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rl); box-shadow: var(--sh2);
  padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .14s, transform .14s, visibility .14s;
  pointer-events: none; z-index: 400;
}
.nav-item.open .dd { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto }
.dd-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 5px 10px 7px }
.dd a { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 6px; font-size: .83rem; color: var(--body); transition: background .1s }
.dd a:hover { background: var(--lime-bg) }
.dd a span { font-size: .7rem; color: var(--muted); background: var(--cream); padding: 2px 7px; border-radius: 3px }
.dd hr { border: none; border-top: 1px solid var(--border); margin: 5px 0 }
.dd-wide { min-width: 440px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 }
.nav-cta { background: var(--lime); color: var(--ink); padding: 7px 18px; border-radius: 6px; font-size: .82rem; font-weight: 800; letter-spacing: -.01em; transition: background .12s }
.nav-cta:hover { background: var(--lime-d) }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--ink);
  padding: 0 32px;
}
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; color: rgba(255,255,255,.35);
  padding: 10px 0;
}
.breadcrumb a { color: rgba(255,255,255,.35); transition: color .12s }
.breadcrumb a:hover { color: var(--lime) }
.breadcrumb svg { width: 10px; height: 10px; stroke: rgba(255,255,255,.2); fill: none; stroke-width: 2.5 }
.breadcrumb .current { color: rgba(255,255,255,.6) }

/* ── HUB HERO ── */
.hub-hero {
  background: var(--ink);
  padding: 52px 32px 60px;
}
.hub-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 32px;
}
.hub-eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(200,241,53,.6); margin-bottom: 10px;
}
.hub-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 900;
  letter-spacing: -.04em; color: var(--white); line-height: 1.1;
  margin-bottom: 12px;
}
.hub-hero h1 .accent { color: var(--lime) }
.hub-desc {
  font-size: .96rem; color: rgba(255,255,255,.5); max-width: 560px; line-height: 1.75;
}
.hub-count {
  text-align: right; flex-shrink: 0;
}
.hub-count strong { display: block; font-size: 2.4rem; font-weight: 900; color: var(--lime); letter-spacing: -.04em; line-height: 1 }
.hub-count span { font-size: .72rem; color: rgba(255,255,255,.35); letter-spacing: .05em }

/* ── SECTION HELPERS ── */
section { padding: 64px 32px }
.ct { max-width: 1200px; margin: 0 auto }
.sl { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-d); margin-bottom: 8px }
.st { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-bottom: 8px }
.sd { color: var(--muted); font-size: .95rem; margin-bottom: 36px }
.sh { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap }
.voir { font-size: .83rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--lime); padding-bottom: 1px }
.voir:hover { color: var(--lime-d) }

/* ── SOUS-CATÉGORIES (HUB) ── */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.subcat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 22px 20px;
  box-shadow: var(--sh); cursor: pointer;
  transition: box-shadow .16s, transform .16s, border-color .16s;
  display: flex; align-items: flex-start; gap: 16px;
  position: relative;
}
.subcat-card:hover { box-shadow: var(--sh2); transform: translateY(-3px); border-color: var(--lime-d) }
.subcat-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--lime-bg); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.subcat-icon svg { width: 20px; height: 20px; stroke: var(--lime-d); fill: none; stroke-width: 1.8 }
.subcat-body { flex: 1 }
.subcat-name { font-size: .95rem; font-weight: 800; color: var(--ink); margin-bottom: 4px }
.subcat-desc { font-size: .8rem; color: var(--muted); line-height: 1.5 }
.subcat-arr { position: absolute; top: 18px; right: 16px; width: 15px; height: 15px; stroke: var(--border); fill: none; stroke-width: 2; transition: stroke .15s }
.subcat-card:hover .subcat-arr { stroke: var(--lime-d) }

/* ── PRODUITS ── */
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px }
.prod-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden;
  box-shadow: var(--sh);
  transition: box-shadow .18s, transform .18s;
  display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--sh2); transform: translateY(-4px) }
.prod-top { background: var(--cream); padding: 24px; position: relative; text-align: center }
.prod-img { width: 100%; height: 150px; object-fit: contain; margin: 0 auto }
.prod-ribbon { position: absolute; top: 10px; left: 10px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px }
.r1 { background: var(--ink); color: var(--lime) }
.rq { background: #7c4a0a; color: #ffd580 }
.rn { background: #1e3a5f; color: #a8d4ff }
.prod-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column }
.prod-brand { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-d); margin-bottom: 4px }
.prod-name { font-size: .95rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; line-height: 1.3 }
.prod-score { display: flex; align-items: center; gap: 8px; margin-bottom: 12px }
.score-pill { background: var(--ink); color: var(--lime); font-size: .76rem; font-weight: 900; padding: 2px 9px; border-radius: 4px }
.prod-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px }
.tag { font-size: .69rem; font-weight: 600; color: var(--body); background: var(--cream); border: 1px solid var(--border); padding: 2px 7px; border-radius: 4px }
.prod-ft { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto }
.prod-plbl { font-size: .66rem; color: var(--muted); margin-bottom: 1px }
.prod-price { font-size: 1.2rem; font-weight: 900; letter-spacing: -.03em; color: var(--ink) }
.btn-prod { background: var(--lime); color: var(--ink); padding: 8px 16px; border-radius: var(--r); font-size: .78rem; font-weight: 800; transition: background .12s; white-space: nowrap }
.btn-prod:hover { background: var(--lime-d) }

/* affil notice */
.affil { margin-top: 24px; padding: 10px 14px; background: var(--cream); border: 1px solid var(--border); border-radius: var(--r); font-size: .76rem; color: var(--muted); display: flex; gap: 8px; line-height: 1.6 }
.affil svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px }
.affil a { color: var(--body); font-weight: 600; border-bottom: 1px solid var(--border) }

/* ── VOIR AUSSI ── */
.voir-aussi { background: var(--ink); padding: 40px 32px }
.voir-aussi-inner { max-width: 1200px; margin: 0 auto }
.va-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 16px }
.va-grid { display: flex; gap: 10px; flex-wrap: wrap }
.va-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 10px 16px;
  font-size: .83rem; font-weight: 600; color: rgba(255,255,255,.55);
  transition: background .14s, border-color .14s, color .14s;
}
.va-chip:hover { background: rgba(255,255,255,.1); border-color: rgba(200,241,53,.2); color: var(--white) }
.va-chip svg { width: 15px; height: 15px; stroke: rgba(200,241,53,.5); fill: none; stroke-width: 1.8 }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,.42); padding: 52px 32px 28px }
.ft { max-width: 1200px; margin: 0 auto }
.ft-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 22px }
.ft-logo { display: flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 800; font-size: .92rem; margin-bottom: 10px }
.ft-desc { font-size: .82rem; line-height: 1.75 }
.ft-h { font-size: .63rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 13px }
.ft-col a { display: block; font-size: .82rem; color: rgba(255,255,255,.42); margin-bottom: 8px; transition: color .12s }
.ft-col a:hover { color: var(--white) }
.ft-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .72rem }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { display: none }
  section { padding: 48px 20px }
  .hub-hero { padding: 40px 20px 48px }
  .prod-grid { grid-template-columns: 1fr 1fr }
  .hub-hero-inner { grid-template-columns: 1fr }
  .hub-count { text-align: left }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 28px }
  .voir-aussi { padding: 32px 20px }
}
@media (max-width: 640px) {
  nav { padding: 0 16px }
  .breadcrumb { padding: 0 16px }
  .prod-grid { grid-template-columns: 1fr }
  .subcat-grid { grid-template-columns: 1fr }
  .ft-top { grid-template-columns: 1fr }
  .va-grid { gap: 8px }
}
