/* polices du site, servies localement */
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/bitter-cyrillic-ext-400-900.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/bitter-cyrillic-400-900.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/bitter-latin-ext-400-900.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bitter'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/bitter-latin-400-900.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: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/pt-serif-cyrillic-ext-400-i.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/pt-serif-cyrillic-400-i.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/pt-serif-latin-ext-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/pt-serif-latin-400-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: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/pt-serif-cyrillic-ext-400.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/pt-serif-cyrillic-400.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/pt-serif-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/pt-serif-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: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/pt-serif-cyrillic-ext-700.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/pt-serif-cyrillic-700.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/pt-serif-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/pt-serif-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; }

:root {
  --vid-bg: #EEF0D8;
  --vid-surface: #F8F9EA;
  --vid-text: #2B1230;
  --vid-muted: #5B4561;
  --vid-accent: #6A2460;
  --vid-accent2: #7A8A2A;
  --vid-felt: #4F5C1C;
  --vid-display: "Bitter", Georgia, "Times New Roman", serif;
  --vid-body: "PT Serif", Georgia, "Times New Roman", serif;
  --vid-shadow: 8px 8px 0 var(--vid-accent);
  --vid-shadow-s: 5px 5px 0 var(--vid-accent);
}

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

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

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

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

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--vid-accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--vid-display);
  line-height: 1.15;
  margin: 0;
  color: var(--vid-text);
}

p { margin: 0 0 1.2rem; }

/* En-tête */
.vid-header {
  background: var(--vid-surface);
  border-bottom: 2px solid var(--vid-text);
}

.vid-header-in {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 2rem;
}

.vid-brand {
  font-family: var(--vid-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  color: var(--vid-text);
  text-decoration: none;
}

.vid-brand:hover { color: var(--vid-accent); text-decoration: none; }

.vid-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
}

.vid-nav a {
  font-family: var(--vid-display);
  font-size: 1rem;
  color: var(--vid-text);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

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

/* Structure générale */
.vid-wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Première page de couverture */
.vid-cover {
  padding: 2rem 0 4rem;
}

.vid-cover-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.vid-masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  border-top: 3px solid var(--vid-text);
  padding-top: 0.6rem;
  margin-bottom: 1.75rem;
  font-family: var(--vid-display);
  font-size: 0.95rem;
  color: var(--vid-muted);
}

.vid-masthead strong { color: var(--vid-text); }

.vid-title {
  font-size: clamp(2.1rem, 6.2vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

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

.vid-lede {
  font-size: 1.2rem;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.vid-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 2px solid var(--vid-text);
  max-width: 38rem;
}

.vid-strip div { display: flex; flex-direction: column-reverse; }

.vid-strip dt {
  font-family: var(--vid-display);
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--vid-accent);
}

.vid-strip dd {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: var(--vid-muted);
  line-height: 1.3;
}

.vid-cover-art {
  margin: 0 12px 12px 0;
  max-width: 26rem;
  border: 2px solid var(--vid-text);
  box-shadow: 12px 12px 0 var(--vid-accent);
  background: var(--vid-felt);
}

.vid-cover-art svg { width: 100%; height: auto; }

/* Sections éditoriales */
.vid-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 3rem 0;
  border-top: 2px solid var(--vid-text);
}

.vid-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.vid-text { max-width: 44rem; min-width: 0; }

.vid-text h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
}

.vid-text ul { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.vid-text li { margin-bottom: 0.5rem; }

/* Encadré chiffré inséré dans le texte */
.vid-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem 1.25rem;
  align-items: center;
  margin: 1.75rem 8px 2rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--vid-surface);
  border: 2px solid var(--vid-text);
  box-shadow: var(--vid-shadow-s);
}

.vid-stat-num {
  font-family: var(--vid-display);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--vid-accent);
}

.vid-stat p { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.vid-stat strong { font-family: var(--vid-display); }

/* Encadré de texte (remarque) */
.vid-note {
  margin: 1.75rem 8px 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--vid-surface);
  border-left: 6px solid var(--vid-accent2);
  box-shadow: var(--vid-shadow-s);
}

.vid-note p:last-child { margin-bottom: 0; }

/* Tableau */
.vid-table-wrap {
  overflow-x: auto;
  margin: 1.75rem 8px 2rem 0;
  border: 2px solid var(--vid-text);
  background: var(--vid-surface);
  box-shadow: var(--vid-shadow-s);
}

.vid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 28rem;
}

.vid-table caption {
  text-align: left;
  padding: 0.8rem 1rem;
  font-family: var(--vid-display);
  font-weight: 700;
  border-bottom: 2px solid var(--vid-text);
}

.vid-table th,
.vid-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--vid-muted);
  vertical-align: top;
}

.vid-table thead th {
  background: var(--vid-text);
  color: var(--vid-surface);
  font-family: var(--vid-display);
  font-weight: 700;
}

.vid-table tbody tr:last-child td { border-bottom: 0; }

.vid-table td.vid-num {
  font-family: var(--vid-display);
  font-weight: 700;
  white-space: nowrap;
}

/* Liste en séquence réelle */
.vid-steps {
  list-style: none;
  counter-reset: vid-step;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
}

.vid-steps li {
  counter-increment: vid-step;
  position: relative;
  padding: 0 0 1.4rem 3.4rem;
  margin: 0;
}

.vid-steps li::before {
  content: counter(vid-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  background: var(--vid-accent);
  color: var(--vid-surface);
  font-family: var(--vid-display);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--vid-text);
}

.vid-steps strong { font-family: var(--vid-display); }

/* Figure */
.vid-figure {
  margin: 2rem 12px 2.5rem 0;
}

.vid-figure img {
  width: 100%;
  height: auto;
  border: 2px solid var(--vid-text);
  box-shadow: var(--vid-shadow);
}

.vid-figure figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--vid-muted);
}

/* Bloc de questions-réponses */
.vid-faq {
  padding: 3rem 0 4.5rem;
  border-top: 2px solid var(--vid-text);
}

.vid-faq h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.75rem;
}

.vid-faq-list {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
  margin-right: 8px;
}

.vid-faq-item {
  background: var(--vid-surface);
  border: 2px solid var(--vid-text);
  box-shadow: var(--vid-shadow-s);
  padding: 1.1rem 1.4rem 0.4rem;
}

.vid-faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.vid-faq-item p { font-size: 1.05rem; }

/* Pied de page */
.vid-footer {
  background: var(--vid-text);
  color: var(--vid-surface);
  padding: 2.5rem 0;
  font-size: 0.98rem;
}

.vid-footer-in {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.vid-footer a { color: var(--vid-surface); }
.vid-footer a:focus-visible { outline-color: var(--vid-surface); }

.vid-footer-name {
  font-family: var(--vid-display);
  font-weight: 700;
  font-size: 1.4rem;
}

.vid-credits { font-size: 0.9rem; }

/* Illustration SVG */
.vid-f-felt { fill: var(--vid-felt); }
.vid-f-ink { fill: var(--vid-text); }
.vid-f-plum { fill: var(--vid-accent); }
.vid-f-olive { fill: var(--vid-accent2); }
.vid-f-cream { fill: var(--vid-bg); }
.vid-f-surface { fill: var(--vid-surface); }
.vid-f-none { fill: none; }
.vid-st-plum { stroke: var(--vid-accent); }
.vid-st-cream { stroke: var(--vid-bg); }
.vid-st-surface { stroke: var(--vid-surface); }
.vid-st-ink { stroke: var(--vid-text); }

/* Écrans larges */
@media (min-width: 48rem) {
  body { font-size: 1.1875rem; }
  .vid-stat { grid-template-columns: auto minmax(0, 1fr); }
  .vid-stat-num { min-width: 7.5rem; }
}

@media (min-width: 64rem) {
  .vid-cover { padding: 2.5rem 0 5.5rem; }
  .vid-cover-in {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 4rem;
    align-items: start;
  }
  .vid-cover-art { justify-self: end; width: 100%; }
  .vid-section {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    gap: 3rem;
    padding: 4rem 0;
  }
  .vid-section h2 { position: sticky; top: 1.5rem; align-self: start; }
}

@media (max-width: 30rem) {
  body { font-size: 1.05rem; }
  .vid-strip dt { font-size: 2rem; }
  .vid-nav ul { gap: 0.2rem 1.1rem; }
  .vid-steps li { padding-left: 3rem; }
}

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