* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #a855f7;
    --primary-pink: #ec4899;
    --primary-indigo: #6366f1;
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.7);
    --border-white: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
   Animated Background
   =========================== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgba(168, 85, 247, 0.2),
        rgba(99, 102, 241, 0.2),
        rgba(236, 72, 153, 0.2)
    );
}

.particles-container {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.4;
    animation: float-particle 20s ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% { 
        transform: translate(0, 0); 
    }
    25% { 
        transform: translate(20px, -20px); 
    }
    50% { 
        transform: translate(-10px, 10px); 
    }
    75% { 
        transform: translate(-20px, 20px); 
    }
}

/* ===========================
   Floating Assistants (Bubbles)
   =========================== */
.floating-assistants {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.assistant-bubble {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float-bubble 12s ease-in-out infinite;
    will-change: transform;
}

.assistant-bubble:hover {
    transform: scale(1.2) translateY(-15px);
    filter: brightness(1.3) drop-shadow(0 0 30px rgba(168, 85, 247, 0.8));
    z-index: 101;
    animation-play-state: paused;
}

.assistant-bubble:active {
    transform: scale(1.05);
    transition: transform 0.1s ease;
}

.assistant-bubble::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: radial-gradient(
        circle,
        rgba(168, 85, 247, 0.5),
        rgba(236, 72, 153, 0.3),
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(18px);
    animation: pulse-glow 4s ease-in-out infinite;
    will-change: opacity, transform;
    pointer-events: none;
    z-index: -1;
}

.assistant-bubble-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.4) 0%, 
        rgba(236, 72, 153, 0.4) 100%
    );
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4),
                0 0 30px rgba(236, 72, 153, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.assistant-bubble:hover .assistant-bubble-inner {
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.6) 0%, 
        rgba(236, 72, 153, 0.6) 100%
    );
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.6),
                0 0 40px rgba(236, 72, 153, 0.4),
                inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

.assistant-avatar {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden !important;
    position: relative;
    z-index: 1;
}

.assistant-photo {
    width: 100% !important;
    height: 100% !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Ensure floating bubble images are constrained */
.assistant-bubble .assistant-avatar img,
.assistant-bubble .assistant-photo {
    width: 100% !important;
    height: 100% !important;
    max-width: 80px !important;
    max-height: 80px !important;
}

/* Status Badge */
.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.9);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    z-index: 100; /* Much higher to always show on top */
    animation: pulse-status 2s ease-in-out infinite;
}

.status-available {
    background: #10b981;  /* green */
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.status-busy {
    background: #f59e0b;  /* orange */
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.status-away {
    background: #6b7280;  /* gray */
    box-shadow: 0 0 12px rgba(107, 114, 128, 0.4), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.status-offline {
    background: #ef4444;  /* red */
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-status {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    }
}

.assistant-name {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes float-bubble {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    25% { 
        transform: translate(30px, -30px) rotate(5deg); 
    }
    50% { 
        transform: translate(-20px, 20px) rotate(-5deg); 
    }
    75% { 
        transform: translate(-30px, 30px) rotate(3deg); 
    }
}

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

.bubble-pop {
    animation: pop-out 0.5s ease-out forwards;
}

@keyframes pop-out {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===========================
   Main Content
   =========================== */
.main-content {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand Section */
.brand-section {
    text-align: center;
    padding: 4rem 0 3rem;
    animation: fade-in-up 1s ease-out;
}

.logo {
    width: clamp(240px, 32vw, 320px);
    height: auto;
    max-width: 90%;
    display: block;
    margin: 0 auto 2rem;
    animation: float-slow 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(168, 85, 247, 0.4));
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        circle,
        rgba(168, 85, 247, 0.6),
        rgba(236, 72, 153, 0.4),
        transparent
    );
    filter: blur(20px);
    animation: pulse-glow 3s ease-in-out infinite;
    will-change: opacity, transform;
}

.company-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--primary-purple),
        var(--primary-pink),
        var(--primary-indigo)
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Pas d'animation de `background-position` sur du texte en `background-clip: text` : le texte est ré-enregistré
       à chaque frame (mesuré : 65 % du coût de scroll sur mobile, cause du blocage de la page). */
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-gray);
    font-weight: 300;
}

/* Products Section */
.products-section {
    padding: 3rem 0;
    animation: fade-in-up 1s ease-out 0.2s backwards;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-white);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.1),
        rgba(236, 72, 153, 0.1)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    font-size: 80px;
    margin-bottom: 1.5rem;
    animation: float-slow 6s ease-in-out infinite;
}

.product-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Platforms Section */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 4-column grid for platforms */
.platforms-grid.platforms-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1400px) {
    .platforms-grid.platforms-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .platforms-grid.platforms-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Platform Badge */
.platform-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    z-index: 10;
}

.platform-badge.security {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Platform Tagline */
.platform-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: -0.5rem 0 0.5rem 0;
}

/* Platform icon for SEPA */
/* Signature du logo Mandat-SEPA (SVG, sans fond) : un paraphe, pas une icône — plus large que haute */
.platform-logo-sepa {
    display: block;
    width: clamp(210px, 26vw, 260px);
    height: auto;
    margin: 0 auto;
    /* pas de filtre, pas d'animation : un SVG léger qui ne coûte rien au scroll (leçon du crash Chrome) */
}

.platform-logo-sepa + h2 {
    margin-top: 0.15rem;
}

.platform-icon.sepa {
    font-size: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Button outline style */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.platform-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05),
        rgba(168, 85, 247, 0.05));
    backdrop-filter: blur(12px) saturate(140%);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 40px rgba(168, 85, 247, 0.15),
        inset 0 2px 1px rgba(255, 255, 255, 0.15),
        inset 0 -2px 8px rgba(168, 85, 247, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: visible;
}

/* Compact version for 4-column grid */
.platforms-grid-4 .platform-card {
    padding: 1.5rem 1.2rem;
    gap: 0.8rem;
    border-radius: 20px;
}

.platforms-grid-4 .platform-card h2 {
    font-size: 1.2rem;
}

.platforms-grid-4 .platform-description {
    font-size: 0.85rem;
    line-height: 1.5;
}

.platforms-grid-4 .platform-features {
    gap: 0.4rem;
}

.platforms-grid-4 .feature-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

.platforms-grid-4 .platform-icon {
    font-size: 50px;
}

.platforms-grid-4 .platform-logo {
    width: 100px;
    height: auto;
}

.platforms-grid-4 .btn-secondary,
.platforms-grid-4 .btn-primary,
.platforms-grid-4 .btn-outline {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
}

.platforms-grid-4 .product-actions {
    gap: 0.5rem;
}

.platforms-grid-4 .product-note {
    font-size: 0.7rem;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: -1.5px;
    right: -1.5px;
    bottom: -1.5px;
    background: linear-gradient(135deg, 
        var(--primary-purple) 0%,
        var(--primary-pink) 50%,
        var(--primary-indigo) 100%);
    border-radius: 32px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    animation: border-rotate 8s linear infinite;
}

.platform-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
        rgba(168, 85, 247, 0.2) 0%,
        rgba(236, 72, 153, 0.15) 30%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 32px;
}

.platform-card:hover::before {
    opacity: 0.7;
}

.platform-card:hover::after {
    opacity: 1;
}

.platform-card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: transparent;
    box-shadow: 
        0 40px 100px rgba(168, 85, 247, 0.7),
        0 20px 60px rgba(236, 72, 153, 0.5),
        0 0 100px rgba(168, 85, 247, 0.4),
        inset 0 2px 2px rgba(255, 255, 255, 0.25),
        inset 0 -2px 10px rgba(168, 85, 247, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15), 
        rgba(255, 255, 255, 0.08),
        rgba(168, 85, 247, 0.1));
}

@keyframes border-rotate {
    0% {
        background: linear-gradient(135deg, 
            var(--primary-purple) 0%,
            var(--primary-pink) 50%,
            var(--primary-indigo) 100%);
    }
    25% {
        background: linear-gradient(225deg, 
            var(--primary-pink) 0%,
            var(--primary-indigo) 50%,
            var(--primary-purple) 100%);
    }
    50% {
        background: linear-gradient(315deg, 
            var(--primary-indigo) 0%,
            var(--primary-purple) 50%,
            var(--primary-pink) 100%);
    }
    75% {
        background: linear-gradient(45deg, 
            var(--primary-purple) 0%,
            var(--primary-indigo) 50%,
            var(--primary-pink) 100%);
    }
    100% {
        background: linear-gradient(135deg, 
            var(--primary-purple) 0%,
            var(--primary-pink) 50%,
            var(--primary-indigo) 100%);
    }
}

.platform-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, 
        rgba(168, 85, 247, 0.18),
        rgba(236, 72, 153, 0.12),
        rgba(99, 102, 241, 0.08));
    border: 2px solid rgba(168, 85, 247, 0.6);
    box-shadow: 
        0 30px 90px rgba(168, 85, 247, 0.4),
        0 15px 50px rgba(236, 72, 153, 0.3),
        0 0 80px rgba(168, 85, 247, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.2),
        inset 0 -2px 10px rgba(168, 85, 247, 0.15);
}

.platform-card.featured::before {
    opacity: 0.3;
}

.platform-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
    padding: 1rem 0;
}

.platform-header::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(168, 85, 247, 0.5) 20%,
        rgba(236, 72, 153, 0.8) 50%,
        rgba(99, 102, 241, 0.5) 80%,
        transparent);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.platform-card:hover .platform-header::before {
    opacity: 1;
    width: 100%;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
}

.platform-icon {
    font-size: 120px;
    animation: float-slow 6s ease-in-out infinite, icon-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 22px rgba(168, 85, 247, 0.5));
    will-change: transform, opacity;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 20px 50px rgba(168, 85, 247, 0.9))
            drop-shadow(0 0 80px rgba(236, 72, 153, 0.7));
}

/* Halos : on n'anime JAMAIS `filter: drop-shadow(...)` — le flou est recalculé à chaque frame et fait planter
   l'onglet sur GPU faible (cause du crash constaté). Le halo est posé une fois, l'animation ne joue que sur
   l'opacité (composited : quasi gratuit). */
@keyframes icon-pulse {
    0%, 100% { opacity: 0.55; transform: translateY(0) scale(1); }
    50%      { opacity: 0.85; transform: translateY(-2px) scale(1.01); }
}

.platform-logo {
    width: clamp(180px, 24vw, 240px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    animation: float-slow 6s ease-in-out infinite, logo-glow-pulse 4s ease-in-out infinite;
    /* un seul drop-shadow (trois superposés coûtent cher à chaque composite, surtout sur mobile) */
    filter: drop-shadow(0 10px 28px rgba(168, 85, 247, 0.55));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.platform-card:hover .platform-logo {
    transform: scale(1.12) rotate(-2deg);
    filter: drop-shadow(0 20px 60px rgba(168, 85, 247, 1)) 
            drop-shadow(0 0 90px rgba(236, 72, 153, 0.9))
            drop-shadow(0 -8px 50px rgba(99, 102, 241, 0.6));
}

@keyframes logo-glow-pulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.65; }
    50% {
        filter: drop-shadow(0 15px 40px rgba(168, 85, 247, 0.9)) 
                drop-shadow(0 0 60px rgba(236, 72, 153, 0.7));
    }
}

.platform-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, 
        var(--primary-purple) 0%,
        var(--primary-pink) 50%,
        var(--primary-indigo) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* `text-shadow` sous `background-clip: text` : coûteux et sans effet visible sur un texte transparent en
       couleur — retiré (il était recalculé en continu à cause de l'animation). */
    position: relative;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.platform-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    text-align: center;
}

.platform-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.feature-badge {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.25),
        rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.feature-badge:hover::before {
    left: 100%;
}

.feature-badge:hover {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.4),
        rgba(236, 72, 153, 0.3));
    border-color: rgba(168, 85, 247, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(168, 85, 247, 0.5);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(168, 85, 247, 0.8);
    transform: translateY(-2px);
}

.btn-secondary.btn-disabled {
    background: rgba(100, 100, 100, 0.15);
    border-color: rgba(150, 150, 150, 0.3);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary.btn-disabled:hover {
    background: rgba(100, 100, 100, 0.15);
    border-color: rgba(150, 150, 150, 0.3);
    transform: none;
    cursor: not-allowed;
}

.btn-icon-lock {
    width: 20px;
    height: 20px;
    margin-right: 0.3rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-icon-left {
    width: 20px;
    height: 20px;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.product-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-gray);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Video Section */
.video-section {
    padding: 2rem 0;
    animation: fade-in-up 1s ease-out 0.8s backwards;
    max-width: 100%;
    overflow: hidden;
}

.video-section * {
    max-width: 100%;
}

/* Legacy - keeping for compatibility */
.video-tablet-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tablet Frame Design */
.tablet-frame {
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(168, 85, 247, 0.2);
    position: relative;
    display: block !important;
}

.tablet-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, #333, #444, #333);
    border-radius: 3px;
    z-index: 10;
}

.tablet-screen {
    background: linear-gradient(135deg, #0a0a12, #12121f);
    border-radius: 24px;
    overflow: hidden;
    display: flex !important;
    flex-direction: row;
    min-height: 550px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.tablet-home-button {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, #333, #222);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

/* Video Side */
.video-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 10px;
    min-width: 520px;
}

.linkedin-embed {
    border-radius: 12px;
    max-width: 100%;
    display: block;
}

/* Karaoke Side */
.karaoke-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, 
        rgba(168, 85, 247, 0.1) 0%,
        rgba(15, 15, 25, 0.95) 30%,
        rgba(15, 15, 25, 0.98) 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

/* Animated background glow */
.karaoke-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    animation: karaoke-glow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes karaoke-glow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    25% { transform: translate(10%, 10%); opacity: 0.8; }
    50% { transform: translate(-5%, 15%); opacity: 0.6; }
    75% { transform: translate(-10%, -5%); opacity: 0.7; }
}

/* Karaoke Header */
.karaoke-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.karaoke-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-icon 2s ease-in-out infinite;
    flex-shrink: 0;
}

.karaoke-icon svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    color: white;
    flex-shrink: 0;
}

@keyframes pulse-icon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(168, 85, 247, 0.2); }
}

.karaoke-header .karaoke-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Audio Wave Animation */
.audio-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    height: 24px;
}

.audio-wave span {
    width: 3px;
    background: linear-gradient(to top, var(--primary-purple), var(--primary-pink));
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { animation-delay: 0s; height: 10px; }
.audio-wave span:nth-child(2) { animation-delay: 0.1s; height: 18px; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; height: 12px; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; height: 20px; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; height: 8px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Karaoke Content */
.karaoke-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    position: relative;
    z-index: 1;
}

.karaoke-content::-webkit-scrollbar {
    width: 4px;
}

.karaoke-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.karaoke-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-purple), var(--primary-pink));
    border-radius: 2px;
}

/* Karaoke Line */
.karaoke-line {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    transform: translateX(-10px);
}

.karaoke-line.upcoming {
    opacity: 0.6;
    transform: translateX(0);
}

.karaoke-line.active {
    opacity: 1;
    background: rgba(168, 85, 247, 0.15);
    border-left-color: var(--primary-purple);
    transform: translateX(0) scale(1.02);
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.3),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.karaoke-line.passed {
    opacity: 0.3;
    transform: translateX(0);
}

.karaoke-line .timestamp {
    font-size: 0.7rem;
    color: var(--primary-purple);
    margin-bottom: 0.3rem;
    font-family: 'Courier New', monospace;
}

.karaoke-line .text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Word-by-word karaoke effect */
.karaoke-line .text .word {
    display: inline-block;
    transition: all 0.3s ease;
    margin-right: 0.25rem;
}

.karaoke-line.active .text .word {
    opacity: 0.4;
}

.karaoke-line.active .text .word.highlighted {
    opacity: 1;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(168, 85, 247, 0.8),
        0 0 20px rgba(168, 85, 247, 0.5),
        0 0 30px rgba(236, 72, 153, 0.3);
    animation: word-glow 0.5s ease-out;
}

@keyframes word-glow {
    0% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Progress Bar */
.karaoke-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Responsive for Tablet Preview */
@media (max-width: 1024px) {
    .tablet-screen {
        flex-direction: column !important;
    }
    
    .video-side {
        width: 100%;
        min-width: auto;
    }
    
    .linkedin-embed {
        width: 100% !important;
        height: 450px;
    }
    
    .karaoke-side {
        min-height: 300px;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .tablet-frame {
        border-radius: 24px;
        padding: 12px;
    }
    
    .tablet-screen {
        border-radius: 16px;
        min-height: auto;
    }
    
    .linkedin-embed {
        height: 350px;
    }
    
    .karaoke-side {
        padding: 1rem;
    }
    
    .karaoke-line .text {
        font-size: 0.9rem;
    }
    
    .karaoke-header {
        flex-wrap: wrap;
    }
    
    .audio-wave {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   Simple Video Section
   =========================== */
.simple-video-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1rem;
}

.simple-video-container video {
    width: 100% !important;
    max-width: 700px !important;
    height: auto !important;
    max-height: 400px !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Big Play Overlay */
.big-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.big-play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.big-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.big-play-btn {
    width: 90px;
    height: 90px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 
        0 15px 50px rgba(168, 85, 247, 0.6),
        0 0 30px rgba(236, 72, 153, 0.4);
}

.big-play-btn:hover {
    transform: scale(1.15);
    box-shadow: 
        0 20px 60px rgba(168, 85, 247, 0.8),
        0 0 50px rgba(236, 72, 153, 0.5);
}

.big-play-btn svg {
    width: 40px;
    height: 40px;
    margin-left: 5px;
}

/* Advanced Control Bar */
.video-control-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-player-wrapper:hover .video-control-bar,
.video-control-bar.visible {
    opacity: 1;
}

/* Progress Track */
.progress-track {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.progress-track:hover {
    height: 10px;
}

.progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    width: 0%;
}

.progress-current {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-pink));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.progress-track:hover .progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

/* Controls Row */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ctrl-btn {
    position: relative;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-purple);
}

.ctrl-btn svg {
    width: 22px;
    height: 22px;
}

.ctrl-btn .btn-label {
    position: absolute;
    font-size: 0.6rem;
    font-weight: bold;
    bottom: 2px;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.volume-slider {
    width: 0;
    opacity: 0;
    transition: all 0.3s;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

.volume-control:hover .volume-slider {
    width: 80px;
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.time-display {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
    min-width: 100px;
}

#speedLabel {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Presenter Badge */
.presenter-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.badge-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    max-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-purple);
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.badge-role {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Video Highlights Bar */
.video-highlights-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.highlight-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.highlight-chip:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

/* Video Section Responsive */
@media (max-width: 768px) {
    .video-theater {
        padding: 0 0.5rem;
    }
    
    .video-main-container {
        border-radius: 16px;
    }
    
    .big-play-btn {
        width: 70px;
        height: 70px;
    }
    
    .big-play-btn svg {
        width: 32px;
        height: 32px;
    }
    
    .presenter-badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.4rem 0.8rem 0.4rem 0.4rem;
    }
    
    .badge-avatar {
        width: 32px;
        height: 32px;
    }
    
    .badge-name {
        font-size: 0.75rem;
    }
    
    .badge-role {
        font-size: 0.6rem;
    }
    
    .controls-row {
        flex-wrap: wrap;
    }
    
    .video-highlights-bar {
        gap: 0.5rem;
    }
    
    .highlight-chip {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ctrl-btn {
        padding: 0.4rem;
    }
    
    .ctrl-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .time-display {
        font-size: 0.7rem;
        min-width: 70px;
    }
    
    .volume-control:hover .volume-slider {
        width: 50px;
    }
}

/* Lead Created Notification */
@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.lead-created-notification {
    font-family: 'Poppins', sans-serif;
}

.lead-created-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lead-created-notification .notification-icon {
    font-size: 1.2rem;
}

/* Calendly Section */
.calendly-section {
    padding: 3rem 0;
    animation: fade-in-up 1s ease-out 0.8s backwards;
}

.calendly-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.calendly-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary-purple) 20%,
        var(--primary-pink) 80%,
        transparent);
    opacity: 0.8;
}

.calendly-container:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 25px 70px rgba(168, 85, 247, 0.5),
                0 0 60px rgba(236, 72, 153, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.calendly-inline-widget {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    animation: fade-in-up 1s ease-out 0.4s backwards;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-card a:hover {
    color: var(--primary-pink);
    transform: translateY(-2px);
}

.contact-card a:active {
    transform: translateY(0);
}

/* Social Networks Section */
.social-section {
    padding: 3rem 0;
    animation: fade-in-up 1s ease-out 0.7s backwards;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-white);
    min-width: 100px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-purple);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3);
}

.social-link:active {
    transform: translateY(-4px);
}

.social-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    color: var(--primary-pink);
    transform: scale(1.1) rotate(5deg);
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.social-link:hover span {
    color: var(--text-white);
}

/* Services Section */
.services-section {
    padding: 3rem 0;
    animation: fade-in-up 1s ease-out 0.6s backwards;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-white);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.service-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-white);
    color: var(--text-gray);
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ===========================
   Chat Modal
   =========================== */
.chat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fade-in 0.3s ease;
    overflow-y: auto; /* Allow modal to scroll */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.chat-modal.active {
    display: flex;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    height: 700px;
    max-height: 90vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(168, 85, 247, 0.4);
    animation: scale-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; /* Ensure proper stacking */
    z-index: 1001; /* Above modal overlay */
}

@keyframes scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(168, 85, 247, 0.1);
}

.chat-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header .assistant-avatar {
    width: 50px;
    height: 50px;
    font-size: 30px;
    overflow: hidden;
}

.chat-header .assistant-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.assistant-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.status {
    font-size: 0.85rem;
    color: #4ade80;
}

.close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.close-btn svg {
    width: 24px;
    height: 24px;
}

.new-session-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.new-session-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.05);
}

.new-session-btn svg {
    width: 20px;
    height: 20px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}

.welcome-message {
    text-align: center;
    padding: 2rem;
}

.welcome-icon {
    font-size: 60px;
    margin-bottom: 1rem;
}

.welcome-message h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: var(--text-gray);
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: slide-in 0.3s ease;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar .assistant-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    max-width: 70%;
    padding: 1rem;
    border-radius: 16px;
    line-height: 1.6;
}

.message.assistant .message-content {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.message.user .message-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-purple);
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-white);
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-white);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.15);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: var(--text-white);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.send-btn svg {
    width: 24px;
    height: 24px;
}

/* ===========================
   Instruction Overlay
   =========================== */
.instruction-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999; /* Au-dessus de tout */
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instruction-overlay.active {
    display: flex;
    opacity: 1;
}

.instruction-content {
    text-align: center;
    padding: 3rem;
    max-width: 500px;
    animation: scale-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10000; /* Au-dessus de l'overlay */
}

.instruction-icon {
    font-size: 100px;
    margin-bottom: 1.5rem;
    animation: float-slow 6s ease-in-out infinite;
}

.instruction-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.instruction-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.instruction-content .btn-primary {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    z-index: 10001;
    position: relative;
}

/* ===========================
   Animations
   =========================== */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* WhatsApp Floating Button — bottom-right only */
.whatsapp-float {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    left: auto;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: none;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(1.05);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .brand-section {
        padding: 2rem 0;
    }

    .logo {
        width: clamp(200px, 48vw, 280px);
        max-width: 85%;
    }

    .video-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .calendly-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .calendly-inline-widget {
        min-width: 280px !important;
        height: 600px !important;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .company-name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .product-card {
        padding: 2rem;
    }

    .product-icon {
        font-size: 60px;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .platform-card {
        padding: 2rem;
    }

    .platform-card.featured {
        grid-column: span 1;
    }

    .platform-icon {
        font-size: 100px;
    }

    .platform-logo {
        width: clamp(160px, 40vw, 220px);
        height: auto;
    }

    .platform-card h2 {
        font-size: 1.5rem;
    }

    .feature-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-link {
        min-width: 90px;
        padding: 1.25rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .whatsapp-float {
        bottom: max(16px, env(safe-area-inset-bottom));
        right: max(12px, env(safe-area-inset-right));
        width: 55px;
        height: 55px;
    }

    .assistant-bubble {
        width: 90px;
        height: 90px;
    }

    .assistant-avatar {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .chat-container {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .logo {
        width: clamp(180px, 48vw, 240px);
        max-width: 80%;
    }

    .platform-logo {
        width: clamp(140px, 40vw, 200px);
        height: auto;
    }

    .platform-icon {
        font-size: 80px;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .product-card h2 {
        font-size: 1.8rem;
    }

    .assistant-bubble {
        width: 70px;
        height: 70px;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .animated-background,
    .floating-assistants,
    .agent-dock,
    .wizard-modal,
    .chat-modal,
    .instruction-overlay {
        display: none !important;
    }
}

/* ===========================
   GPU-safe dock + wizard (2026-08)
   Replaces free-floating agent bubbles
   =========================== */

/* Kill crash-prone float animations if any leftover nodes appear */
.assistant-bubble {
    animation: none !important;
    will-change: auto !important;
    filter: none !important;
}
.assistant-bubble::before {
    animation: none !important;
    filter: none !important;
}

.agent-dock {
    position: fixed;
    /* Left side — never overlaps WhatsApp (bottom-right) */
    left: max(16px, env(safe-area-inset-left));
    right: auto;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
    pointer-events: none;
}

.agent-launcher {
    pointer-events: all;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.55);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(236, 72, 153, 0.4));
    padding: 0;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 28px rgba(168, 85, 247, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: visible;
}

.agent-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(168, 85, 247, 0.55);
}

.agent-launcher:active {
    transform: scale(0.97);
}

.agent-launcher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.agent-launcher-status {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.agent-picker {
    pointer-events: all;
    min-width: 230px;
    max-width: min(280px, calc(100vw - 32px));
    background: rgba(15, 15, 25, 0.97);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.agent-picker[hidden] {
    display: none !important;
}

.agent-picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.agent-picker-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.agent-picker-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid;
    flex-shrink: 0;
}

.agent-picker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-picker-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.agent-picker-meta strong {
    font-size: 0.9rem;
}

.agent-picker-meta small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
}

.agent-picker-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-agent-chips {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.chat-agent-chip {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
}

.chat-agent-chip.active,
.chat-agent-chip:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: rgba(168, 85, 247, 0.6);
    color: #fff;
}

.wizard-cta {
    margin-top: 1.25rem;
}

.wizard-cta-secondary {
    cursor: pointer;
}

.wizard-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.wizard-modal[hidden] {
    display: none !important;
}

.wizard-dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1rem;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.wizard-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
}

.wizard-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.wizard-progress-bar {
    display: block;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    transition: width 0.25s ease;
}

.wizard-step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.wizard-caption {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    padding-right: 2rem;
}

.wizard-subcaption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.wizard-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
}

.wizard-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

.wizard-option:hover,
.wizard-option.selected {
    border-color: rgba(168, 85, 247, 0.7);
    background: rgba(168, 85, 247, 0.15);
}

.wizard-option strong {
    font-size: 0.95rem;
}

.wizard-option span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.wizard-reco p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.wizard-reco-links,
.wizard-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.wizard-actions .btn-primary,
.wizard-actions .btn-outline {
    min-width: 120px;
}

.brand-section .wizard-cta {
    display: inline-flex;
}

.platform-card code {
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.product-note a {
    color: #c4b5fd;
    text-decoration: underline;
}

/* WhatsApp stays bottom-right; agent dock is bottom-left — no overlap */
.whatsapp-float {
    bottom: max(24px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    left: auto;
    z-index: 1001;
    animation: none;
}

@media (max-width: 768px) {
    .agent-dock {
        left: max(12px, env(safe-area-inset-left));
        right: auto;
        bottom: max(16px, env(safe-area-inset-bottom));
    }
    .wizard-dialog {
        width: 100%;
        max-height: 100%;
        height: 100%;
        border-radius: 0;
        padding-top: max(1.25rem, env(safe-area-inset-top));
    }
    .wizard-modal {
        padding: 0;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle,
    .assistant-bubble,
    .assistant-bubble::before {
        animation: none !important;
    }
    .particle {
        display: none !important;
    }
    /* Le blur de fond (compositing GPU) est la première cause de plantage d'onglet sur GPU faible/éteint :
       sous `prefers-reduced-motion`, on le remplace par un fond opaque, sans changement de lisibilité. */
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .particle-decor,
    .gradient-text,
    .border-rotate {
        animation: none !important;
    }
    .gradient-text {
        background-image: none;
        -webkit-text-fill-color: currentColor;
        color: var(--primary-purple);
    }
}

/* Onglet en arrière-plan : plus aucune animation (les animations `infinite` ne consomment plus de GPU quand on ne
   regarde pas — cause classique de plantage sur les machines modestes). */
html.dmagh-hidden *,
html.dmagh-hidden *::before,
html.dmagh-hidden *::after {
    animation-play-state: paused !important;
}

/* Chat markdown + CTA strip (light) */
.message-text .chat-link {
    color: #c4b5fd;
    text-decoration: underline;
    word-break: break-word;
}
.message-text .chat-md-pre {
    margin: 0.4rem 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    overflow-x: auto;
    font-size: 0.78rem;
}

.chat-collab-pad {
    margin-top: 0.55rem;
}
.chat-collab-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chat-collab-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}
.chat-collab-btn:hover { filter: brightness(1.08); }

/* Boutons d'action sous une réponse de l'assistant (démo, tarifs, essai, support, contact) — le serveur décide,
   le visiteur clique. Sans `filter` sur mobile (coût GPU) et cibles tactiles d'au moins 44 px. */
.chat-actions {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.chat-action-btn {
    flex: 1 1 auto;
    min-height: 44px;
    cursor: pointer;
    border: 0;
    font-family: inherit;
}
.chat-action-btn:active { transform: scale(0.985); }
.chat-action-call,
.chat-action-whatsapp { background: linear-gradient(135deg, #059669, #10b981); }
.chat-action-support { background: linear-gradient(135deg, #b45309, #f59e0b); }
.chat-action-docs { background: linear-gradient(135deg, #334155, #475569); }

/* ===== Tunisian brands (vendeur.site / wassal.tn) ===== */
.tunisian-section-title {
    margin-top: 3rem;
}

.platforms-grid.platforms-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .platforms-grid.platforms-grid-2 {
        grid-template-columns: 1fr;
    }
}

.platform-badge.tunisian {
    background: linear-gradient(135deg, #e70013 0%, #c40010 55%, #ffffff 55%, #ffffff 100%);
    color: #111;
    border: 1px solid rgba(231, 0, 19, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(231, 0, 19, 0.25);
}

.platform-badge.tunisian .tn-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    background: #e70013;
    position: relative;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.platform-badge.tunisian .tn-flag::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translate(-35%, -50%);
    background: #fff;
    box-shadow: -2.5px 0 0 0 #e70013;
}

.platform-card.tunisian-brand {
    border: 1px solid rgba(231, 0, 19, 0.22);
    background:
        linear-gradient(180deg, rgba(231, 0, 19, 0.06) 0%, transparent 42%),
        var(--card-bg, rgba(255, 255, 255, 0.04));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.platform-card.tunisian-brand:hover,
.platform-card.tunisian-brand.is-expanded {
    border-color: rgba(231, 0, 19, 0.45);
    box-shadow: 0 12px 36px rgba(231, 0, 19, 0.12);
}

.platform-card.tunisian-brand.is-expanded {
    transform: none;
}

.interactive-card .product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.interactive-card .card-expand-btn {
    cursor: pointer;
}

.card-feature-panel {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(231, 0, 19, 0.18);
    display: grid;
    gap: 1rem;
    animation: tn-panel-in 0.28s ease;
}

.card-feature-panel[hidden] {
    display: none !important;
}

@keyframes tn-panel-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .card-feature-panel {
        animation: none;
    }
    .platform-card.tunisian-brand {
        transition: none;
    }
}

.feature-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--text-primary, #f5f5f5);
}

.feature-group ul {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.28rem;
}

.feature-group li {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--text-gray, #b0b0b0);
}

.tunisian-brands-grid .platform-features {
    flex-wrap: wrap;
}
