/* ==========================================================================
   WariGest - Site de Vente - Style Premium (Dark/Teal Theme)
   ========================================================================== */

   :root {
    /* Couleurs principales basées sur l'application */
    --primary: #0f766e;        /* Teal WariGest */
    --primary-light: #14b8a6;
    --primary-dark: #115e59;
    --secondary: #3b82f6;      /* Bleu d'accent */
    
    /* Couleurs sémantiques */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Couleurs de fond (Dark Theme) */
    --bg-base: #06090e;        /* Fond général très sombre */
    --bg-surface: #0f1624;     /* Cartes et sections */
    --bg-glass: rgba(15, 22, 36, 0.7); /* Effet vitreux */
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Textes */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Typographie */
    --font-main: 'Outfit', sans-serif;
    
    /* Dimensions */
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.text-center { text-align: center; }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.highlight { color: var(--primary-light); }

/* Layout & Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 9, 14, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
}

.nav a:not(.btn):hover {
    color: var(--primary-light);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

/* Effets de lueur en arrière-plan */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-dark);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -50px;
    right: -100px;
    opacity: 0.2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(15, 118, 110, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(15, 118, 110, 0.3);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.platforms-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.platforms-badge i {
    color: var(--primary-light);
    font-size: 1.4rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Mockup du Dashboard (Fenêtre macOS like) */
.app-mockup {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.circles {
    display: flex;
    gap: 8px;
}

.circles i {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.circles i:nth-child(1) { background: #ff5f56; }
.circles i:nth-child(2) { background: #ffbd2e; }
.circles i:nth-child(3) { background: #27c93f; }

.mockup-body img {
    display: block;
    width: 100%;
}


/* --- Section Douleurs (Pain points) --- */
.pain-section {
    padding: 100px 0;
    background: #040609;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pain-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.pain-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.pain-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.pain-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.pain-card p {
    color: var(--text-muted);
}


/* --- Section Solution --- */
.solution-section {
    padding: 120px 0;
}

.solution-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.solution-content > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.solution-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.solution-list li {
    display: flex;
    gap: 20px;
}

.solution-list i {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-top: 5px;
}

.solution-list h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.solution-list p {
    color: var(--text-muted);
}

/* Glass Card pour la stats visuelle */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    width: 48%;
}

.stat-box i {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-box span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box h4 {
    font-size: 1.5rem;
    margin-top: 5px;
}

.stat-chart {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 150px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: 1s ease-out;
}

.stat-footer {
    text-align: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}


/* --- Features Extra (Hors ligne, etc) --- */
.features-extra {
    padding: 80px 0;
    background: #040609;
}

.features-extra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feat-card {
    text-align: center;
    padding: 30px;
}

.feat-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.feat-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feat-card p {
    color: var(--text-muted);
}


/* --- Section Tarifs --- */
.pricing-section {
    padding: 120px 0;
}

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

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    background: linear-gradient(to bottom, rgba(15, 118, 110, 0.1), var(--bg-surface));
    border-color: var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.lifetime {
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), var(--bg-surface));
    border-color: rgba(59, 130, 246, 0.5);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    min-height: 50px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.pricing-card ul li i {
    color: var(--success);
}


/* --- Footer CTA & Footer --- */
.footer-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f1624, #06090e);
    border-top: 1px solid var(--border-color);
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-inline: auto;
}

.footer-cta p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.footer {
    background: #030406;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .solution-wrapper {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .platforms-badge {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-extra-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 20px auto 0;
    }
}

/* --- Nouvelles Sections V2 --- */

/* Friction Killers (Hero) */
.friction-killers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.fk-item {
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.fk-item i {
    color: var(--success);
}

/* Section "Comment ça marche" (Steps) */
.steps-section {
    padding: 100px 0;
    background: var(--bg-base);
}

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

.step-card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--text-muted);
}

/* Logo Image Header */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .faq-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .friction-killers {
        justify-content: center;
    }
}

/* --- Marquee Testimonials --- */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Dégradés sur les bords pour l'effet de disparition */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-base) 0%, transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-base) 0%, transparent 100%);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 30px;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    gap: 30px;
    min-width: 100%;
}

.marquee-left .marquee-content {
    animation: scroll-left 40s linear infinite;
}

.marquee-right .marquee-content {
    animation: scroll-right 45s linear infinite;
}

/* Pause au survol */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 15px)); }
}

@keyframes scroll-right {
    from { transform: translateX(calc(-50% - 15px)); }
    to { transform: translateX(0); }
}

/* Style des cartes dans le carrousel */
.marquee .testimonial-card {
    width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    flex-shrink: 0;
    white-space: normal;
    transition: 0.3s ease;
}

.marquee .testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.marquee .testimonial-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
    min-height: 100px;
}

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

.marquee .author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.marquee .author h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.marquee .author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* --- WhatsApp Floating Widget --- */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

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

/* Animation de pulsation pour le widget */
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-widget {
    animation: pulse-whatsapp 2s infinite;
}
