/* === DÉCOUVERTES PAGE === */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: white;
}

.dec-main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* === CARTE === */
.dec-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeSlide 0.8s ease-out;
}

.dec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* === ICÔNE === */
.dec-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.icon-blue  { background: linear-gradient(135deg, #007acc, #005fa3); color: white; }
.icon-red   { background: linear-gradient(135deg, #c0392b, #96281b); color: white; }
.icon-yellow{ background: linear-gradient(135deg, #f39c12, #d68910); color: white; }
.icon-green { background: linear-gradient(135deg, #27ae60, #1e8449); color: white; }

/* === CONTENU === */
.dec-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dec-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
}

.dec-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.dec-card-desc {
  font-size: 0.87rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.dec-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.3rem;
}

.dec-card-meta span {
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dec-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tech-tag {
  background: #f0f5fb;
  color: #005fa3;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* === BOUTON === */
.dec-card-action {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.btn-pdf-large {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #007acc;
  color: #007acc;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-pdf-large:hover {
  background: #007acc;
  color: white;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .dec-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.3rem;
  }

  .dec-card-action {
    width: 100%;
  }

  .btn-pdf-large {
    width: 100%;
    justify-content: center;
  }
}