/* =====================================================================
   LIA Innovations — Accueil "v2" : refonte futuriste & technique
   Chargé uniquement sur la page d'accueil (scope .lia-v2)
   Palette néon : cyan · violet · magenta · lime sur fond spatial
   ===================================================================== */

.lia-v2 {
    --v-bg:        #f4f7fc;
    --v-bg-2:      #ffffff;
    --v-ink:       #16213e;
    --v-muted:     #51607e;
    --v-faint:     #8590ab;

    --v-cyan:      #2ee6f6;
    --v-blue:      #4f7cff;
    --v-violet:    #9d5cff;
    --v-magenta:   #ff4d9d;
    --v-lime:      #c6ff3d;

    /* Dégradés assombris d'un cran pour rester lisibles sur fond clair */
    --v-grad:      linear-gradient(115deg, #06b6d4 0%, #3b82f6 35%, #8b5cf6 65%, #ec4899 100%);
    --v-grad-2:    linear-gradient(120deg, #0891b2, #7c3aed);
    --v-glass:     #ffffff;
    --v-glass-2:   #ffffff;
    --v-line:      rgba(22, 33, 62, 0.10);
    --v-radius:    22px;
    --v-shadow:    0 14px 36px rgba(22, 33, 62, 0.08);

    position: relative;
    background: linear-gradient(180deg, #eef3fb 0%, #f4f7fc 50%, #eaeefb 100%);
    color: var(--v-ink);
    overflow: hidden;
    isolation: isolate;
}

.lia-v2 p { color: var(--v-muted); }
.lia-v2 strong { color: var(--v-ink); }
.lia-v2 h1, .lia-v2 h2, .lia-v2 h3, .lia-v2 h4, .lia-v2 h5 { color: var(--v-ink); }

/* ---------- Décor de fond global : aurora + grille + grain ---------- */
.lia-v2::before {
    /* nappes lumineuses (aurora) */
    content: "";
    position: absolute;
    inset: -10% -10% 0 -10%;
    z-index: -3;
    background:
        radial-gradient(90% 55% at 50% -8%, rgba(79, 124, 255, 0.10), transparent 72%),
        radial-gradient(70% 45% at 50% 105%, rgba(157, 92, 255, 0.05), transparent 75%);
    filter: blur(50px);
    animation: v-aurora 24s ease-in-out infinite alternate;
}
@keyframes v-aurora {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-2%, 2%, 0) scale(1.08); }
    100% { transform: translate3d(2%, -1%, 0) scale(1.04); }
}

.lia-v2::after {
    /* grille technique fine, masquée en fondu */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(22, 33, 62, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 33, 62, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 80%);
}

/* Voile de grain pour la texture (léger) */
.v-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* ---------- Barre de progression de défilement ---------- */
.v-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    z-index: 1100;
    background: var(--v-grad);
    box-shadow: 0 0 14px rgba(46, 230, 246, 0.6);
}

/* ---------- Primitives ---------- */
.v-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.9rem;
}
.v-eyebrow::before {
    content: "";
    width: 26px; height: 1px;
    background: linear-gradient(90deg, var(--v-cyan), transparent);
}

.v-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.v-grad-text {
    background: var(--v-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: v-shine 6s linear infinite;
}
@keyframes v-shine { to { background-position: 200% center; } }

.v-lead {
    color: var(--v-muted);
    max-width: 640px;
    font-size: 1.06rem;
}

.v-section { padding: 6.5rem 0; position: relative; }
.v-section--tight { padding: 4rem 0; }
.v-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--v-line), transparent);
    margin: 0 auto;
    max-width: 1100px;
}

/* =====================================================================
   HERO
   ===================================================================== */
.v-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 0 5rem;
}
.v-hero__inner { position: relative; z-index: 2; }

.v-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--v-glass);
    border: 1px solid var(--v-line);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    color: var(--v-muted);
    box-shadow: var(--v-shadow);
    margin-bottom: 1.6rem;
}
.v-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--v-lime);
    box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.7);
    animation: v-pulse 2.2s infinite;
}
@keyframes v-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(198, 255, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); }
}

.v-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.6rem, 6.2vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 1.3rem;
}
.v-hero .v-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 560px; }

/* Boutons */
.v-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.v-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.85rem 1.7rem;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.v-btn i { transition: transform 0.25s ease; }
.v-btn--primary {
    position: relative;
    color: #05070f;
    background: var(--v-grad);
    background-size: 200% auto;
    box-shadow: 0 14px 40px rgba(79, 124, 255, 0.35), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.v-btn--primary:hover {
    color: #05070f;
    transform: translateY(-3px);
    background-position: right center;
    box-shadow: 0 20px 50px rgba(157, 92, 255, 0.45);
}
.v-btn--primary:hover i { transform: translateX(4px); }
.v-btn--ghost {
    color: var(--v-ink);
    border-color: var(--v-line);
    background: var(--v-glass);
    backdrop-filter: blur(8px);
}
.v-btn--ghost:hover { color: var(--v-ink); border-color: rgba(37,99,235,0.45); transform: translateY(-3px); background: #f3f6fd; }

/* Statistiques hero */
.v-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}
.v-stat {
    flex: 1 1 130px;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    background: var(--v-glass);
    border: 1px solid var(--v-line);
    box-shadow: var(--v-shadow);
    backdrop-filter: blur(8px);
}
.v-stat .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    background: var(--v-grad-2);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.v-stat .lbl { color: var(--v-faint); font-size: 0.82rem; margin-top: 0.35rem; }

/* Visuel "fenêtre de code" du hero */
.v-codecard {
    position: relative;
    border-radius: var(--v-radius);
    background: linear-gradient(180deg, rgba(13,18,38,0.97), rgba(8,12,26,0.97));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 40px 90px rgba(22, 33, 62, 0.28);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}
.v-codecard::before { /* halo lumineux derrière */
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent, rgba(46,230,246,0.18), transparent 30%, rgba(157,92,255,0.18), transparent 60%);
    animation: v-spin 9s linear infinite;
    z-index: -1;
}
@keyframes v-spin { to { transform: rotate(1turn); } }
.v-codecard__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}
.v-codecard__bar .d { width: 11px; height: 11px; border-radius: 50%; }
.v-codecard__bar .d:nth-child(1) { background: #ff5f57; }
.v-codecard__bar .d:nth-child(2) { background: #febc2e; }
.v-codecard__bar .d:nth-child(3) { background: #28c840; }
.v-codecard__bar .f { margin-left: 0.6rem; color: var(--v-faint); font-size: 0.8rem; font-family: ui-monospace, monospace; }
.v-codecard__body {
    padding: 1.2rem 1.3rem 1.5rem;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.85;
}
.v-code-line { white-space: pre; }
.v-c-key { color: #9d5cff; }
.v-c-fn  { color: #2ee6f6; }
.v-c-str { color: #c6ff3d; }
.v-c-num { color: #ff4d9d; }
.v-c-com { color: var(--v-faint); font-style: italic; }
.v-cursor {
    display: inline-block;
    width: 8px; height: 1.05em;
    vertical-align: text-bottom;
    background: var(--v-cyan);
    animation: v-blink 1.1s steps(2) infinite;
}
@keyframes v-blink { 50% { opacity: 0; } }

/* Puces produits flottantes */
.v-orb {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 14px;
    background: rgba(13,18,38,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(22,33,62,0.22);
    font-size: 0.82rem; font-weight: 600; color: #fff;
    animation: v-float 6s ease-in-out infinite;
}
.v-orb i { font-size: 1rem; }
.v-orb--a { top: 6%; right: -4%; color: var(--v-cyan); animation-delay: -1s; }
.v-orb--b { bottom: 18%; left: -8%; color: var(--v-magenta); animation-delay: -3s; }
@keyframes v-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.v-scrollcue {
    position: absolute;
    bottom: 1.6rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(22,33,62,0.45);
    font-size: 1.4rem;
    z-index: 2;
    animation: v-bob 2s ease-in-out infinite;
}
@keyframes v-bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,9px); } }

/* =====================================================================
   PARTENAIRES (rangée statique centrée)
   ===================================================================== */
.v-partners { padding: 3rem 0; border-block: 1px solid var(--v-line); position: relative; }
.v-partners__label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: var(--v-faint);
    margin-bottom: 1.8rem;
}
.v-partners__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem 1.6rem;
}
.v-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 0.8rem 1.4rem;
    border: 1px solid var(--v-line);
    box-shadow: 0 10px 30px rgba(22,33,62,0.10);
    transition: transform 0.3s ease;
}
.v-chip:hover { transform: translateY(-4px); }
.v-chip img { height: 40px; max-width: 150px; object-fit: contain; }

/* =====================================================================
   CARTES GÉNÉRIQUES (glass + bordure conique + spotlight)
   ===================================================================== */
.v-card {
    position: relative;
    height: 100%;
    border-radius: var(--v-radius);
    background: var(--v-glass);
    border: 1px solid var(--v-line);
    padding: 2rem;
    box-shadow: var(--v-shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
/* spotlight qui suit le curseur */
.v-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
                rgba(46, 230, 246, 0.14), transparent 60%);
    pointer-events: none;
}
.v-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.30);
    background: var(--v-glass-2);
    box-shadow: 0 22px 50px rgba(22, 33, 62, 0.13);
}
.v-card:hover::after { opacity: 1; }
.v-card h3 { font-size: 1.18rem; margin-bottom: 0.7rem; }
.v-card p { margin-bottom: 0; }

.v-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    border-radius: 15px;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: #2563eb;
    background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(124,58,237,0.12));
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.10);
}

/* Bento : la 1re carte large + halo accent */
.v-bento .v-card--wide { background: linear-gradient(135deg, rgba(79,124,255,0.12), var(--v-glass)); }
.v-bento .v-card--wide .v-ico { color: var(--v-violet); border-color: rgba(157,92,255,0.3); background: linear-gradient(135deg, rgba(157,92,255,0.2), rgba(255,77,157,0.12)); }

/* =====================================================================
   SOLUTIONS
   ===================================================================== */
.v-sol {
    position: relative;
    height: 100%;
    border-radius: var(--v-radius);
    background: var(--v-glass);
    border: 1px solid var(--v-line);
    padding: 2.2rem;
    overflow: hidden;
    box-shadow: var(--v-shadow);
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.v-sol::before { /* trait néon haut */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--sol, var(--v-grad-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.v-sol::after { /* lueur d'angle au survol */
    content: "";
    position: absolute;
    top: -40%; right: -40%;
    width: 70%; height: 70%;
    background: radial-gradient(circle, var(--solglow, rgba(46,230,246,0.25)), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.v-sol:hover { transform: translateY(-7px); border-color: rgba(22,33,62,0.16); box-shadow: 0 22px 50px rgba(22, 33, 62, 0.13); }
.v-sol:hover::before { transform: scaleX(1); }
.v-sol:hover::after { opacity: 1; }

.v-sol__head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}
.v-sol__badge {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,0.4);
}
.v-sol__name { font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 700; }
.v-sol__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.2rem;
    font-weight: 600;
    color: #2563eb;
}
.v-sol__link i { transition: transform 0.25s ease; }
.v-sol__link:hover { color: var(--v-ink); }
.v-sol__link:hover i { transform: translateX(5px); }

/* Accents par produit */
.v-sol.permiz    { --sol: linear-gradient(90deg,#2ee6f6,#4f7cff); --solglow: rgba(46,230,246,0.28); }
.v-sol.permiz    .v-sol__badge { background: linear-gradient(135deg,#2ee6f6,#4f7cff); }
.v-sol.organiz   { --sol: linear-gradient(90deg,#22c55e,#a3e635); --solglow: rgba(163,230,53,0.28); }
.v-sol.organiz   .v-sol__badge { background: linear-gradient(135deg,#22c55e,#a3e635); }
.v-sol.foodcellar{ --sol: linear-gradient(90deg,#f59e0b,#ff4d9d); --solglow: rgba(255,77,157,0.28); }
.v-sol.foodcellar .v-sol__badge { background: linear-gradient(135deg,#f59e0b,#ff4d9d); }

/* =====================================================================
   CONFÉRENCE
   ===================================================================== */
.v-conf-list { list-style: none; padding-left: 0; margin: 1.2rem 0; }
.v-conf-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.65rem;
    color: var(--v-muted);
}
.v-conf-list li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    background: var(--v-grad-2);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.v-gallery img {
    border-radius: 16px;
    border: 1px solid var(--v-line);
    box-shadow: 0 20px 45px rgba(22,33,62,0.16);
    transition: transform 0.4s ease;
}
.v-gallery img:hover { transform: scale(1.02); }

/* =====================================================================
   ÉQUIPE
   ===================================================================== */
.v-team { text-align: center; }
.v-team .v-card { text-align: center; }
.v-avatar {
    width: 88px; height: 88px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #05070f;
    background: var(--v-grad);
    background-size: 200% auto;
    position: relative;
    animation: v-shine 6s linear infinite;
}
.v-avatar::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(46,230,246,0.4);
    opacity: 0.6;
}
.v-team__name { font-size: 1.2rem; margin-bottom: 0.2rem; }
.v-team__role {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    background: var(--v-grad-2);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.v-cta {
    position: relative;
    border-radius: 28px;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(60% 120% at 20% 0%, rgba(157,92,255,0.5), transparent 60%),
        radial-gradient(60% 120% at 90% 100%, rgba(255,77,157,0.45), transparent 60%),
        linear-gradient(120deg, #2ee6f6, #4f7cff 55%, #9d5cff);
    box-shadow: 0 40px 90px rgba(79,124,255,0.35);
}
.v-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
}
.v-cta > * { position: relative; z-index: 1; }
.v-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.8rem; }
.v-cta p  { color: rgba(255,255,255,0.9); margin-bottom: 1.8rem; }
.v-cta .v-btn--light {
    background: #fff; color: #05070f;
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}
.v-cta .v-btn--light:hover { transform: translateY(-3px); color: #05070f; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991.98px) {
    .v-section { padding: 4.5rem 0; }
    .v-hero { padding-top: 7.5rem; text-align: left; }
    .v-orb { display: none; }
    .v-codecard { margin-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lia-v2 *,
    .lia-v2 *::before,
    .lia-v2 *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
    .v-grad-text, .v-avatar { animation: none; }
}
