/* OnlyPDF — système d'icônes inspiré du visuel de référence.
   Cette feuille ne modifie ni les handlers, ni les URLs, ni les workflows. */

:root {
  --icon-red: #c94b52;
  --icon-red-bg: #fff1f1;
  --icon-blue: #3f6fae;
  --icon-blue-bg: #f0f5ff;
  --icon-green: #159447;
  --icon-green-bg: #eef9f0;
  --icon-purple: #7045ad;
  --icon-purple-bg: #f5f0ff;
  --icon-orange: #c67f1c;
  --icon-orange-bg: #fff7ec;
  --icon-teal: #1b8b83;
  --icon-teal-bg: #effaf9;
  --icon-neutral: #68747d;
  --icon-neutral-bg: #f5f7f7;
}

/* Cartes de la page d'accueil : badge circulaire, tracé fin et couleur stable au survol. */
.tool-card__icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 1px solid rgba(17, 24, 39, .035);
  border-radius: 50%;
  box-shadow: none;
  font-size: 16px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.tool-card__svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card:hover .tool-card__icon,
.tool-card--coming-soon:hover .tool-card__icon {
  background: var(--icon-bg) !important;
  color: var(--icon-color) !important;
  transform: scale(1.04);
}

.tool-card__icon--red { --icon-color: var(--icon-red); --icon-bg: var(--icon-red-bg); color: var(--icon-red); background: var(--icon-red-bg); }
.tool-card__icon--blue { --icon-color: var(--icon-blue); --icon-bg: var(--icon-blue-bg); color: var(--icon-blue); background: var(--icon-blue-bg); }
.tool-card__icon--green { --icon-color: var(--icon-green); --icon-bg: var(--icon-green-bg); color: var(--icon-green); background: var(--icon-green-bg); }
.tool-card__icon--purple { --icon-color: var(--icon-purple); --icon-bg: var(--icon-purple-bg); color: var(--icon-purple); background: var(--icon-purple-bg); }
.tool-card__icon--orange,
.tool-card__icon--yellow { --icon-color: var(--icon-orange); --icon-bg: var(--icon-orange-bg); color: var(--icon-orange); background: var(--icon-orange-bg); }
.tool-card__icon--teal,
.tool-card__icon--menthe { --icon-color: var(--icon-teal); --icon-bg: var(--icon-teal-bg); color: var(--icon-teal); background: var(--icon-teal-bg); }

.tool-card--coming-soon .tool-card__icon,
.tool-card--coming-soon:hover .tool-card__icon {
  --icon-color: var(--icon-orange);
  --icon-bg: var(--icon-orange-bg);
  color: var(--icon-orange) !important;
  background: var(--icon-orange-bg) !important;
}

/* Pages d'outils : icône principale centrée, carré arrondi, couleurs propres à chaque outil
   (la couleur et le fond viennent du style inline de chaque page). */
.tool-hero {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center !important;
}

.tool-hero h1,
.tool-hero p {
  grid-column: auto;
  margin-left: auto;
  margin-right: auto;
}

.tool-icon-big,
.tool-hero .tool-icon-big {
  display: grid !important;
  place-items: center !important;
  width: 60px !important;
  height: 60px !important;
  margin: 0 auto 16px !important;
  border-radius: 18px !important;
  font-size: 26px !important;
}

.drop-zone-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px !important;
  border-radius: 16px;
  font-size: 26px !important;
}

@media (max-width: 720px) {
  .tool-icon-big,
  .tool-hero .tool-icon-big { width: 52px !important; height: 52px !important; border-radius: 15px !important; font-size: 23px !important; }
  .drop-zone-icon { width: 50px; height: 50px; font-size: 23px !important; }
}
