/* =====================================================
   TALENTYAH — ressources.css
   Styles specifiques a la page Ressources (Blog)
===================================================== */

/* HERO FEATURED ARTICLE */
.hero-ressources {
  min-height: 85vh;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  padding-top: 72px; background: var(--dark);
}
.hero-ressources .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-ressources .hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12,26,20,0.95) 0%,
    rgba(12,26,20,0.75) 50%,
    rgba(12,26,20,0.3) 100%
  );
}
.hero-ressources .container { position: relative; z-index: 2; padding-bottom: 80px; }

.hero-article-tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--gold); color: var(--dark);
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 600; line-height: 1.1; color: var(--white);
  max-width: 700px; margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-article-excerpt {
  font-size: 17px; color: rgba(255,255,255,0.65);
  line-height: 1.75; max-width: 560px; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-article-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.8s ease 0.7s forwards;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.hero-article-meta .meta-sep {
  width: 3px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 50%;
}

.hero-article-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn-article-read {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  background: var(--gold); color: var(--dark);
  text-decoration: none; font-size: 14px; font-weight: 700;
  transition: var(--transition);
}
.btn-article-read:hover { background: var(--gold-light); transform: translateY(-2px); }

/* FILTRES */
.ressources-filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 72px; z-index: 100;
}
.filters-inner {
  display: flex; align-items: center; gap: 8px;
  padding: 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filters-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 24px;
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--muted); cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}
.filter-btn:hover { color: var(--emerald); }
.filter-btn.active { color: var(--emerald); border-bottom-color: var(--gold); font-weight: 600; }

.filter-count {
  font-size: 11px; padding: 2px 7px;
  background: var(--bg-off); border-radius: 999px;
  color: var(--muted); font-weight: 700;
}
.filter-btn.active .filter-count { background: var(--gold-pale); color: var(--emerald); }

/* GRILLE ARTICLES */
.ressources-content { padding: 64px 0 96px; background: var(--bg-off); }

.articles-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 40px;
}
.articles-count {
  font-size: 14px; color: var(--muted);
}
.articles-count span { font-weight: 700; color: var(--dark); }

.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
}

.article-card {
  background: var(--white);
  display: flex; flex-direction: column;
  transition: var(--transition); position: relative; overflow: hidden;
  cursor: pointer;
}
.article-card:hover { background: var(--bg-off); }

.article-card-thumb {
  aspect-ratio: 16/9;
  background: var(--dark); overflow: hidden; position: relative;
}
.article-card-thumb-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.article-card-thumb-placeholder svg { width: 40px; height: 40px; stroke: rgba(255,255,255,0.1); fill: none; }

.article-card-body { padding: 28px 32px; display: flex; flex-direction: column; flex-grow: 1; }

.article-card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.article-card-tag::before {
  content: ''; width: 16px; height: 2px; background: var(--gold);
}

.article-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--dark);
  line-height: 1.3; margin-bottom: 12px;
  transition: var(--transition);
}
.article-card:hover .article-card-title { color: var(--emerald); }

.article-card-desc {
  font-size: 13px; color: var(--muted); line-height: 1.65;
  margin-bottom: 24px; flex-grow: 1;
}

.article-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 18px; margin-top: auto;
  font-size: 12px; color: var(--muted);
}
.article-card-date { display: flex; align-items: center; gap: 6px; }
.article-card-link {
  font-weight: 700; color: var(--emerald); text-decoration: none;
  font-size: 12px; display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.article-card-link:hover { color: var(--gold); gap: 8px; }

/* PLACEHOLDER COULEURS par categorie */
.thumb-recrutement  { background: linear-gradient(135deg, #0C1A14 0%, #1A5C45 100%); }
.thumb-carriere     { background: linear-gradient(135deg, #1A1408 0%, #4A3200 100%); }
.thumb-marche       { background: linear-gradient(135deg, #0A1020 0%, #1A3050 100%); }
.thumb-diaspora     { background: linear-gradient(135deg, #140C1A 0%, #3D1A5C 100%); }
.thumb-rh           { background: linear-gradient(135deg, #0A1A0A 0%, #1A5C1A 100%); }
.thumb-interview    { background: linear-gradient(135deg, #1A1010 0%, #5C1A1A 100%); }

/* NEWSLETTER */
.ressources-newsletter {
  padding: 80px 0; background: var(--dark);
  position: relative; overflow: hidden;
}
.ressources-newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(200,168,75,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.ressources-newsletter .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.newsletter-text .section-label-text { color: var(--gold); }
.newsletter-text .section-label-line  { background: var(--gold); }
.newsletter-text .section-title       { color: var(--white); }
.newsletter-text p { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.75; }

.newsletter-form {
  display: flex; flex-direction: column; gap: 12px;
}
.newsletter-input-wrap { display: flex; gap: 0; }
.newsletter-input {
  flex: 1; padding: 15px 20px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-right: none;
  color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; transition: var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }

.newsletter-submit {
  padding: 15px 24px;
  background: var(--gold); color: var(--dark);
  border: none; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.newsletter-submit:hover { background: var(--gold-light); }
.newsletter-note { font-size: 12px; color: rgba(255,255,255,0.3); }

/* VIDEO / INTERVIEWS */
.ressources-videos { padding: 96px 0; background: var(--white); }
.videos-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 48px;
}

.videos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--border);
}

.video-card {
  background: var(--bg-off);
  display: flex; flex-direction: column; transition: var(--transition);
}
.video-card:hover { background: var(--white); }

.video-thumb {
  aspect-ratio: 16/9; background: var(--dark);
  position: relative; overflow: hidden; cursor: pointer;
}
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-play-icon {
  width: 56px; height: 56px;
  background: rgba(200,168,75,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.video-play-icon svg { width: 22px; height: 22px; fill: var(--dark); margin-left: 4px; }
.video-thumb:hover .video-play-icon { background: var(--gold); transform: scale(1.08); }

.video-body { padding: 24px 28px; }
.video-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.video-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600; color: var(--dark); line-height: 1.3;
}
.video-guest { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .ressources-newsletter .container { grid-template-columns: 1fr; gap: 40px; }
  .articles-grid  { grid-template-columns: 1fr 1fr; }
  .videos-grid    { grid-template-columns: 1fr 1fr; }
  .videos-header  { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 768px) {
  .hero-ressources            { min-height: 70vh; }
  .articles-grid              { grid-template-columns: 1fr; }
  .videos-grid                { grid-template-columns: 1fr; }
  .filters-inner              { padding: 0; }
  .ressources-content         { padding: 48px 0 72px; }
  .ressources-videos          { padding: 64px 0; }
  .newsletter-input-wrap      { flex-direction: column; }
  .newsletter-input           { border-right: 1.5px solid rgba(255,255,255,0.12); }
}