/* ===== Variables ===== */
.stivo-veille-wrapper {
  --stivo-primary: #1e293b;
  --stivo-primary-light: #334155;
  --stivo-primary-fg: #f1f5f9;
  --stivo-bg: #ffffff;
  --stivo-bg-alt: #f8fafc;
  --stivo-text: #0f172a;
  --stivo-text-muted: #64748b;
  --stivo-border: #e2e8f0;
  --stivo-card-bg: #ffffff;
  --stivo-radius: 1rem;
  --stivo-radius-sm: 0.5rem;
  --stivo-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --stivo-shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --stivo-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --stivo-transition: 0.3s ease;

  font-family: var(--stivo-font);
  background: var(--stivo-bg);
  color: var(--stivo-text);
  line-height: 1.6;
}

.stivo-veille-wrapper *,
.stivo-veille-wrapper *::before,
.stivo-veille-wrapper *::after {
  box-sizing: border-box;
}

.stivo-veille-wrapper a { color: inherit; text-decoration: none; }
.stivo-veille-wrapper img { max-width: 100%; display: block; }

/* ===== Utilities ===== */
.stivo-container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.stivo-text-center { text-align: center; }
.stivo-text-primary { color: var(--stivo-primary); }

/* ===== Navbar ===== */
.stivo-navbar {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--stivo-border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
}
.stivo-nav-container {
  max-width: 1152px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.stivo-nav-logo { font-size: 1.25rem; font-weight: 700; color: var(--stivo-primary); }
.stivo-nav-links { display: flex; gap: 2rem; }
.stivo-nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--stivo-text-muted);
  transition: color var(--stivo-transition);
}
.stivo-nav-links a:hover, .stivo-nav-links a.stivo-active { color: var(--stivo-text); }
.stivo-menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.stivo-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--stivo-text); transition: var(--stivo-transition); }

/* ===== Buttons ===== */
.stivo-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--stivo-font); font-weight: 600; border: none; cursor: pointer;
  border-radius: var(--stivo-radius-sm); transition: all var(--stivo-transition);
  text-decoration: none; line-height: 1;
}
.stivo-btn-primary { background: var(--stivo-primary); color: var(--stivo-primary-fg) !important; }
.stivo-btn-primary:hover { background: var(--stivo-primary-light); box-shadow: var(--stivo-shadow-lg); color: var(--stivo-primary-fg) !important; }
.stivo-btn-outline { background: var(--stivo-card-bg); color: var(--stivo-text); border: 1px solid var(--stivo-border); }
.stivo-btn-outline:hover { background: var(--stivo-bg-alt); }
.stivo-btn-sm { font-size: 0.875rem; padding: 0.5rem 1rem; }
.stivo-btn-lg { font-size: 1rem; padding: 0.75rem 1.5rem; }

/* ===== Hero ===== */
.stivo-hero {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(99,102,241,0.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(56,189,248,0.08), transparent 45%),
    linear-gradient(180deg, var(--stivo-bg) 0%, var(--stivo-bg-alt) 100%);
}
.stivo-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--stivo-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--stivo-border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.35), transparent 70%);
  opacity: 0.5; pointer-events: none;
}
.stivo-hero-content { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stivo-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(30,41,59,0.08);
  color: var(--stivo-primary); font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 1rem; border-radius: 2rem; margin-bottom: 1.5rem;
}
.stivo-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: stivo-pulse 2s infinite;
}
@keyframes stivo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.stivo-hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; max-width: 800px; }
.stivo-hero-desc { font-size: 1.125rem; color: var(--stivo-text-muted); max-width: 640px; margin-bottom: 2.5rem; }
.stivo-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===== Sections ===== */
.stivo-section { padding: 5rem 0; }
.stivo-section-alt { background: var(--stivo-bg-alt); border-top: 1px solid var(--stivo-border); }
.stivo-section-header { text-align: center; margin-bottom: 3.5rem; }
.stivo-section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.stivo-section-header p, .stivo-section-desc { color: var(--stivo-text-muted); max-width: 560px; margin: 0 auto; }

/* ===== Grid ===== */
.stivo-grid { display: grid; gap: 1.5rem; }
.stivo-grid-2 { grid-template-columns: repeat(2, 1fr); }
.stivo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stivo-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Cards ===== */
.stivo-card {
  background: var(--stivo-card-bg); border: 1px solid var(--stivo-border);
  border-radius: var(--stivo-radius); box-shadow: var(--stivo-shadow);
  transition: transform var(--stivo-transition), box-shadow var(--stivo-transition);
  overflow: hidden;
  position: relative;
}
.stivo-card:hover { transform: translateY(-4px); box-shadow: var(--stivo-shadow-lg); }

/* ===== News Cards ===== */
.stivo-news-card {
  position: relative;
}
.stivo-news-link::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.stivo-news-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #1e293b, #475569);
  display: flex; align-items: center; justify-content: center;
  color: var(--stivo-primary-fg); font-size: 2.5rem; font-weight: 700;
  position: relative; overflow: hidden;
}
.stivo-news-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 60%);
}
.stivo-news-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.stivo-news-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--stivo-text-muted); }
.stivo-news-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin: 0; }
.stivo-news-body p { font-size: 0.875rem; color: var(--stivo-text-muted); margin: 0; }
.stivo-news-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--stivo-primary);
  margin-top: 0.5rem; transition: opacity var(--stivo-transition);
}
.stivo-news-link:hover { opacity: 0.7; }

.stivo-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stivo-tag {
  font-size: 0.75rem; font-weight: 500;
  background: var(--stivo-bg-alt); color: var(--stivo-text);
  padding: 0.25rem 0.75rem; border-radius: 2rem;
  border: 1px solid var(--stivo-border);
}

/* ===== Filters ===== */
.stivo-filters {
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
  margin-bottom: 3rem;
}
.stivo-filter-btn {
  font-family: var(--stivo-font); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: #00b4ff; color: #ffffff;
  border: none; padding: 0.95rem 1.6rem;
  border-radius: 0.6rem; cursor: pointer; min-width: 170px; text-align: center;
  line-height: 1.25;
  box-shadow: 0 4px 14px rgba(0, 180, 255, 0.25);
  transition: transform var(--stivo-transition), box-shadow var(--stivo-transition), background var(--stivo-transition);
}
.stivo-filter-btn:hover { background: #009fe3; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 180, 255, 0.35); }
.stivo-filter-btn.stivo-active { background: #0094d4; box-shadow: 0 6px 18px rgba(0, 148, 212, 0.45); }

/* ===== Content Panel ===== */
.stivo-panel { animation: stivo-fadeUp 0.5s ease both; }
@keyframes stivo-fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.stivo-panel-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.stivo-panel-intro { color: var(--stivo-text-muted); max-width: 720px; margin: 0 auto 2.5rem; text-align: center; font-size: 1rem; }
.stivo-panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stivo-panel-card {
  background: var(--stivo-card-bg); border: 1px solid var(--stivo-border);
  border-radius: var(--stivo-radius); box-shadow: var(--stivo-shadow);
  padding: 1.5rem 1.6rem; transition: transform var(--stivo-transition), box-shadow var(--stivo-transition);
  display: flex; flex-direction: column; gap: 0.65rem;
}
.stivo-panel-card:hover { transform: translateY(-3px); box-shadow: var(--stivo-shadow-lg); border-color: #00b4ff; }
.stivo-panel-card-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #00b4ff, #0094d4);
  color: #fff; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,180,255,0.3);
}
.stivo-panel-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0; }
.stivo-panel-card p, .stivo-panel-card li { font-size: 0.9rem; color: var(--stivo-text-muted); line-height: 1.55; margin: 0; }
.stivo-panel-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.stivo-panel-card li { position: relative; padding-left: 1.1rem; }
.stivo-panel-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 6px; height: 6px; border-radius: 50%; background: #00b4ff;
}
.stivo-panel-card strong { color: var(--stivo-text); font-weight: 600; }
.stivo-panel-card .stivo-tag-danger { display:inline-block; font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; padding:0.2rem 0.55rem; border-radius:6px; background:#fee2e2; color:#b91c1c; }
.stivo-panel-card .stivo-tag-success { display:inline-block; font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; padding:0.2rem 0.55rem; border-radius:6px; background:#dcfce7; color:#166534; }
@media (max-width: 768px) { .stivo-panel-grid { grid-template-columns: 1fr; } }

/* ===== Trends ===== */
.stivo-trend-card { padding: 1.5rem; }
.stivo-trend-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--stivo-bg-alt); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--stivo-primary);
}
.stivo-trend-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.stivo-trend-card p { font-size: 0.875rem; color: var(--stivo-text-muted); margin: 0; }
.stivo-stat-value {
  font-size: 2rem; font-weight: 800; color: var(--stivo-primary);
  line-height: 1; margin-bottom: 0.5rem;
}
.stivo-stat-label { font-size: 0.875rem; color: var(--stivo-text-muted); }

/* ===== AI Tools ===== */
.stivo-tool-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.stivo-tool-head { display: flex; align-items: center; gap: 1rem; }
.stivo-tool-logo {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  flex-shrink: 0; box-shadow: var(--stivo-shadow);
}
.stivo-tool-card h3 { font-size: 1.125rem; font-weight: 700; margin: 0; }
.stivo-tool-cat { font-size: 0.75rem; color: var(--stivo-text-muted); margin-top: 2px; }
.stivo-tool-card p { font-size: 0.875rem; color: var(--stivo-text-muted); flex: 1; margin: 0; }

/* ===== Footer ===== */
.stivo-footer {
  border-top: 1px solid var(--stivo-border);
  padding: 2rem; text-align: center;
  font-size: 0.875rem; color: var(--stivo-text-muted);
}

/* ===== Animations ===== */
.stivo-veille-wrapper [data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stivo-veille-wrapper [data-animate].stivo-visible { opacity: 1; transform: translateY(0); }

/* Désactiver les animations (opacity 0) quand on est dans l'éditeur Elementor pour pouvoir voir le texte */
body.elementor-editor-active .stivo-veille-wrapper [data-animate] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .stivo-grid-2, .stivo-grid-3, .stivo-grid-4 { grid-template-columns: 1fr; }
  .stivo-hero h1 { font-size: 2rem; }
  .stivo-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--stivo-bg); border-bottom: 1px solid var(--stivo-border); flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; }
  .stivo-nav-links.stivo-active { display: flex; }
  .stivo-menu-toggle { display: flex; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .stivo-grid-3, .stivo-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.stivo-category-content {
  display: none;
}
.stivo-category-content.stivo-active {
  display: block;
}
