/* ========================================
   MQDevLab - Site Portfolio v5
   Design moderne et professionnel
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --accent: #10b981;
    --accent-dark: #059669;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --lighter: #f1f5f9;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 10px 40px rgba(99, 102, 241, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
header {
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    border-bottom: none;
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-text { font-family: 'Courier New', monospace; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.logo-text .bracket { color: var(--accent); }
.logo-text .name { color: var(--dark); }

.nav-links { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 60%; }
.nav-links .nav-btn { border: none; }
.nav-links .nav-btn::after { display: none; }

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

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn-block { width: 100%; display: block; }

/* Bouton Démo - Accrocheur */
.btn-demo {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    font-size: 1.1rem;
    padding: 16px 32px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse-glow 2s infinite;
    z-index: 1;
    cursor: pointer;
}

.btn-demo::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
    pointer-events: none;
}

.btn-demo:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5); }

/* Bouton CTA - Simple et efficace */
.btn-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: var(--white);
    font-size: 1rem;
    padding: 14px 28px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(16, 185, 129, 0.6); }
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* HERO */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%; right: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; color: var(--dark); }
.hero h1 .highlight { color: var(--primary); }
.hero-desc { font-size: 1.15rem; color: var(--gray); margin-bottom: 2rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--gray); }
.trust-badges strong { color: var(--dark); }

/* Hero Visual - Browser Mockup */
.hero-visual { position: relative; }

.site-preview-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.site-preview-link:hover { transform: translateY(-5px); }

.browser-mockup {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.site-preview-link:hover .browser-mockup {
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.25);
}

.browser-bar {
    background: #e5e7eb;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}

.browser-dots span:first-child { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:last-child { background: #22c55e; }

.browser-url {
    flex: 1;
    background: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray);
    text-align: left;
}

.browser-content {
    position: relative;
    height: 300px;
    overflow: hidden;
    pointer-events: none;
}

.browser-content iframe {
    width: 200%;
    height: 200%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
}

.preview-label {
    display: block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Hero Showcase (ancien style - fallback) */
.hero-showcase { position: relative; }
.showcase-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
    text-decoration: none;
}
.showcase-card:hover { transform: translateY(-5px); }
.showcase-img { width: 100%; height: auto; border-radius: var(--radius); }
.showcase-label {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
}

/* SECTIONS */
section { padding: 80px 0; }

h2 { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 1rem; color: var(--dark); }
.section-subtitle { text-align: center; color: var(--gray); max-width: 600px; margin: 0 auto 3rem; font-size: 1.1rem; }

/* SERVICES */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card {
    background: var(--lighter);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.service-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }
.service-card p { font-size: 0.9rem; color: var(--gray); }

/* ADVANTAGES */
.advantages-section { background: var(--lighter); }
.advantages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.advantage-box { padding: 2.5rem; border-radius: var(--radius-lg); }
.advantage-box.problem { background: #fef2f2; border: 2px solid #fecaca; }
.advantage-box.problem h3 { color: #dc2626; }
.advantage-box.solution { background: #f0fdf4; border: 2px solid #bbf7d0; }
.advantage-box.solution h3 { color: #16a34a; }
.advantage-box h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.advantage-box ul { list-style: none; }
.advantage-box li { padding: 0.5rem 0; color: var(--gray); }

/* PRICING */
.pricing-section { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.pricing-card {
    background: var(--white);
    border: 2px solid var(--lighter);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}
.pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.pricing-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--dark); }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.pricing-note { color: var(--gray); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.pricing-features li { padding: 0.5rem 0; color: var(--gray); border-bottom: 1px solid var(--lighter); }
.pricing-ideal { font-size: 0.9rem; color: var(--gray); margin-bottom: 1.5rem; font-style: italic; }
.pricing-pro { background: linear-gradient(135deg, var(--lighter) 0%, #e0e7ff 100%); }
.pricing-extra { text-align: center; margin-top: 2rem; color: var(--gray); }

/* PORTFOLIO */
.portfolio-section { background: var(--lighter); }
.portfolio-showcase { max-width: 700px; margin: 0 auto 2rem; position: relative; }

.portfolio-carousel { position: relative; display: flex; align-items: center; gap: 1rem; }

.carousel-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { background: var(--primary); color: white; transform: scale(1.1); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.portfolio-slide { display: none; width: 100%; }
.portfolio-slide.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.portfolio-dots { display: flex; justify-content: center; gap: 0.5rem; margin: 1rem 0; }
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}
.dot:hover { background: #94a3b8; }
.dot.active { background: var(--primary); transform: scale(1.2); }

.portfolio-item-preview {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-item-preview:hover { transform: translateY(-5px); }

.portfolio-browser {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item-preview:hover .portfolio-browser {
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.portfolio-iframe-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    pointer-events: none;
}

.portfolio-iframe-container iframe {
    width: 200%;
    height: 200%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
}

.portfolio-no-url {
    height: 350px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: var(--gray);
}
.portfolio-no-url .icon { font-size: 4rem; }

.portfolio-info {
    text-align: center;
    padding: 1.5rem;
    color: var(--dark);
}

.portfolio-tag { background: var(--primary); color: white; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; }
.portfolio-info h4 { font-size: 1.5rem; margin: 0.5rem 0; color: var(--dark); }
.portfolio-info p { color: var(--gray); font-size: 0.9rem; margin-bottom: 0.5rem; }
.portfolio-link { color: var(--primary); font-weight: 600; }

.portfolio-features { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.feature-tag { background: var(--white); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.85rem; color: var(--dark); }

/* PROCESS */
.process-section { background: var(--white); }
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-step { text-align: center; }
.step-number {
    width: 60px; height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}
.process-step h4 { margin-bottom: 0.5rem; color: var(--dark); }
.process-step p { font-size: 0.9rem; color: var(--gray); }

/* FAQ */
.faq-section { background: var(--lighter); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 1.5rem 1.5rem; color: var(--gray); }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}
.cta-section h2 { color: white; margin-bottom: 0.5rem; }
.cta-section p { opacity: 0.9; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* CONTACT */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}
.contact-section h2 { color: white; }
.contact-section .section-subtitle { color: rgba(255,255,255,0.8); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 1rem; opacity: 0.9; }
.contact-info a { color: white; }
.contact-box { background: rgba(255,255,255,0.1); padding: 1.5rem; border-radius: var(--radius); margin-top: 2rem; }
.contact-form { background: var(--white); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-status {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: var(--radius);
    font-weight: 500;
}
.form-status.success {
    background: #d1fae5;
    color: #065f46;
}
.form-status.error {
    background: #fee2e2;
    color: #991b1b;
}

/* FOOTER */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}
footer a { color: var(--accent); text-decoration: none; }
footer p { margin-bottom: 0.5rem; opacity: 0.8; }
.footer-logo { font-family: 'Courier New', monospace; font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; }
.footer-legal { margin-top: 1.5rem; font-size: 0.85rem; opacity: 0.6; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .trust-badges { justify-content: center; }
    .hero-visual { max-width: 400px; margin: 0 auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { padding: 0.8rem 0; position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: var(--white); }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; 
        right: 1rem;
        left: auto;
        width: auto;
        min-width: 220px;
        background: transparent;
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.6rem;
        align-items: flex-end;
    }
    .nav-links.active { display: flex; }
    .nav-links a, 
    .nav-links .nav-btn { 
        display: block;
        margin: 0; 
        text-align: center;
        padding: 12px 20px;
        border-radius: 25px;
        background: var(--primary) !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        text-decoration: none;
        font-weight: 500;
    }
    .nav-links a:hover,
    .nav-links .nav-btn:hover {
        background: var(--dark) !important;
        transform: translateY(-2px);
    }
    .nav-links a::after { display: none; }
    .menu-toggle { display: block; }
    
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    
    section { padding: 50px 0; }
    h2 { font-size: 1.8rem; }
    
    .services-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { max-width: 400px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    
    /* Portfolio carousel mobile */
    .portfolio-carousel { gap: 0.5rem; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
    .portfolio-iframe-container { height: 280px; }
    .portfolio-no-url { height: 280px; }
}
