/* ==========================================================================
   Comparateur Borne Électrique — design system
   Clean, fast, dependency-free (system fonts, no webfonts/JS framework).
   ========================================================================== */

:root {
  --ink-900: #0b1524;
  --ink-800: #101c30;
  --ink-700: #1c2b45;
  --ink-600: #33465f;
  --ink-500: #55688a;
  --ink-400: #7a8bab;
  --ink-200: #d9e1ef;
  --ink-100: #eef2f9;
  --ink-50:  #f7f9fc;
  --white:   #ffffff;

  /* Sampled straight from the real logo's gradient (blue -> violet -> pink) */
  --grad-1: #4f6bfb;
  --grad-2: #9b5de5;
  --grad-3: #ef66c9;
  --brand-gradient: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3));

  --brand-700: #6d3fd6;
  --brand-600: #7c4fe8;
  --brand-500: #9b5de5;
  --brand-100: #ece3fc;
  --brand-50:  #f5f0fe;

  --accent-600: #7c3ce0;
  --accent-500: #9b5de5;
  --accent-100: #ece3fc;

  --power-3:  #0d9488;
  --power-3-bg: #ccfbf1;
  --power-7:  #4f6bfb;
  --power-7-bg: #e4e9ff;
  --power-11: #9b5de5;
  --power-11-bg: #ece3fc;
  --power-22: #d6469f;
  --power-22-bg: #fce3f2;

  --ok-600: #16a34a;
  --ok-100: #dcfce7;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,21,36,.06), 0 1px 1px rgba(11,21,36,.04);
  --shadow-md: 0 8px 24px rgba(11,21,36,.08), 0 2px 6px rgba(11,21,36,.06);
  --shadow-lg: 0 20px 48px rgba(11,21,36,.14), 0 4px 12px rgba(11,21,36,.08);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; font-weight: 800; color: var(--ink-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-600); }
ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-600); }
li { margin-bottom: .35em; }
table { border-collapse: collapse; width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.lede { font-size: 1.1rem; color: var(--ink-500); max-width: 62ch; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .96rem; padding: 13px 22px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--brand-gradient); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--ink-900); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--ink-800); border-color: var(--ink-200); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; height: 100%; }
.logo-img { height: 58px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; height: 100%; margin: 0; padding: 0; }
.main-nav > li { position: relative; list-style: none; display: flex; align-items: center; height: 100%; margin: 0; }
.main-nav a.nav-link {
  display: flex; align-items: center; padding: 10px 14px; border-radius: 999px; color: var(--ink-700);
  font-weight: 600; font-size: .95rem; white-space: nowrap; line-height: 1;
}
.main-nav a.nav-link:hover, .main-nav li.has-children:hover a.nav-link { background: var(--ink-100); text-decoration: none; }
.main-nav ul.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-nav li.has-children:hover ul.dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul.dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-700); font-weight: 600; font-size: .92rem; }
.main-nav ul.dropdown a:hover { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 10px; border: 1px solid var(--ink-200); background: var(--white); cursor: pointer; font-size: 1.1rem;
}
@media (max-width: 899px) {
  .main-nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--ink-100); flex-direction: column; align-items: stretch; padding: 10px; box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul.dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; }
  .main-nav li.has-children:hover ul.dropdown { display: block; }
  .nav-toggle { display: inline-flex; }
}

/* Breadcrumb */
.breadcrumb { font-size: .84rem; color: var(--ink-400); padding: 16px 0 0; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb .sep { margin: 0 6px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 15% -10%, var(--brand-50), transparent), var(--white); padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art {
  background: linear-gradient(160deg, var(--ink-900), var(--ink-700));
  border-radius: var(--radius-lg); padding: 28px; color: #fff; box-shadow: var(--shadow-lg);
}
.hero-art .stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .92rem; }
.hero-art .stat:last-child { border-bottom: none; }
.hero-art .stat b { color: #fff; }
.hero-art .stat span:last-child { color: var(--accent-500); font-weight: 800; }

/* Product / feature cards */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-media { aspect-ratio: 4/3; background: var(--ink-50); display: flex; align-items: center; justify-content: center; padding: 8px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-brand { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); }
.card-title { font-size: 1.02rem; font-weight: 800; color: var(--ink-900); margin: 0; }
.card-feats { list-style: none; padding: 0; margin: 4px 0 6px; font-size: .84rem; color: var(--ink-500); min-height: 84px; }
.card-feats li {
  padding-left: 1.3em; position: relative; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--ok-600); font-weight: 800; }
.card-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.card-price { font-size: 1.35rem; font-weight: 800; color: var(--ink-900); }
.card-price small { font-size: .7rem; color: var(--ink-400); font-weight: 600; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.badge-3 { background: var(--power-3-bg); color: var(--power-3); }
.badge-7 { background: var(--power-7-bg); color: var(--power-7); }
.badge-11 { background: var(--power-11-bg); color: var(--power-11); }
.badge-22 { background: var(--power-22-bg); color: var(--power-22); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-100); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .92rem; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ink-100); white-space: nowrap; }
table.compare thead th { background: var(--ink-900); color: #fff; font-weight: 700; position: sticky; top: 0; }
table.compare tbody tr:hover { background: var(--brand-50); }
table.compare td.price { font-weight: 800; color: var(--ink-900); }
table.compare tr:last-child td { border-bottom: none; }

/* Generic spec table used on product pages */
table.spec { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.spec th, table.spec td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ink-100); }
table.spec th { width: 40%; color: var(--ink-500); font-weight: 700; background: var(--ink-50); }

/* Icon list (spec bullets) */
.icon-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.icon-list li {
  background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: .95rem; color: var(--ink-700); margin: 0;
}

/* Sections */
.section-alt { background: var(--ink-50); }
.section-head { max-width: 720px; margin: 0 0 30px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Product page layout */
.product-hero { padding: 40px 0; }
.product-hero-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .product-hero-grid { grid-template-columns: 1fr; } }
.product-media {
  background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; padding: 14px; min-height: 340px; position: sticky; top: 96px;
}
.product-media img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.product-hero h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); }
.price-box {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 22px 0;
}
.price-box .amount { font-size: 1.9rem; font-weight: 800; color: var(--ink-900); }
.price-box .amount small { font-size: .8rem; color: var(--ink-400); display: block; font-weight: 600; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }

/* FAQ */
.faq-item { border: 1px solid var(--ink-100); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; background: var(--white); }
.faq-item summary {
  padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between; color: var(--ink-900); gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brand-600); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--ink-600); }

/* Vehicle matcher tool */
.matcher {
  background: linear-gradient(160deg, var(--ink-900), var(--ink-700)); border-radius: var(--radius-lg);
  padding: 30px; color: #fff; box-shadow: var(--shadow-lg);
}
.matcher h3 { color: #fff; }
.matcher p { color: var(--ink-200); }
.matcher-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.matcher input[type=text] {
  flex: 1; min-width: 220px; padding: 13px 16px; border-radius: 999px; border: none; font-size: .96rem;
}
.matcher button { border: none; }
.matcher .result { margin-top: 16px; font-size: .95rem; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 12px 16px; }
.matcher .result:empty { display: none; }

/* Related grid title emphasis reuse .section-head */

/* Footer */
.site-footer { background: var(--ink-900); color: var(--ink-200); padding: 52px 0 26px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-200); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { margin-bottom: 10px; }
.logo-img-footer { height: 46px; filter: brightness(1.15); }
.footer-note { color: var(--ink-400); font-size: .85rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--ink-400); }
.footer-bottom a { color: var(--ink-400); }

/* Affiliate disclosure */
.disclosure { font-size: .82rem; color: var(--ink-400); background: var(--ink-50); border: 1px dashed var(--ink-200); border-radius: var(--radius-sm); padding: 10px 14px; margin: 18px 0; }

/* "To fill in" placeholder markers on legal/quote pages */
.tofill {
  background: #fff7e6; border: 1px dashed var(--accent-500); border-radius: 6px;
  padding: 1px 8px; color: #92400e; font-weight: 700; font-style: normal; white-space: normal;
}
.tofill-note {
  display: flex; gap: 12px; align-items: flex-start; background: var(--accent-100);
  border: 1px solid var(--accent-500); border-radius: var(--radius-md); padding: 16px 20px; margin: 0 0 30px;
}
.tofill-note .icon { font-size: 1.4rem; flex: none; }
.tofill-note p { margin: 0; color: #7c2d12; font-size: .92rem; }
.tofill-note strong { color: #7c2d12; }

/* Legal pages */
.legal-body h2 { margin-top: 1.8em; font-size: 1.3rem; }
.legal-body p, .legal-body li { color: var(--ink-600); }
.legal-body ul { padding-left: 1.4em; }

/* Quote form */
.quote-form { background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 30px; max-width: 680px; }
.quote-form .field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.quote-form label { font-weight: 700; font-size: .9rem; color: var(--ink-800); }
.quote-form .req { color: var(--power-22); }
.quote-form input, .quote-form select, .quote-form textarea {
  padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); font: inherit; color: var(--ink-800); background: var(--white);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--brand-500); outline-offset: 1px; }
.quote-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .quote-form .row2 { grid-template-columns: 1fr; } }
.quote-form .hp { position: absolute; left: -9999px; }
.quote-form small.hint { color: var(--ink-400); font-weight: 400; }

/* Utility */
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
