/* SENBOSS PEINTURE × PAINTEX — feuille de style partagée */
:root {
  --ink: #261843;          /* violet nuit du logo SENBOSS */
  --ink-soft: #4a3f63;
  --blue: #0b5c8c;         /* bleu du "E" SENBOSS */
  --orange: #f45a38;       /* orange "Peinture" */
  --paintex: #1d5bcc;      /* bleu PAINTEX */
  --green: #6fd65a;        /* vert PAINTEX */
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e8e1d6;
  --muted: #6b6478;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(38, 24, 67, .06), 0 12px 32px -12px rgba(38, 24, 67, .18);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Bande "coup de pinceau" */
.stripe {
  height: 8px;
  background: linear-gradient(90deg, var(--ink) 0 34%, var(--blue) 34% 56%, var(--orange) 56% 78%, var(--paintex) 78% 92%, var(--green) 92%);
}

/* En-tête */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img.sb { height: 40px; width: auto; }
.brand .x { font-family: var(--display); color: var(--muted); font-weight: 500; }
.brand img.px { height: 56px; width: auto; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  font-weight: 600; text-decoration: none; color: var(--ink);
  padding: .5rem .9rem; border-radius: 999px; font-size: .98rem;
}
.nav a:hover { background: #f3eee6; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -60px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(244, 90, 56, .18), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(29, 91, 204, .16), transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--orange); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .6rem 0 1rem; font-weight: 800; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.meta { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }

/* Cartes d'accueil */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; padding-bottom: 4rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent, var(--orange)); }
a.card:hover { transform: translateY(-3px); color: inherit; box-shadow: 0 18px 40px -16px rgba(38, 24, 67, .35); }
.card h2, .card h3 { margin: .2rem 0 .5rem; font-size: 1.45rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card .go { margin-top: 1.1rem; font-weight: 700; color: var(--accent, var(--orange)); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--orange)) 14%, white); color: var(--accent, var(--orange));
}
.icon svg { width: 24px; height: 24px; }

/* Mise en page document */
.doc { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; padding: 1rem 0 5rem; align-items: start; }
.toc { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.toc strong { display: block; font-family: var(--display); margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.toc li { margin: .25rem 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--orange); }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow); }
.prose section { scroll-margin-top: 100px; }
.prose section + section { border-top: 1px dashed var(--line); margin-top: 2rem; padding-top: 1.25rem; }
.prose h2 { font-size: 1.5rem; margin: .5rem 0 .75rem; display: flex; gap: .65rem; align-items: baseline; }
.prose h2 .n { font-size: .95rem; color: var(--orange); font-weight: 800; }
.prose h3 { font-size: 1.12rem; margin: 1.25rem 0 .4rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: .3rem 0; }
.note {
  background: #fff6f2; border-left: 4px solid var(--orange); border-radius: 10px; padding: 1rem 1.25rem; margin: 1rem 0;
}
.note.blue { background: #f0f5ff; border-color: var(--paintex); }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .97rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); background: #f7f3ec; }
.table-scroll { overflow-x: auto; }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin: 1rem 0 0; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent); }
.contact .head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.contact .head img { height: 44px; width: auto; }
.contact h3 { margin: 0; font-size: 1.3rem; }
.contact .tag { font-size: .85rem; color: var(--muted); }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; }
.contact dt { font-weight: 700; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .1rem; }
.contact dd { margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; padding: .75rem 1.2rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}
.btn:hover { color: #fff; filter: brightness(1.08); }

/* FAQ */
.faq-group { margin-top: 2.5rem; }
.faq-group > h3 { font-size: 1.25rem; margin-bottom: .75rem; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: .6rem 0; }
summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--orange); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }
details > div p:first-child { margin-top: 0; }

.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 3rem 0 .5rem; }

/* Catalogue */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.product .thumb { aspect-ratio: 1; background: #f7f3ec; display: grid; place-items: center; padding: 1rem; }
.product .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product .body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product .brand-tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.product h3 { margin: .25rem 0 .4rem; font-size: 1.15rem; }
.product p {
  margin: 0 0 1rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.formats { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px dashed var(--line); }
.formats li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .5rem 0 0; font-size: .95rem; }
.formats li span { color: var(--muted); }
.formats li strong { font-family: var(--display); color: var(--ink); }
.formats li.out strong { text-decoration: line-through; color: var(--muted); }
.formats li em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--orange); width: 100%; text-align: right; }
.products .empty { grid-column: 1 / -1; color: var(--muted); margin: 0; }
.catalogue-page { padding-bottom: 4rem; }
.home-products { padding-bottom: 4.5rem; }
.home-products .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.home-products .section-title { margin: .4rem 0 0; }
.home-products .btn { margin-top: 0; }

/* Pied de page */
.site-footer { background: var(--ink); color: #d9d3e6; padding: 2.5rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 1.5rem; }
  .toc { position: static; }
  .brand img.sb { height: 30px; }
  .brand img.px { height: 44px; }
  .hero { padding: 3rem 0 2.5rem; }
}
@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: center; }
  .brand { justify-content: center; }
  .nav { justify-content: center; }
}
@media print {
  .site-header, .toc, .site-footer, .stripe { display: none; }
  .doc { display: block; }
  .prose { box-shadow: none; border: 0; padding: 0; }
}
