/* Vidéo démo YouTube — composant partagé (site public) */
.wise-yt-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}
.wise-yt-wrap--landscape {
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
}
.wise-yt-wrap--portrait {
    aspect-ratio: 9 / 16;
    border-radius: 1.1rem;
}
.wise-yt-wrap .wise-yt-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* Rognage cover pour cadre vertical (hero / démo mobile) */
.wise-yt-wrap--portrait .wise-yt-iframe {
    top: 50%;
    left: 50%;
    width: 320%;
    height: 100%;
    max-width: none;
    transform: translate(-50%, -50%);
}

.wise-demo-section {
    padding: 4rem 0;
}
.wise-demo-section--compact {
    padding: 2.5rem 0;
}
.wise-demo-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f46e5;
}
.wise-demo-line {
    display: block;
    width: 3rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
}
.wise-demo-shell {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 32px 80px -24px rgba(79, 70, 229, 0.28);
}
.wise-demo-shell--landscape {
    max-width: 100%;
}
.wise-demo-shell--portrait {
    max-width: min(20rem, 92vw);
    margin-inline: auto;
}
.wise-demo-chrome {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wise-demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wise-demo-dot--red { background: #f87171; }
.wise-demo-dot--amber { background: #fbbf24; }
.wise-demo-dot--green { background: #34d399; }
.wise-demo-chrome-title {
    margin-left: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.04em;
}
.wise-demo-player .wise-yt-wrap {
    border-radius: 0;
}
.wise-demo-player .wise-yt-wrap--portrait {
    max-height: min(78vh, 720px);
}

.page-home .hero-youtube-embed.wise-yt-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.feat-hero-youtube {
    position: relative;
    width: min(17rem, 100%);
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(79, 70, 229, 0.35);
    background: #0f172a;
}
.feat-hero-youtube .wise-yt-wrap {
    height: 100%;
}
.feat-hero-youtube-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
}
.feat-hero-youtube-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: hero-video-pulse 2s ease-out infinite;
}

.auth-demo-video {
    margin-top: 1.5rem;
}
.auth-demo-yt.wise-yt-wrap {
    border-radius: 1rem;
    box-shadow: 0 16px 40px -20px rgba(79, 70, 229, 0.35);
}
.auth-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}
.auth-demo-link:hover { color: #4338ca; }

.insc-demo-video .wise-yt-wrap {
    border-radius: 1rem;
    box-shadow: 0 12px 32px -16px rgba(79, 70, 229, 0.25);
}

.contact-demo-band {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

@keyframes hero-video-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.15); }
}

@media (max-width: 639px) {
    .wise-demo-section {
        padding: 3rem 0;
    }
}
