/* =====================================================================
   LIA Innovations — Page « Démonstration PermiZ »
   Réutilise le langage visuel tech/néon de la page d'accueil (scope .lia-demo)
   ===================================================================== */

.lia-demo {
    --v-bg:      #f4f7fc;
    --v-ink:     #16213e;
    --v-muted:   #51607e;
    --v-faint:   #8590ab;
    --v-cyan:    #2ee6f6;
    --v-blue:    #4f7cff;
    --v-violet:  #9d5cff;
    --v-magenta: #ff4d9d;
    --v-grad:    linear-gradient(115deg, #06b6d4 0%, #3b82f6 35%, #8b5cf6 65%, #ec4899 100%);
    --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;
    padding-top: 5rem;
}

.lia-demo p { color: var(--v-muted); }
.lia-demo strong { color: var(--v-ink); }
.lia-demo h1, .lia-demo h2, .lia-demo h3, .lia-demo h4, .lia-demo h5 {
    color: var(--v-ink);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* Décor : aurora + grille technique */
.lia-demo::before {
    content: "";
    position: absolute;
    inset: -10% -10% 0 -10%;
    z-index: -3;
    background:
        radial-gradient(90% 55% at 50% -8%, rgba(79, 124, 255, 0.12), transparent 72%),
        radial-gradient(70% 45% at 50% 105%, rgba(157, 92, 255, 0.06), transparent 75%);
    filter: blur(50px);
}
.lia-demo::after {
    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%);
}
.lia-demo .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");
}

/* ---------- Primitives ---------- */
.lia-demo .v-section { padding: 4.5rem 0; position: relative; }
.lia-demo .d-hero { padding: 3.5rem 0 1.5rem; position: relative; }

.lia-demo .v-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.95rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--v-line);
    box-shadow: var(--v-shadow);
    font-size: 0.82rem; font-weight: 600; color: var(--v-ink);
    margin-bottom: 1.1rem;
}
.lia-demo .v-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--v-cyan); box-shadow: 0 0 0 0 rgba(46, 230, 246, 0.6);
    animation: d-pulse 2s infinite;
}
@keyframes d-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 230, 246, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(46, 230, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 230, 246, 0); }
}

.lia-demo .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;
}
.lia-demo .v-eyebrow.justify-content-center { justify-content: center; }
.lia-demo .v-eyebrow::before {
    content: ""; width: 26px; height: 1px;
    background: linear-gradient(90deg, var(--v-cyan), transparent);
}

.lia-demo h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700; font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.lia-demo .v-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.8rem;
}
.lia-demo .v-grad-text {
    background: var(--v-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lia-demo .v-lead {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    color: var(--v-muted); max-width: 680px;
}

/* ---------- Boutons ---------- */
.lia-demo .v-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.lia-demo .v-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 999px;
    font-weight: 600; border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}
.lia-demo .v-btn--primary {
    background: var(--v-grad); color: #fff;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
}
.lia-demo .v-btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }
.lia-demo .v-btn--ghost {
    background: #fff; color: var(--v-ink); border-color: var(--v-line);
    box-shadow: var(--v-shadow);
}
.lia-demo .v-btn--ghost:hover { transform: translateY(-2px); border-color: var(--v-blue); }

/* ---------- Carte « Comment ça marche » ---------- */
.lia-demo .d-how {
    background: #fff; border: 1px solid var(--v-line);
    border-radius: var(--v-radius); box-shadow: var(--v-shadow);
    padding: 1.8rem;
}
.lia-demo .d-how__title {
    font-size: 1.15rem; margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.lia-demo .d-how__title i { color: var(--v-blue); }
.lia-demo .d-how__steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.lia-demo .d-how__steps li {
    display: flex; align-items: flex-start; gap: 0.8rem;
    padding: 0.6rem 0; color: var(--v-muted);
    border-top: 1px dashed var(--v-line);
}
.lia-demo .d-how__steps li:first-child { border-top: none; }
.lia-demo .d-how__steps li span {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
    background: var(--v-grad); color: #fff; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}

/* ---------- Cartes-créneaux ---------- */
.lia-demo .d-slot {
    position: relative; display: block; cursor: pointer; height: 100%;
    background: #fff; border: 1px solid var(--v-line);
    border-radius: var(--v-radius); box-shadow: var(--v-shadow);
    padding: 1.5rem 1.4rem; overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.lia-demo .d-slot:hover { transform: translateY(-5px); border-color: rgba(79,124,255,0.5); }
.lia-demo .d-slot input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.lia-demo .d-slot__check {
    position: absolute; top: 1rem; right: 1rem;
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid var(--v-line); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; background: transparent;
}
.lia-demo .d-slot__check i { opacity: 0; transform: scale(0.5); transition: all 0.2s ease; }
.lia-demo .d-slot.is-selected { border-color: transparent; box-shadow: 0 0 0 2px var(--v-blue), 0 18px 40px rgba(59,130,246,0.18); }
.lia-demo .d-slot.is-selected .d-slot__check { background: var(--v-grad); border-color: transparent; }
.lia-demo .d-slot.is-selected .d-slot__check i { opacity: 1; transform: scale(1); }
.lia-demo .d-slot.is-full { opacity: 0.6; cursor: not-allowed; }

.lia-demo .d-slot__date {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: 1.05rem; color: var(--v-ink); margin-bottom: 0.35rem;
    padding-right: 2.2rem;
}
.lia-demo .d-slot__date i { color: var(--v-blue); margin-right: 0.35rem; }
.lia-demo .d-slot__time { color: var(--v-muted); font-weight: 600; margin-bottom: 0.5rem; }
.lia-demo .d-slot__time i { color: var(--v-violet); margin-right: 0.3rem; }
.lia-demo .d-slot__loc { font-size: 0.9rem; color: var(--v-faint); margin-bottom: 0.7rem; }
.lia-demo .d-slot__desc { font-size: 0.9rem; color: var(--v-muted); margin-bottom: 0.9rem; }
.lia-demo .d-slot__foot { margin-top: auto; }

.lia-demo .d-tag {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.7rem;
    border-radius: 999px;
}
.lia-demo .d-tag--ok { background: rgba(46, 230, 246, 0.14); color: #0891b2; }
.lia-demo .d-tag--full { background: rgba(255, 77, 157, 0.14); color: #d6266f; }

/* ---------- Aucun créneau ---------- */
.lia-demo .d-empty {
    text-align: center; background: #fff; border: 1px dashed var(--v-line);
    border-radius: var(--v-radius); padding: 3rem 1.5rem; color: var(--v-muted);
}
.lia-demo .d-empty i { font-size: 2.4rem; color: var(--v-faint); display: block; margin-bottom: 0.8rem; }

/* ---------- Formulaire ---------- */
.lia-demo .d-form {
    background: #fff; border: 1px solid var(--v-line);
    border-radius: var(--v-radius); box-shadow: var(--v-shadow);
    padding: 2.4rem;
}
.lia-demo .form-label { font-weight: 600; color: var(--v-ink); font-size: 0.9rem; }
.lia-demo .form-control, .lia-demo .form-select {
    border-radius: 12px; padding: 0.7rem 0.9rem; border: 1px solid #dfe5ef;
}
.lia-demo .form-control:focus, .lia-demo .form-select:focus {
    border-color: var(--v-blue); box-shadow: 0 0 0 0.2rem rgba(79, 124, 255, 0.15);
}
.lia-demo .captcha-img {
    height: 64px; width: 200px; border-radius: 10px;
    border: 1px solid #dfe5ef; background: #f5f7fa;
}
.lia-demo .d-note { font-size: 0.85rem; color: var(--v-faint); }

/* ---------- Spotlight au curseur ---------- */
.lia-demo .spot { position: relative; }
.lia-demo .spot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(220px circle at var(--mx, -100px) var(--my, -100px), rgba(79,124,255,0.10), transparent 60%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.lia-demo .spot:hover::after { opacity: 1; }

.lia-demo .alert { border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
    .lia-demo .v-badge .dot { animation: none; }
    .lia-demo [data-aos] { opacity: 1 !important; transform: none !important; }
}
