/* ============================================================
   MY THOUGHTS — esthétique risographe
   Mêmes encres que Le Kiosque : bleu + rouge sur papier journal.
   ============================================================ */

:root {
  --papier: #FAF5E9;
  --papier-fonce: #F0E8D5;
  --encre: #221E33;
  --encre-douce: #5A5568;
  --bleu: #2B3FBF;
  --bleu-pale: #DDE1F6;
  --rouge: #E0432A;
  --rouge-pale: #F9DFD9;
  --trait: #C9BFA6;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --texte: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--texte);
  background: var(--papier);
  color: var(--encre);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Grain de papier — la texture risographe */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
}

/* ============ MANCHETTE ============ */

.manchette {
  border-bottom: 3px solid var(--encre);
  padding-bottom: 1.1rem;
  margin-bottom: 2.25rem;
}

.manchette__titre {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.manchette__note {
  margin-top: 0.85rem;
  max-width: 46ch;
  font-size: 1.02rem;
  color: var(--encre-douce);
}

/* ============ ARTICLES ============ */

.articles {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.carte {
  background: var(--papier-fonce);
  border: 2px solid var(--encre);
  box-shadow: 5px 5px 0 var(--bleu);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.carte:hover {
  box-shadow: 5px 5px 0 var(--rouge);
  transform: translate(-1px, -1px);
}

.carte__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 0.7rem;
}

.carte__titre {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.carte__extrait {
  color: var(--encre-douce);
  margin-bottom: 1.3rem;
  max-width: 56ch;
}

/* ============ BOUTON ============ */

.btn-lire {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--papier);
  background: var(--encre);
  border: 2px solid var(--encre);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.btn-lire:hover {
  background: var(--rouge);
  border-color: var(--rouge);
}

.btn-lire[aria-disabled="true"] {
  background: transparent;
  color: var(--encre-douce);
  border-color: var(--trait);
  cursor: default;
  pointer-events: none;
}

/* ============ ÉCRANS ÉTROITS ============ */

@media (max-width: 480px) {
  .carte { box-shadow: 4px 4px 0 var(--bleu); }
  .carte:hover { box-shadow: 4px 4px 0 var(--rouge); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
  .carte:hover { transform: none; }
}