/* sugargoosheet.be — feuille de style unique, écrite à la main.
   Direction : blanc chaud, numéros de section brun-rouge foncé, texte anthracite.
   Repère éditorial, pas site promotionnel. */

:root {
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Couleurs */
  --bg: #faf7f2;          /* blanc chaud */
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --ink: #26221e;         /* anthracite */
  --ink-soft: #4b443c;
  --muted: #6f665b;
  --accent: #7a2e26;      /* brun-rouge foncé */
  --accent-strong: #5e211b;
  --line: #e6ded0;
  --line-strong: #d8ccb8;
  --focus: #1f6feb;

  /* Espacement (§18) */
  --gap-section: 56px;
  --container: 1240px;
  --radius: 8px;
  --radius-sm: 6px;
}

/* Reset léger */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Conteneurs */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.wrap--text { max-width: 760px; } /* ~ 60–75ch pour la lecture d'article */

/* Titres (§17) */
h1, .h1 { font-size: 48px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2, .h2 { font-size: 28px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
h3, .h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

/* ---------- En-tête ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding-block: 8px;
}
.brand {
  font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.nav-primary { margin-left: auto; }
.nav-primary ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; }
.nav-primary a { font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font: 500 14px/1 var(--font); color: var(--ink); cursor: pointer;
}

/* ---------- Bandeau d'état ---------- */
.notice {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft);
}
.notice .wrap { padding-block: 8px; }

/* ---------- Structure de page ---------- */
main { display: block; }
.stack { display: flex; flex-direction: column; gap: var(--gap-section); }
.section { }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.eyebrow {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .num {
  font-size: 15px; font-weight: 800;
  color: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 50%; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; }
.hero .kicker { color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.hero h1 { margin-top: 12px; max-width: 16ch; }
.hero .lead { margin-top: 16px; font-size: 19px; max-width: 58ch; }

/* Recherche */
.search {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  max-width: 620px;
}
.search label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search input[type="search"] {
  flex: 1 1 240px; min-width: 0;
  padding: 12px 14px; font-size: 16px; font-family: var(--font);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 12px 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.search .hint { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Grille de catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
}
.cat-card:hover { border-color: var(--accent); }
.cat-card .n { font-size: 13px; color: var(--muted); }
.cat-card h3 { color: var(--accent); }

/* ---------- Grille de produits ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card a.card-img, .card .card-body { text-decoration: none; color: inherit; }
.card-img {
  display: block; background: var(--surface-2);
  aspect-ratio: 1 / 1; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .cat-tag { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card h3 {
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .price { margin-top: auto; }
.price .eur { font-weight: 700; color: var(--ink); }
.price .cny { font-size: 13px; color: var(--muted); }
.card-cta { padding: 0 16px 16px; }
.card-cta a { font-size: 14px; font-weight: 600; }

/* ---------- Décorticage (module signature) ---------- */
.breakdown {
  display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.breakdown .bd-media { min-width: 0; }
.breakdown .bd-media img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.breakdown .bd-list { min-width: 0; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.bd-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.bd-item .marker {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.bd-item h4 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.bd-item p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.bd-item .val { font-weight: 600; color: var(--ink); }

/* ---------- Bloc prix ---------- */
.price-explain {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.price-explain > div { min-width: 0; }
.price-tag {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 16px; background: var(--surface-2);
}
.price-tag .big { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.price-tag .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line-strong); font-size: 14.5px; }
.price-tag .row:first-of-type { border-top: 0; }

/* ---------- Info-cartes ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-card {
  min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.info-card h3 { margin-bottom: 8px; }
.info-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding-block: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--line-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Page produit ---------- */
.product { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 36px; align-items: start; }
.product .p-media { min-width: 0; }
.product .p-media img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.product .p-info { min-width: 0; }
.product .p-info h1 { font-size: 30px; line-height: 1.25; }
.p-price { margin: 18px 0; }
.p-price .eur { font-size: 26px; font-weight: 800; }
.p-price .cny { color: var(--muted); font-size: 15px; }
.callout {
  border: 1px solid var(--line-strong); border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 14.5px; color: var(--ink-soft); margin: 16px 0;
}
.callout strong { color: var(--ink); }
.p-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.p-meta { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: 14px; }
.p-meta dt { font-weight: 700; }
.p-meta dd { margin: 0 0 12px; color: var(--ink-soft); }

/* ---------- Article / guide ---------- */
.article { }
.article h2 { margin-top: 40px; }
.article h3 { margin-top: 24px; }
.article p, .article li { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.article p + p { margin-top: 14px; }
.article ul, .article ol { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.article .callout p { margin: 0; }

/* Tableau responsive */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Liste de guides */
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.guide-list li { min-width: 0; }
.guide-list a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); height: 100%;
}
.guide-list a:hover { border-color: var(--accent); }
.guide-list h3 { color: var(--accent); margin-bottom: 6px; }
.guide-list p { color: var(--ink-soft); font-size: 14.5px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 4px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 18px;
}
.faq details + details { margin-top: 12px; }
.faq summary { font-weight: 600; font-size: 16px; cursor: pointer; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); font-size: 15px; padding-bottom: 16px; margin: 0; }

/* Sous-navigation d'ancres (page catégorie sacs) */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.anchor-nav a {
  font-size: 13px; font-weight: 600; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 14px; color: var(--ink-soft);
}
.anchor-nav a:hover { border-color: var(--accent); color: var(--accent); }
.subhead { scroll-margin-top: 80px; }

/* ---------- Pied de page ---------- */
.site-footer {
  margin-top: var(--gap-section);
  background: #23201c; color: #d9d1c5;
  border-top: 4px solid var(--accent);
}
.site-footer .wrap { padding-block: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid > div { min-width: 0; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #b7ab99; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #e7dfd2; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .disclosure { font-size: 13px; line-height: 1.6; color: #b7ab99; }
.footer-bottom { border-top: 1px solid #3a352e; margin-top: 28px; padding-top: 20px; font-size: 12.5px; color: #9a8f7d; }

/* Divers utilitaires */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--ink-soft); }
.count-badge { font-size: 13px; color: var(--muted); font-weight: 500; }
.related { margin-top: 40px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .breakdown { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product .p-media { max-width: 460px; }
  .price-explain { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --gap-section: 40px; }
  body { font-size: 15px; line-height: 1.6; }
  h1, .h1 { font-size: 32px; line-height: 1.2; }
  h2, .h2 { font-size: 22px; }
  h3, .h3 { font-size: 16px; }
  .hero .lead { font-size: 17px; }
  .lead { font-size: 16px; }

  .nav-primary { display: none; width: 100%; }
  .nav-primary.open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 4px; padding-top: 10px; }
  .nav-primary a { display: block; padding: 8px 0; }
  .nav-toggle { display: inline-block; }
  .header-inner { flex-wrap: wrap; }

  .cat-grid { grid-template-columns: 1fr; }
  .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px; }
  .card-cta { padding: 0 12px 12px; }
  .info-grid { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .product .p-info h1 { font-size: 26px; }
  .price-tag .big { font-size: 26px; }
}

@media (max-width: 380px) {
  .grid, .grid--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
