@font-face {
  font-family: "Merriweather";
  src: url("../assets/fonts/merriweather-normal-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("../assets/fonts/merriweather-italic-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --encre: #1a1a1a;
  --creme: #f5efe0;
  --papier: #fffaf0;
  --rouge: #b5402a;
  --bleu: #4a6572;
  --vert: #7a8f5c;
  --brun: #8b5a2b;
  --gris: #6b6258;
  --bordure: #d9c8a9;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--creme);
}

body {
  margin: 0;
  color: var(--encre);
  background: var(--creme);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.masthead {
  text-align: center;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--rouge);
  color: #fff5e6;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.3rem, 7vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.byline {
  margin: 0 0 0.35rem;
  color: var(--bleu);
  font-style: italic;
  font-size: 1rem;
}

.source {
  margin: 0;
  color: var(--gris);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero {
  margin: 2.2rem 0;
  border: 2px solid var(--encre);
  background: var(--papier);
  box-shadow: 8px 8px 0 var(--bordure);
  overflow: hidden;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--bordure);
  background: var(--papier);
  color: #4a4a4a;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.5;
}

.audio-card {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--bordure);
  border-left: 6px solid var(--rouge);
  background: var(--papier);
}

.audio-card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audio-card p {
  margin: 0 0 0.9rem;
  color: #5b5248;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.55;
}

audio {
  display: block;
  width: 100%;
  accent-color: var(--rouge);
}

.texte {
  font-size: 1.04rem;
}

.texte p {
  margin: 0 0 1.15rem;
  text-align: justify;
  hyphens: auto;
}

.dropcap::first-letter {
  float: left;
  padding: 0.06em 0.09em 0 0;
  color: var(--rouge);
  font-size: 4.1em;
  font-weight: 700;
  line-height: 0.78;
}

.dialogue {
  margin-left: 0.15rem;
  padding-left: 1.05rem;
  border-left: 2px solid var(--bordure);
  color: #332f2b;
}

.scene-separator {
  margin: 2.1rem 0;
  color: var(--rouge);
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.65em;
  text-align: center;
}

.notice {
  margin: 2.5rem 0 0;
  padding: 0.95rem 1.05rem;
  border: 1px dashed var(--rouge);
  background: #fff3d6;
  color: #5b3a1e;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
}

.notice strong {
  color: #7a2a1a;
}

.voice-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
}

.voice-table caption {
  margin-bottom: 0.6rem;
  color: var(--gris);
  font-size: 0.78rem;
  text-align: left;
}

.voice-table th,
.voice-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--bordure);
  text-align: left;
  vertical-align: top;
}

.voice-table th {
  color: var(--bleu);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-grid .audio-card {
  margin: 0;
}

.casting-role {
  margin-top: 2.8rem;
}

.casting-role h2 {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rouge);
}

.casting-role > p {
  margin: 0 0 1rem;
  color: var(--gris);
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
}

.audio-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bleu);
}

.audio-card .label-note {
  margin: 0 0 0.7rem;
  color: #5b5248;
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.45;
}

.test-ligne {
  margin: 3rem 0;
}

.test-ligne h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.test-ligne .texte {
  margin: 0 0 1rem;
  color: #4a4a4a;
  font-size: 0.92rem;
  line-height: 1.6;
}

.audio-card .mesure {
  margin: 0.7rem 0 0;
  color: var(--gris);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .compare-grid,
  .compare-grid.three {
    grid-template-columns: 1fr;
  }
}

.footer {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--bordure);
  color: var(--gris);
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.55;
  text-align: center;
}

.footer p {
  margin: 0 0 0.5rem;
}

.footer a {
  color: var(--brun);
}

a:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .page {
    padding: 1.5rem 0.9rem 3rem;
  }

  .hero {
    box-shadow: 4px 4px 0 var(--bordure);
  }

  .audio-card {
    padding: 1rem;
  }

  .texte p {
    text-align: left;
  }

  .dialogue {
    padding-left: 0.8rem;
  }
}

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