/* Wrapper global de la page illustrations */
.illustrations-page {
  background-color: #f5f7fb;
  padding: 2rem 1rem 3rem;
}

@media (min-width: 992px) {
  .illustrations-page {
    padding: 3rem 2rem 4rem;
  }
}

/* Hero / introduction */
.illustrations-page .illustrations-hero {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.illustrations-page .illustrations-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.illustrations-page .intro-text {
  margin: 0;
  margin-top: 0.75rem;
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* Section principale des icônes */
.illustrations-page .icons-section {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

/* Header de section */
.illustrations-page .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.illustrations-page .section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff5655;
}

.illustrations-page .section-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Badge de section */
.illustrations-page .section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.illustrations-page .badge-icons {
  background: rgba(52, 211, 153, 0.12);
  color: #059669;
}

/* Texte de note / meta sous la table */
.illustrations-page .section-meta {
  margin-top: 0.8rem;
  font-size: 0.83rem;
  color: #6b7280;
}

/* Table d'icônes */
.illustrations-page .icons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.illustrations-page .icons-table thead tr {
  background: linear-gradient(90deg, #f0fdf4, #f9fafb);
}

.illustrations-page .icons-table thead th {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.75rem 0.75rem;
  font-weight: 600;
  color: #374151;
}

.illustrations-page .icons-table tbody tr {
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.illustrations-page .icons-table tbody tr:last-child {
  border-bottom: none;
}

.illustrations-page .icons-table tbody td {
  padding: 0.6rem 0.75rem;
  vertical-align: middle;
}

/* Nom de la catégorie d'icône */
.illustrations-page .icon-name {
  font-weight: 600;
  color: #111827;
}

/* Bloc contenant l'icône + bouton download */
.illustrations-page .icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* Aperçu de l'icône */
.illustrations-page .icon-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.illustrations-page .icon-preview img {
  max-width: 40px;
  max-height: 40px;
  display: block;
}

/* Icône de téléchargement */
.illustrations-page .download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background-color: rgba(16, 185, 129, 0.06);
  color: #059669;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.illustrations-page .download-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.illustrations-page .download-icon:hover {
  background-color: rgba(16, 185, 129, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 767.98px) {
  .illustrations-page .illustrations-hero {
    padding: 1.5rem 1.25rem;
  }

  .illustrations-page .illustrations-title {
    font-size: 1.4rem;
  }

  .illustrations-page .intro-text {
    font-size: 0.92rem;
  }

  .illustrations-page .icons-section {
    padding: 1.4rem 1.1rem;
  }

  .illustrations-page .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .illustrations-page .section-badge {
    margin-top: 0.35rem;
  }

  /* Table -> cartes sur mobile */
  .illustrations-page .icons-table thead {
    display: none;
  }

  .illustrations-page .icons-table tbody tr {
    display: block;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 0.75rem 0.8rem;
    margin-bottom: 0.7rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  }

  .illustrations-page .icons-table tbody td {
    display: block;
    border: none;
    padding: 0.25rem 0;
    text-align: left;
  }

  .illustrations-page .icons-table tbody td + td {
    margin-top: 0.25rem;
  }

  .illustrations-page .icon-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .illustrations-page .download-icon {
    width: 2.3rem;
    height: 2.3rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .illustrations-page .icons-table {
    font-size: 0.9rem;
  }
}
