/* ===== GUIDES LIST PAGE ===== */

/* HERO (reuses .nb-hero from actualites) */
.gd-hero__kicker { color: #2f6df4; }

/* TOOLBAR */
.gd-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(0,4,58,.08);
  margin-bottom: 32px;
}
.gd-filter-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.gd-toolbar-sep {
  width: 1px;
  height: 16px;
  background: rgba(0,4,58,.1);
  flex-shrink: 0;
  margin: 0 5px;
}
.gd-count {
  font-size: .78rem;
  color: rgba(0,4,58,.38);
  margin: 0 0 0 auto;
}
.gd-count strong { color: #00043A; }



/* GRID */
.gd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .gd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .gd-grid { grid-template-columns: 1fr; } }

/* CARD */
.gd-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid rgba(0,4,58,.07);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.gd-card:hover {
  box-shadow: 0 8px 32px rgba(0,4,58,.10);
  transform: translateY(-3px);
}
.gd-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(0,4,58,.04);
}
.gd-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.gd-card:hover .gd-card__img img { transform: scale(1.04); }
.gd-card__ph {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47,109,244,.08), rgba(47,109,244,.18));
  font-size: 2.2rem;
  color: #2f6df4;
}
.gd-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  gap: 10px;
}
.gd-card__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.gd-badge--ia            { background: rgba(47,109,244,.1);  color: #2f6df4; }
.gd-badge--data          { background: rgba(139,92,246,.1);  color: #7c3aed; }
.gd-badge--automatisation{ background: rgba(245,158,11,.1);  color: #d97706; }
.gd-badge--level         { background: rgba(0,4,58,.06);     color: rgba(0,4,58,.55); }
.gd-badge--dur           { background: rgba(0,4,58,.04);     color: rgba(0,4,58,.45); }
.gd-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #00043A;
  line-height: 1.28;
  letter-spacing: -.02em;
}
.gd-card__desc {
  margin: 0;
  font-size: .84rem;
  color: rgba(0,4,58,.52);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gd-card__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.gd-card__btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,4,58,.06);
  display: grid;
  place-items: center;
  font-size: .82rem;
  color: #00043A;
  transition: background .15s;
}
.gd-card:hover .gd-card__btn { background: #00043A; color: #fff; }

/* SKELETON (reuses nb-sk) */

/* RESPONSIVE */
@media (max-width: 575px) {
  .gd-toolbar { padding-bottom: 16px; margin-bottom: 24px; }
  .gd-count { display: none; }
}
