/* polices du site, servies localement */
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/zilla-slab-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/zilla-slab-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/zilla-slab-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Zilla Slab'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/zilla-slab-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-serif-4-latin-ext-400-800-i.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-serif-4-latin-400-800-i.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-serif-4-latin-ext-400-800.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-serif-4-latin-400-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --nss-bg: #F6E4E3;
  --nss-surface: #FBF0EE;
  --nss-text: #3A0D1A;
  --nss-muted: #6B3A47;
  --nss-accent: #7A5A12;
  --nss-accent2: #6D1A32;
  --nss-gold-light: #E8C872;
  --nss-on-dark: #FBF0EE;
  --nss-shadow: 6px 6px 0 var(--nss-accent2);
  --nss-shadow-gold: 6px 6px 0 var(--nss-accent);
  --nss-display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --nss-body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nss-bg);
  color: var(--nss-text);
  font-family: var(--nss-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--nss-accent2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--nss-accent2);
  outline-offset: 3px;
}

.nss-band :focus-visible,
.nss-footer :focus-visible {
  outline-color: var(--nss-gold-light);
}

.nss-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */
.nss-header {
  background: var(--nss-surface);
  border-top: 6px solid var(--nss-accent);
  border-bottom: 1px solid var(--nss-accent);
}

.nss-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nss-brand {
  font-family: var(--nss-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--nss-accent2);
  text-decoration: none;
}

.nss-brand:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.nss-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nss-nav a {
  font-family: var(--nss-display);
  font-weight: 600;
  color: var(--nss-text);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nss-nav a:hover { border-bottom-color: var(--nss-accent); }

/* Couverture */
.nss-cover {
  border-bottom: 1px solid var(--nss-accent);
}

.nss-cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: stretch;
  padding-top: 34px;
  padding-bottom: 44px;
}

.nss-cover-photo {
  margin: 0;
  position: relative;
  min-height: 520px;
  box-shadow: var(--nss-shadow);
  border: 2px solid var(--nss-accent2);
  background: var(--nss-surface);
}

.nss-cover-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

.nss-cover-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.nss-rule {
  border: 0;
  border-top: 5px solid var(--nss-accent);
  border-bottom: 1px solid var(--nss-accent);
  height: 9px;
  margin: 0 0 16px;
}

.nss-marker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: 0 0 18px;
  color: var(--nss-accent);
  font-family: var(--nss-display);
  font-weight: 600;
}

.nss-marker strong {
  font-size: 1.5rem;
  color: var(--nss-accent2);
  font-weight: 700;
}

.nss-title {
  font-family: var(--nss-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--nss-text);
  letter-spacing: -0.01em;
}

.nss-title span { display: block; }
.nss-title span:nth-child(2) { color: var(--nss-accent2); }

.nss-lede {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 0 16px;
}

.nss-cover-facts {
  margin: 8px 0 0;
  padding: 14px 18px;
  background: var(--nss-surface);
  border-left: 6px solid var(--nss-accent);
  box-shadow: var(--nss-shadow);
  max-width: 62ch;
  font-size: 1rem;
}

.nss-cover-facts p { margin: 0; }

/* Bandes */
.nss-band {
  background: var(--nss-accent2);
  color: var(--nss-on-dark);
  border-top: 4px solid var(--nss-accent);
  border-bottom: 4px solid var(--nss-accent);
}

.nss-band a { color: var(--nss-gold-light); }

.nss-band-inner { padding-top: 30px; padding-bottom: 32px; }

.nss-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.nss-figure-item {
  padding: 4px 22px;
  border-left: 1px solid var(--nss-gold-light);
  min-width: 0;
}

.nss-figure-item:first-child { border-left: 0; padding-left: 0; }

.nss-figure-item dt {
  font-family: var(--nss-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  color: var(--nss-gold-light);
  margin: 0 0 6px;
}

.nss-figure-item dd { margin: 0; font-size: 0.97rem; line-height: 1.45; }

/* Sections de texte */
.nss-section { padding: 46px 0 8px; }

.nss-section-inner { padding-bottom: 28px; border-bottom: 1px solid var(--nss-accent); }

.nss-section h2,
.nss-h2 {
  font-family: var(--nss-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--nss-accent2);
  max-width: 28ch;
}

.nss-section h3 {
  font-family: var(--nss-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 18px 0 6px;
}

.nss-section p { margin: 0 0 1em; }

.nss-cols {
  column-count: 2;
  column-gap: 44px;
  column-rule: 1px solid var(--nss-accent);
}

.nss-cols p { break-inside: avoid-column; }
.nss-cols h3 { break-after: avoid; }

.nss-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}

.nss-stack > :last-child { margin-bottom: 0; }

/* Encadré */
.nss-encart {
  background: var(--nss-surface);
  border: 2px solid var(--nss-accent2);
  box-shadow: var(--nss-shadow);
  padding: 18px 22px;
  margin: 0 0 1.4em;
}

.nss-encart h3 {
  margin: 0 0 8px;
  font-family: var(--nss-display);
  font-size: 1.2rem;
  color: var(--nss-accent2);
}

.nss-encart p { margin: 0 0 0.7em; }
.nss-encart p:last-child { margin-bottom: 0; }

/* Tableau */
.nss-table-wrap {
  overflow-x: auto;
  background: var(--nss-surface);
  border: 2px solid var(--nss-accent2);
  box-shadow: var(--nss-shadow);
  margin: 0 0 1.6em;
}

.nss-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.45;
}

.nss-table caption {
  text-align: left;
  font-family: var(--nss-display);
  font-weight: 700;
  padding: 12px 14px;
  background: var(--nss-accent2);
  color: var(--nss-on-dark);
}

.nss-table th,
.nss-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nss-accent);
}

.nss-table thead th {
  font-family: var(--nss-display);
  color: var(--nss-accent2);
  border-bottom: 2px solid var(--nss-accent2);
}

.nss-table tbody th { font-family: var(--nss-display); font-weight: 700; }
.nss-table tbody tr:last-child th,
.nss-table tbody tr:last-child td { border-bottom: 0; }

/* Séquence réelle */
.nss-sequence {
  list-style: none;
  counter-reset: nss-seq;
  margin: 0 0 1.4em;
  padding: 0;
}

.nss-sequence li {
  counter-increment: nss-seq;
  position: relative;
  padding: 10px 0 10px 54px;
  border-top: 1px solid var(--nss-accent);
}

.nss-sequence li:last-child { border-bottom: 1px solid var(--nss-accent); }

.nss-sequence li::before {
  content: counter(nss-seq);
  position: absolute;
  left: 0;
  top: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nss-accent2);
  color: var(--nss-on-dark);
  font-family: var(--nss-display);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--nss-accent);
}

.nss-sequence strong { font-family: var(--nss-display); }

/* Liste de définitions éditoriale */
.nss-defs { margin: 0 0 1.2em; }
.nss-defs dt { font-family: var(--nss-display); font-weight: 700; color: var(--nss-accent2); margin-top: 12px; }
.nss-defs dd { margin: 2px 0 0; }

/* Figure */
.nss-figure {
  margin: 0 0 1.4em;
  background: var(--nss-surface);
  border: 2px solid var(--nss-accent2);
  box-shadow: var(--nss-shadow);
}

.nss-figure img { width: 100%; height: auto; }

.nss-figure figcaption {
  padding: 10px 14px;
  font-size: 0.93rem;
  color: var(--nss-muted);
  border-top: 1px solid var(--nss-accent);
}

/* Questions-réponses */
.nss-answers { padding: 46px 0 56px; }

.nss-answers h2 {
  font-family: var(--nss-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--nss-accent2);
  max-width: 30ch;
}

.nss-answers-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.nss-answer {
  background: var(--nss-surface);
  border: 2px solid var(--nss-accent2);
  border-top: 8px solid var(--nss-accent);
  box-shadow: var(--nss-shadow);
  padding: 16px 20px 20px;
}

.nss-answer h3 {
  font-family: var(--nss-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.nss-answer p { margin: 0; font-size: 1rem; }

/* Pied de page */
.nss-footer {
  background: var(--nss-accent2);
  color: var(--nss-on-dark);
  border-top: 6px solid var(--nss-accent);
  padding: 30px 0;
  font-size: 0.95rem;
}

.nss-footer a { color: var(--nss-gold-light); }

.nss-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 18px 40px;
}

.nss-footer-name {
  font-family: var(--nss-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.nss-footer p { margin: 0 0 6px; }

/* Page de mentions légales */
.nss-legal { padding: 40px 0 56px; max-width: 78ch; }
.nss-legal h1 { font-family: var(--nss-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--nss-accent2); margin: 0 0 20px; }
.nss-legal h2 { font-family: var(--nss-display); font-size: 1.3rem; margin: 26px 0 6px; }

/* Adaptation */
@media (max-width: 980px) {
  .nss-cover-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .nss-cover-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .nss-split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nss-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .nss-figure-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .nss-answers-list { grid-template-columns: minmax(0, 1fr); }
  .nss-footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nss-cols { column-count: 1; column-rule: 0; }
  body { font-size: 1rem; }
  .nss-lede { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .nss-wrap { padding: 0 16px; }
  .nss-figures { grid-template-columns: minmax(0, 1fr); }
  .nss-figure-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--nss-gold-light); padding-top: 12px; }
  .nss-figure-item:first-child { border-top: 0; padding-top: 4px; }
  .nss-cover-photo, .nss-table-wrap, .nss-encart, .nss-figure, .nss-answer, .nss-cover-facts { box-shadow: 4px 4px 0 var(--nss-accent2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.nss-band .nss-h2{color:inherit}
