/* L'Atelier Brillance — layout: fiche d'atelier. Une seule famille, Barlow, dessinée d'après la signalisation routière : condensée pour les titres, normale pour le texte. */
:root {
  --bg: #f1f3f5;
  --surface: #ffffff;
  --surface-2: #e6eaee;
  --ink: #0f1720;
  --ink-2: #3a4553;
  --muted: #5f6b79;
  --line: #d3d9e0;
  --paint: #0a1a2d;
  --accent: #e2562a;
  --accent-ink: #a8380f;
  --on-accent: #10161d;
  --ok: #2c7a50;
  --warn-bg: #fff4e8;
  --warn-line: #f0b27a;

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ui: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.84rem;
  --step-0: 1.05rem;
  --step-1: 1.3rem;
  --step-2: 1.8rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.7rem, 5.8vw, 4.4rem);

  --radius: 10px;
  --gutter: 20px;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1016;
    --surface: #121a23;
    --surface-2: #1a2430;
    --ink: #e7ecf1;
    --ink-2: #b7c1cc;
    --muted: #8c97a4;
    --line: #263140;
    --paint: #06101c;
    --accent: #f0703f;
    --accent-ink: #ff9a6e;
    --on-accent: #0b1016;
    --ok: #5fc08b;
    --warn-bg: #2a1d12;
    --warn-line: #8a5528;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1016;
  --surface: #121a23;
  --surface-2: #1a2430;
  --ink: #e7ecf1;
  --ink-2: #b7c1cc;
  --muted: #8c97a4;
  --line: #263140;
  --paint: #06101c;
  --accent: #f0703f;
  --accent-ink: #ff9a6e;
  --on-accent: #0b1016;
  --ok: #5fc08b;
  --warn-bg: #2a1d12;
  --warn-line: #8a5528;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; }
h2 { font-size: var(--step-3); font-weight: 700; line-height: 1.05; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: 0.005em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.eyebrow {
  font-family: var(--ui);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Accessibilité */
.skip { position: absolute; left: -9999px; top: 0; z-index: 20; }
.skip:focus { left: 16px; top: calc(env(safe-area-inset-top, 0px) + 8px); background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small {
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-big {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn .arrow { font-weight: 500; }

/* Accueil : héros */
.hero { padding-block: 48px 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy .lede { max-width: 30em; }

.paint-panel { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.paint-frame {
  position: relative;
  aspect-ratio: 5 / 4;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paint);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px -24px rgba(5, 15, 30, 0.6);
}
.paint-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}
.paint-tag {
  position: absolute;
  top: 12px;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e9eef5;
  background: rgba(6, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 9px;
  border-radius: 999px;
  pointer-events: none;
}
.paint-tag.left { left: 12px; }
.paint-tag.right { right: 12px; }
.paint-caption { font-size: var(--step--1); color: var(--muted); font-family: var(--ui); }

/* Sections */
.section { padding-block: 56px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 46em; }

/* Ordre d'un detailing complet */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: etape;
}
.process li {
  counter-increment: etape;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.process li::before {
  content: counter(etape, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-ink);
}
.process p { font-size: 0.98rem; color: var(--ink-2); }
.process .status {
  margin-top: auto;
  font-family: var(--ui);
  font-size: 0.88rem;
  font-weight: 700;
}
.process .soon { color: var(--muted); font-weight: 600; }

/* Cartes de contenus */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.card:hover { border-color: var(--ink-2); }
.card h3 { font-size: var(--step-2); font-weight: 700; }
.card p { color: var(--ink-2); }
.card .more { margin-top: auto; font-family: var(--ui); font-weight: 700; color: var(--accent-ink); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--ui); font-size: 0.88rem; color: var(--muted); }

/* Niveau */
.level { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.level .dots { display: inline-flex; gap: 3px; }
.level .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-2); display: block; }
.level .dots i.on { background: var(--ink-2); }

/* À venir */
.upcoming { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.upcoming li { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); font-family: var(--ui); font-size: 0.96rem; min-width: 0; }
.upcoming li span:last-child { color: var(--muted); white-space: nowrap; font-size: 0.85rem; }

/* Méthode */
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.method div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.method h3 { font-size: 1.1rem; }
.method p { color: var(--ink-2); font-size: 0.98rem; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; margin-top: 24px; background: var(--surface); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 6px; font-family: var(--ui); font-size: 0.92rem; }
.footer-grid nav .eyebrow { margin-bottom: 2px; }
.footer-grid nav a { color: var(--ink-2); }
.footer-brand { gap: 10px; }
.disclosure { font-size: 0.9rem; color: var(--muted); max-width: 44em; }

/* Articles */
.article-head { padding-block: 44px 28px; display: flex; flex-direction: column; gap: 16px; }
.article-head .lede { max-width: 40em; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--ui);
  font-size: 0.92rem;
}
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 32px;
}
.toc {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  font-family: var(--ui);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.prose h2 { font-size: calc(var(--step-2) * 1.1); margin-top: 1.6rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 0.6rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose strong { font-weight: 650; }
.prose.wide { max-width: none; }
.narrow { max-width: 68ch; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }

.note, .warn {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.note-title { font-family: var(--ui); font-weight: 700; font-size: 0.95rem; }

/* Étapes numérotées */
.steps { list-style: none; padding: 0 !important; counter-reset: s; gap: 1.2rem !important; }
.steps > li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 14px;
}
.steps > li::before {
  content: counter(s);
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--ink);
  color: var(--bg);
}
.steps h3 { font-size: 1.12rem; margin-top: 6px; }
.steps p { color: var(--ink-2); }

/* Liste de matériel */
.kit { list-style: none; padding: 0 !important; gap: 0 !important; border-top: 1px solid var(--line); }
.kit li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.kit li > div { min-width: 0; flex: 1 1 18rem; }
.kit .item { font-family: var(--ui); font-weight: 650; }
.kit .why { display: block; font-size: 0.95rem; color: var(--ink-2); }
.kit .opt { font-family: var(--ui); font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-left: 6px; }
.amz-link { font-family: var(--ui); font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.aff-note { font-family: var(--ui); font-size: 0.82rem; color: var(--muted); }

/* Tableau comparatif */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: 0.92rem; min-width: 780px; }
.compare td:first-child { min-width: 11.5rem; }
table.compare.compact { min-width: 600px; }
.compare.compact td:first-child { min-width: 0; }
.compare th { white-space: nowrap; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.orbit-bar { display: flex; align-items: center; gap: 8px; }
.orbit-bar .track { width: 84px; height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; flex: none; }
.orbit-bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 3px; }

/* Fiches produit */
.products { display: flex; flex-direction: column; gap: 24px; }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 32px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 90px;
}
.product-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.profile {
  align-self: flex-start;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border: 1.5px solid currentColor;
  padding: 4px 9px;
  border-radius: 999px;
}
.product h3 { font-size: var(--step-2); font-weight: 700; }
.product .brandname { display: block; font-family: var(--ui); font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.product p { color: var(--ink-2); }
.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pc h4 { font-family: var(--ui); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.pc ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 4px; font-size: 0.96rem; color: var(--ink-2); }
.specs { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.specs dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding-block: 9px; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { font-family: var(--ui); font-size: 0.86rem; color: var(--muted); padding-right: 16px; }
.specs dd { font-family: var(--ui); font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; text-align: right; }
.specs .btn { width: 100%; }

.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-family: var(--ui); font-weight: 650; font-size: 1.02rem; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Pages légales */
.legal { max-width: 68ch; display: flex; flex-direction: column; gap: 1rem; padding-bottom: 40px; }
.legal h2 { font-size: var(--step-1); margin-top: 1.4rem; }
.todo { background: var(--warn-bg); border: 1px dashed var(--warn-line); border-radius: 4px; padding: 0 4px; font-family: var(--ui); font-size: 0.95em; }

/* Responsive */
@media (max-width: 960px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .cards.three { grid-template-columns: minmax(0, 1fr); }
  .upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .product { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero { padding-block: 28px 28px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .paint-frame { aspect-ratio: 4 / 3; }
  .cards, .method { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 40px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .process, .upcoming, .pc { grid-template-columns: minmax(0, 1fr); }
  .product { padding: 20px; }
  .brand-big { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
