/* STYLE CSS ASTREN - VERSION 2025 0412.1100 */

/* Police Plus Jakarta Sans locale */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../font/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../font/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #9810fa;
    --primary-dark: #700cb9;
    --secondary: #a78bfa;
    --dark: #0F172A;
    --light: #f8fafc;
	--text-success: #10b948; /* Couleur verte */
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(ellipse 600px 500px at center, #1f2937 0%, #111827 35%, #0F172A 100%);
    color: var(--light);
}

/* Police Plus Jakarta Sans pour les titres - PRIORITAIRE */
h1, h2, h3,
section h1, section h2, section h3,
div h1, div h2, div h3,
.container h1, .container h2, .container h3 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.gradient-text {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-gradient {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.gradient-bg {
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
}

.why-choose-text {
    margin-left: 0;
}

@media (min-width: 1024px) {
    .why-choose-text {
        margin-left: 1.5rem;
        padding-left: 0.5rem;
    }
    .why-choose-text p {
        padding-left: 0.75rem;
    }
}

/* ===== HERO SECTION ANIMÉE ===== */

.hero-animated {
    position: relative;
    overflow: hidden;
}

.hero-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 70% at center bottom, rgba(139, 92, 246, 0.25) 0%, rgba(167, 139, 250, 0.15) 35%, rgba(236, 72, 153, 0.08) 50%, transparent 65%);
    animation: hero-subtle-pulse 6s ease-in-out infinite;
    z-index: -10;
    pointer-events: none;
}

.hero-animated > * {
    position: relative;
    z-index: 2;
}

@keyframes hero-subtle-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Animations et transitions */
.transition {
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Focus states pour l'accessibilité - uniquement pour la navigation au clavier */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* Styles pour les éléments de formulaire */
.form-input {
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: white;
    padding: 0.5rem 1rem;
    width: 100%;
}

.form-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Styles pour les cartes */
.card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

/* Bordure par défaut si pas de classe border-2 */
.card:not([class*="border-2"]) {
    border: 1px solid #374151;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Si la carte a déjà border-2, on garde juste l'effet hover */
.card[class*="border-2"]:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Menu mobile */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu.active {
        display: block;
    }
}

/* Responsive design */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
        font-family: 'Plus Jakarta Sans', sans-serif !important;
    }
    
    h2 {
        font-size: 1.75rem;
        font-family: 'Plus Jakarta Sans', sans-serif !important;
    }
    
    h3 {
        font-family: 'Plus Jakarta Sans', sans-serif !important;
    }
}

/* Animations CSS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Billing toggle styles */
.billing-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
    border-radius: 24px;
}

.billing-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .billing-slider {
    background-color: var(--primary);
}

input:checked + .billing-slider:before {
    transform: translateX(24px);
}

/* Style personnalisé pour les checkboxes du boîtier d'enregistrement */
.starter-recorder-option,
.pro-recorder-option {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4b5563;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
    }
        
.starter-recorder-option:hover,
.pro-recorder-option:hover {
    border-color: #22c55e;
    }
        
.starter-recorder-option:checked,
.pro-recorder-option:checked {
    background-color: #22c55e;
    border-color: #22c55e;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    }

/* Animations supplémentaires pour la page about */
.hero-section {
    animation: fadeInHero 1.5s ease-out;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DASHBOARD ===== */

        :root {
            --primary: #6d28d9;
            --primary-dark: #4c1d95;
            --secondary: #a78bfa;
            --dark: #0F172A;
            --light: #f8fafc;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: radial-gradient(ellipse at center, #1f2937 0%, #111827 50%, #0F172A 100%);
            color: var(--light);
        }

        /* Dashboard specifique */
        .dashboard-main {
            min-height: 100vh;
            padding-top: 8rem;
			padding-bottom: 7rem;
        }

        .dashboard-title {
            background: linear-gradient(90deg, #8b5cf6, #ec4899);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 3rem;
        }

        /* Agents grid */
        .agents {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            max-width: 1000px;
            margin: 0 auto;
        }

        .agent-card {
            background: #1f2937;
            border: 1px solid #374151;
            border-radius: 0.75rem;
            padding: 2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .agent-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .agent-card:hover::before {
            opacity: 1;
        }

        .agent-card:hover {
            border-color: #a78bfa;
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
        }

        .agent-card > * {
            position: relative;
            z-index: 10;
        }

        /* Avatar avec status - IMPORTANT: garder la structure existante */
        .agent-avatar {
            position: relative;
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
        }

        .agent-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #374151;
            transition: border-color 0.3s ease;
        }

        .agent-card:hover .agent-avatar img {
            border-color: #a78bfa;
        }

        .agent-status {
            position: absolute;
            bottom: 4px;
            right: 4px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #10b981;
            border: 3px solid #1f2937;
            z-index: 20;
        }

        .agent-status.online {
            background: #10b981;
            animation: pulse 2s infinite;
        }

        /* État hors ligne (rouge, avec pulsation) */
        .agent-status.offline {
            background: #ef4444; /* rouge */
            animation: pulse-red 2s infinite;
        }

        /* Pulsation rouge pour le statut offline */
        @keyframes pulse-red {
            0% {
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
            }
            70% {
                box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            }
            70% {
                box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

        .agent-info h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: #f8fafc;
            margin-bottom: 0.5rem;
        }

        .agent-info p {
            color: #a78bfa;
            font-weight: 500;
        }

        /* Chat container */
        .chat-container {
            background: #1f2937;
            border: 1px solid #374151;
            border-radius: 0.75rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            width: 90vw;
            max-width: 1000px;
            margin: 0 auto;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .chat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid #374151;
            background: #1f2937;
        }

        .agent-details {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .agent-avatar-small {
            position: relative;
            width: 54px;
            height: 54px;
        }

        .agent-avatar-small img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid #374151;
        }

        .agent-avatar-small .agent-status {
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 12px;
            height: 12px;
            border: 2px solid #1f2937;
        }

        .agent-details h3 {
            margin: 0;
            font-size: 1.2rem;
            font-weight: 600;
            color: #f8fafc;
        }

        .agent-subtitle {
            font-size: 0.8rem;
            color: #10b981;
            margin-top: 2px;
        }

        .close-chat-btn {
            background: none;
            border: none;
            color: #9ca3af;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 0.375rem;
            transition: all 0.2s ease;
        }

        .close-chat-btn:hover {
            color: #f87171;
            background: rgba(248, 113, 113, 0.1);
        }

        /* Chat content */
        .chat-content {
            display: flex;
            flex-direction: column;
            height: 60vh;
        }

        .messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem;
            background: #0F172A;
        }

        .message {
            display: flex;
            margin-bottom: 1.5rem;
            animation: messageSlideIn 0.3s ease-out;
        }

        @keyframes messageSlideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message.user {
            justify-content: flex-end;
        }

        .message.bot {
            justify-content: flex-start;
            align-items: flex-start;
            gap: 12px;
        }

        .message-content {
            max-width: 70%;
            padding: 1rem 1.25rem;
            border-radius: 0.75rem;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .message.user .message-content {
            background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%);
            color: white;
            border-bottom-right-radius: 6px;
        }

        .message.bot .message-content {
            background: #1f2937;
            color: #e2e8f0;
            border: 1px solid #374151;
            border-bottom-left-radius: 6px;
        }

        /* Typing indicator */
        .typing-indicator {
            display: flex;
            align-items: center;
            padding: 1rem 1.25rem;
            background: #1f2937;
            border: 1px solid #374151;
            border-radius: 0.75rem;
            max-width: 80px;
        }

        .typing-dots {
            display: flex;
            gap: 4px;
        }

        .typing-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #9ca3af;
            animation: typingBounce 1.4s infinite;
        }

        .typing-dot:nth-child(1) { animation-delay: -0.32s; }
        .typing-dot:nth-child(2) { animation-delay: -0.16s; }
        .typing-dot:nth-child(3) { animation-delay: 0s; }

        @keyframes typingBounce {
            0%, 60%, 100% {
                opacity: 0.3;
                transform: translateY(0);
            }
            30% {
                opacity: 1;
                transform: translateY(-8px);
            }
        }

        /* Chat form */
        .chat-form {
            padding: 1.5rem 2rem;
            border-top: 1px solid #374151;
            background: #1f2937;
        }

        .input-group {
            display: flex;
            gap: 0.75rem;
            align-items: flex-end;
        }

        #prompt {
            flex: 1;
            min-height: 44px;
            padding: 0.75rem 1rem;
            border: 1px solid #374151;
            border-radius: 0.5rem;
            resize: none;
            background: #374151;
            color: #f8fafc;
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

        #prompt:focus {
            outline: none;
            border-color: #a78bfa;
            box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
        }

        .send-btn {
            background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%);
            color: white;
            border: none;
            border-radius: 0.5rem;
            padding: 0.75rem;
            cursor: pointer;
            height: 44px;
            min-height: 44px;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .send-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }

/* Page d'information de Stella */

		.info-tooltip {
            position: relative;
            display: inline-block;
            cursor: help;
            color: #a78bfa;
            margin-left: 4px;
        }
        
        .info-tooltip .tooltip-text {
            visibility: hidden;
            width: 300px;
            background-color: #1f2937;
            color: #e5e7eb;
            text-align: left;
            border-radius: 8px;
            padding: 12px;
            position: absolute;
            z-index: 1000;
            bottom: 125%;
            left: 50%;
            margin-left: -150px;
            opacity: 0;
            transition: opacity 0.3s;
            border: 1px solid #4b5563;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            font-size: 0.875rem;
            line-height: 1.5;
        }
        
        .info-tooltip .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #4b5563 transparent transparent transparent;
        }
        
        .info-tooltip:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

/* FAQ interactif */
.faq-item {
    background: rgba(31, 41, 55, 0.9);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq-item.is-open {
    background-color: rgba(55, 65, 81, 0.9);
    border-color: #4b5563;
}

.faq-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-button:hover {
    background-color: rgba(55, 65, 81, 0.6);
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.65;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    border-top: 1px solid #374151;
    margin-top: 0.75rem;
    padding-top: 1rem;
}

.faq-content.is-visible {
    opacity: 1;
}

@media (max-width: 640px) {
    .faq-button {
        padding: 1.25rem;
    }

    .faq-content {
        padding: 0 1.25rem 1.25rem;
    }
}

 /* Upload container (Stella) */

 .upload-container {
            background: #1f2937;
            border: 2px solid #374151;
            border-radius: 0.75rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: slideUp 0.3s ease-out;
	 		margin-bottom: 2rem;
        }

        .upload-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid #374151;
            background: #1f2937;
        }

        .upload-content {
            padding: 2rem;
        }

        .upload-zone {
            text-align: center;
            max-width: 500px;
            margin: 0 auto;
        }

        .upload-icon {
		display: flex;
		justify-content: center; 
		align-items: center;
		margin-bottom: 1rem;
		color: #a78bfa;
		}

        .upload-zone h3 {
            color: #f8fafc;
            margin-bottom: 0.5rem;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .upload-zone p {
            color: #9ca3af;
            margin-bottom: 2rem;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .btn-success {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            margin-top: 1rem;
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
        }

        .file-info, .upload-result {
            background: #374151;
            padding: 1.5rem;
            border-radius: 0.5rem;
            margin: 1.5rem 0;
            border: 1px solid #4b5563;
        }

        .file-info p, .upload-result p {
            margin: 0.5rem 0;
            color: #e2e8f0;
        }

        .upload-result h4 {
            color: #f8fafc;
            margin-bottom: 1rem;
            font-size: 1.2rem;
            font-weight: 600;
        }

        #transcription-text {
            background: #374151;
            padding: 1rem;
            border-radius: 0.375rem;
            border: 1px solid #374151;
            min-height: 100px;
            color: #e2e8f0;
            line-height: 1.6;
        }
        /* Élargir les conteneurs principaux pour Stella */

        .upload-zone {
            max-width: 100%;
        }
        
        .language-select {
            background-color: #374151;
            color: #ffffff;
            border: 1px solid #6b7280;
            border-radius: 0.5rem;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            width: 100%;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .language-select:hover {
            border-color: #9333ea;
            background-color: #4b5563;
        }
        
        .language-select:focus {
            outline: none;
            border-color: #9333ea;
            box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
        }
        
        .language-select option {
            background-color: #374151;
            color: #ffffff;
            padding: 0.5rem;
        }
        
        .stella-options {
            margin-top: 2rem;
            padding: 1.5rem;
            background: rgba(55, 65, 81, 0.3);
            border-radius: 0.75rem;
            border: 1px solid rgba(107, 114, 128, 0.3);
            max-width: 90%;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            text-align: left;
        }
        
        .stella-options h4 {
            color: #ffffff;
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            text-align: center;
        }
        
        .language-options-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .option-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .option-group label {
            color: #d1d5db;
            font-size: 0.875rem;
            font-weight: 500;
        }
        
        .prompt-preview {
            margin-top: 1rem;
            padding: 1rem;
            background: rgba(31, 41, 55, 0.5);
            border: 1px solid rgba(107, 114, 128, 0.3);
            border-radius: 0.5rem;
            max-height: 300px;
            overflow-y: auto;
        }
        
        .prompt-preview p {
            color: #9ca3af;
            font-size: 0.875rem;
            line-height: 1.5;
            margin: 0;
            white-space: pre-wrap;
        }
        
        .prompt-preview::-webkit-scrollbar {
            width: 8px;
        }
        
        .prompt-preview::-webkit-scrollbar-track {
            background: rgba(31, 41, 55, 0.3);
            border-radius: 4px;
        }
        
        .prompt-preview::-webkit-scrollbar-thumb {
            background: rgba(147, 51, 234, 0.5);
            border-radius: 4px;
        }
        
        .prompt-preview::-webkit-scrollbar-thumb:hover {
            background: rgba(147, 51, 234, 0.7);
        }
        
        @media (max-width: 768px) {
            .language-options-row {
                grid-template-columns: 1fr;
            }
        }
		
		
        /* Responsive */
        @media (max-width: 768px) {
            .dashboard-main {
                padding: 1rem;
            }
            
            .agents {
                grid-template-columns: 1fr;
                gap: 1rem;
                padding: 0 1rem;
            }

            .chat-container {
                width: 95vw;
                margin: 0 1rem;
            }

            .chat-content {
                height: 50vh;
            }
        }

        /* Animation de chargement pour le container */
        .container.chat-active .agents {
            display: none;
        }

        /* Scrollbar personnalisée */
        .messages-container::-webkit-scrollbar {
            width: 6px;
        }

        .messages-container::-webkit-scrollbar-track {
            background: #374151;
            border-radius: 3px;
        }

        .messages-container::-webkit-scrollbar-thumb {
            background: #6b7280;
            border-radius: 3px;
        }

        .messages-container::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }


/* ===== PROGRESS BAR AMÉLIORÉE POUR UPLOAD 2.0 ===== */

:root {
    --primary: #6d28d9;
    --primary-dark: #4c1d95;
    --secondary: #a78bfa;
    --dark: #0F172A;
    --light: #f8fafc;
    /* Variables manquantes à ajouter */
    --background-secondary: #374151;
    --border-color: #4b5563;
    --text-primary: #f8fafc;
    --text-light: #9ca3af;
    --primary-color: #6d28d9;
    --accent-color: #a78bfa;
}

.upload-progress {
  background: var(--background-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.upload-progress p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
  font-size: 0.95rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 6px;
  transition: width 0.3s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Animation pour la progression réelle */
.progress-fill {
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--accent-color) 50%, 
    var(--primary-color) 100%);
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Animation spéciale pour le traitement (après upload) */
@keyframes progress-processing {
  0%, 100% { 
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.8;
  }
  50% { 
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    opacity: 1;
  }
}

/* Styles pour différents états */
.progress-bar.uploading .progress-fill {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.progress-bar.processing .progress-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  animation: progress-processing 1.5s ease-in-out infinite;
}

.progress-bar.complete .progress-fill {
  background: linear-gradient(90deg, #10b981, #059669);
  animation: none;
}

/* Indicateur de vitesse d'upload */
.upload-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.upload-speed,
.upload-eta {
  padding: 0.25rem 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
}

/* Animation de pulsation pour indiquer l'activité */
.upload-progress.active {
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { 
    border-color: var(--border-color);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2);
  }
  50% { 
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .upload-progress {
    padding: 1rem;
  }
  
  .progress-bar {
    height: 10px;
  }
  
  .upload-stats {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}

.upload-result.fade-out {
    animation: fadeOutScale 0.3s ease-in forwards;
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* ===== STYLES POUR LE MESSAGE DE TRANSCRIPTION ===== */

.transcription-processing {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.transcription-processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(16, 185, 129, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.processing-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.processing-title {
    color: #10b981;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    animation: textGlow 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

@keyframes textGlow {
    0%, 100% {
        color: #10b981;
        text-shadow: 
            0 0 10px rgba(16, 185, 129, 0.3),
            0 0 20px rgba(16, 185, 129, 0.2);
    }
    50% {
        color: #34d399;
        text-shadow: 
            0 0 20px rgba(16, 185, 129, 0.8),
            0 0 30px rgba(16, 185, 129, 0.4),
            0 0 40px rgba(16, 185, 129, 0.2);
    }
}

.processing-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.processing-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.processing-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.processing-dots .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.processing-dots .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        background: #10b981;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }
    50% {
        transform: scale(1.3);
        background: #34d399;
        box-shadow: 
            0 0 20px rgba(16, 185, 129, 0.8),
            0 0 30px rgba(16, 185, 129, 0.3);
    }
}

/* Animation de pulsation pour le conteneur entier */
@keyframes containerPulse {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.3);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
    }
    50% {
        border-color: rgba(16, 185, 129, 0.6);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1);
    }
}

.transcription-processing {
    animation: containerPulse 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .transcription-processing {
        padding: 2rem 1rem;
    }
    
    .processing-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .processing-title {
        font-size: 1.25rem;
    }
    
    .processing-dots .dot {
        width: 10px;
        height: 10px;
    }
}

/* Transition douce pour l'apparition/disparition */
.upload-result {
    transition: all 0.5s ease-in-out;
}

.upload-result.fade-in {
    animation: fadeInScale 0.5s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== STYLES POUR LA PAGE CONTACT ===== */

        /* Styles pour la gestion des fichiers */
        .file-upload-area {
            border: 2px dashed #6b7280;
            border-radius: 0.5rem;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            background-color: #374151;
            margin-bottom: 1rem;
        }
        
        .file-upload-area:hover {
            border-color: #a855f7;
            background-color: #4b5563;
        }
        
        .file-upload-area.dragover {
            border-color: #a855f7;
            background-color: #4b5563;
            transform: scale(1.02);
        }
        
        .file-input {
            display: none;
        }
        
        .file-upload-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            background: linear-gradient(135deg, #a855f7, #ec4899);
            color: white;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .file-upload-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
        }
        
        .files-list {
            margin-top: 1rem;
        }
        
        .file-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem;
            background-color: #4b5563;
            border-radius: 0.5rem;
            margin-bottom: 0.5rem;
            border: 1px solid #6b7280;
        }
        
        .file-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: 1;
        }
        
        .file-name {
            font-weight: 500;
            color: white;
        }
        
        .file-size {
            color: #9ca3af;
            font-size: 0.875rem;
        }
        
        .file-remove {
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 0.25rem;
            padding: 0.25rem 0.5rem;
            cursor: pointer;
            font-size: 0.875rem;
            transition: background-color 0.2s;
        }
        
        .file-remove:hover {
            background: #dc2626;
        }
        
        /* Styles pour les messages de statut */
        .form-message {
            padding: 1rem;
            border-radius: 0.5rem;
            margin-top: 1rem;
            display: none;
        }
        
        .form-message.success {
            background-color: #065f46;
            border: 1px solid #10b981;
            color: #d1fae5;
        }
        
        .form-message.error {
            background-color: #7f1d1d;
            border: 1px solid #ef4444;
            color: #fecaca;
        }
        
        .message-icon {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        
        /* Loading spinner */
        .loading-spinner {
            display: none;
            margin-left: 0.5rem;
        }
        
        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #6b7280;
            border-top: 2px solid #ffffff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .btn-content {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-text {
            transition: opacity 0.3s;
        }
		

/* ================================
   EXCEL ANALYTIC PROCESSOR STYLES
   ================================ */

/* Conteneur principal */
.excel-processor-card {
    background: rgba(31, 41, 55, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(107, 114, 128, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.excel-processor-card:hover {
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 0 25px 50px rgba(147, 51, 234, 0.15);
}

/* Section générique */
.excel-section {
    padding: 3rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 640px) {
    .excel-section {
        padding: 2rem 1.5rem;
    }
}

/* Zone de drop */
.excel-dropzone {
    border: 3px dashed rgba(107, 114, 128, 0.4);
    border-radius: 15px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(55, 65, 81, 0.3);
    position: relative;
    overflow: hidden;
}

.excel-dropzone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
    transition: left 0.5s;
}

.excel-dropzone:hover,
.excel-dropzone.active {
    border-color: rgba(147, 51, 234, 0.8);
    background: rgba(88, 28, 135, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.2);
}

.excel-dropzone:hover::before,
.excel-dropzone.active::before {
    left: 100%;
}

@media (max-width: 640px) {
    .excel-dropzone {
        padding: 2rem 1rem;
    }
}

/* Conteneur d'icône */
.excel-icon-container {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: pulse 2s infinite;
}

.excel-icon-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

/* États spéciaux des icônes */
.excel-processing {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.excel-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Spinner personnalisé */
.excel-spinner {
    animation: spin 1s linear infinite;
}

/* Input de fichier */
.excel-file-input {
    display: none;
}

/* Barre de progression */
.excel-progress-container {
    width: 100%;
    background: rgba(55, 65, 81, 0.6);
    border-radius: 10px;
    height: 8px;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.excel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    overflow: hidden;
}

.excel-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Styles pour les boutons (complément aux styles existants) */

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

/* États cachés */
.hidden {
    display: none !important;
}

/* Responsive amélioré pour mobile */
@media (max-width: 768px) {
    .excel-icon-container {
        width: 80px;
        height: 80px;
    }
    
    .excel-section h3 {
        font-size: 1.5rem;
    }
    
    .btn-success,
    .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animation d'entrée pour les sections */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Effet de hover pour les cartes principales */
.excel-processor-card {
    position: relative;
    overflow: hidden;
}

.excel-processor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.05), transparent);
    transition: left 0.8s;
    z-index: 1;
}

.excel-processor-card:hover::before {
    left: 100%;
}

.excel-processor-card > * {
    position: relative;
    z-index: 2;
}

/* FIX MENU DESKTOP */
@media (min-width: 768px) {
    nav.hidden.md\:flex {
        display: flex !important;
    }
    
    div.hidden.md\:flex {
        display: flex !important;
    }
}

/* ===== FOND ANIMÉ 2.0 SPATIAL ===== */

/* Empêcher le défilement horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Grillage fin style n8n - VISIBLE */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(167, 139, 250, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-drift 25s ease-in-out infinite;
    z-index: -11;
    pointer-events: none;
    opacity: 0.4;
}

/* Fond dégradé cosmique subtil */
.dashboard-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
    animation: cosmic-breath 20s ease-in-out infinite;
    z-index: -8;
    pointer-events: none;
}

/* ===== ANIMATIONS ===== */

/* Dérive douce de la grille */
@keyframes grid-drift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }
    25% {
        transform: translate(-10px, -8px);
        opacity: 0.5;
    }
    50% {
        transform: translate(8px, -12px);
        opacity: 0.45;
    }
    75% {
        transform: translate(-6px, 10px);
        opacity: 0.5;
    }
}

/* Respiration cosmique douce */
@keyframes cosmic-breath {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}


.agents {
    position: relative;
    overflow: visible;
}

/* Animation de scintillement douce */
@keyframes twinkle-smooth {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
        box-shadow: 0 0 8px currentColor;
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
        box-shadow: 0 0 20px currentColor;
    }
}

/* Grillage fin supplémentaire */
.dashboard-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.015) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: fine-grid-shift 35s ease-in-out infinite;
    z-index: -7;
    pointer-events: none;
    opacity: 0.28;
}

/* Animation grillage fin */
@keyframes fine-grid-shift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.28;
    }
    50% {
        transform: translate(5px, 3px);
        opacity: 0.23;
    }
}

/* Mobile - Version allégée */
@media (max-width: 768px) {
    body::before {
        background-size: 40px 40px;
        animation-duration: 30s;
        opacity: 0.37;
    }
    
    body::after {
        background-size: 
            700px 500px, 800px 600px, 550px 400px, 650px 700px,
            350px 250px, 400px 350px, 300px 400px, 400px 300px, 200px 280px;
        animation-duration: 35s;
    }
    
    .dashboard-main::before {
        animation-duration: 25s;
    }
    
    .dashboard-main::after {
        background-size: 20px 20px;
        animation-duration: 40s;
        opacity: 0.22;
    }
}

/* Respect des préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .dashboard-main::before,
    .dashboard-main::after {
        animation-duration: 120s;
    }
    
    .agents::before,
    .agents::after {
        animation: none;
        opacity: 0.6;
    }
}

/* Mode contraste élevé */
@media (prefers-contrast: high) {
    body::before {
        opacity: 1;
        background-image: 
            linear-gradient(rgba(167, 139, 250, 0.2) 1px, transparent 1px),
            linear-gradient(90deg, rgba(139, 92, 246, 0.18) 1px, transparent 1px);
    }
    
    body::after {
        opacity: 0.9;
    }
}

/* Grille du panier - 2/3 Articles + 1/3 Résumé */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Pricing cards gradient + halo */
.grid.grid-cols-1.md\:grid-cols-3 > div,
.grid.grid-cols-1.md\:grid-cols-3 > article {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    transition: box-shadow 0.4s ease;
}

.grid.grid-cols-1.md\:grid-cols-3 > div:hover,
.grid.grid-cols-1.md\:grid-cols-3 > article:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Animation de zoom/dézoom pour l'image astre.jpg */
.astre-rotate {
    animation: astre-zoom 30s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes astre-zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* ===== CARROUSEL DE TÉMOIGNAGES ===== */
:root {
    --testimonial-card-width: 26rem; /* ≈416px */
    --testimonial-card-height: 12rem; /* ≈192px */
    --testimonial-card-gap: 1.5rem;
}

.testimonials-carousel {
    display: flex;
    gap: var(--testimonial-card-gap);
    will-change: transform;
}

.testimonial-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    transition: opacity 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    width: var(--testimonial-card-width);
    min-height: var(--testimonial-card-height);
    flex: 0 0 var(--testimonial-card-width);
}

.testimonial-card.hidden {
    display: none;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    :root {
        --testimonial-card-width: 85vw;
        --testimonial-card-height: auto;
        --testimonial-card-gap: 1rem;
    }
}

/* PAGE NOS OFFRES */
/* Styles spécifiques pour le catalogue horizontal */
.offer-card {
	display: flex;
    flex-direction: row;
    gap: 0;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #374151;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s ease;
    }
        
.offer-card:hover {
    border-color: #a855f7;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.35);
    transform: translateY(-4px);
	}
        
.offer-image-container {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
     
.offer-image-container img {
    width: 100%;
    height: 100%;
	object-fit: cover;
    transition: transform 0.5s ease;
	}
        
.offer-card:hover .offer-image-container img {
    transform: scale(1.05);
    }
      
.offer-content {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
	}
        
.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(147, 51, 234, 0.2);
	border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #c084fc;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 1rem;
    }
        
.offer-name-image {
  height: 24px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
  margin-bottom: 5px
}
        
.offer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1.4;
    }
        
.offer-description {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
    }
        
.offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    }
        
.offer-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    }
        
.offer-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #9ca3af;
    }
        
.offer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
	}
        
.offer-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
    }
        
.offer-btn svg {
    transition: transform 0.3s ease;
    }
        
.offer-btn:hover svg {
    transform: translateX(4px);
    }
        
/* Alternance gauche/droite pour les cartes */
.offer-card.reverse {
    flex-direction: row-reverse;
    }
        
/* Responsive */
@media (max-width: 900px) {
.offer-card,
.offer-card.reverse {
    flex-direction: column;
    }
            
.offer-image-container {
    flex: 0 0 220px;
    width: 100%;
    }
            
.offer-content {
    padding: 1.5rem;
    }
            
.offer-footer {
    flex-direction: column;
    align-items: flex-start;
    }
}
        
/* Animation d'entrée */
.offer-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    }
        
.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.25s; }
.offer-card:nth-child(3) { animation-delay: 0.4s; }
        
@keyframes fadeInUp {
    to {
    opacity: 1;
    transform: translateY(0);
    }
}     

/* Page Settings.php */

        .settings-card {
            background: #1f2937;
            border: 2px solid #374151;
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .settings-card h2 {
            color: #fff;
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #374151;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            color: #9ca3af;
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }
        
        .form-group input {
            width: 100%;
            background: #111827;
            border: 2px solid #374151;
            color: #fff;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 0.875rem;
            transition: all 0.2s;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: #9810fa;
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
        }
        
        .form-group input:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
                
        .avatar-upload {
            display: flex;
            align-items: center;
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .avatar-preview {
            position: relative;
            width: 120px;
            height: 120px;
        }
        
        .avatar-preview img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #374151;
        }
        
        .avatar-preview .change-avatar-btn {
            position: absolute;
            bottom: 0;
            right: 0;
            background: #9810fa;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 3px solid #1f2937;
            transition: all 0.2s;
        }
        
        .avatar-preview .change-avatar-btn:hover {
            background: #6d28d9;
            transform: scale(1.1);
        }
        
        .credits-container {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .credit-display {
            flex: 1;
            background: #111827;
            border: 2px solid #374151;
            border-radius: 8px;
            padding: 1.5rem;
        }
        
        .credit-display h4 {
            color: #9ca3af;
            font-size: 0.875rem;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }
        
        .credit-display .credit-value {
            color: #fff;
            font-size: 2rem;
            font-weight: 700;
        }
        
        .credit-display:first-child .credit-value {
            color: #10b981;
        }
        
        .member-card {
            background: #111827;
            border: 2px solid #374151;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .member-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .member-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .member-details h4 {
            color: #fff;
            font-weight: 600;
        }
        
        .member-details p {
            color: #9ca3af;
            font-size: 0.875rem;
        }
        
        .member-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .pending-invite-card {
            background: #111827;
            border: 2px solid #374151;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .pending-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.875rem;
            font-weight: 600;
        }
        
        .btn-cancel {
            background: #dc2626;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-cancel:hover {
            background: #b91c1c;
            transform: scale(1.1);
        }
        
        .alert {
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
        }
        
        .alert-success {
            background: rgba(16, 185, 129, 0.1);
            border: 2px solid rgba(16, 185, 129, 0.3);
            color: #10b981;
        }
        
        .alert-error {
            background: rgba(239, 68, 68, 0.1);
            border: 2px solid rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }
        
        .info-box {
            background: rgba(59, 130, 246, 0.1);
            border: 2px solid rgba(59, 130, 246, 0.3);
            color: #3b82f6;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
        }
        
        .credits-modal-hidden {
            display: none !important;
        }
        
        .credits-modal-visible {
            display: flex !important;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        
        .credits-modal-overlay {
            background: #1f2937;
            border: 2px solid #374151;
            border-radius: 12px;
            padding: 2rem;
            max-width: 400px;
            width: 90%;
        }
        
        /* Styles pour les crédits des membres */
        .member-credits {
            text-align: right;
            position: relative;
        }
        
        .member-credits .current-month {
            color: #fff;
            font-weight: 700;
            font-size: 1.25rem;
            margin-bottom: 0.25rem;
        }
        
        .member-credits .month-label {
            color: #9ca3af;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        
        .member-credits .tooltip-trigger {
            cursor: help;
            position: relative;
            display: inline-block;
        }
        
        .member-credits .tooltip-trigger:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            right: 0;
            margin-bottom: 8px;
            background: #1f2937;
            color: #fff;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 0.875rem;
            white-space: nowrap;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            border: 2px solid #374151;
            z-index: 1000;
            animation: tooltipFadeIn 0.2s ease-out;
        }
        
        .member-credits .tooltip-trigger:hover::before {
            content: '';
            position: absolute;
            bottom: 100%;
            right: 20px;
            margin-bottom: 2px;
            border: 6px solid transparent;
            border-top-color: #1f2937;
            z-index: 1001;
        }
        
        @keyframes tooltipFadeIn {
            from {
                opacity: 0;
                transform: translateY(4px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .credits-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.875rem;
            font-weight: 600;
        }
        
        .credits-badge.low {
            background: rgba(34, 197, 94, 0.1);
            color: #22c55e;
        }
        
        .credits-badge.medium {
            background: rgba(251, 191, 36, 0.1);
            color: #fbbf24;
        }
        
        .credits-badge.high {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
        }
        
        .last-usage {
            color: #6b7280;
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }
        
        /* Désactiver le hover violet sur les divs de l'info-box des crédits */
        .info-box .grid > div {
            background: transparent !important;
            box-shadow: none !important;
        }
        
        .info-box .grid > div:hover {
            box-shadow: none !important;
        }
		
/* Boutons style tailwindcss */

.btn-primary {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(255 255 255);
  background-color: rgb(147 51 234);
  border-radius: 0.375rem;
  text-align: center;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.btn-primary:hover {
  background-color: rgb(126 34 206);
}

.btn-secondary {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(168 85 247);
  color: rgb(196 181 253);
  font-weight: 500;
  border-radius: 0.375rem;
  text-align: center;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.btn-secondary:hover {
  background-color: rgb(88 28 135 / 0.3);
  border-color: rgb(196 181 253);
}

.btn-red {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(255 255 255);
  background-color: rgb(220 38 38);
  border-radius: 0.375rem;
  text-align: center;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.btn-red:hover {
  background-color: rgb(185 28 28);
}

.btn-green {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(255 255 255);
  background-color: rgb(22 163 74);
  border-radius: 0.375rem;
  text-align: center;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.btn-green:hover {
  background-color: rgb(21 128 61);

}

