/* === FICHIER public/css/home.css === */
/* Styles spécifiques à la page d'accueil */

/* === ANIMATIONS === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

.animate-fade-up-delay {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.animate-fade-up-delay-2 {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.animate-fade-up-delay-3 {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none; /* Empêche l'interaction avec l'élément */
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    position: relative;
}

.pulse {
    position: absolute;
    left: 10px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block; /* Empêche l'animation de tourner */
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-trust {
    margin-top: 60px;
}

.hero-trust p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
}

.trust-logo {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.hero-visual {
    position: relative;
    max-width: 600px;
    margin: 60px auto 0;
}

.chat-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.chat-message {
    padding: 12px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    max-width: 80%;
}

.chat-message.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
}

.chat-message.ai {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    margin-right: auto;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

/* === SECTION PROBLÈME/SOLUTION === */
.problem-solution {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.problem {
    margin-bottom: 100px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.problem-item {
    text-align: center;
}

.problem-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.problem-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.problem-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.solution-step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-demo-placeholder {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.browser-mockup {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.browser-header {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.browser-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.browser-content {
    padding: 40px;
}

.demo-animation {
    animation: fadeUp 1s ease-out;
}

.search-bar {
    background: var(--bg-secondary);
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.typing-text {
    color: var(--text-secondary);
    font-style: italic;
}

.result-item {
    margin-bottom: 20px;
}

.result-shimmer {
    height: 60px;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* === SECTION DÉMO === */
.demo {
    padding: 100px 0;
}

.demo-container {
    margin-top: 50px;
}

.demo-questions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.demo-question {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-question:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.demo-question.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.demo-preview {
    max-width: 800px;
    margin: 0 auto;
}

.demo-screen {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.demo-header {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.demo-content {
    padding: 40px;
    min-height: 400px;
}

/* === SECTION STATISTIQUES === */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-card {
    text-align: center;
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-unit {
    font-size: 24px;
    opacity: 0.9;
}

.stat-description {
    font-size: 16px;
    opacity: 0.8;
    margin-top: 10px;
}

/* === SECTION TÉMOIGNAGES === */
.testimonials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* === SECTION COMPARAISON === */
.comparison {
    padding: 100px 0;
}

.comparison-table {
    max-width: 900px;
    margin: 50px auto 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-header > div {
    padding: 20px;
    text-align: center;
    font-weight: 600;
}

.comparison-col.highlight {
    background: rgba(102, 126, 234, 0.1);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-feature {
    padding: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.comparison-col {
    padding: 20px;
    text-align: center;
    font-size: 20px;
}

.logo-jewebni {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 10px;
}

/* === SECTION FAQ === */
.faq {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-question {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === TARIFS DÉTAILLÉS === */
.pricing-detailed {
    padding: 100px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.toggle {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: 0.4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.badge-save {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pricing-card-detailed {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card-detailed.popular {
    border-color: var(--accent-color);
}

.pricing-card-detailed.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.popular-ribbon {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.pricing-card-detailed.premium .pricing-header {
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.currency {
    font-size: 24px;
    opacity: 0.7;
}

.amount {
    font-size: 48px;
    font-weight: 800;
}

.period {
    font-size: 18px;
    opacity: 0.7;
}

.pricing-description {
    font-size: 16px;
    opacity: 0.8;
}

.feature-highlight {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.pricing-card-detailed.premium .feature-highlight {
    background: rgba(255, 255, 255, 0.1);
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pricing-features svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.pricing-card-detailed.premium svg {
    color: white;
}

.pricing-note {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 15px;
    text-align: center;
}

.pricing-card-detailed.premium .pricing-note {
    color: rgba(255, 255, 255, 0.8);
}

/* === CTA FINALE === */
.final-cta {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    margin-bottom: 20px;
}

.cta-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.cta-meta span {
    font-size: 16px;
    opacity: 0.9;
}

.cta-visual {
    margin-top: 60px;
}

.cta-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.cta-stat {
    text-align: center;
}

.cta-stat strong {
    display: block;
    font-size: 36px;
    margin-bottom: 5px;
}

.cta-stat span {
    font-size: 16px;
    opacity: 0.8;
}

/* === STYLES DÉMO === */
.demo-response {
    font-size: 16px;
    line-height: 1.6;
}

.demo-response ol,
.demo-response ul {
    margin: 20px 0;
}

.demo-response li {
    margin-bottom: 10px;
}

.demo-response .sources {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
    font-style: italic;
}

.demo-chat {
    max-width: 700px;
    margin: 0 auto;
}

.demo-message {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
}

.demo-message.user {
    background: var(--bg-secondary);
    margin-left: 50px;
}

.demo-message.ai {
    background: var(--bg-tertiary);
    margin-right: 50px;
}

.demo-message strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* === ANIMATIONS DE BASE === */
.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Styles pour la démo */
.demo-response {
    font-size: 16px;
    line-height: 1.6;
}

.demo-response ol,
.demo-response ul {
    margin: 20px 0;
    padding-left: 25px;
}

.demo-response li {
    margin-bottom: 10px;
}

.demo-response .sources {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
    font-style: italic;
}

.demo-chat {
    max-width: 700px;
    margin: 0 auto;
}

.demo-message {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
}

.demo-message.user {
    background: var(--bg-secondary);
    margin-left: 50px;
}

.demo-message.ai {
    background: var(--bg-tertiary);
    margin-right: 50px;
}

.demo-message strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-color);
}
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }
    
    .solution-showcase {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 50px auto 0;
    }
    
    .comparison-header,
    .comparison-row {
        font-size: 14px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-logos {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-col:not(.highlight) {
        display: none;
    }
    
    .demo-questions {
        flex-direction: column;
        width: 100%;
    }
    
    .demo-question {
        width: 100%;
        text-align: center;
    }
    
    .cta-card {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .pricing-detailed .pricing-cards {
        margin-top: 30px;
    }
    
    .faq-grid {
        gap: 20px;
    }
    
    .problem-solution,
    .demo,
    .stats-section,
    .testimonials,
    .comparison,
    .faq,
    .pricing-detailed,
    .final-cta {
        padding: 60px 0;
    }
}