/* ── RESSOURCES — variables locales ──────────────────────── */
:root {
  --rlf-night-2:    #162035;
  --rlf-coral-lt:   #F07050;
  --rlf-cream-2:    #EDE8DF;
  --rlf-on-dark:    rgba(255,255,255,0.88);
  --rlf-muted-dark: rgba(255,255,255,0.50);
  --rlf-on-light:   #1A1F2E;
  --rlf-muted-light:#6B7280;
  --rlf-r-sm: 6px; --rlf-r-md: 12px; --rlf-r-lg: 20px; --rlf-r-xl: 28px;
  --rlf-max: 1100px;
}

/* ── HERO ────────────────────────────────────────────────── */
.rlf-hero {
  background: var(--night);
  padding: 128px 56px 80px;
  position: relative; overflow: hidden;
}
.rlf-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 75% 40%, rgba(224,90,58,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 5% 85%, rgba(30,45,71,0.6) 0%, transparent 60%);
}
.rlf-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
}
.rlf-hero-inner {
  max-width: var(--rlf-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: end;
  position: relative; z-index: 1;
}
.rlf-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,90,58,0.13); border: 0.5px solid rgba(224,90,58,0.3);
  color: var(--coral); border-radius: 40px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; margin-bottom: 28px;
  animation: rlfFadeUp 0.5s 0.1s ease both;
}
.rlf-hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.rlf-h1 { font-family: var(--serif); font-size: clamp(46px, 5.5vw, 72px); font-weight: 500; line-height: 1.08; color: white; letter-spacing: -0.01em; margin-bottom: 24px; animation: rlfFadeUp 0.5s 0.22s ease both; }
.rlf-h1 em { font-style: italic; color: var(--coral); }
.rlf-hero-lead { font-size: 16px; font-weight: 300; color: var(--rlf-muted-dark); line-height: 1.75; max-width: 480px; margin-bottom: 36px; animation: rlfFadeUp 0.5s 0.34s ease both; }
.rlf-hero-citation {
  background: var(--rlf-night-2); border-radius: 0 var(--rlf-r-lg) var(--rlf-r-lg) 0;
  padding: 28px 32px; border-left: 3px solid rgba(224,90,58,0.35);
  animation: rlfFadeUp 0.6s 0.44s ease both;
}
.rlf-hero-citation blockquote { font-family: var(--serif); font-size: 18px; font-style: italic; font-weight: 400; color: var(--rlf-on-dark); line-height: 1.6; margin-bottom: 10px; }
.rlf-hero-citation cite { font-size: 12px; font-weight: 300; color: var(--rlf-muted-dark); font-style: normal; }
.rlf-hero-right { animation: rlfFadeUp 0.6s 0.3s ease both; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.06); border-radius: var(--rlf-r-lg); overflow: hidden; margin-bottom: 16px; }
.hstat { background: var(--rlf-night-2); padding: 20px 22px; }
.hstat-num { font-family: var(--serif); font-size: 40px; font-weight: 500; color: white; line-height: 1; margin-bottom: 4px; }
.hstat-num span { color: var(--coral); }
.hstat-label { font-size: 12px; font-weight: 300; color: var(--rlf-muted-dark); line-height: 1.3; }
.hero-note { font-size: 12.5px; font-weight: 300; color: var(--rlf-muted-dark); line-height: 1.6; font-style: italic; padding: 0 4px; }

/* ── FILTRES ─────────────────────────────────────────────── */
.rlf-filtres { background: var(--cream); padding: 48px 56px 0; position: sticky; top: 64px; z-index: 50; border-bottom: 0.5px solid rgba(26,31,46,0.08); }
.rlf-filtres-inner { max-width: var(--rlf-max); margin: 0 auto; }
.rlf-filtres-label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rlf-muted-light); margin-bottom: 14px; }
.rlf-filtres-pills { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.rlf-filtres-pills::-webkit-scrollbar { display: none; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; border: 0.5px solid rgba(26,31,46,0.12);
  border-radius: 40px; padding: 8px 16px;
  font-size: 13px; font-weight: 300; color: var(--rlf-muted-light);
  cursor: pointer; transition: all 0.15s; white-space: nowrap; user-select: none;
}
.filter-pill:hover { border-color: rgba(224,90,58,0.3); color: var(--rlf-on-light); }
.filter-pill.active { background: var(--night); border-color: var(--night); color: white; font-weight: 400; }
.filter-pill-count {
  background: rgba(224,90,58,0.15); color: var(--coral);
  border-radius: 40px; padding: 1px 7px; font-size: 11px; font-weight: 500;
}
.filter-pill.active .filter-pill-count { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }

/* ── CORPS ───────────────────────────────────────────────── */
.rlf-corps { background: var(--cream); padding: 64px 56px 96px; }
.rlf-corps-inner { max-width: var(--rlf-max); margin: 0 auto; }

.theme-section { margin-bottom: 72px; }
.theme-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 0.5px solid rgba(26,31,46,0.09); }
.theme-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--coral); white-space: nowrap; }
.theme-title { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); font-weight: 500; color: var(--rlf-on-light); line-height: 1.15; }
.theme-title em { font-style: italic; color: var(--coral); }
.theme-desc { font-size: 14px; font-weight: 300; color: var(--rlf-muted-light); line-height: 1.65; margin-top: 8px; max-width: 640px; }

/* Grille */
.ressources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Carte */
.ress-card {
  background: white; border-radius: var(--rlf-r-lg); overflow: hidden;
  border: 0.5px solid rgba(26,31,46,0.08);
  display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.ress-card:hover { transform: translateY(-4px); border-color: rgba(224,90,58,0.2); box-shadow: 0 12px 40px rgba(0,0,0,0.09); }
.ress-type {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; background: var(--rlf-cream-2);
  border-bottom: 0.5px solid rgba(26,31,46,0.07);
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rlf-muted-light);
}
.ress-type-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.ress-type--film { color: #7C3AED; }
.ress-type--film .ress-type-dot { background: #7C3AED; }
.ress-type--poesie { color: #0369A1; }
.ress-type--poesie .ress-type-dot { background: #0369A1; }
.ress-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ress-title { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--rlf-on-light); line-height: 1.2; }
.ress-author { font-size: 12px; font-weight: 300; color: var(--rlf-muted-light); }
.ress-voix {
  font-size: 13.5px; font-weight: 300; color: var(--rlf-on-light);
  line-height: 1.65; font-style: italic;
  border-left: 2px solid rgba(224,90,58,0.3); padding-left: 12px; flex: 1;
}
.ress-voix::before { content: '\201C'; color: var(--coral); font-family: var(--serif); font-size: 18px; font-style: normal; line-height: 0; vertical-align: -4px; margin-right: 2px; }
.ress-voix::after  { content: '\201D'; color: var(--coral); font-family: var(--serif); font-size: 18px; font-style: normal; line-height: 0; vertical-align: -4px; margin-left: 2px; }
.ress-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-top: 0.5px solid rgba(26,31,46,0.07); background: var(--cream); }
.ress-stars { display: flex; gap: 2px; }
.ress-star { width: 10px; height: 10px; background: var(--coral); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ress-star--empty { background: rgba(26,31,46,0.15); }
.ress-note-label { font-size: 11px; font-weight: 300; color: var(--rlf-muted-light); }

/* Carte coup de cœur */
.ress-card--featured { background: var(--night); border-color: rgba(224,90,58,0.25); }
.ress-card--featured .ress-type { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.07); color: var(--rlf-muted-dark); }
.ress-card--featured .ress-title { color: white; }
.ress-card--featured .ress-author { color: var(--rlf-muted-dark); }
.ress-card--featured .ress-voix { color: var(--rlf-on-dark); border-color: rgba(224,90,58,0.35); }
.ress-card--featured .ress-footer { background: var(--rlf-night-2); border-color: rgba(255,255,255,0.07); }
.ress-card--featured .ress-note-label { color: var(--rlf-muted-dark); }
.ress-card--featured .ress-star--empty { background: rgba(255,255,255,0.1); }
.featured-badge {
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--coral); background: rgba(224,90,58,0.12); border: 0.5px solid rgba(224,90,58,0.25);
  border-radius: 40px; padding: 2px 10px; margin-left: auto;
}

/* Carte citation large */
.citation-card {
  background: var(--rlf-night-2); border-radius: var(--rlf-r-lg); padding: 32px 36px;
  border: 0.5px solid rgba(255,255,255,0.07); margin-top: 16px;
  grid-column: span 3; display: flex; align-items: center; gap: 32px;
}
.citation-card blockquote { font-family: var(--serif); font-size: 19px; font-style: italic; font-weight: 400; color: var(--rlf-on-dark); line-height: 1.6; flex: 1; }
.citation-card cite { font-size: 12.5px; font-weight: 300; color: var(--rlf-muted-dark); font-style: normal; white-space: nowrap; }

/* État vide */
.empty-state { display: none; text-align: center; padding: 64px 24px; }
.empty-state.visible { display: block; }
.empty-title { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--rlf-on-light); margin-bottom: 8px; }
.empty-desc { font-size: 14px; font-weight: 300; color: var(--rlf-muted-light); }

/* ── CTA BAS ─────────────────────────────────────────────── */
.rlf-cta-bas { background: var(--night); padding: 64px 56px; text-align: center; }
.rlf-cta-inner { max-width: 640px; margin: 0 auto; }
.rlf-cta-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rlf-muted-dark); margin-bottom: 16px; }
.rlf-cta-title { font-family: var(--serif); font-size: clamp(28px, 3.5vw, 40px); font-weight: 500; color: white; line-height: 1.15; margin-bottom: 14px; }
.rlf-cta-title em { font-style: italic; color: var(--coral); }
.rlf-cta-lead { font-size: 14px; font-weight: 300; color: var(--rlf-muted-dark); line-height: 1.7; margin-bottom: 28px; }
.rlf-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rlf-btn-coral { display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: white; padding: 13px 24px; border-radius: var(--rlf-r-sm); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.rlf-btn-coral:hover { background: var(--rlf-coral-lt); transform: translateY(-1px); }
.rlf-btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--rlf-muted-dark); padding: 13px 24px; border-radius: var(--rlf-r-sm); border: 0.5px solid rgba(255,255,255,0.15); font-size: 13.5px; font-weight: 300; text-decoration: none; transition: all 0.2s; }
.rlf-btn-ghost:hover { color: white; border-color: rgba(255,255,255,0.35); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes rlfFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rlf-hero-inner { grid-template-columns: 1fr; }
  .ressources-grid { grid-template-columns: repeat(2, 1fr); }
  .citation-card { grid-column: span 2; }
  .rlf-hero, .rlf-filtres, .rlf-corps, .rlf-cta-bas { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 680px) {
  .ressources-grid { grid-template-columns: 1fr; }
  .citation-card { grid-column: span 1; flex-direction: column; gap: 16px; }
  .rlf-hero, .rlf-corps, .rlf-cta-bas { padding-left: 24px; padding-right: 24px; }
  .rlf-filtres { padding-left: 24px; padding-right: 24px; }
}
