@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Animations 3D pour le chatbot */
@keyframes float-intense {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(1deg) scale(1.02); }
    50% { transform: translateY(-25px) rotate(2deg) scale(1.05); }
    75% { transform: translateY(-15px) rotate(1deg) scale(1.02); }
}

@keyframes sway {
    0%, 100% { transform: translateX(-50%) rotate(-1deg); }
    50% { transform: translateX(-50%) rotate(1deg); }
}

@keyframes blink-smart {
    0%, 85%, 100% { opacity: 1; transform: scaleY(1); }
    90%, 95% { opacity: 0.3; transform: scaleY(0.1); }
}

@keyframes talk {
    0%, 100% { transform: translateX(-50%) scaleX(1); }
    50% { transform: translateX(-50%) scaleX(1.2); }
}

@keyframes wave {
    0%, 100% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(5deg); }
}

@keyframes wave-left {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(5deg); }
}

@keyframes wave-right {
    0%, 100% { transform: rotate(10deg); }
    50% { transform: rotate(-5deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px currentColor; opacity: 0.8; }
    50% { box-shadow: 0 0 20px currentColor; opacity: 1; }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(30px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

@keyframes orbit-reverse {
    0% { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
    100% { transform: rotate(0deg) translateX(25px) rotate(0deg); }
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0px); opacity: 0.6; }
    50% { transform: translateY(-30px); opacity: 1; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes slide-horizontal {
    0% { transform: translateX(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(20px); opacity: 0; }
}

@keyframes slide-vertical {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

@keyframes speech {
    0%, 80%, 100% { opacity: 0; transform: scale(0.8); }
    10%, 70% { opacity: 0.8; transform: scale(1); }
}

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

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

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Classes d'animation */
.animate-float-intense {
    animation: float-intense 7s ease-in-out infinite;
}

.animate-sway {
    animation: sway 4s ease-in-out infinite;
}

.animate-blink-smart {
    animation: blink-smart 5s ease-in-out infinite;
}

.animate-talk {
    animation: talk 2s ease-in-out infinite;
}

.animate-wave {
    animation: wave 3s ease-in-out infinite;
}

.animate-wave-left {
    animation: wave-left 3s ease-in-out infinite;
}

.animate-wave-right {
    animation: wave-right 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-orbit {
    animation: orbit 8s linear infinite;
}

.animate-orbit-reverse {
    animation: orbit-reverse 6s linear infinite;
}

.animate-float-particle {
    animation: float-particle 4s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-twinkle {
    animation: twinkle 3s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-slide-horizontal {
    animation: slide-horizontal 6s ease-in-out infinite;
}

.animate-slide-vertical {
    animation: slide-vertical 7s ease-in-out infinite;
    animation-delay: 3s;
}

.animate-speech {
    animation: speech 8s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-float-slow {
    animation: float-slow 12s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 10s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Animation réactive au curseur */
#chatbot-3d {
    transition: all 0.2s ease-out;
    cursor: pointer;
}

#chatbot-3d:hover {
    opacity: 0.9 !important;
}

/* Animation de suivi du curseur pour le screenshot */
.cursor-follow {
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Dégradés personnalisés */
.gradient-primary {
    background: linear-gradient(135deg, #5578ff 0%, #00a3ee 50%, #c464e0 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #5578ff 0%, #00a3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Boutons stables */
.cta-button {
    min-height: 48px;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

/* Responsive hero overlay */
@media (max-width: 1024px) {
    .lg\:absolute {
        position: static !important;
    }
    .lg\:right-0 {
        right: auto !important;
    }
    .lg\:top-1\/2 {
        top: auto !important;
    }
    .lg\:-translate-y-1\/2 {
        transform: none !important;
    }
}

/* Animations progressives pour les sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Classes d'animation */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-on-scroll.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-on-scroll.animate-scaleIn {
    animation: scaleIn 0.8s ease-out forwards;
}

/* Délais échelonnés */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Animation continue pour le bouton démo */
@keyframes demo-button-zoom {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

#demo-button {
    animation: demo-button-zoom 2s ease-in-out infinite;
}

/* Fix couleur bouton démo au survol */
#demo-button:hover {
    background-color: #4460e8 !important;
    color: white !important;
    text-shadow: none;
}

/* ===========================================
   HERO SECTION STYLES 
   =========================================== */

/* Container principal du héro */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 50%, #f8f0ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem 2rem 1rem;
}

/* Conteneur centré du héro */
.hero-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

/* Zone de texte principal */
.hero-text-zone {
    position: relative;
    z-index: 20;
    width: 100%;
    text-align: center;
    padding: 0;
    margin-top: 100px;
}

/* Animation 3D positionnée */
.hero-animation-zone {
    position: absolute;
    top: 59%;
    left: 60%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 1;
    pointer-events: auto;
}

/* Titre principal du héro */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1f2937;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Sous-titre du héro */
.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Conteneur des boutons CTA */
.hero-cta-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

/* Social proof intégrée */
.hero-social-proof {
    padding: 20px;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

/* Responsive design pour le héro */
@media (min-width: 640px) {
    .hero-cta-container {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 6rem 1rem 5rem 1rem;
        min-height: 700px;
    }
    
    .hero-text-zone {
        text-align: left;
        max-width: 900px;
        padding-right: 4rem;
    }
    
    .hero-animation-zone {
        right: -50px;
        opacity: 0.8;
    }
    
    .hero-title {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-cta-container {
        justify-content: flex-start;
    }
    
    .hero-social-proof {
        margin-left: 0;
    }
}

@media (max-width: 1023px) {
    .hero-animation-zone {
        position: static;
        transform: none;
        margin: 1rem auto 0;
        opacity: 0.6;
        pointer-events: auto;
    }
    
    #chatbot-3d .w-\[350px\] {
        width: 200px;
        height: 200px;
    }
    
    #chatbot-3d .absolute {
        transform: scale(0.6);
    }
}

/* Mobile optimizations spécifiques */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem 1rem 1rem;
    }
    
    .hero-text-zone {
        margin-top: 20px;
    }
    
    .hero-animation-zone {
        margin: 0.5rem auto 0;
        opacity: 0.4;
    }
    
    #chatbot-3d .w-\[350px\] {
        width: 200px !important;
        height: 200px !important;
    }
    
    #chatbot-3d > div {
        transform: scale(0.7) !important;
    }
    
    /* Section compatibilité mobile - supprime les sauts de ligne */
    .hero-section + div .flex {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    
    .hero-section + div .flex .flex {
        white-space: nowrap;
        min-width: max-content;
    }
}


#pricing .div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.hero-animation {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.chat-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    height: 400px;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.demo-chat-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    height: 400px;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.demo-chat-header {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.demo-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.demo-chat-input {
    margin-top: auto;
}

.demo-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.demo-typing span {
    width: 6px;
    height: 6px;
    background-color: #4361ee;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.2); }
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 18px;
    animation: fadeIn 0.5s ease-in;
}

.bot-message {
    background-color: #e3f2fd;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background-color: #4361ee;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

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

.feature-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

/* Pricing Grid Hover Effects */
.pricing-grid {
    perspective: 1000px;
}

.pricing-plan {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    z-index: 1;
    min-height: 500px;
}

.pricing-plan:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.pricing-grid:hover .pricing-plan:not(:hover) {
    transform: scale(0.95) translateX(0);
    opacity: 0.7;
}

/* Pour mobile - désactiver les effets hover */
@media (max-width: 1024px) {
    .pricing-plan:hover {
        transform: none;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 1;
    }
    
    .pricing-grid:hover .pricing-plan:not(:hover) {
        transform: none;
        opacity: 1;
    }
}

.pricing-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    margin: 10px;
    scroll-snap-align: center;
}

.pricing-card:hover {
    transform: scale(1.03);
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #4361ee;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding-bottom: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.active .faq-answer {
    max-height: 200px;
    opacity: 1;
}

.qr-code {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.cta-section {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #4361ee;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.step-card {
    transition: transform 0.5s ease;
}

.step-card:hover {
    transform: scale(1.03);
}

.step-card:last-child {
    margin-bottom: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.step-description {
    color: #6b7280;
}

/* Tablette */
@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-card {
        min-width: 45%;
        max-width: 45%;
        margin: 15px;
    }
    
    .cta-button {
        padding: 0.875rem 1.75rem !important;
        font-size: 1.1rem !important;
    }
    
    .max-w-6xl.flex {
        gap: 1.5rem !important;
    }
    
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .pricing-card { min-width: 85%; max-width: 85%; }
    
    .max-w-6xl.flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Amélioration de la responsivité */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Boutons plus adaptés au mobile */
    .cta-button {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Navigation mobile */
    nav .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Hero section mobile */
    .hero-animation {
        margin-top: 2rem;
    }
    
    /* Chat container mobile */
    .chat-container, .demo-chat-container {
        height: 500px;
        padding: 15px;
    }
    
    .demo-chat-input input {
        font-size: 16px;
        padding: 12px;
    }
    
    .demo-chat-input button {
        padding: 12px 16px;
    }
    
    .message {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    /* Popup vidéo mobile */
    .popup-content {
        margin: 1rem;
        padding: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .payment-form {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }
    
    
    /* Grid responsivité */
    .grid {
        gap: 1rem !important;
    }
}

/* Pricing carousel */
.pricing-carousel {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .pricing-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        margin: 0 -1rem;
        padding-left: 1rem;
    }
    .pricing-carousel::-webkit-scrollbar { display: none; }
}

/* Swipe hint */
.swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    animation: hintFade 1.4s ease-in-out infinite;
}

.swipe-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 9999px;
    animation: dotSlide 1.4s ease-in-out infinite;
}

@keyframes dotSlide {
    0% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(8px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.6; }
}

@keyframes hintFade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-container {
    width: 100%;
    height: 100%;
}

.popup-content {
    background: rgb(255, 255, 255);
    border-radius: 12px;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Styles pour le formulaire de paiement */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.payment-form {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #4361ee;
}

.stripe-element {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.stripe-element--focus {
    border-color: #4361ee;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
}

.success-message {
    color: #059669;
    font-size: 14px;
    margin-top: 8px;
}

/* Palette unifiée BlueBot */
:root {
    --bb-primary: #5578ff; /* Bleu logo */
}

.text-primary { color: var(--bb-primary) !important; }
.border-blue-200 { border-color: rgba(85,120,255,0.25) !important; }
.bg-blue-50 { background-color: rgba(85,120,255,0.06) !important; }

/* Cartes Pain/Benefit homogènes */
.pb-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-left: 4px solid var(--bb-primary);
    padding: 16px;
    border-radius: 12px;
    min-height: 112px; /* hauteur uniforme */
}

.pb-card--danger {
    border-left-color: #ef4444;
    background: #fff7f7;
    border-color: #fde2e2;
}

.pb-title { 
    font-family: 'Lora', serif; 
    font-weight: 600; 
    color: #111827; 
    margin-bottom: 4px; 
}

.pb-sub { 
    color: #4b5563; 
    font-size: 0.9rem; 
}

.pb-emph { 
    color: rgba(30, 162, 30, 0.833); 
    font-weight: 600; 
    font-size: 0.9rem; 
    margin-top: 2px; 
}

/* Modern Chat Container - Style ChatGPT */
.modern-chat-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.chat-messages {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.3) 0%, rgba(241, 245, 249, 0.1) 100%);
}

.modern-bot-message {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.modern-user-message {
    background: var(--bb-primary);
    color: white;
    border-radius: 20px;
    border-top-right-radius: 4px;
    padding: 12px 16px;
    max-width: 75%;
    margin-left: auto;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: none;
}

.message-wrapper {
    animation: slideInMessage 0.4s ease-out;
}

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

/* Modern Question Buttons */
.modern-question-btn {
    background: white;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 20px;
    padding: 16px 20px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 14px;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.modern-question-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bb-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.modern-question-btn:hover { border-color: #5578ff; transform: none; box-shadow: none; }

.modern-question-btn:hover::before {
    left: 0;
}

.modern-question-btn:active { transform: none; }

/* Responsive adjustments for modern buttons */
@media (max-width: 640px) {
    .modern-question-btn {
        padding: 14px 16px;
        border-radius: 16px;
    }
    
    /* Questions populaires en slider mobile */
    .questions-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 1rem;
    }
    
    .questions-slider::-webkit-scrollbar {
        display: none;
    }
    
    .questions-slider .grid {
        display: flex;
        width: max-content;
        gap: 1rem;
    }
    
    .questions-slider .modern-question-btn {
        min-width: 280px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    /* Marge au-dessus de 'Avec Blue-Bot' pour mobile */
    .pb-card + .pb-card:first-child {
        margin-top: 1rem;
    }
    
    /* Flèche exemple concret vers le bas pour mobile */
    .grid.grid-cols-1.md\\:grid-cols-3.gap-6.items-center .text-center:nth-child(2) .text-4xl {
        transform: rotate(90deg);
    }
    
    /* Alternative pour cibler spécifiquement la section exemple concret */
    .bg-gradient-to-r.from-blue-50.to-indigo-50 .grid .text-center:nth-child(2) .text-4xl {
        transform: rotate(90deg);
    }
}

/* ===========================================
   BLOG SPECIFIC STYLES
   =========================================== */

/* Blog cards hover effects */
.blog-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Blog category badges */
.blog-category {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    display: inline-block;
}

/* Blog article content styling */
.prose-blue {
    --tw-prose-body: #374151;
    --tw-prose-headings: #111827;
    --tw-prose-links: #5578ff;
    --tw-prose-bold: #111827;
    --tw-prose-counters: #6b7280;
    --tw-prose-bullets: #d1d5db;
    --tw-prose-hr: #e5e7eb;
    --tw-prose-quotes: #111827;
    --tw-prose-quote-borders: #e5e7eb;
    --tw-prose-captions: #6b7280;
    --tw-prose-code: #111827;
    --tw-prose-pre-code: #e5e7eb;
    --tw-prose-pre-bg: #1f2937;
    --tw-prose-th-borders: #d1d5db;
    --tw-prose-td-borders: #e5e7eb;
}

.prose-blue h2 {
    color: #1f2937;
    font-family: 'Lora', serif;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.prose-blue h3 {
    color: #374151;
    font-family: 'Lora', serif;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.prose-blue p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose-blue ul, .prose-blue ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.prose-blue li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.prose-blue strong {
    color: #1f2937;
    font-weight: 600;
}

/* Blog responsive improvements */
@media (max-width: 768px) {
    .blog-card {
        margin: 0.5rem;
    }
    
    .blog-card:hover {
        transform: translateY(-4px);
    }
    
    .prose-blue h2 {
        font-size: 1.375rem;
    }
    
    .prose-blue h3 {
        font-size: 1.125rem;
    }
}

/* Author avatars consistency */
.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

/* Blog hero section */
.blog-hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 50%, #f8f0ff 100%);
    padding: 4rem 0;
}

/* Featured article styling */
.featured-article {
    position: relative;
    overflow: hidden;
}

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

.featured-article:hover::before {
    left: 100%;
}

/* Tag hover effects */
.blog-tag {
    transition: all 0.2s ease;
    cursor: pointer;
}

.blog-tag:hover {
    background-color: #5578ff;
    color: white;
    transform: translateY(-1px);
}

/* ===========================================
   TESTIMONIALS SLIDER STYLES 
   =========================================== */

.testimonials-slider {
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.1) 85%, transparent 100%);
    padding: 20px 0;
    border-radius: 16px;
}

.testimonials-track {
    display: flex;
    animation: slide 30s linear infinite;
    gap: 24px;
    align-items: stretch;
}

.testimonials-track .testimonial-card {
    flex: none;
    width: 350px;
    height: auto;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    scroll-snap-align: center;
    border-radius: 16px;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
}

.testimonials-track .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

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

.testimonials-slider:hover .testimonials-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-track .testimonial-card {
        width: 300px;
        min-height: 260px;
    }
    
    .testimonials-track {
        animation-duration: 25s;
    }
}

@media (max-width: 480px) {
    .testimonials-track .testimonial-card {
        width: 280px;
        min-height: 280px;
    }
    
    .testimonials-slider {
        padding: 15px 0;
    }
}