
/*
Theme Name: Veilleuse IA
Theme URI: https://veilleuse-ia.tech
Description: Thème personnalisé Veilleuse IA - Blog de veille IA automatisé
Author: Virginie Mazoyer
Template: astra
Version: 1.0.0
Text Domain: veilleuse-ia
*/
:root {
  --violet: #7C3AED;
  --violet-light: #A78BFA;
  --violet-dark: #4C1D95;
  --dark: #0F0B1A;
  --dark-2: #1A1429;
  --light: #F8F7FF;
  --text: #1A1429;
  --text-muted: #6B7280;
  --white: #ffffff;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body { font-family: var(--font-body); background: var(--light); color: var(--text); }

/* HEADER */
.site-header { background: var(--dark) !important; border-bottom: 1px solid rgba(124,58,237,0.3) !important; }
.site-title a { font-family: var(--font-display) !important; font-weight: 800 !important; color: white !important; }
.main-navigation a { color: rgba(255,255,255,0.7) !important; }
.main-navigation a:hover { color: #A78BFA !important; }

/* HERO */
.hero { background: var(--dark); padding: 5rem 2rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4); color: #A78BFA; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: white; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: #A78BFA; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 560px; line-height: 1.7; font-weight: 300; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* BOUTONS */
.btn-primary { background: #7C3AED; color: white; padding: 0.8rem 1.8rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem; text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-primary:hover { background: #6D28D9; transform: translateY(-1px); color: white; }
.btn-ghost { color: rgba(255,255,255,0.7); padding: 0.8rem 1.8rem; border-radius: 8px; font-size: 0.95rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.15); display: inline-block; transition: all 0.2s; }
.btn-ghost:hover { border-color: #A78BFA; color: #A78BFA; }

/* STATS */
.stats-bar { background: #1A1429; border-top: 1px solid rgba(124,58,237,0.2); border-bottom: 1px solid rgba(124,58,237,0.2); padding: 1.2rem 2rem; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 3rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 0.6rem; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #A78BFA; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.stat-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.1); }

/* ARTICLES */
.articles-wrapper { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.section-title span { color: #7C3AED; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* CARDS */
.article-card { background: white; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,0.07); transition: all 0.25s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.2); }
.card-image { aspect-ratio: 16/9; background: linear-gradient(135deg, #1A1429 0%, #4C1D95 100%); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }
.card-image-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(124,58,237,0.3) 0%, transparent 50%); }
.card-image-icon { font-size: 2.5rem; opacity: 0.5; position: relative; z-index: 1; }
.card-category { position: absolute; top: 10px; left: 10px; background: #7C3AED; color: white; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; z-index: 2; }
.card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.card-date, .card-read { font-size: 0.78rem; color: #6B7280; }
.card-dot { width: 3px; height: 3px; background: #6B7280; border-radius: 50%; }
.card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.card-title a { color: #1A1429; text-decoration: none; }
.card-title a:hover { color: #7C3AED; }
.card-excerpt { font-size: 0.875rem; color: #6B7280; line-height: 1.6; font-weight: 300; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid rgba(0,0,0,0.06); }
.card-author { display: flex; align-items: center; gap: 0.5rem; }
.author-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #7C3AED, #A78BFA); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: white; font-weight: 700; }
.author-name { font-size: 0.78rem; color: #6B7280; font-weight: 500; }
.card-link { font-size: 0.78rem; color: #7C3AED; font-weight: 500; text-decoration: none; }

/* NEWSLETTER */
.newsletter { background: #0F0B1A; border-radius: 16px; padding: 3rem; text-align: center; position: relative; overflow: hidden; margin: 0 2rem 3rem; }
.newsletter h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.newsletter p { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; font-weight: 300; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 440px; margin: 0 auto; }
.newsletter-input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: white; padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.9rem; outline: none; }
.newsletter-input:focus { border-color: #A78BFA; }

/* FOOTER */
.site-footer { background: #0F0B1A !important; border-top: 1px solid rgba(124,58,237,0.2) !important; color: rgba(255,255,255,0.4) !important; }
.site-footer a { color: rgba(255,255,255,0.4) !important; }
.site-footer a:hover { color: #A78BFA !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 1.5rem; }
  .newsletter { margin: 0 1rem 2rem; padding: 2rem 1.5rem; }
  .newsletter-form { flex-direction: column; }
}
/* TICKER ACTUALITÉS IA */
.actu-ia-wrap {
  display: flex;
  align-items: center;
  background: #0F0B1A;
  border-top: 1px solid rgba(124,58,237,0.3);
  border-bottom: 1px solid rgba(124,58,237,0.3);
  overflow: hidden;
  height: 48px;
  margin-bottom: 3rem;
}

.actu-ia-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.2rem;
  background: #7C3AED;
  height: 100%;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.actu-dot {
  width: 7px;
  height: 7px;
  background: #A78BFA;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.actu-ticker-outer {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.actu-ticker {
  display: flex;
  align-items: center;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

.actu-ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.actu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 2rem;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  border-right: 1px solid rgba(124,58,237,0.2);
  white-space: nowrap;
  transition: color 0.2s;
  height: 48px;
}

.actu-item:hover { color: #A78BFA; }

.actu-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(124,58,237,0.3);
  color: #A78BFA;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.actu-titre {
  font-size: 0.82rem;
  font-weight: 400;
}

.actu-source {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  flex-shrink: 0;
}
