/**
 * Vision — d314.io v5
 * Préfixe vis- | Palette indigo | Plus Jakarta Sans + JetBrains Mono
 */

/* ============================================================
   FIX ELEMENTOR
   ============================================================ */
body.page-template-page-vision { padding-top: 0 !important; }
.vis-page { margin-top: 0 !important; }
.elementor,.elementor-section,.elementor-top-section,
.elementor-location-header ~ *,main,#content {
    margin-top: 0 !important; padding-top: 0 !important;
}

/* ============================================================
   BASE
   ============================================================ */
.vis-page {
    font-family: var(--font-family-primary);
    color: var(--text-primary); background: var(--bg-primary);
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

.vis-grid-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(99,102,241,.04) 1px,transparent 1px),
        linear-gradient(90deg,rgba(99,102,241,.04) 1px,transparent 1px);
    background-size: 50px 50px;
}
.vis-grad-top {
    position: fixed; top: 0; left: 0; width: 100%; height: 600px;
    z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at top,rgba(99,102,241,.10),transparent 60%);
}

/* LAYOUT */
.vis-inner        { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.vis-inner--narrow { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }

/* SECTION */
.vis-section { position: relative; z-index: 1; padding: 100px 40px; }
.vis-section--alt { background: var(--bg-secondary); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }

/* SECTION HEAD */
.vis-section-head { margin-bottom: 64px; }
.vis-section-head--center { text-align: center; }

.vis-label {
    display: inline-block; font-family: var(--font-family-mono);
    font-size: 11px; font-weight: var(--font-weight-semibold); letter-spacing: .18em;
    text-transform: uppercase; color: var(--primary-hover); margin-bottom: 14px;
}
.vis-section-title {
    font-size: clamp(26px,4vw,44px); font-weight: var(--font-weight-extrabold);
    letter-spacing: -.03em; line-height: var(--lh-tight);
    color: var(--text-primary); margin-bottom: 14px;
}
.vis-section-desc {
    font-size: var(--text-base); color: var(--text-secondary); line-height: var(--lh-loose);
    max-width: 500px;
}
.vis-section-head--center .vis-section-desc { margin: 0 auto; }

/* GRADIENT TEXT */
.vis-gradient-text {
    background: linear-gradient(135deg,var(--primary-color) 0%,var(--accent-phys) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ANIMATIONS */
@keyframes vis-fadein { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes vis-gi { 0%,100%{opacity:.18;transform:translateX(-50%) scale(1)} 50%{opacity:.28;transform:translateX(-50%) scale(1.08)} }
@keyframes vis-gc { 0%,100%{opacity:.08} 50%{opacity:.16} }
@keyframes vis-dot-pulse { 0%{box-shadow:0 0 0 0 rgba(99,102,241,.7)} 70%{box-shadow:0 0 0 8px rgba(99,102,241,0)} 100%{box-shadow:0 0 0 0 rgba(99,102,241,0)} }

.vis-anim { opacity: 0; animation: vis-fadein .8s cubic-bezier(.4,0,.2,1) both; }
.vis-anim--d1 { animation-delay: .1s; }
.vis-anim--d2 { animation-delay: .2s; }
.vis-anim--d3 { animation-delay: .3s; }
.vis-anim--d4 { animation-delay: .4s; }

.vis-reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.vis-reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.vis-hero {
    position: relative; min-height: 80vh; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 140px 40px 100px; overflow: hidden;
    background: var(--bg-primary);
}
.vis-hero-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.vis-hero-glow--indigo { width: 700px; height: 700px; background: radial-gradient(circle,var(--primary-color),transparent 70%); top: -200px; left: 50%; transform: translateX(-50%); opacity: .18; animation: vis-gi 8s ease-in-out infinite; }
.vis-hero-glow--cyan   { width: 400px; height: 400px; background: radial-gradient(circle,var(--accent-phys),transparent 70%); top: 40%; right: 5%; opacity: .08; animation: vis-gc 10s ease-in-out infinite; }
.vis-grain { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; }

.vis-hero-content { position: relative; z-index: 10; text-align: center; max-width: 900px; width: 100%; }

.vis-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 10px;
    background: rgba(99,102,241,.10); border: 1px solid rgba(99,102,241,.28);
    border-radius: 20px; font-size: 12.5px; font-family: var(--font-family-mono);
    color: #a5b4fc; font-weight: var(--font-weight-medium); margin-bottom: 32px;
}
.vis-badge-dot { width: 7px; height: 7px; background: var(--primary-color); border-radius: 50%; animation: vis-dot-pulse 2.4s ease-out infinite; }

.vis-hero-title {
    font-size: clamp(38px,7vw,72px) !important; font-weight: var(--font-weight-extrabold) !important;
    line-height: 1.08 !important; letter-spacing: -.035em !important;
    color: var(--text-primary) !important; margin: 0 0 20px !important;
    background: none !important; -webkit-text-fill-color: var(--text-primary) !important;
}
.vis-hero-title .vis-gradient-text { -webkit-text-fill-color: transparent !important; }

.vis-hero-sub {
    font-size: clamp(16px,2vw,20px); font-weight: var(--font-weight-semibold); color: var(--primary-hover);
    margin-bottom: 20px;
}
.vis-hero-desc {
    font-size: clamp(15px,1.6vw,17px); color: var(--text-secondary); line-height: 1.7;
    max-width: 680px; margin: 0 auto;
}

/* ============================================================
   PROBLÈME
   ============================================================ */
.vis-problem-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.vis-problem-card {
    background: var(--surface-card); border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px; padding: 28px;
    transition: border-color .2s, transform .2s;
}
.vis-problem-card:hover { border-color: rgba(99,102,241,.2); transform: translateY(-2px); }
.vis-problem-stat { font-family: var(--font-family-mono); font-size: 36px; font-weight: var(--font-weight-extrabold); line-height: 1; margin-bottom: 12px; letter-spacing: -.03em; }
.vis-problem-title { font-size: var(--font-size-md); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 10px; }
.vis-problem-desc  { font-size: 13px; color: var(--text-muted); line-height: var(--lh-loose); }

/* ============================================================
   RÉVOLUTIONS
   ============================================================ */
.vis-rev-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.vis-rev-card {
    background: var(--surface-card); border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px; padding: 32px; position: relative; overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.vis-rev-card:hover { border-color: rgba(99,102,241,.2); transform: translateY(-3px); }
.vis-rev-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,var(--rc,var(--primary-color)),transparent); opacity:.5; }

.vis-rev-num { position: absolute; top: 20px; right: 22px; font-family: var(--font-family-mono); font-size: 40px; font-weight: var(--font-weight-extrabold); color: rgba(99,102,241,.08); line-height: 1; }
.vis-rev-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.vis-rev-icon--indigo { background: rgba(99,102,241,.12); color: var(--primary-hover); --rc:var(--primary-color); }
.vis-rev-icon--cyan   { background: rgba(34,211,238,.12);  color: var(--accent-phys); --rc:var(--accent-phys); }
.vis-rev-icon--green  { background: rgba(16,185,129,.12);  color: var(--success-color); --rc:var(--success-color); }
.vis-rev-title { font-size: var(--text-medium); font-weight: var(--font-weight-extrabold); color: var(--text-primary); margin-bottom: 12px; letter-spacing: -.02em; }
.vis-rev-desc  { font-size: var(--font-size-md); color: var(--text-secondary); line-height: 1.65; margin-bottom: 20px; }
.vis-rev-list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vis-rev-list li { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.vis-rev-list li::before { content:''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-color); flex-shrink: 0; }

/* ============================================================
   IMPACT
   ============================================================ */
.vis-impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 48px; }
.vis-impact-card {
    background: var(--surface-card); border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px; padding: 28px; text-align: center;
    transition: border-color .2s, transform .2s;
}
.vis-impact-card:hover { border-color: rgba(99,102,241,.2); transform: translateY(-2px); }
.vis-impact-year { font-family: var(--font-family-mono); font-size: 10px; font-weight: var(--font-weight-bold); color: var(--primary-color); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.vis-impact-stat { font-family: var(--font-family-mono); font-size: 34px; font-weight: var(--font-weight-extrabold); color: var(--primary-hover); letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.vis-impact-lbl  { font-size: 13px; font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 10px; }
.vis-impact-desc { font-size: 12px; color: var(--text-muted); line-height: var(--lh-loose); }

.vis-metrics {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-card); border: 1px solid rgba(99,102,241,.18);
    border-radius: 16px; padding: 32px 48px; gap: 0;
}
.vis-metric { text-align: center; padding: 0 40px; }
.vis-metric:first-child { padding-left: 0; }
.vis-metric:last-child  { padding-right: 0; }
.vis-metric-val { font-family: var(--font-family-mono); font-size: 36px; font-weight: var(--font-weight-extrabold); color: var(--primary-hover); letter-spacing: -.03em; margin-bottom: 8px; }
.vis-metric-lbl { font-size: 13px; color: var(--text-muted); max-width: 160px; margin: 0 auto; line-height: 1.4; }
.vis-metric-div { width: 1px; height: 60px; background: rgba(99,102,241,.15); flex-shrink: 0; }

/* ============================================================
   TIMELINE
   ============================================================ */
.vis-timeline { position: relative; padding-left: 32px; }
.vis-tl-line { position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom,var(--primary-color),rgba(99,102,241,.1)); }

.vis-tl-item { position: relative; padding-left: 36px; margin-bottom: 40px; }
.vis-tl-item:last-child { margin-bottom: 0; }

.vis-tl-dot { position: absolute; left: -25px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-card); border: 2px solid var(--primary-color); box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.vis-tl-dot--last { background: var(--primary-color); box-shadow: 0 0 0 6px rgba(99,102,241,.15), 0 0 20px rgba(99,102,241,.3); }

.vis-tl-content {
    background: var(--surface-card); border: 1px solid rgba(255,255,255,.06);
    border-left: 2px solid var(--primary-color); border-radius: 0 12px 12px 0;
    padding: 20px 24px; transition: border-color .2s, background .2s;
}
.vis-tl-content:hover { border-color: rgba(99,102,241,.3); background: #21213a; }
.vis-tl-date  { font-family: var(--font-family-mono); font-size: 10px; font-weight: var(--font-weight-bold); color: var(--primary-color); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.vis-tl-title { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 8px; }
.vis-tl-desc  { font-size: 13px; color: var(--text-muted); line-height: var(--lh-loose); }

/* ============================================================
   PHILOSOPHIE
   ============================================================ */
.vis-philo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.vis-philo-card {
    background: var(--surface-card); border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px; padding: 32px;
    transition: border-color .2s, transform .2s;
}
.vis-philo-card:hover { border-color: rgba(99,102,241,.2); transform: translateY(-2px); }
.vis-philo-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.vis-philo-icon--indigo { background: rgba(99,102,241,.12); color: var(--primary-hover); }
.vis-philo-icon--cyan   { background: rgba(34,211,238,.12);  color: var(--accent-phys); }
.vis-philo-icon--green  { background: rgba(16,185,129,.12);  color: var(--success-color); }
.vis-philo-title { font-size: var(--text-base); font-weight: var(--font-weight-extrabold); color: var(--text-primary); margin-bottom: 12px; letter-spacing: -.02em; }
.vis-philo-desc  { font-size: var(--font-size-md); color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   CTA
   ============================================================ */
.vis-cta {
    position: relative; z-index: 1; padding: 120px 40px;
    background: var(--bg-secondary); border-top: 1px solid rgba(255,255,255,.06);
    overflow: hidden; text-align: center;
}
.vis-cta-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle,rgba(99,102,241,.15),transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); filter: blur(60px); pointer-events: none; z-index: 0; }
.vis-cta-inner { position: relative; z-index: 2; }
.vis-cta-title { font-size: clamp(28px,5vw,52px); font-weight: var(--font-weight-extrabold); letter-spacing: -.035em; color: var(--text-primary); margin-bottom: 20px; line-height: var(--lh-tight); }
.vis-cta-title .vis-gradient-text { -webkit-text-fill-color: transparent !important; }
.vis-cta-desc  { font-size: 17px; color: var(--text-secondary); line-height: var(--lh-loose); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.vis-cta-btns  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .vis-problem-grid { grid-template-columns: repeat(2,1fr); }
    .vis-impact-grid  { grid-template-columns: repeat(2,1fr); }
    .vis-metrics { padding: 24px 32px; }
    .vis-metric  { padding: 0 24px; }
}
@media (max-width: 768px) {
    .vis-hero,.vis-section,.vis-cta { padding: 80px 24px; }
    .vis-section-head { margin-bottom: 40px; }
    .vis-problem-grid,.vis-rev-grid,.vis-impact-grid,.vis-philo-grid { grid-template-columns: 1fr; }
    .vis-metrics { flex-direction: column; gap: 24px; padding: 24px; }
    .vis-metric-div { width: 60px; height: 1px; }
    .vis-metric { padding: 0; }
    .vis-cta-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .vis-hero { padding: 90px 20px 60px; }
    .vis-section,.vis-cta { padding: 60px 20px; }
    .vis-timeline { padding-left: 20px; }
}