/* ================================================================
   VECTEUR VISUEL — enhancements.css
   Curseur · Fond hero · Animation AI-ready · Section AI Workflow
   NE TOUCHE À RIEN D'AUTRE QUE CE QUI EST LISTÉ ICI
   ================================================================ */

/* ── 1. CURSEUR : point rond simple, pas de cercle ────────────── */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

#vv-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  background: hsl(217 90% 52%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, width 0.2s, height 0.2s, background 0.2s;
  will-change: transform;
}
#vv-dot.visible   { opacity: 1; }
#vv-dot.pressing  { width: 5px; height: 5px; }
#vv-dot.on-link   { width: 10px; height: 10px; background: hsl(217 90% 42%); }

/* ── 2. FOND SUBTIL DU HERO ───────────────────────────────────── */
#vv-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Grille fine */
#vv-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(217 90% 52% / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, hsl(217 90% 52% / 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 75%);
}

/* Halo doux en haut à droite */
#vv-hero-bg::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, hsl(217 90% 52% / 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* S'assurer que le contenu du hero reste AU-DESSUS du fond */
#vv-hero-bg ~ * { position: relative; z-index: 1; }

/* ── 3. ANIMATION "AI-READY" SUR LE LABEL DU HERO ────────────── */

/* Le badge AI-ready : fond animé subtil */
@keyframes vv-ai-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.vv-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(217 90% 52%);
  font-family: var(--font-sans, 'Inter', sans-serif);
  border: 1px solid hsl(217 90% 52% / 0.3);
  padding: 4px 10px 4px 8px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsl(217 90% 52% / 0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: vv-ai-shimmer 3s ease-in-out infinite;
  margin-bottom: 1rem;
}

/* Point pulsant à gauche du badge */
.vv-ai-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: hsl(217 90% 52%);
  flex-shrink: 0;
  animation: vv-pulse 2s ease-in-out infinite;
}

@keyframes vv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── 4. SECTION AI WORKFLOW ───────────────────────────────────── */
#vv-ai-section {
  padding: 5rem 0 6rem;
  border-top: 1px solid hsl(220 20% 88%);
  position: relative;
  overflow: hidden;
}

/* Halo décoratif fond */
#vv-ai-section::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, hsl(217 90% 52% / 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.vv-ai-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px)  { .vv-ai-inner { padding: 0 2.5rem; } }

/* En-tête */
.vv-ai-header {
  margin-bottom: 3.5rem;
}

.vv-ai-sup {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: hsl(217 90% 52%);
  font-family: var(--font-sans, 'Inter', sans-serif);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vv-ai-sup::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: hsl(217 90% 52%);
}

.vv-ai-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: hsl(222 20% 10%);
  margin: 0 0 1rem;
}

.vv-ai-title em {
  font-style: italic;
  color: hsl(217 90% 52%);
}

.vv-ai-desc {
  font-size: 0.9375rem;
  color: hsl(222 10% 45%);
  line-height: 1.7;
  max-width: 48ch;
  margin: 0;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

/* Grille des 4 cartes */
.vv-ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid hsl(220 20% 88%);
}

@media (min-width: 640px)  { .vv-ai-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .vv-ai-grid { grid-template-columns: repeat(4, 1fr); } }

/* Carte individuelle */
.vv-ai-card {
  padding: 2.25rem 2rem;
  border-bottom: 1px solid hsl(220 20% 88%);
  border-right: 1px solid hsl(220 20% 88%);
  position: relative;
  overflow: hidden;
  /* Animation scroll */
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.35s ease;
}

/* Supprimer les bordures redondantes sur mobile */
@media (max-width: 639px) {
  .vv-ai-card { border-right: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .vv-ai-card:nth-child(2n) { border-right: none; }
}
@media (min-width: 1024px) {
  .vv-ai-card:last-child { border-right: none; }
  .vv-ai-card { border-bottom: none; }
}

.vv-ai-card.vv-visible {
  opacity: 1;
  transform: translateY(0);
}

.vv-ai-card:hover {
  background: hsl(220 30% 98%);
}

/* Ligne basse au hover */
.vv-ai-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: hsl(217 90% 52%);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vv-ai-card:hover::after { width: 100%; }

/* Numéro de carte */
.vv-ai-card-num {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: hsl(222 10% 75%);
  font-family: var(--font-sans, 'Inter', sans-serif);
  margin-bottom: 1.5rem;
  display: block;
}

/* Icône / accent */
.vv-ai-card-icon {
  width: 32px;
  height: 32px;
  border: 1px solid hsl(220 20% 88%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s, background 0.3s;
}
.vv-ai-card:hover .vv-ai-card-icon {
  border-color: hsl(217 90% 52% / 0.4);
  background: hsl(217 90% 52% / 0.05);
}
.vv-ai-card-icon svg {
  width: 14px; height: 14px;
  stroke: hsl(217 90% 52%);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Titre de carte */
.vv-ai-card-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  color: hsl(222 20% 10%);
  margin: 0 0 0.75rem;
}

/* Texte de carte */
.vv-ai-card-text {
  font-size: 0.825rem;
  line-height: 1.7;
  color: hsl(222 10% 45%);
  margin: 0;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

