/* Fichier CSS : /asset/css/page/reality/activist.css */
/* --- Grille --- */
.activist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(275 / 16 * 1rem), 1fr));
  gap: calc(15 / 16 * 1rem);
  margin: var(--space-md) auto 0 auto;
}
/* --- Carte (Non cliquable) --- */
.activist-card {
  display: flex;
  border: calc(1 / 16 * 1rem) solid var(--color-index-guide-steps-border);
  border-radius: var(--radius-md);
  background-color: var(--source-color-white-transparent) !important;
  overflow: hidden;
  box-shadow: var(--shadow-z2);
  margin: 0 auto;
}
html[data-theme="dark"] .activist-card {
  background-color: #000000 !important;
  border: none;
}
/* --- Colonne de Gauche --- */
.img-container {
  /* 150px / 16 = 9.375rem */
  width: calc(150 / 16 * 1rem);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: calc(1 / 16 * 1rem) solid var(--color-nav-separator);
  background: var(--source-color-not-white);
  /* 12px / 16 = 0.75rem */
  padding-bottom: calc(12 / 16 * 1rem);
}
html[data-theme="dark"] .img-container {
  background: #222222;
}
/* Image 150x200 stricte */
.activist-img {
  /* 150px = 9.375rem | 200px = 12.5rem */
  width: calc(150 / 16 * 1rem);
  height: calc(200 / 16 * 1rem);
  object-fit: cover;
  display: block;
}
/* --- Le Bouton de lien (Seule partie cliquable) --- */
.platform-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: #000000;
  /* 15px = 0.9375rem */
  margin-top: calc(15 / 16 * 1rem);
  margin-left: var(--space-sm);
  margin-right: var(--space-sm);
  padding: var(--space-sm) var(--space-xs);
  background: #ffffff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-z2);
}
html[data-theme="dark"] .platform-link {
  font-weight: var(--fw-bold);
  background: #ffffff;
  color: #000000;
  box-shadow: var(--shadow-z2);
}
.platform-link:hover {
  background: #ededed;
}
html[data-theme="dark"] .platform-link:hover {
  background: #ededed;
  color: #000000;
}
/* --- L'icône SVG --- */
.platform-icon {
  width: calc(32 / 16 * 1rem) !important; /* 2rem */
  height: calc(32 / 16 * 1rem) !important;
  display: block;
  flex-shrink: 0;
}
.platform-link span {
  font-size: var(--font-size-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  line-height: 1.3;
}
/* --- Colonne de Droite --- */
.activist-info {
  /* 15px 15px 10px 15px */
  padding: calc(15 / 16 * 1rem) calc(15 / 16 * 1rem) calc(10 / 16 * 1rem) calc(15 / 16 * 1rem);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.activist-info h3 {
  margin: 0 0 calc(10 / 16 * 1rem) 0;
  font-size: 1.1rem;
  color: var(--source-color-accent-two);
}
html[data-theme="dark"] .activist-info h3 {
  color: var(--color-dark-mode-title);
  font-weight: var(--fw-normal);
}
.activist-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-body);
  color: var(--source-color-666666);
}
html[data-theme="dark"] .activist-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-body);
  color: white;
}
.activist-description p:last-child {
  margin-bottom: 0;
}
.box {
  margin-bottom: calc(5 / 16 * 1rem);
}
@media (max-width: calc(635 / 16 * 1rem)) {
  .activist-info h3 {
    font-size: 1.1rem !important;
  }
}
@media (max-width: calc(390 / 16 * 1rem)) {
  .activist-grid {
    grid-template-columns: 1fr !important;
    gap: calc(20 / 16 * 1rem) !important;
  }
  .activist-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    width: 100% !important;
    max-width: calc(350 / 16 * 1rem) !important;
    margin: 0 auto !important;
    padding: calc(15 / 16 * 1rem) calc(10 / 16 * 1rem) !important;
  }
  .img-container,
  .activist-info {
    display: contents !important;
  }
  .activist-img {
    grid-row: 1 !important;
    width: 100% !important;
    max-width: calc(200 / 16 * 1rem) !important;
    height: auto !important;
    display: block !important;
    margin-bottom: calc(15 / 16 * 1rem) !important;
  }
  .activist-info h3 {
    grid-row: 2 !important;
    margin-top: 0 !important;
    margin-bottom: calc(10 / 16 * 1rem) !important;
    font-size: calc(20 / 16 * 1rem) !important;
    text-align: center !important;
  }
  .activist-description {
    grid-row: 3 !important;
    font-size: var(--font-size-sm) !important;
    line-height: 1.5 !important;
    margin-bottom: calc(15 / 16 * 1rem) !important;
    text-align: center !important;
  }
  .platform-link {
    grid-row: auto !important;
    display: flex !important;
    width: calc(180 / 16 * 1rem) !important;
    margin: 0 auto calc(10 / 16 * 1rem) auto !important;
    padding: calc(10 / 16 * 1rem) !important;
    justify-content: center !important;
  }
  .platform-link:last-child {
    margin-bottom: 0 !important;
  }
}