/* Stacked Cards Section Styles */
:root {
    --card-height: 420px;
    --card-top-offset: 120px;
    --card-margin: 2.5rem;
}

/* Fix for sticky positioning: The parent section must have overflow: visible */
/* Note: This is only needed for stacked cards, not for the methode grid section */
#methode.stacked-section {
    overflow: visible !important;
}

/* Fallback for browsers that don't support CSS variables */
@supports not (--css: variables) {
    :root {
        --card-height: 500px;
        --card-top-offset: 120px;
        --card-margin: 4rem;
    }
}

.stacked-section {
    padding: var(--section-spacing) 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.stacked-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stacked-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.stacked-title {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
    letter-spacing: -0.03em;
}

.stacked-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary, #a1a1aa);
    font-weight: 400;
}

/* Cards Container */
.stacked-cards-wrapper {
    position: relative;
    /* Ensure the wrapper has visible overflow just in case */
    overflow: visible;
    /* Add padding to ensure the last card has time to stack and stay pinned before the section ends */
    padding-bottom: var(--space-24);
    /* will-change: scroll-position — NE PAS utiliser will-change: transform ici,
       car cela crée un nouveau compositing layer GPU qui brise position: sticky sur les enfants */
    will-change: scroll-position;
}

/* Individual Card */
.stacked-card {
    /* Fallback for browsers that don't support sticky */
    position: relative;
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: var(--card-top-offset);
    /* Height will be overridden per child to ensure they all exit together */
    height: var(--card-height);
    margin-bottom: var(--card-margin);

    /* Fallback d'abord, puis variable CSS (ordre correct) */
    background: #13131a;
    background: var(--bg-secondary, #13131a);
    border: 1px solid var(--purple-400-rgba-2);
    border-radius: 24px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);

    overflow: hidden;
    display: flex;
    flex-direction: row;
    transform-origin: center top;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback for browsers that don't support sticky positioning */
@supports not (position: sticky) {
    .stacked-card {
        position: relative;
        margin-bottom: 2rem;
    }
    
    .stacked-cards-wrapper {
        display: flex;
        flex-direction: column;
    }
}

/* Hover effect similar to bento cards */
.stacked-card:hover {
    border-color: var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    box-shadow: 0 20px 60px var(--purple-400-rgba-15), 0 0 40px var(--purple-400-rgba-05);
    /* Utilise les variables du thème */
    transform: translateY(-2px);
    /* Slight lift on hover */
}

/* Stacking Logic & Synchronized Exit 
   We increase the height of earlier cards so their bottom edge aligns with the last card.
   This ensures the container pushes them all up at the exact same scroll position.
*/
.stacked-card:nth-child(1) {
    top: calc(var(--card-top-offset) + 0px);
    height: calc(var(--card-height) + 40px);
    z-index: 1;
}

.stacked-card:nth-child(2) {
    top: calc(var(--card-top-offset) + 10px);
    height: calc(var(--card-height) + 30px);
    z-index: 2;
}

.stacked-card:nth-child(3) {
    top: calc(var(--card-top-offset) + 20px);
    height: calc(var(--card-height) + 20px);
    z-index: 3;
}

.stacked-card:nth-child(4) {
    top: calc(var(--card-top-offset) + 30px);
    height: calc(var(--card-height) + 10px);
    z-index: 4;
}

.stacked-card:nth-child(5) {
    top: calc(var(--card-top-offset) + 40px);
    height: var(--card-height);
    z-index: 5;
}

/* Card Content Layout */
.stacked-card-content {
    flex: 0 0 45%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-right: 1px solid var(--purple-400-rgba-1);
    /* Subtle purple separator - utilise la variable du thème */
    /* Slight gradient for depth */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.01), transparent);
}

.stacked-card-visual {
    flex: 1;
    /* Transparent background to let blur effect work */
    background: transparent;
    position: relative;
    overflow: visible; /* Permettre aux ombres et animations de sortir */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Card Typography */
.card-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--purple-400-rgba-1);
    /* Purple tint bg - utilise la variable du thème */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-icon-wrapper svg {
    stroke: var(--purple-300, #6ee7b7);
    /* Lighter purple for icons */
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    /* Match bento bold */
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.card-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    /* Match bento text opacity */
    line-height: 1.5;
}

/* Visual Mockup Styles - Matching Bento Inner Cards */
.visual-mockup-container {
    width: 100%;
    height: 100%;
    /* Inner card style from bento */
    background: rgba(255, 255, 255, 0.03);
    background: rgba(26, 19, 37, 0.6); /* Fallback for browsers without backdrop-filter */
    border-radius: 16px;
    border: 1px solid var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .visual-mockup-container {
        background: rgba(26, 19, 37, 0.8);
    }
    
    .stacked-card {
        background: #13131a;
    }
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mockup-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mockup-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.mockup-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.mockup-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.mockup-value {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
}

/* Badges - Consistent Purple Theme */
.mockup-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Unified Purple Badge Style */
.badge-green,
.badge-red,
.badge-blue {
    background: var(--purple-400-rgba-1);
    /* Utilise la variable du thème */
    color: var(--purple-300, #6ee7b7);
    border: 1px solid var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
}

/* Progress bars and colored text overrides */
.mockup-value[style*="color: #10b981"] {
    color: var(--purple-400, #34d399) !important;
}

/* Script Generator Phases - 3 Animated Phases */
.script-generator-phases {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: transparent !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible; /* Permettre aux ombres et animations de sortir */
    padding: 0.5rem 2rem 2rem;
}

.script-phase {
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.script-phase.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.script-phase-1.active {
    animation: phase1Show 0.8s ease-out;
}

.script-phase-2.active {
    animation: phase2Show 0.8s ease-out;
}

.script-phase-3.active {
    animation: phase3Show 0.8s ease-out;
}

@keyframes phase1Show {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes phase2Show {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes phase3Show {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.script-phase-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.script-phase-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 2px solid var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    box-shadow: 0 0 20px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    transition: all 0.3s ease;
}

.script-phase.active .script-phase-number {
    background: var(--purple-400);
    /* Utilise la variable du thème */
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 25px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
}

.script-phase-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.3s ease;
}

.script-phase.active .script-phase-title {
    color: var(--purple-400);
    /* Utilise la variable du thème */
    font-weight: 600;
}

.script-phase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.script-phase-content.script-phase-center {
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
}

.script-phase-content.script-phase-result {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Phase 1 - Buttons Selection */
.script-phase-content.script-phase-buttons {
    grid-template-columns: 1fr;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
    overflow: visible; /* Permettre aux ombres de sortir */
}

.script-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: visible; /* Permettre aux ombres de sortir */
}

.script-button-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.script-button-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    transform: translateY(-1px);
}

.script-button-selected {
    background: var(--purple-400-rgba-08);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-5);
    /* Utilise la variable du thème */
    box-shadow: 0 0 20px var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
}

.script-button-clicking {
    transform: scale(0.98);
    box-shadow: 0 0 30px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-8);
    /* Utilise la variable du thème */
}

.script-button-clicked {
    animation: buttonClickPulse 0.5s ease-out;
}

@keyframes buttonClickPulse {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 30px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 40px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    }
}

.script-button-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--purple-400-rgba-1);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.script-button-selected .script-button-icon {
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-5);
    /* Utilise la variable du thème */
    box-shadow: 0 0 12px var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.script-button-content {
    flex: 1;
    min-width: 0;
}

.script-button-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.script-button-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.script-button-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--purple-400);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 12px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

/* Phase 2 - Questions */
.script-phase-content.script-phase-questions {
    grid-template-columns: 1fr;
    height: 100%;
    overflow-y: visible;
}

.script-questions-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.script-question-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.script-question-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--purple-400-rgba-1);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border-radius: 6px;
}

.script-question-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.script-question-required {
    color: rgba(239, 68, 68, 0.8);
    font-weight: 600;
}

.script-question-answer {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    min-height: 1.75rem;
    display: flex;
    align-items: center;
    position: relative;
}

.script-question-answer.script-question-empty {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.script-typing-text {
    display: inline-block;
}

.script-typing-cursor {
    display: inline-block;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    font-weight: 300;
    animation: typingCursor 1s ease-in-out infinite;
    margin-left: 2px;
    vertical-align: baseline;
}

@keyframes typingCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.script-typing-text.typing-complete + .script-typing-cursor {
    display: none;
}

.script-question-duration {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
    margin-top: 0.375rem;
}

.script-duration-slider {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.script-duration-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    text-align: center;
}

.script-duration-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
}

.script-duration-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--purple-400-rgba-6), var(--purple-400));
    /* Utilise les variables du thème */
    border-radius: 3px;
    box-shadow: 0 0 10px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    transition: width 0.3s ease;
}

.script-duration-fill-animated {
    width: 0% !important;
    animation: durationFill 1.5s ease-out forwards;
    animation-delay: 2.5s;
}

.script-duration-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple-400);
    /* Utilise la variable du thème */
    border: 2px solid white;
    box-shadow: 0 0 10px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    cursor: grab;
    transition: left 0.3s ease;
}

.script-duration-handle-animated {
    left: 0% !important;
    animation: durationHandle 1.5s ease-out forwards;
    animation-delay: 2.5s;
}

.script-duration-handle:active {
    cursor: grabbing;
}

.script-duration-typing {
    display: inline-block;
    min-width: 20px;
    text-align: right;
}

@keyframes durationFill {
    from { width: 0%; }
    to { width: 50%; }
}

@keyframes durationHandle {
    from { left: 0%; }
    to { left: 50%; }
}

/* Phase 1 & 2 & 3 - Chatbot Styles */
.script-phase-content.script-phase-chatbot {
    grid-template-columns: 1fr;
    height: 100%;
}

.script-chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.script-chatbot-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.script-chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 2px solid var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.script-chatbot-name {
    flex: 1;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.script-chatbot-status {
    font-size: 0.75rem;
    color: var(--purple-400-rgba-8);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.script-chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-400);
    /* Utilise la variable du thème */
    box-shadow: 0 0 10px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.script-chatbot-messages {
    flex: 1;
    overflow: hidden;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-height: 0;
}

.script-message {
    display: flex;
    gap: 0.5rem;
    animation: messageSlideIn 0.4s ease-out;
    flex-shrink: 0;
}

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

.script-message-user {
    justify-content: flex-end;
}

.script-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.script-message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.script-message-user .script-message-content {
    align-items: flex-end;
}

.script-message-text {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.script-message-bot .script-message-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-bottom-left-radius: 4px;
}

.script-message-user .script-message-text {
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    color: var(--purple-400);
    /* Utilise la variable du thème */
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 15px var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
}

.script-message-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 0.5rem;
}

.script-message.typing .script-message-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.script-typing-indicator {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.script-typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    animation: typingDot 1.4s ease-in-out infinite;
}

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

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

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.script-chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.script-chatbot-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}

.script-chatbot-input input:focus {
    border-color: var(--purple-400-rgba-5);
    /* Utilise la variable du thème */
    box-shadow: 0 0 10px var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
}

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

.script-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    color: var(--purple-400);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.script-send-btn:hover:not(:disabled) {
    background: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    box-shadow: 0 0 15px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    transform: translateY(-2px);
}

.script-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Phase 3 - Chat Result Styles (Design réel de l'app) */
.script-chat-result {
    padding: 0;
    background: transparent !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
}

.script-chat-result .script-chatbot-messages {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    align-items: flex-start;
}

.script-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.script-message-bot {
    justify-content: flex-start;
}

.script-message-user {
    flex-direction: row;
    justify-content: flex-start;
}

.script-message-avatar-bot {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--purple-400), var(--purple-500));
    /* Utilise les variables du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.script-message-avatar-bot svg {
    width: 14px;
    height: 14px;
}

.script-message-avatar-user {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--purple-400), var(--purple-500));
    /* Utilise les variables du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.script-message-bubble {
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    max-width: calc(100% - 2rem);
    word-wrap: break-word;
    min-width: 0;
    text-align: left;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    width: auto;
}

.script-message-bubble-bot {
    background: rgba(255, 255, 255, 0.05);
    border-top-left-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.script-message-bubble-user {
    background: var(--purple-400-rgba-15);
    /* Utilise la variable du thème */
    border-top-right-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
}

.script-message-text-content {
    font-size: 0.75rem;
    line-height: 1.4;
    color: inherit;
    text-align: left !important;
    display: block;
    width: 100%;
}

.script-message-text-simple {
    white-space: normal;
    text-align: left !important;
    display: block;
    width: 100%;
    word-wrap: break-word;
}

.script-generating-indicator {
    display: inline-block;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    animation: generatingPulse 1s ease-in-out infinite;
    margin-left: 2px;
}

@keyframes generatingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.script-message-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.375rem;
    gap: 0.5rem;
}

.script-message-info {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.script-message-copy-btn {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.script-message-copy-btn svg {
    width: 11px;
    height: 11px;
}

.script-message-copy-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.script-chat-result .script-chatbot-input {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.script-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
}

.script-input-icon {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.script-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    min-width: 0;
    padding: 0.25rem 0;
}

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

.script-input-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.script-input-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.script-input-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.script-input-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.script-send-btn-purple {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--purple-400);
    /* Utilise la variable du thème */
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    flex-shrink: 0;
    padding: 0;
}

.script-send-btn-purple:hover {
    background: var(--purple-400-rgba-9);
    /* Utilise la variable du thème */
    box-shadow: 0 0 20px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
}

/* Phase Indicator */
.script-phase-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.script-phase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.script-phase-dot.active {
    background: var(--purple-400);
    /* Utilise la variable du thème */
    box-shadow: 0 0 15px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    width: 30px;
    border-radius: 5px;
}

.script-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    margin-top: 0;
    padding: 0.5rem 0 0 0;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.script-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.script-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.script-step-item.active .script-step-circle {
    background: var(--purple-400);
    /* Utilise la variable du thème */
    border-color: var(--purple-400);
    /* Utilise la variable du thème */
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
}

.script-step-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-align: center;
}

.script-step-item.active .script-step-label {
    color: var(--purple-400);
    /* Utilise la variable du thème */
    font-weight: 600;
}

.script-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.script-step-dot.active {
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    color: var(--purple-400);
    /* Utilise la variable du thème */
    box-shadow: 0 0 15px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
}

.script-step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.script-step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    animation: stepLineFill 2s ease-in-out infinite;
}

.script-steps-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    position: relative;
}

.script-step-preview {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.script-step-preview.active {
    opacity: 1;
    border-color: var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    box-shadow: 0 4px 20px var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    transform: scale(1);
}

.script-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--purple-400-rgba-8);
    /* Utilise la variable du thème */
    margin-bottom: 0.75rem;
    text-align: center;
}

.script-mini-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.script-mini-option {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.script-mini-option.selected {
    background: var(--purple-400-rgba-15);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-5);
    /* Utilise la variable du thème */
    color: var(--purple-400);
    /* Utilise la variable du thème */
    box-shadow: 0 0 10px var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.script-mini-field {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.script-mini-panel.script-mini-center {
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 80px;
}

.script-mini-status {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.script-mini-btn {
    padding: 0.5rem 1rem;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-5);
    /* Utilise la variable du thème */
    border-radius: 8px;
    font-size: 0.7rem;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    text-align: center;
    box-shadow: 0 0 15px var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.script-mini-panel.script-mini-preview {
    gap: 0.4rem;
}

.script-mini-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.script-mini-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.script-preview-lines {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    pointer-events: none;
    z-index: 0;
}

@keyframes stepLineFill {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

@media (max-width: 968px) {
    .script-steps-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .script-steps-indicator {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .script-step-line {
        width: 20px;
    }
}

.script-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.script-panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.script-option {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.script-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.script-option-selected {
    background: var(--purple-400-rgba-1);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    color: var(--purple-400);
    /* Utilise la variable du thème */
    box-shadow: 0 0 20px var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.script-option-glow {
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    filter: blur(8px);
    z-index: -1;
}

.script-panel-center {
    justify-content: space-between;
    align-items: center;
}

.script-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.script-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-400-rgba-8);
    /* Utilise la variable du thème */
    box-shadow: 0 0 10px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
}

.script-step {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.script-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.script-scenario-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.script-generate-btn {
    padding: 0.75rem 2rem;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    border-radius: 12px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    transition: all 0.3s ease;
}

.script-generate-btn:hover {
    box-shadow: 0 0 30px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    transform: translateY(-2px);
}

.script-btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    filter: blur(10px);
    z-index: -1;
}

.script-detail-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
}

.script-field-content {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

.script-field-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    flex: 1;
}

.script-edit-icon {
    flex-shrink: 0;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.script-edit-icon:hover {
    opacity: 1;
}

.script-connection-line {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.script-line-bottom {
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 150px;
}

.script-line-right {
    top: 20%;
    left: -1.5rem;
    width: 100px;
    height: 200px;
}

.script-lead-magnet-icon {
    position: absolute;
    bottom: -2rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--purple-400-rgba-8);
    /* Utilise la variable du thème */
    font-size: 0.7rem;
    z-index: 2;
}

.script-lead-magnet-icon svg {
    filter: drop-shadow(0 0 8px var(--purple-400-rgba-6));
    /* Utilise la variable du thème */
}

@media (max-width: 968px) {
    .script-buttons-list {
        max-width: 100%;
    }
    
    .script-questions-container {
        max-width: 100%;
    }
}

/* Formation Modules Interface Styles */
.formation-modules {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: 0.5rem;
    overflow: hidden;
}

.formation-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    height: 100%;
}


.formation-module-card {
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.625rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    position: relative;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    justify-content: space-between;
}

.formation-module-card:hover {
    transform: translateY(-2px);
    border-color: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px var(--purple-400-rgba-15);
    /* Utilise la variable du thème */
}

.formation-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.formation-module-menu {
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.formation-new-lesson-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.4rem;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    border-radius: 4px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.formation-new-lesson-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.formation-new-lesson-btn:hover {
    background: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-5);
    /* Utilise la variable du thème */
    transform: scale(1.05);
    box-shadow: 0 2px 8px var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.formation-new-lesson-btn:hover::before {
    width: 100px;
    height: 100px;
}

.formation-new-lesson-btn:active {
    transform: scale(0.98);
}

.formation-new-lesson-btn:hover {
    background: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
}

.formation-new-lesson-btn svg {
    width: 11px;
    height: 11px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
}

.formation-favorite-btn svg {
    width: 13px;
    height: 13px;
}

.formation-favorite-btn {
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.formation-favorite-btn:hover {
    color: rgba(239, 68, 68, 0.8);
    transform: scale(1.15);
}

.formation-favorite-btn:active {
    transform: scale(1.3);
    color: rgba(239, 68, 68, 1);
}

.formation-module-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.25rem 0;
}

.formation-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--purple-400-rgba-2), var(--purple-500-rgba-2));
    /* Utilise les variables du thème */
    border: 1px solid var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    box-shadow: 0 0 20px var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
}

.formation-rocket-icon {
    background: linear-gradient(135deg, var(--purple-400-rgba-3), var(--purple-500-rgba-3));
    /* Utilise les variables du thème */
    box-shadow: 0 0 20px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    animation: rocketPulse 2s ease-in-out infinite;
}

@keyframes rocketPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    }
    50% {
        box-shadow: 0 0 30px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
    }
}

.formation-module-card:hover .formation-rocket-icon {
    animation: rocketFly 0.6s ease-in-out;
    transform: translateY(-3px);
}

@keyframes rocketFly {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(-5deg);
    }
    100% {
        transform: translateY(-3px) rotate(0deg);
    }
}

.formation-rocket-icon svg {
    width: 26px;
    height: 26px;
}

.formation-module-icon svg {
    width: 22px;
    height: 22px;
}

.formation-module-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.formation-module-stat {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.formation-module-card:hover .formation-module-stat {
    color: rgba(255, 255, 255, 0.8);
}

.formation-module-stat svg {
    width: 11px;
    height: 11px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.formation-module-card:hover .formation-module-stat svg {
    color: var(--purple-400-rgba-8);
    /* Utilise la variable du thème */
    transform: scale(1.1);
}

.formation-module-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.2;
    transition: color 0.2s ease;
    margin: 0.125rem 0;
}

.formation-module-card:hover .formation-module-title {
    color: var(--purple-400);
    /* Utilise la variable du thème */
}

.formation-module-description {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.2;
    transition: color 0.2s ease;
    margin-bottom: 0.25rem;
}

.formation-module-card:hover .formation-module-description {
    color: rgba(255, 255, 255, 0.8);
}

.formation-module-progress {
    margin-top: auto;
    padding-top: 0.25rem;
}

.formation-module-progress-bar {
    width: 100%;
    height: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.formation-module-card:hover .formation-module-progress-bar {
    height: 13px;
    box-shadow: 0 0 8px var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
}

.formation-module-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-400-rgba-6), var(--purple-400));
    /* Utilise les variables du thème */
    border-radius: 3px;
    transition: width 0.5s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    position: relative;
    overflow: hidden;
}

.formation-module-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.formation-module-card:hover .formation-module-progress-fill {
    box-shadow: 0 0 15px var(--purple-400-rgba-6);
    /* Utilise la variable du thème */
}

.formation-module-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    padding: 0 2px;
    min-width: 28px;
    text-align: center;
}

/* Responsive pour la grille de modules */
@media (max-width: 768px) {
    .formation-modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .formation-modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Assets Interface Styles */
.assets-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    gap: 1rem;
}

.assets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.assets-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assets-title-icon {
    color: var(--purple-400);
    /* Utilise la variable du thème */
    width: 20px;
    height: 20px;
}

.assets-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-400), var(--purple-500));
    /* Utilise les variables du thème (remplace le rose par du mauve pour la cohérence) */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.assets-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.assets-header-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assets-header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.assets-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.assets-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.assets-search-bar svg {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.assets-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.assets-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.assets-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.assets-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assets-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.assets-filter-btn svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.assets-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-bottom: 1rem;
}

.assets-list-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(18, 18, 23, 1), rgba(18, 18, 23, 0));
    pointer-events: none;
    z-index: 1;
}

.assets-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.assets-card-fade {
    opacity: 0.6;
    transform: scale(0.95);
}

.assets-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.assets-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.assets-card-icon svg {
    width: 16px;
    height: 16px;
}

.assets-card-content {
    flex: 1;
    min-width: 0;
}

.assets-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.125rem;
}

.assets-card-description {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

.assets-card-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.assets-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assets-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.assets-action-btn svg {
    width: 14px;
    height: 14px;
}

.assets-action-btn:first-child svg {
    fill: rgba(239, 68, 68, 1);
    color: rgba(239, 68, 68, 1);
}

/* Leaderboards Interface Styles */
.leaderboards-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem;
    padding-bottom: 1rem;
    gap: 0.625rem;
    overflow: hidden;
}

.leaderboards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.leaderboards-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.leaderboards-title-icon {
    color: var(--purple-400);
    /* Utilise la variable du thème */
    width: 16px;
    height: 16px;
}

.leaderboards-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    margin: 0;
}

.leaderboards-badges {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.leaderboards-badge {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.leaderboards-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.leaderboards-metric-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.leaderboards-metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.leaderboards-metric-content {
    flex: 1;
    min-width: 0;
}

.leaderboards-metric-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.125rem;
}

.leaderboards-metric-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.leaderboards-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Compact Ranking Section */
.leaderboards-ranking-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.leaderboards-ranking-header-compact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.leaderboards-ranking-header-compact svg {
    width: 12px;
    height: 12px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.leaderboards-ranking-card-compact {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.leaderboards-ranking-avatar-compact {
    flex-shrink: 0;
}

.leaderboards-ranking-avatar-bg-compact {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-400-rgba-3), var(--purple-500-rgba-3));
    /* Utilise les variables du thème */
    border: 1px solid var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--purple-400);
    /* Utilise la variable du thème */
}

.leaderboards-ranking-content-compact {
    flex: 1;
    min-width: 0;
}

.leaderboards-ranking-name-compact {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.125rem;
}

.leaderboards-ranking-level-compact {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboards-ranking-badge-compact {
    padding: 0.25rem 0.5rem;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.leaderboards-grade-card,
.leaderboards-streak-card {
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.leaderboards-grade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.leaderboards-grade-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboards-grade-title svg {
    width: 12px;
    height: 12px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.leaderboards-grade-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.4rem;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--purple-400);
    /* Utilise la variable du thème */
}

.leaderboards-grade-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.leaderboards-grade-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.125rem;
}

.leaderboards-grade-progress-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.375rem;
}

.leaderboards-grade-progress {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.leaderboards-grade-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.leaderboards-grade-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-400-rgba-6), var(--purple-400));
    /* Utilise les variables du thème */
    border-radius: 3px;
    transition: width 0.3s ease;
}

.leaderboards-grade-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboards-streak-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboards-streak-header svg {
    width: 12px;
    height: 12px;
    color: rgba(255, 165, 0, 1);
    flex-shrink: 0;
}

.leaderboards-streak-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    margin: 0.25rem 0;
}

.leaderboards-streak-message {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboards-streak-message svg {
    width: 10px;
    height: 10px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.leaderboards-ranking-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboards-ranking-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.leaderboards-ranking-header svg {
    width: 18px;
    height: 18px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
}

.leaderboards-tabs {
    display: flex;
    gap: 0.5rem;
}

.leaderboards-tab {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaderboards-tab.active {
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
    color: var(--purple-400);
    /* Utilise la variable du thème */
}

.leaderboards-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.leaderboards-ranking-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboards-ranking-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--purple-400-rgba-1);
    /* Utilise la variable du thème */
    border: 2px solid var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    border-radius: 8px;
}

.leaderboards-ranking-avatar {
    flex-shrink: 0;
}

.leaderboards-ranking-avatar-bg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 1), rgba(255, 152, 0, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.9);
    font-weight: 700;
    font-size: 0.875rem;
}

.leaderboards-ranking-content {
    flex: 1;
    min-width: 0;
}

.leaderboards-ranking-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.leaderboards-ranking-level {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboards-ranking-points {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

/* Sales Page Interface Styles */
.sales-page-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem;
    padding-bottom: 1rem;
    gap: 0.625rem;
    overflow: hidden;
}

.sales-page-header {
    margin-bottom: 0.25rem;
}

.sales-page-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sales-page-title-icon {
    color: var(--purple-400);
    /* Utilise la variable du thème */
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sales-page-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.sales-page-section {
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sales-page-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.sales-page-section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sales-page-section-icon {
    width: 12px;
    height: 12px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    flex-shrink: 0;
}

.sales-page-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.sales-page-section-settings {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.sales-page-section-settings:hover {
    color: rgba(255, 255, 255, 0.7);
}

.sales-page-section-description {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.sales-page-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sales-page-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sales-page-required {
    color: rgba(239, 68, 68, 1);
}

.sales-page-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: normal;
    margin-left: 0.25rem;
}

.sales-page-input {
    padding: 0.5rem 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
}

.sales-page-input:focus {
    border-color: var(--purple-400-rgba-5);
    /* Utilise la variable du thème */
    box-shadow: 0 0 0 3px var(--purple-400-rgba-1);
    /* Utilise la variable du thème */
}

.sales-page-input[readonly] {
    background: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
}

.sales-page-hint-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.sales-page-link-wrapper {
    display: flex;
    gap: 0.375rem;
    align-items: stretch;
}

.sales-page-link-input {
    flex: 1;
    padding: 0.5rem 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-family: monospace;
    outline: none;
    transition: all 0.2s ease;
}

.sales-page-link-input:focus {
    border-color: var(--purple-400-rgba-5);
    /* Utilise la variable du thème */
    box-shadow: 0 0 0 3px var(--purple-400-rgba-1);
    /* Utilise la variable du thème */
}

.sales-page-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.625rem;
    background: var(--purple-400-rgba-2);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    border-radius: 6px;
    color: var(--purple-400);
    /* Utilise la variable du thème */
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sales-page-copy-btn:hover {
    background: var(--purple-400-rgba-3);
    /* Utilise la variable du thème */
    border-color: var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
}

.sales-page-copy-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.sales-page-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sales-page-save-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--purple-400);
    /* Utilise la variable du thème */
    border: 1px solid var(--purple-400);
    /* Utilise la variable du thème */
    border-radius: 6px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sales-page-save-btn:hover {
    background: var(--purple-500);
    /* Utilise la variable du thème */
    border-color: var(--purple-500);
    /* Utilise la variable du thème */
    box-shadow: 0 0 15px var(--purple-400-rgba-4);
    /* Utilise la variable du thème */
}

.sales-page-save-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.sales-page-cancel-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sales-page-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Tablet: 769px–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .stacked-card-content {
        flex: 0 1 55%;
        max-width: 55%;
    }

    .stacked-card-visual {
        flex: 0 1 45%;
        max-width: 45%;
    }
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .stacked-card {
        flex-direction: column;
        height: auto;
        min-height: 600px;
    }

    .stacked-card-content {
        flex: none;
        width: 100%;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--purple-400-rgba-1);
    /* Utilise la variable du thème */
    }

    .stacked-card-visual {
        min-height: 300px;
        padding: 1rem;
    }

    .stacked-title {
        font-size: 2rem;
    }
}

/* Mobile: désactiver sticky, masquer mockups lourds, réduire hauteurs */
@media (max-width: 768px) {
    :root {
        --card-top-offset: 72px;
        --card-margin: 1.25rem;
    }

    .stacked-card {
        position: relative;
        top: auto;
        height: auto;
        min-height: auto;
        margin-bottom: var(--card-margin);
    }

    .stacked-card:nth-child(1),
    .stacked-card:nth-child(2),
    .stacked-card:nth-child(3),
    .stacked-card:nth-child(4),
    .stacked-card:nth-child(5) {
        top: auto;
        height: auto;
    }

    .stacked-card-content {
        padding: 24px 20px;
    }

    .stacked-card-visual {
        display: none;
        min-height: 0;
    }

    .stacked-title {
        font-size: 2rem;
    }
}

/* Mobile S: très petits écrans */
@media (max-width: 390px) {
    .stacked-title {
        font-size: 1.75rem;
    }

    .card-description {
        font-size: 13px;
    }

    .stacked-card-content {
        padding: 20px 16px;
    }
}
/* ============================================
   BUILDER INTERFACE (Vizion Web Card)
   ============================================ */
.builder-interface {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.builder-tabs {
    display: flex;
    gap: 0.4rem;
}

.builder-tab {
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.builder-tab-active {
    background: var(--purple-400-rgba-1);
    color: var(--purple-400, #a78bfa);
    border-color: var(--purple-400-rgba-2);
}

.builder-publish-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--purple-400-rgba-08, rgba(167, 139, 250, 0.08));
    border: 1px solid var(--purple-400-rgba-5, rgba(167, 139, 250, 0.5));
    border-radius: 6px;
    color: var(--purple-300, #c4b5fd);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.builder-body {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 0.6rem;
    flex: 1;
    min-height: 0;
}

.builder-blocks-panel {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.4rem;
    overflow: hidden;
}

.builder-panel-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 0.3rem;
    margin-bottom: 0.2rem;
}

.builder-block-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    cursor: grab;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.builder-block-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.builder-block-dragging {
    background: var(--purple-400-rgba-08, rgba(167, 139, 250, 0.08)) !important;
    border-color: var(--purple-400-rgba-5, rgba(167, 139, 250, 0.5)) !important;
    color: var(--purple-300, #c4b5fd) !important;
    animation: blockPulse 2s ease-in-out infinite;
}

@keyframes blockPulse {
    0%, 100% { box-shadow: 0 2px 10px var(--purple-400-rgba-2, rgba(167, 139, 250, 0.2)); }
    50% { box-shadow: 0 4px 18px var(--purple-400-rgba-4, rgba(167, 139, 250, 0.4)); }
}

.builder-block-drag {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.6rem;
    flex-shrink: 0;
}

.builder-block-dragging .builder-block-drag {
    color: var(--purple-400, #a78bfa);
}

.builder-canvas {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow: hidden;
}

.builder-canvas-block {
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.builder-canvas-block-label {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    font-size: 0.58rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
}

.builder-canvas-hero {
    background: linear-gradient(135deg, var(--purple-400-rgba-08, rgba(167, 139, 250, 0.08)), rgba(0, 0, 0, 0.15));
    border-color: var(--purple-400-rgba-2, rgba(167, 139, 250, 0.2));
}

.builder-canvas-hero-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.builder-canvas-hero-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.45rem;
}

.builder-canvas-hero-cta {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    background: var(--purple-400, #a78bfa);
    border-radius: 4px;
    font-size: 0.65rem;
    color: white;
    font-weight: 600;
}

.builder-canvas-drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem;
    border: 2px dashed var(--purple-400-rgba-3, rgba(167, 139, 250, 0.3));
    border-radius: 8px;
    font-size: 0.67rem;
    color: var(--purple-400-rgba-6, rgba(167, 139, 250, 0.6));
    background: var(--purple-400-rgba-05, rgba(167, 139, 250, 0.05));
    animation: dropZonePulse 2.5s ease-in-out infinite;
}

@keyframes dropZonePulse {
    0%, 100% {
        border-color: var(--purple-400-rgba-3, rgba(167, 139, 250, 0.3));
        background: rgba(167, 139, 250, 0.03);
    }
    50% {
        border-color: var(--purple-400-rgba-5, rgba(167, 139, 250, 0.5));
        background: rgba(167, 139, 250, 0.07);
    }
}

.builder-canvas-cta-block {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.builder-canvas-cta-btn {
    padding: 0.3rem 0.9rem;
    background: var(--purple-400-rgba-1, rgba(167, 139, 250, 0.1));
    border: 1px solid var(--purple-400-rgba-3, rgba(167, 139, 250, 0.3));
    border-radius: 5px;
    font-size: 0.67rem;
    color: var(--purple-300, #c4b5fd);
    font-weight: 600;
}

/* ============================================
   FORUM INTERFACE
   ============================================ */
.forum-interface {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.65rem;
    overflow: hidden;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.forum-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.6);
}

.forum-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.forum-new-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: var(--purple-400-rgba-08, rgba(167, 139, 250, 0.08));
    border: 1px solid var(--purple-400-rgba-5, rgba(167, 139, 250, 0.5));
    border-radius: 6px;
    color: var(--purple-300, #c4b5fd);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.forum-categories {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.forum-category {
    padding: 0.18rem 0.6rem;
    border-radius: 20px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}

.forum-category-active {
    background: var(--purple-400-rgba-1, rgba(167, 139, 250, 0.1));
    color: var(--purple-400, #a78bfa);
    border-color: var(--purple-400-rgba-3, rgba(167, 139, 250, 0.3));
}

.forum-threads {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.forum-thread {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.forum-thread:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--purple-400-rgba-2, rgba(167, 139, 250, 0.2));
}

.forum-thread-avatar {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--purple-400-rgba-2, rgba(167, 139, 250, 0.2));
    border: 1px solid var(--purple-400-rgba-3, rgba(167, 139, 250, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--purple-300, #c4b5fd);
    flex-shrink: 0;
}

.forum-thread-content {
    flex: 1;
    min-width: 0;
}

.forum-thread-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.28rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-thread-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.forum-thread-badge {
    padding: 0.08rem 0.38rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 500;
}

.forum-badge-strategy {
    background: rgba(167, 139, 250, 0.12);
    color: rgba(167, 139, 250, 0.9);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.forum-badge-victory {
    background: rgba(52, 211, 153, 0.1);
    color: rgba(52, 211, 153, 0.9);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.forum-badge-question {
    background: rgba(251, 191, 36, 0.1);
    color: rgba(251, 191, 36, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.forum-thread-stat {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.32);
}

.forum-thread-fade {
    opacity: 0.45;
}

.forum-threads-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(19, 19, 26, 0.92));
    pointer-events: none;
}

/* ============================================
   EVOLUTION + REVENDEUR INTERFACE
   ============================================ */
.evolution-interface {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.7rem;
    overflow: hidden;
}

.evolution-header {
    flex-shrink: 0;
}

.evolution-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.6);
}

.evolution-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: white;
}

.evolution-levels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    flex-shrink: 0;
}

.evolution-level-card {
    padding: 0.65rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    transition: all 0.2s;
}

.evolution-level-active {
    background: var(--purple-400-rgba-08, rgba(167, 139, 250, 0.08));
    border-color: var(--purple-400-rgba-4, rgba(167, 139, 250, 0.4));
    box-shadow: 0 0 18px var(--purple-400-rgba-1, rgba(167, 139, 250, 0.1));
}

.evolution-level-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.3);
}

.evolution-level-active .evolution-level-badge {
    color: var(--purple-400, #a78bfa);
}

.evolution-level-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.evolution-level-active .evolution-level-name {
    color: rgba(255, 255, 255, 0.9);
}

.evolution-level-commission {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.evolution-level-active .evolution-level-commission {
    color: var(--purple-400, #a78bfa);
}

.evolution-level-sub {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
}

.evolution-level-active .evolution-level-sub {
    color: rgba(255, 255, 255, 0.5);
}

.evolution-affiliate-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.evolution-affiliate-header {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.evolution-link-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.evolution-link-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.63rem;
    color: rgba(255, 255, 255, 0.45);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
}

.evolution-copy-btn {
    padding: 0.3rem 0.65rem;
    background: var(--purple-400-rgba-1, rgba(167, 139, 250, 0.1));
    border: 1px solid var(--purple-400-rgba-3, rgba(167, 139, 250, 0.3));
    border-radius: 6px;
    font-size: 0.63rem;
    color: var(--purple-300, #c4b5fd);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}

.evolution-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
}

.evolution-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.45rem;
    text-align: center;
}

.evolution-stat-label {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.15rem;
}

.evolution-stat-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
}

.evolution-stat-green {
    color: var(--purple-400, #a78bfa);
}

/* ============================================
   TOOLS CAROUSEL INTERFACE
   ============================================ */
.tools-carousel-interface {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.7rem;
    overflow: hidden;
}

.tools-carousel-header {
    flex-shrink: 0;
}

.tools-carousel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.tools-carousel-subtitle {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
}

.tools-carousel-track-wrapper {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.tools-carousel-track {
    display: flex;
    gap: 0.6rem;
    animation: toolsScrollLeft 22s linear infinite;
    width: max-content;
}

.tools-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes toolsScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tools-second-row {
    display: flex;
    gap: 0.6rem;
    animation: toolsScrollRight 28s linear infinite;
    width: max-content;
}

.tools-second-row:hover {
    animation-play-state: paused;
}

@keyframes toolsScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.tool-card {
    flex-shrink: 0;
    width: 118px;
    padding: 0.65rem 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    transition: all 0.2s;
    cursor: default;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--purple-400-rgba-3, rgba(167, 139, 250, 0.3));
    transform: translateY(-2px);
}

.tool-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--purple-400-rgba-1, rgba(167, 139, 250, 0.1));
    border: 1px solid var(--purple-400-rgba-2, rgba(167, 139, 250, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400, #a78bfa);
    flex-shrink: 0;
}

.tool-card-name {
    font-size: 0.73rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.tool-card-desc {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.35;
}

.tools-carousel-fade-left,
.tools-carousel-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35px;
    z-index: 2;
    pointer-events: none;
}

.tools-carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(19, 19, 26, 0.95), transparent);
}

.tools-carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(19, 19, 26, 0.95), transparent);
}

/* ============================================================
   FAITHFUL APP MINIATURES — new card mockups
   ============================================================ */

/* === CARD 1: VIZION WEB === */
.vw-mockup {
  padding: 1rem;
  overflow: hidden;
  gap: 0;
}
.vw-eyebrow {
  font-size: 0.52rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.vw-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.vw-main-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.vw-mtab {
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.1);
}
.vw-mtab.vw-mtab-active {
  color: #10b981;
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.1);
}
.vw-sub-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vw-stab {
  font-size: 0.48rem;
  color: rgba(255,255,255,0.35);
  padding: 0.25rem 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
}
.vw-stab.vw-stab-active {
  color: #fff;
  border-bottom-color: #fff;
}
.vw-split {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  min-height: 0;
}
.vw-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vw-field {}
.vw-field-label {
  font-size: 0.48rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}
.vw-field-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 0.25rem 0.5rem;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.85);
}
.vw-field-textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 0.25rem 0.5rem;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.85);
  min-height: 2.2rem;
}
.vw-color-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.vw-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid transparent;
}
.vw-color-dot.vw-color-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}
.vw-save-btn {
  margin-top: auto;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  font-size: 0.52rem;
  font-weight: 700;
  color: #10b981;
  text-align: center;
}
.vw-phone-wrap {
  display: flex;
  align-items: flex-start;
  padding-top: 0.2rem;
}
.vw-phone {
  width: 74px;
  min-height: 130px;
  background: #0a0a0a;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.15);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.vw-phone-notch {
  width: 22px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 5px auto 0;
}
.vw-phone-screen {
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.vw-bio-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1px;
}
.vw-bio-name {
  font-size: 0.48rem;
  font-weight: 700;
  color: #fff;
}
.vw-bio-desc {
  font-size: 0.4rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-bottom: 3px;
}
.vw-bio-link {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 3px 4px;
  font-size: 0.4rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
}

/* === VIZION WEB v2 — Pixel-perfect platform replica === */
.vw-view { display: none; flex-direction: column; flex: 1; min-height: 0; animation: vwFadeIn 0.3s ease; }
.vw-view-active, .vw-view.vw-view-active { display: flex !important; }
@keyframes vwFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.vw-subview { display: none; flex-direction: column; animation: vwFadeIn 0.25s ease; }
.vw-subview-active, .vw-subview.vw-subview-active { display: flex !important; }

/* Mockup container override — all mockups fill card height */
.vw-mockup, .fm2-mockup, .ac2-mockup, .ev2-mockup, .tools2-mockup { height: 100% !important; }
.vw-mockup { padding: 0 !important; gap: 0 !important; overflow: hidden !important; }

/* Top bar: main tabs + live */
.vw2-topbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.2); flex-shrink: 0; }
.vw2-main-tabs { display: flex; align-items: center; gap: 2px; }
.vw2-mtab { display: flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 6px; font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(161,161,170,1); cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; }
.vw2-mtab:hover:not(.vw2-mtab-active) { color: rgba(212,212,216,1); }
.vw2-mtab-active { color: #34d399; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }
.vw2-mtab svg { flex-shrink: 0; }
.vw2-live-badge { display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: #34d399; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); position: relative; }
.vw2-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #34d399; }
.vw2-live-dot-ping { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: #34d399; animation: vwPing 1.5s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes vwPing { 0% { transform: translateY(-50%) scale(1); opacity: 0.75; } 75%,100% { transform: translateY(-50%) scale(2.5); opacity: 0; } }

/* Body: editor + preview layout */
.vw2-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.vw2-editor { flex: 1; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,0.06); overflow-y: auto; overflow-x: hidden; }

/* Sub-tabs bar (Blocs / Avis / Stories) */
.vw2-subtabs-bar { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.15); flex-shrink: 0; }
.vw2-stab { display: flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 6px; font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(161,161,170,1); cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; }
.vw2-stab:hover:not(.vw2-stab-active) { color: rgba(212,212,216,1); }
.vw2-stab-active { color: #34d399; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }

/* Bloc list */
.vw2-bloclist { padding: 8px; display: flex; flex-direction: column; gap: 2.5px; flex: 1; }
.vw2-bloclist-header { display: flex; align-items: center; gap: 6px; padding: 4px 6px; margin-bottom: 2px; }
.vw2-bloc-icon-header { width: 19px; height: 19px; border-radius: 6px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); display: flex; align-items: center; justify-content: center; color: #34d399; }
.vw2-bloclist-title { font-size: 8px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }
.vw2-bloclist-count { font-size: 6.5px; color: rgba(161,161,170,0.6); }

/* Individual block */
.vw2-block { display: flex; align-items: center; gap: 5px; padding: 4.5px 7px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); transition: all 0.15s ease; }
.vw2-block:hover { border-color: rgba(255,255,255,0.09); background: rgba(255,255,255,0.02); }
.vw2-block-pinned { border-style: solid; background: rgba(255,255,255,0.015); }
.vw2-block-drag { font-size: 6px; color: rgba(255,255,255,0.15); cursor: grab; letter-spacing: -1px; user-select: none; }
.vw2-block-pin { color: rgba(16,185,129,0.5); display: flex; align-items: center; }
.vw2-block-icon { width: 19px; height: 19px; min-width: 19px; border-radius: 6px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); display: flex; align-items: center; justify-content: center; font-size: 9px; }
.vw2-block-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vw2-block-name { font-size: 7.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw2-block-desc { font-size: 5.5px; color: rgba(161,161,170,0.5); }
.vw2-block-actions { display: flex; align-items: center; gap: 4px; color: rgba(161,161,170,0.35); flex-shrink: 0; }
.vw2-block-actions svg { transition: color 0.15s; }
.vw2-block-actions svg:hover { color: rgba(255,255,255,0.5); }
.vw2-block-chevron { color: rgba(161,161,170,0.4); }

/* Avis sub-view */
.vw2-avis-view { padding: 8px; gap: 4px; }
.vw2-avis-card { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); }
.vw2-avis-avatar { width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: #10b981; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 800; color: #000; }
.vw2-avis-content { flex: 1; }
.vw2-avis-top { display: flex; align-items: center; gap: 4px; }
.vw2-avis-name { font-size: 7px; font-weight: 700; color: #fff; }
.vw2-avis-stars { font-size: 6px; color: #f59e0b; }
.vw2-avis-title { font-size: 6.5px; color: rgba(255,255,255,0.5); }

/* Stories sub-view */
.vw2-stories-view { padding: 8px; gap: 4px; }
.vw2-stories-empty { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 7px; color: rgba(255,255,255,0.3); }
.vw2-story-item { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); }
.vw2-story-thumb { width: 24px; height: 24px; min-width: 24px; border-radius: 6px; background: linear-gradient(135deg, #10b981, #059669); }
.vw2-story-info { flex: 1; display: flex; flex-direction: column; }

/* Preview panel */
.vw2-preview { flex: 0 0 35%; display: flex; flex-direction: column; align-items: center; padding: 10px 8px; overflow-y: auto; background: rgba(0,0,0,0.15); border-left: 0; }
.vw2-preview-frame { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); }
.vw2-preview-avatar { margin-bottom: 6px; }
.vw2-preview-avatar-ring { width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(#34d399, #06b6d4, #8b5cf6, #ec4899, #34d399); padding: 2px; display: flex; align-items: center; justify-content: center; }
.vw2-preview-avatar-inner { width: 100%; height: 100%; border-radius: 50%; background: #111827; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #34d399; }
.vw2-preview-name { font-size: 9px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.vw2-preview-tagline { font-size: 6px; color: rgba(255,255,255,0.5); margin-bottom: 2px; line-height: 1.3; }
.vw2-preview-bio { font-size: 5.5px; color: rgba(255,255,255,0.35); margin-bottom: 6px; line-height: 1.3; }
.vw2-preview-block-title { font-size: 7px; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 3px; align-self: stretch; text-align: left; padding: 0 2px; }
.vw2-preview-video { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06)); border-radius: 6px; border: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.vw2-preview-video svg { opacity: 0.4; }
.vw2-preview-link { width: 100%; padding: 4px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); font-size: 6.5px; font-weight: 600; color: rgba(255,255,255,0.6); text-align: center; margin-bottom: 3px; }

/* Landing Page preview */
.vw2-lp-frame { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); }
.vw2-lp-badge2 { font-size: 5.5px; font-weight: 700; color: #34d399; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15); border-radius: 8px; padding: 2px 6px; margin-bottom: 6px; }
.vw2-lp-heading { font-size: 9px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.vw2-lp-sub { font-size: 5.5px; color: rgba(255,255,255,0.45); line-height: 1.4; margin-bottom: 6px; }
.vw2-lp-cta { background: linear-gradient(135deg, #10b981, #059669); color: #000; font-size: 6.5px; font-weight: 800; padding: 4px 10px; border-radius: 6px; margin-bottom: 6px; cursor: pointer; transition: transform 0.2s; }
.vw2-lp-cta:hover { transform: scale(1.05); }
.vw2-lp-stats { display: flex; gap: 4px; width: 100%; }
.vw2-lp-stat { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; }
.vw2-lp-stat-val { font-size: 8px; font-weight: 800; color: #34d399; }
.vw2-lp-stat-label { font-size: 4.5px; color: rgba(255,255,255,0.35); }

/* Live badge as link */
.vw2-live-badge { text-decoration: none; }

/* Theme header */
.vw2-theme-header { padding: 10px 10px 0; flex-shrink: 0; }
.vw2-theme-section-title { font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.vw2-theme-cats { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; }
.vw2-theme-cat { display: flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 6px; font-size: 6.5px; font-weight: 800; color: rgba(161,161,170,1); cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.vw2-theme-cat:hover:not(.vw2-theme-cat-active) { color: rgba(212,212,216,1); }
.vw2-theme-cat-active { color: #34d399; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }
.vw2-theme-cat-count { font-size: 5.5px; background: rgba(255,255,255,0.06); border-radius: 4px; padding: 1px 3px; font-weight: 700; }
.vw2-theme-cat-active .vw2-theme-cat-count { background: rgba(16,185,129,0.15); color: #34d399; }

/* Themes grid */
.vw2-themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; flex: 1; align-content: start; }
.vw2-theme-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; cursor: pointer; transition: all 0.2s ease; }
.vw2-theme-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-1px); }
.vw2-theme-card.vw2-theme-active { border-color: rgba(16,185,129,0.4); ring: 1px solid rgba(16,185,129,0.2); }
.vw2-theme-preview { width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.vw2-theme-dot { width: 10px; height: 10px; border-radius: 50%; }
.vw2-theme-meta { padding: 4px 6px; display: flex; align-items: center; justify-content: space-between; }
.vw2-theme-name { font-size: 7px; font-weight: 700; color: rgba(255,255,255,0.7); }
.vw2-theme-check { font-size: 5.5px; color: #34d399; font-weight: 700; }

/* === CARD 2: FORUM === */
.fm-mockup {
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.fm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.fm-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fm-new-btn {
  font-size: 0.5rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.fm-categories {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.fm-cat {
  font-size: 0.48rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fm-cat.fm-cat-active {
  background: #10b981;
  color: #000;
  border-color: #10b981;
  font-weight: 700;
}
.fm-compose {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.55rem;
}
.fm-compose-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}
.fm-compose-input {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.25);
}
.fm-posts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.fm-post {
  display: flex;
  gap: 0.45rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.5rem;
}
.fm-post.fm-post-fade {
  opacity: 0.45;
}
.fm-post-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.fm-post-body { flex: 1; min-width: 0; }
.fm-post-top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}
.fm-post-user {
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
}
.fm-post-badge {
  font-size: 0.4rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fm-post-cat {
  font-size: 0.4rem;
  font-weight: 700;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  text-transform: uppercase;
}
.fm-cat-victoire { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.fm-cat-strategie { background: rgba(99,102,241,0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }
.fm-cat-question  { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.fm-post-title {
  font-size: 0.58rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-post-reactions {
  display: flex;
  gap: 0.5rem;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
}
.fm-fade-out {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55px;
  background: linear-gradient(to bottom, transparent, rgba(8,8,12,0.95));
  pointer-events: none;
  border-radius: 0 0 15px 15px;
}

/* === FORUM v2 — Pixel-perfect platform replica === */
.fm2-mockup { padding: 0 !important; gap: 0 !important; overflow: hidden !important; }

/* Channel tabs */
.fm2-channels { display: flex; align-items: center; gap: 2px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.15); flex-shrink: 0; flex-wrap: nowrap; overflow-x: auto; }
.fm2-chan { display: flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 6px; font-size: 7px; font-weight: 900; text-transform: none; letter-spacing: 0.02em; color: rgba(161,161,170,1); cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; white-space: nowrap; flex-shrink: 0; }
.fm2-chan:hover:not(.fm2-chan-active) { color: rgba(212,212,216,1); }
.fm2-chan-active { color: #34d399; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }

/* Compose bar */
.fm2-compose { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.fm2-compose-avatar { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); display: flex; align-items: center; justify-content: center; font-size: 6.5px; font-weight: 800; color: #000; }
.fm2-compose-input { flex: 1; font-size: 7px; color: rgba(255,255,255,0.25); }
.fm2-compose-btn { display: flex; align-items: center; gap: 2px; padding: 3px 8px; border-radius: 6px; font-size: 6.5px; font-weight: 800; color: #34d399; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); white-space: nowrap; }

/* Posts */
.fm2-posts { padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; overflow: hidden; }
.fm2-post-group { display: none; flex-direction: column; gap: 4px; }
.fm2-post-group-active { display: flex; }
.fm2-post-group-active .fm2-post { animation: fmPostIn 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.fm2-post-group-active .fm2-post:nth-child(1) { animation-delay: 0s; }
.fm2-post-group-active .fm2-post:nth-child(2) { animation-delay: 0.06s; }
.fm2-post-group-active .fm2-post:nth-child(3) { animation-delay: 0.12s; }
.fm2-post-group-active .fm2-post:nth-child(4) { animation-delay: 0.18s; }
@keyframes fmPostIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.fm2-post { display: flex; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); transition: all 0.15s; }
.fm2-post:hover { border-color: rgba(255,255,255,0.09); background: rgba(255,255,255,0.02); }
.fm2-post-avatar { width: 26px; height: 26px; min-width: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; color: #000; flex-shrink: 0; margin-top: 1px; }
.fm2-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fm2-post-meta { display: flex; align-items: center; gap: 4px; font-size: 7px; }
.fm2-post-user { font-weight: 800; color: #fff; }
.fm2-post-dot { color: rgba(255,255,255,0.2); }
.fm2-post-cat { color: rgba(161,161,170,0.6); font-weight: 600; }
.fm2-post-title { font-size: 9px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm2-post-desc { font-size: 7px; color: rgba(255,255,255,0.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm2-post-footer { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.fm2-reactions { font-size: 8px; display: flex; gap: 2px; }
.fm2-post-stat { font-size: 6.5px; color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 2px; }
.fm2-post-time { font-size: 6.5px; color: rgba(255,255,255,0.2); margin-left: auto; }

/* === ACADEMY v2 — Pixel-perfect platform replica === */
.ac2-mockup { padding: 0 !important; gap: 0 !important; overflow: hidden !important; }

/* Category bar (horizontal, like the real platform) */
.ac2-catbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.2); flex-shrink: 0; }
.ac2-catbar-left { display: flex; flex-direction: column; gap: 1px; }
.ac2-catbar-right { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
.ac2-cat-header { display: flex; align-items: center; gap: 4px; }
.ac2-cat-dot { width: 5px; height: 5px; border-radius: 50%; background: #34d399; }
.ac2-cat-label { font-size: 6px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #34d399; }
.ac2-cat-title { font-size: 10px; font-weight: 800; color: #fff; letter-spacing: -0.02em; text-transform: uppercase; }
.ac2-cat-stat { font-size: 5.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); padding: 2px 5px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.ac2-cat-stat-accent { color: #34d399; border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.06); }

/* Module list (vertical) */
.ac2-modules { display: flex; flex-direction: column; gap: 5px; padding: 8px; overflow: hidden; flex: 1; }

/* Individual module card — horizontal layout: thumb left, info right */
.ac2-module { display: flex; flex-direction: row; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); overflow: hidden; transition: all 0.2s; }
.ac2-module:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); }

/* Module thumbnail */
.ac2-module-thumb { position: relative; width: 80px; min-width: 80px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; overflow: hidden; background: url('../assets/fond-module-sm.jpg') center/cover !important; }
.ac2-thumb-glow { display: none; }
.ac2-module-num { position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: #10b981; display: flex; align-items: center; justify-content: center; font-size: 5.5px; font-weight: 900; color: #000; z-index: 1; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.ac2-module-thumb-title { font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.4); font-style: italic; letter-spacing: -0.02em; text-align: center; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.ac2-module-thumb-sub { font-size: 4.5px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.1em; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* Module body */
.ac2-module-body { padding: 5px 8px; display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; justify-content: center; }
.ac2-module-meta { font-size: 5.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); }
.ac2-module-badges { display: flex; gap: 2px; flex-wrap: wrap; }
.ac2-badge { font-size: 4.5px; font-weight: 800; padding: 1px 3px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.ac2-badge-starter { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.ac2-badge-pro { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.ac2-badge-premium { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.ac2-module-name { font-size: 7.5px; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac2-module-bottom { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.ac2-module-progress { display: flex; align-items: center; gap: 4px; flex: 1; }
.ac2-progress-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.ac2-progress-fill { height: 100%; border-radius: 2px; background: #34d399; transition: width 0.5s ease; }
.ac2-progress-text { font-size: 5.5px; font-weight: 700; color: #34d399; }
.ac2-module-arrow { font-size: 8px; color: rgba(255,255,255,0.25); transition: color 0.2s; }
.ac2-module:hover .ac2-module-arrow { color: rgba(255,255,255,0.5); }

/* === CARD 3: ACADEMY (legacy) === */
.ac-mockup {
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.ac-eyebrow {
  font-size: 0.52rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.ac-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.55rem;
}
.ac-level-badges {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}
.ac-level {
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ac-level.ac-level-active {
  background: rgba(16,185,129,0.12);
  color: #10b981;
  border-color: rgba(16,185,129,0.35);
}
.ac-level.ac-level-locked { opacity: 0.45; }
.ac-modules {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ac-module {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.ac-module.ac-module-fade { opacity: 0.4; }
.ac-module-thumb {
  width: 44px;
  height: 36px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ac-module-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.ac-module-info { flex: 1; min-width: 0; }
.ac-module-name {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
}
.ac-module-meta {
  font-size: 0.48rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}
.ac-module-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.ac-module-fill {
  height: 100%;
  background: #10b981;
  border-radius: 2px;
}
.ac-module-check {
  font-size: 0.65rem;
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
}
.ac-module-pct {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.ac-fade-out {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45px;
  background: linear-gradient(to bottom, transparent, rgba(8,8,12,0.95));
  pointer-events: none;
  border-radius: 0 0 15px 15px;
}

/* === ESPACE VENDEUR v2 — Pixel-perfect platform replica === */
.ev2-mockup { padding: 0 !important; gap: 0 !important; overflow: hidden !important; }

/* Tab bar */
.ev2-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.15); flex-shrink: 0; }
.ev2-tab { display: flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 6px; font-size: 7px; font-weight: 900; text-transform: none; letter-spacing: 0.02em; color: rgba(161,161,170,1); cursor: default; transition: all 0.2s; border: 1px solid transparent; white-space: nowrap; }
.ev2-tab-active { color: #fff; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }

/* 4 stat cards */
.ev2-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; }
.ev2-stat { border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; }
.ev2-stat-icon { font-size: 7px; font-weight: 800; color: rgba(255,255,255,0.3); }
.ev2-stat-label { font-size: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); }
.ev2-stat-value { font-size: 11px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.ev2-stat-sub { font-size: 4.5px; color: rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 0.04em; }

/* Chart area */
.ev2-chart { margin: 0 8px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); overflow: hidden; }
.ev2-chart-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 4px; }
.ev2-chart-left { display: flex; align-items: center; gap: 6px; }
.ev2-chart-icon { width: 20px; height: 20px; border-radius: 6px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); display: flex; align-items: center; justify-content: center; }
.ev2-chart-eyebrow { font-size: 5.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #34d399; }
.ev2-chart-title { font-size: 8px; font-weight: 700; color: #fff; }
.ev2-chart-right { text-align: right; }
.ev2-chart-amount { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.ev2-chart-currency { font-size: 8px; color: rgba(255,255,255,0.4); }
.ev2-chart-trend { font-size: 6px; font-weight: 700; color: #34d399; }
.ev2-chart-periods { display: flex; align-items: center; gap: 2px; padding: 2px 10px 6px; }
.ev2-period { font-size: 6px; font-weight: 700; color: rgba(255,255,255,0.3); padding: 2px 6px; border-radius: 4px; cursor: default; }
.ev2-period-active { color: #fff; background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.2); }
.ev2-chart-area { height: 60px; padding: 0 10px 6px; }
.ev2-chart-area svg { display: block; }

/* Sales history table */
.ev2-table { margin: 0 8px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); overflow: hidden; }
.ev2-table-header { padding: 6px 10px 4px; }
.ev2-table-title { font-size: 8px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }
.ev2-table-head { display: flex; padding: 3px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ev2-th { font-size: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); }
.ev2-th-name { flex: 2; }
.ev2-th-pack { flex: 1; text-align: center; }
.ev2-th-amount { flex: 1; text-align: right; }
.ev2-th-date { flex: 1; text-align: right; }
.ev2-table-row { display: flex; align-items: center; padding: 4px 10px; border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.15s; }
.ev2-table-row:last-child { border-bottom: none; }
.ev2-table-row:hover { background: rgba(255,255,255,0.02); }
.ev2-td { font-size: 6.5px; color: rgba(255,255,255,0.6); }
.ev2-td-name { flex: 2; display: flex; align-items: center; gap: 4px; }
.ev2-td-avatar { width: 16px; height: 16px; min-width: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 6px; font-weight: 800; color: #000; }
.ev2-td-user { font-size: 6.5px; font-weight: 700; color: #fff; }
.ev2-td-handle { font-size: 5px; color: rgba(255,255,255,0.3); }
.ev2-td-pack { flex: 1; text-align: center; }
.ev2-pack-badge { font-size: 5px; font-weight: 800; padding: 1.5px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.ev2-pack-starter { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.ev2-pack-pro { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.ev2-pack-premium { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.ev2-td-amount { flex: 1; text-align: right; font-weight: 700; color: #34d399; }
.ev2-td-date { flex: 1; text-align: right; font-size: 5.5px; color: rgba(255,255,255,0.25); }

/* === CARD 4: ESPACE VENDEUR (legacy) === */
.ev-mockup {
  padding: 1rem;
  overflow: hidden;
}
.ev-eyebrow {
  font-size: 0.52rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.ev-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.ev-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.ev-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
}
.ev-stat.ev-stat-highlight {
  border-color: rgba(16,185,129,0.2);
  background: rgba(16,185,129,0.05);
}
.ev-stat-label {
  font-size: 0.44rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.ev-stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.ev-green { color: #10b981; }
.ev-red   { color: #ef4444; }
.ev-chart {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.5rem;
}
.ev-chart-label {
  font-size: 0.44rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.ev-chart-area {
  height: 52px;
}

/* === TOOLS v2 — Slider with 6 tools === */
.tools2-mockup { padding: 0 !important; gap: 0 !important; overflow: hidden !important; position: relative; }

/* Navigation dots */
.tools2-nav { display: flex; justify-content: center; gap: 4px; padding: 8px 0 4px; flex-shrink: 0; }
.tools2-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); cursor: pointer; transition: all 0.3s; }
.tools2-dot-active { background: #34d399; width: 16px; border-radius: 3px; }

/* Slides */
.tools2-slides { flex: 1; overflow: hidden; position: relative; display: flex; }
.tools2-slide { display: none; flex-direction: column; padding: 6px 12px 10px; animation: vwFadeIn 0.35s ease; width: 100%; }
.tools2-slide-active { display: flex; }
/* Center content for slides that don't fill height (Flow, IA) */
.tools2-slide[data-tool="1"], .tools2-slide[data-tool="4"] { justify-content: center; }

/* Common header */
.tools2-header { margin-bottom: 6px; }
.tools2-eyebrow { font-size: 6px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #34d399; margin-bottom: 1px; }
.tools2-title { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }

/* Common tabs */
.tools2-tabs { display: flex; gap: 2px; margin-bottom: 6px; }
.tools2-tab { font-size: 7px; font-weight: 800; padding: 3px 7px; border-radius: 5px; color: rgba(161,161,170,1); border: 1px solid transparent; cursor: default; }
.tools2-tab-active { color: #fff; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }

/* Arrows */
.tools2-arrows { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; padding: 0 4px; transform: translateY(-50%); }
.tools2-arrow { width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.5); cursor: pointer; pointer-events: all; transition: all 0.2s; backdrop-filter: blur(4px); }
.tools2-arrow:hover { background: rgba(0,0,0,0.6); color: #fff; border-color: rgba(255,255,255,0.2); }

/* === Kit slide === */
.tools2-kit-list { display: flex; flex-direction: column; gap: 4px; }
.tools2-kit-item { display: flex; gap: 6px; padding: 5px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); transition: all 0.15s; }
.tools2-kit-item:hover { border-color: rgba(255,255,255,0.1); }
.tools2-kit-thumb { width: 50px; min-width: 50px; height: 36px; border-radius: 6px; background: url('../assets/fond-module-sm.jpg') center/cover; display: flex; align-items: center; justify-content: center; position: relative; }
.tools2-kit-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); border-radius: 6px; }
.tools2-kit-thumb-text { font-size: 7px; font-weight: 800; color: rgba(255,255,255,0.45); font-style: italic; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.tools2-kit-body { flex: 1; display: flex; flex-direction: column; gap: 1px; justify-content: center; }
.tools2-kit-tags { display: flex; gap: 3px; align-items: center; }
.tools2-kit-tag { font-size: 5px; font-weight: 800; padding: 1px 4px; border-radius: 3px; background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); text-transform: uppercase; }
.tools2-kit-type { font-size: 5px; color: rgba(255,255,255,0.3); }
.tools2-kit-name { font-size: 7.5px; font-weight: 700; color: #fff; }
.tools2-kit-cta { font-size: 6px; font-weight: 700; color: #34d399; }

/* === Flow slide === */
.tools2-flow-all { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 6px; }
.tools2-flow-ring { position: relative; display: flex; align-items: center; justify-content: center; }
.tools2-flow-inner { position: absolute; display: flex; flex-direction: column; align-items: center; }
.tools2-flow-session { font-size: 6px; color: rgba(255,255,255,0.3); font-weight: 700; }
.tools2-flow-time { font-size: 28px; font-weight: 800; color: rgba(255,255,255,0.15); letter-spacing: -0.02em; }
.tools2-flow-label { font-size: 7px; font-weight: 800; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }
.tools2-flow-btn { font-size: 7px; font-weight: 700; color: rgba(255,255,255,0.5); padding: 3px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); cursor: default; }
.tools2-flow-modes { display: flex; justify-content: center; gap: 2px; }
.tools2-fmode { font-size: 7px; font-weight: 800; padding: 4px 12px; border-radius: 6px; color: rgba(255,255,255,0.3); cursor: default; border: 1px solid transparent; text-transform: uppercase; }
.tools2-fmode-active { color: #fff; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }

/* === Planner slide === */
.tools2-planner-week { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tools2-planner-nav { font-size: 8px; font-weight: 700; color: #fff; }
.tools2-planner-stats { display: flex; gap: 6px; font-size: 6px; font-weight: 700; color: #34d399; }

/* Calendar grid */
.tools2-cal { display: flex; flex-direction: column; flex: 1; min-height: 150px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; background: rgba(255,255,255,0.01); }
.tools2-cal-hours { display: none; }
.tools2-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid rgba(255,255,255,0.06); }
.tools2-cal-day-head { text-align: center; padding: 3px 0; }
.tools2-cal-dlabel { font-size: 4.5px; color: rgba(255,255,255,0.35); text-transform: lowercase; }
.tools2-cal-dnum { font-size: 7px; font-weight: 800; color: #fff; }
.tools2-cal-today .tools2-cal-dlabel, .tools2-cal-today .tools2-cal-dnum { color: #34d399; }
.tools2-cal-today { border-bottom: 2px solid #34d399; }
.tools2-cal-body { position: relative; flex: 1; min-height: 0; }
.tools2-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); height: 100%; }
.tools2-cal-cell { border-right: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); }
.tools2-cal-cell:nth-child(7n) { border-right: none; }
.tools2-cal-event { position: absolute; border-radius: 4px; padding: 2px 3px; font-size: 5.5px; font-weight: 600; color: #fff; overflow: hidden; line-height: 1.2; }
/* Position events via inline grid-column/grid-row — we use absolute positioning based on grid percentages */
.tools2-cal-body .tools2-cal-event:nth-child(1) { left: 0%; top: 14.28%; width: 14.28%; height: 28.56%; }
.tools2-cal-body .tools2-cal-event:nth-child(2) { left: 0%; top: 71.4%; width: 14.28%; height: 28.56%; }
.tools2-cal-body .tools2-cal-event:nth-child(3) { left: 14.28%; top: 14.28%; width: 14.28%; height: 28.56%; }
.tools2-cal-body .tools2-cal-event:nth-child(4) { left: 28.56%; top: 42.84%; width: 14.28%; height: 28.56%; }
.tools2-cal-body .tools2-cal-event:nth-child(5) { left: 42.84%; top: 14.28%; width: 14.28%; height: 14.28%; }
.tools2-cal-body .tools2-cal-event:nth-child(6) { left: 57.12%; top: 28.56%; width: 14.28%; height: 28.56%; }
.tools2-cal-body .tools2-cal-event:nth-child(7) { left: 57.12%; top: 71.4%; width: 14.28%; height: 28.56%; }

/* === Tracker slide === */
.tools2-tracker-stats-row { display: flex; gap: 4px; margin-bottom: 6px; }
.tools2-tracker-perf { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); flex: 1; }
.tools2-tracker-emoji { font-size: 16px; }
.tools2-tracker-pct { font-size: 12px; font-weight: 800; color: #34d399; }
.tools2-tracker-msg { font-size: 5px; color: rgba(255,255,255,0.4); }
.tools2-tracker-stat-card { padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); flex: 0.7; display: flex; flex-direction: column; justify-content: center; }
/* Tracker progression section */
.tools2-tracker-bottom { margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 5px; }
.tools2-tracker-bottom-title { font-size: 7px; font-weight: 800; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.tools2-tracker-prog-list { display: flex; flex-direction: column; gap: 4px; }
.tools2-prog-item { padding: 4px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.04); background: rgba(255,255,255,0.01); }
.tools2-prog-left { display: flex; align-items: center; gap: 3px; }
.tools2-prog-left > span:first-child { font-size: 8px; }
.tools2-prog-name { font-size: 7px; font-weight: 700; color: #fff; }
.tools2-prog-niv { font-size: 5px; font-weight: 800; padding: 1px 3px; border-radius: 3px; background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.tools2-prog-right { float: right; display: flex; gap: 6px; margin-top: -12px; }
.tools2-prog-streak { font-size: 7px; font-weight: 800; color: #34d399; }
.tools2-prog-taux { font-size: 7px; font-weight: 800; color: #34d399; }
.tools2-prog-bar-wrap { margin-top: 2px; }
.tools2-prog-bar-bg { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.tools2-prog-bar-fill { height: 100%; border-radius: 2px; background: #34d399; }
.tools2-prog-sub { font-size: 4.5px; color: rgba(255,255,255,0.25); }
.tools2-tracker-table { display: flex; flex-direction: column; gap: 0; }
.tools2-trow { display: flex; align-items: center; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tools2-trow-head { border-bottom: 1px solid rgba(255,255,255,0.08); }
.tools2-trow-head .tools2-tcell, .tools2-trow-head .tools2-tcell-habit { font-size: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.3); }
.tools2-tcell-habit { flex: 2; font-size: 7px; color: #fff; font-weight: 600; }
.tools2-tcell { flex: 1; text-align: center; font-size: 7px; }

/* === IA slide === */
.tools2-ia-bar { display: flex; gap: 3px; margin-bottom: 6px; }
.tools2-ia-tool { font-size: 7px; font-weight: 800; padding: 3px 7px; border-radius: 6px; border: 1px solid transparent; color: rgba(255,255,255,0.4); cursor: default; }
.tools2-ia-tool-active { color: #34d399; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }
.tools2-ia-tool-soon { opacity: 0.3; }
.tools2-ia-step { font-size: 7px; font-weight: 700; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.tools2-ia-question { font-size: 9px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.tools2-ia-options { display: flex; flex-direction: column; gap: 4px; }
.tools2-ia-opt { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); cursor: default; transition: all 0.15s; }
.tools2-ia-opt:hover { border-color: rgba(255,255,255,0.1); }
.tools2-ia-opt span:first-child { font-size: 14px; }
.tools2-ia-opt-title { font-size: 7.5px; font-weight: 700; color: #fff; }
.tools2-ia-opt-desc { font-size: 5.5px; color: rgba(255,255,255,0.35); }
/* IA History */
.tools2-ia-history { margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 6px; }
.tools2-ia-history-title { font-size: 7px; font-weight: 800; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.tools2-ia-history-item { padding: 4px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.04); margin-bottom: 3px; cursor: default; transition: all 0.15s; }
.tools2-ia-history-item:hover { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.01); }
.tools2-ia-hist-date { font-size: 5px; color: rgba(255,255,255,0.25); }
.tools2-ia-hist-text { font-size: 6.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools2-ia-hist-tag { font-size: 5px; color: rgba(255,255,255,0.4); }

/* === Trend slide === */
.tools2-trend-cats { display: flex; gap: 3px; margin-bottom: 6px; flex-wrap: wrap; }
.tools2-trend-cat { font-size: 6.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; border: 1px solid transparent; color: rgba(161,161,170,1); cursor: default; }
.tools2-trend-cat-active { color: #34d399; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }
.tools2-trend-grid { display: flex; gap: 5px; flex: 1; }
.tools2-trend-card { flex: 1; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.01); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: all 0.15s; }
.tools2-trend-card:hover { border-color: rgba(255,255,255,0.1); }
.tools2-trend-rank-badge { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: rgba(16,185,129,0.9); display: flex; align-items: center; justify-content: center; font-size: 6px; font-weight: 900; color: #000; z-index: 1; }
.tools2-trend-video { flex: 1; min-height: 0; background: linear-gradient(160deg,#1a1a2a 30%,#0d0d1a); position: relative; display: flex; align-items: center; justify-content: center; }
.tools2-trend-play { width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; font-size: 7px; color: #fff; opacity: 0.7; }
.tools2-trend-card-tags { padding: 4px 5px 1px; font-size: 5.5px; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools2-trend-card-stats { padding: 0 5px 4px; font-size: 5px; color: rgba(255,255,255,0.3); }

/* === CARD 5: TOOLS CAROUSEL (legacy) === */
.tc-mockup {
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.tc-dots {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}
.tc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.tc-dot-1 { animation: tcDot 15s infinite; }
.tc-dot-2 { animation: tcDot 15s infinite; animation-delay: -10s; }
.tc-dot-3 { animation: tcDot 15s infinite; animation-delay: -5s; }
@keyframes tcDot {
  0%, 30% { background: #10b981; }
  33%, 100% { background: rgba(255,255,255,0.18); }
}
.tc-viewport {
  overflow: hidden;
  flex: 1;
}
.tc-track {
  display: flex;
  width: 400%;
  animation: tcSlide 15s infinite;
}
@keyframes tcSlide {
  0%   { transform: translateX(0); }
  23%  { transform: translateX(0); animation-timing-function: cubic-bezier(0.4,0,0.2,1); }
  28%  { transform: translateX(-25%); animation-timing-function: linear; }
  48%  { transform: translateX(-25%); animation-timing-function: cubic-bezier(0.4,0,0.2,1); }
  53%  { transform: translateX(-50%); animation-timing-function: linear; }
  73%  { transform: translateX(-50%); animation-timing-function: cubic-bezier(0.4,0,0.2,1); }
  78%  { transform: translateX(-75%); animation-timing-function: steps(1, start); }
  99%  { transform: translateX(-75%); }
  100% { transform: translateX(0); }
}
.tc-slide {
  width: 25%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.tc-eyebrow {
  font-size: 0.5rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.tc-slide-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.65rem;
}
/* Flow slide */
.tc-flow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.tc-flow-ring {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-flow-ring svg {
  position: absolute;
  top: 0; left: 0;
}
.tc-flow-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tc-flow-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.tc-flow-label {
  font-size: 0.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.tc-flow-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #10b981;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #000;
  cursor: default;
  font-weight: 700;
}
.tc-flow-tabs {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}
.tc-ftab {
  font-size: 0.48rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.1);
  text-transform: uppercase;
}
.tc-ftab.tc-ftab-active {
  color: #10b981;
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.1);
}
/* Trend slide */
.tc-trend-niches {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.tc-trend-pill {
  font-size: 0.5rem;
  font-weight: 700;
  background: #10b981;
  color: #000;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
}
.tc-trend-pill-off {
  font-size: 0.5rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.tc-trend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}
.tc-trend-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  padding: 0.4rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  aspect-ratio: 9/14;
}
.tc-trend-rank {
  font-size: 0.58rem;
  font-weight: 700;
  color: #10b981;
}
.tc-trend-tag {
  font-size: 0.42rem;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* IA slide */
.tc-ia-credits {
  display: inline-flex;
  align-items: center;
  font-size: 0.5rem;
  font-weight: 700;
  background: rgba(16,185,129,0.12);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.25);
  padding: 0.12rem 0.5rem;
  border-radius: 20px;
  margin-bottom: 0.45rem;
}
.tc-ia-tabs {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.45rem;
  overflow: hidden;
}
.tc-ia-tab {
  font-size: 0.44rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.tc-ia-tab.tc-ia-active {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}
.tc-ia-step {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-ia-cards {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.tc-ia-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  padding: 0.4rem 0.6rem;
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.tc-ia-card.tc-ia-card-active {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: #10b981;
}
