/* === pro.css — effets pro partagés (chargeable sur toutes les pages) === */


/* 2. Trust-pills: micro-icon + hover */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, transform 0.2s;
}
.trust-pill .trust-ico {
  color: #16a34a;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.trust-pill:hover { color: #15803d; transform: translateY(-1px); }
.trust-pill:hover .trust-ico { transform: scale(1.2) rotate(-8deg); }

/* 3. btn-primary: arrow slide on hover + loader */
.btn-primary .btn-arrow { transition: transform 0.25s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-primary .btn-loader { display: none; animation: pro-btn-spin 0.8s linear infinite; }
.btn-primary.is-loading .btn-label { opacity: 0.6; }
.btn-primary.is-loading .btn-arrow { display: none; }
.btn-primary.is-loading .btn-loader { display: inline-block; }
@keyframes pro-btn-spin { to { transform: rotate(360deg); } }

/* 4. Stats grid halo */
.stats-grid { position: relative; }
.stats-grid::before {
  content: "";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(34,197,94,0.05) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.stats-grid > * { position: relative; z-index: 1; }
.stats-grid .stat-cell,
.stats-grid > div { transition: transform 0.3s ease; }
.stats-grid .stat-cell:hover,
.stats-grid > div:hover { transform: translateY(-2px); }

/* 5. QC flag subtle pulse */
.qc-flag {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0,51,160,0.2));
  animation: pro-qc-pulse 4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pro-qc-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* 6. FAQ counter */
.faq-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px; height: 24px;
  padding: 0 8px; margin-left: 10px;
  font-size: 0.7rem; font-weight: 700;
  color: #1e40af;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 12px;
  vertical-align: middle;
  position: relative; top: -2px;
}

/* 7. Footer + nav links animated underline */
.footer-links a { position: relative; display: inline-block; padding-bottom: 2px; }
.footer-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.footer-links a:hover::after { width: 100%; }
.nav-links a { position: relative; padding-bottom: 2px; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: #1e40af;
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* 8. Card hover lift (generic) */
.card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,64,175,0.10); border-color: rgba(59,130,246,0.4); }

/* 9. Form focus ring */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* 10. FAQ chevron rotation on open */
.faq-question .faq-question-icon { display: inline-block; transition: transform 0.3s ease, color 0.3s ease; }
.faq-question[aria-expanded="true"] .faq-question-icon { transform: rotate(45deg); color: #3b82f6; }
.faq-question { transition: background 0.2s, border-color 0.2s; }
.faq-question:hover { border-color: rgba(59,130,246,0.3); }
.faq-question[aria-expanded="true"] {
  background: linear-gradient(90deg, rgba(59,130,246,0.04) 0%, rgba(59,130,246,0.08) 100%);
  border-color: rgba(59,130,246,0.3);
}

@media (prefers-reduced-motion: reduce) {
  .section-title::after, .trust-pill .trust-ico, .btn-primary .btn-arrow,
  .btn-primary .btn-loader, .qc-flag, .nav-links a::after, .footer-links a::after,
  .card { animation: none !important; transition: none !important; }
}

/* === pro.css v2: 4 more subtle effects (cross-page) === */

/* 11. Image hover: subtle grayscale -> color + zoom */
img { transition: filter 0.4s ease, transform 0.4s ease; }
.card img,
.article-card img,
.blog-card img,
[class*="card"] img {
  filter: grayscale(0.2);
}
.card:hover img,
.article-card:hover img,
.blog-card:hover img,
[class*="card"]:hover img {
  filter: grayscale(0);
  transform: scale(1.03);
}

/* 12. Table hover: subtle row highlight */
table tbody tr {
  transition: background 0.15s ease;
}
table tbody tr:hover {
  background: rgba(59,130,246,0.04);
}

/* 13. Blockquote: subtle left border + italic */
blockquote {
  border-left: 3px solid #1e40af;
  padding-left: 16px;
  font-style: italic;
  color: #475569;
  margin: 16px 0;
}

/* 14. Tag/badge pill: subtle pulse on .tag-pulse class */
.tag-pulse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}
.tag-pulse::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pro-tag-pulse 2s ease-in-out infinite;
}
@keyframes pro-tag-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

/* 15. Selection color */
::selection {
  background: rgba(59,130,246,0.25);
  color: #0b2545;
}

@media (prefers-reduced-motion: reduce) {
  img, .card img, .article-card img, .blog-card img,
  [class*="card"] img, .tag-pulse::before
  { animation: none !important; transition: none !important; }
}

