/* =============================================================================
   pages/ressources.css · Page Ressources (notes pratiques).
   ========================================================================== */

.notes-list {
  padding: var(--section-y) 0 var(--section-y-sm);
  display: grid;
  gap: 16px;
}

.note {
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 24px clamp(28px, 4vw, 52px);
  border: 1px solid rgba(117, 164, 236, 0.19);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 95% 0%, rgba(23, 104, 255, 0.12), transparent 22rem),
    var(--surface);
}

/* Une note sur trois passe en version claire, pour rythmer la page. */
.note--paper {
  --ink: var(--paper-ink);
  --ink-strong: #16324d;
  --ink-muted: var(--paper-ink-subtle);
  --ink-subtle: var(--paper-ink-muted);
  --ink-faint: #5a738d;
  --line: var(--line-paper);
  --accent: var(--paper-accent);
  color: var(--paper-ink);
  border-color: var(--line-paper);
  background:
    radial-gradient(circle at 95% 0%, rgba(32, 213, 223, 0.17), transparent 23rem),
    linear-gradient(145deg, #f9fcff, #e4f2ff);
}

.note--paper h2 { color: var(--paper-ink); font-weight: 610; }

.note__head { display: flex; flex-direction: column; gap: 24px; }
.note__num { color: var(--accent); font-family: var(--font-mono); font-size: 24px; }
.note__meta { display: flex; flex-direction: column; gap: 7px; }

.note__meta small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: var(--tracking-display); line-height: 1.04; }
.note > p { max-width: 58ch; color: var(--ink-muted); font-size: clamp(1rem, 1.15vw, 1.0625rem); line-height: 1.75; }

.note__points {
  grid-column: 2 / -1;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
}

.note__points li { position: relative; padding-left: 22px; color: var(--ink-muted); font-size: 14px; line-height: 1.6; }
.note__points li::before { position: absolute; left: 0; color: var(--accent); content: "\2197"; }

/* La carte entière mène à l'article : le lien de fin est « étiré » sur toute la
   surface. Le titre reste un vrai lien · pour les lecteurs d'écran comme pour
   l'ouverture dans un nouvel onglet. */
.note { position: relative; }
.note h2 a { color: inherit; }
.note h2 a:hover { color: var(--accent); }

.note__cta {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: 4px;
}

.note__cta::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
}

/* Sous 1080 px, l'en-tête passe sur une ligne : le titre ne se retrouve plus
   isolé au-dessus d'un vide laissé par la colonne des métadonnées. */
@media (max-width: 1080px) {
  .note { grid-template-columns: 1fr; }
  .note__head { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .note__meta { flex-direction: row; gap: 16px; }
  .note > p,
  .note__points,
  .note__cta { grid-column: 1; }
}

@media (max-width: 820px) {
  .note__points { grid-template-columns: 1fr; }
}

/* --- Encart « recevoir les notes » ---------------------------------------------------- */

.newsletter {
  position: relative;
  padding: clamp(32px, 4.5vw, 58px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  border: 1px solid rgba(80, 151, 245, 0.23);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0a2544, #07152b);
}

.newsletter > img { position: absolute; right: 24%; bottom: -72%; width: 420px; opacity: 0.06; }
.newsletter > div,
.newsletter > a { position: relative; z-index: 2; }
.newsletter h2 { max-width: 24ch; font-size: var(--fs-h2); }
.newsletter p { max-width: 58ch; margin-top: 18px; color: var(--ink-muted); font-size: var(--fs-body); line-height: 1.7; }

@media (max-width: 820px) {
  .newsletter { grid-template-columns: 1fr; }
  .newsletter .btn { justify-self: start; }
}
