/* Documentation du back-office Néo Hair Care — feuille de style.
   Couleurs et typographies reprises de la charte du site. */

:root {
  --encre: #1e2622;
  --lait: #f7f4ee;
  --sable: #ece5d8;
  --sauge: #2f4a3b;
  --cuivre: #b07d56;
  --ink-60: rgba(30, 38, 34, .66);
  --ink-45: rgba(30, 38, 34, .5);
  --line: rgba(30, 38, 34, .14);
  --line-soft: rgba(30, 38, 34, .08);
  --serif: "Newsreader", "Times New Roman", Times, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --nav: 280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--lait);
  color: var(--encre);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sauge); text-underline-offset: 3px; }
code, kbd {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--sable);
  padding: .1em .38em;
  border-radius: 3px;
}
kbd { border: 1px solid var(--line); background: #fff; }

/* ── Mise en page ─────────────────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: var(--nav) minmax(0, 1fr); min-height: 100vh; }

.toc {
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
  padding: 32px 24px 40px;
  background: var(--encre); color: var(--lait);
}
.toc__brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; margin: 0; }
.toc__sub {
  margin: 4px 0 28px;
  font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cuivre);
}
.toc__group {
  margin: 22px 0 8px;
  font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(247, 244, 238, .45);
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; padding: 6px 10px; margin: 0 -10px;
  border-radius: 3px;
  color: rgba(247, 244, 238, .82); text-decoration: none; font-size: .9rem;
}
.toc a:hover, .toc a.is-on { background: rgba(247, 244, 238, .08); color: #fff; }
.toc a.is-on { box-shadow: inset 2px 0 0 var(--cuivre); }

.main { padding: 56px clamp(20px, 5vw, 72px) 96px; max-width: 1180px; }

/* ── Titres et texte ──────────────────────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cuivre);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cuivre); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h1 em, h2 em { font-style: italic; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: 1.4rem; font-weight: 400; margin: 34px 0 10px; }
p { margin: 0 0 14px; max-width: 72ch; }
.lead { font-size: 1.08rem; color: var(--ink-60); max-width: 64ch; margin-top: 18px; }
ul.list, ol.list { margin: 0 0 16px; padding-left: 1.2rem; max-width: 72ch; }
ul.list li, ol.list li { margin-bottom: 6px; }

section.chap { padding-top: 64px; margin-top: 64px; border-top: 1px solid var(--line); }
.chap__n { font-family: var(--serif); font-size: 1rem; color: var(--cuivre); margin-right: 8px; }

/* ── Couverture ───────────────────────────────────────────────────────────── */
.cover {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
}
.cover__img { border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(30, 38, 34, .35); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .74rem; color: var(--ink-60); background: #fff;
}

/* ── Captures ─────────────────────────────────────────────────────────────── */
figure.shot { margin: 22px 0 28px; }
.shot__frame {
  display: block;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px -26px rgba(30, 38, 34, .45);
}
.shot__bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: var(--sable); border-bottom: 1px solid var(--line-soft);
  font-size: .7rem; color: var(--ink-45);
}
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(30, 38, 34, .16); }
.shot__bar span { margin-left: 10px; font-family: var(--mono); }
.shot--long .shot__frame img { max-height: 760px; object-fit: cover; object-position: top; }
figure.shot figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-60); }
figure.shot figcaption a { font-weight: 500; }
.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Repères numérotés sur une capture */
.marks { counter-reset: m; list-style: none; padding: 0; margin: 0 0 18px; max-width: 72ch; }
.marks li { counter-increment: m; position: relative; padding-left: 38px; margin-bottom: 10px; }
.marks li::before {
  content: counter(m);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--encre); color: var(--lait); font-size: .72rem; font-weight: 600;
}

/* ── Encadrés ─────────────────────────────────────────────────────────────── */
.note, .warn, .tip {
  margin: 18px 0; padding: 16px 20px;
  border-radius: 4px; border-left: 3px solid;
  max-width: 76ch; font-size: .94rem;
}
.note { background: #fff; border-color: var(--sauge); }
.tip { background: #fff; border-color: var(--cuivre); }
.warn { background: #fbf1ea; border-color: #8c3a24; }
.note strong:first-child, .tip strong:first-child, .warn strong:first-child {
  display: block; margin-bottom: 4px;
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
}

/* ── Tableaux ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
th {
  background: var(--sable);
  font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-60);
}
td:first-child { font-weight: 500; white-space: nowrap; }

.tag {
  display: inline-block; padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px;
  font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tag--pro { background: var(--sauge); color: #fff; border-color: var(--sauge); }

/* Cartes « parcours » */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.card {
  padding: 18px 20px; background: #fff; border: 1px solid var(--line-soft); border-radius: 4px;
  color: inherit; text-decoration: none; transition: border-color .2s, transform .2s;
}
a.card:hover { border-color: var(--cuivre); transform: translateY(-2px); }
.card h4 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.card p { margin: 0; font-size: .88rem; color: var(--ink-60); }
.card a { text-decoration: none; }

.foot { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-45); }

/* Bouton menu (mobile) */
.toc-toggle { display: none; }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .main { min-width: 0; }
  .toc { position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); z-index: 20; transform: translateX(-100%); transition: transform .3s; }
  .toc.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .toc-toggle {
    display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 30;
    padding: 12px 16px; border: 0; border-radius: 999px;
    background: var(--encre); color: var(--lait); font: 600 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  }
  .main { padding: 36px 16px 90px; }
  .cover, .shots-2 { grid-template-columns: minmax(0, 1fr); }
  td:first-child { white-space: normal; }
}

/* ── Impression (PDF) ─────────────────────────────────────────────────────── */
@media print {
  body { background: #fff; font-size: 11pt; }
  .layout { display: block; }
  .toc, .toc-toggle { display: none; }
  .main { padding: 0; max-width: none; }
  section.chap { break-before: page; border: 0; margin: 0; padding-top: 0; }
  figure.shot, .note, .tip, .warn, table { break-inside: avoid; }
  .shot--long .shot__frame img { max-height: none; }
  a { color: inherit; text-decoration: none; }
}
