:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #1e293b;
    
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    
    --glass: rgba(30, 41, 59, 0.7);
    --border: rgba(255,255,255,0.1);
    --radius: 12px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utils */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Components */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 50px; font-weight: 600;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
    background: var(--primary); 
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); 
}
.btn-primary:hover { background: var(--primary-hover); }
.btn.small { padding: 8px 16px; font-size: 0.9rem; }
.btn.large { padding: 16px 40px; font-size: 1.2rem; }

/* Navbar */
.navbar {
    padding: 20px 0; position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px); background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn) { color: var(--text-muted); }
.nav-links a:not(.btn):hover { color: white; }
.mobile-toggle { display: none; cursor: pointer; }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; overflow: hidden; }
.badge {
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1); 
    color: #60a5fa; 
    font-size: 0.85rem; 
    margin-bottom: 20px; 
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.hero h1 {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800;
}
.hero-sub {
    font-size: 1.2rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 40px;
}
.cta-group { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 60px; }
.sub-text { font-size: 0.85rem; color: var(--text-muted); opacity: 0.7; }

/* Hero Visual (CSS Drawing) */
.hero-visual { position: relative; max-width: 1000px; margin: 0 auto; perspective: 1000px; }
.app-window {
    background: #1e293b; border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    /*transform: rotateX(5deg);*/
}
.app-header { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #eab308; } .green { background: #22c55e; }
.address-bar { background: #0f172a; padding: 5px 15px; border-radius: 6px; font-size: 0.8rem; color: var(--text-muted); flex-grow: 1; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.app-grid img { width: 100%; height: auto; display: block; grid-column: 1 / -1; }
.app-screenshot-container { position: relative; grid-column: 1 / -1; width: 100%; }
.theme-toggle-btn {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 2.2%;
    height: 4%;
    padding: 0;
}

/* light effect */
.theme-toggle-btn::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.2),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Hover */
.theme-toggle-btn:hover::before {
  opacity: 1;
}

/* Positionnement des boutons invisibles - à ajuster selon l'image */
.btn-dark { top: 0.3%; right: 6.5%; }
.btn-light { top: 0.3%; right: 8.5%; }
.btn-light-blue { top: 0.3%; right: 4.6%; }
.btn-edit { top: 0.3%; right:  15.7%; width: 3.3%; }
.btn-run { top: 0.3%; right: 12.7%; width: 3.3%; }

/* Navigation des screenshots */
.screenshot-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}
.screenshot-nav .nav-link {
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.screenshot-nav .nav-link:hover {
    background: rgba(51, 65, 85, 0.9);
    color: var(--text-color);
    border-color: var(--primary);
}
.screenshot-nav .nav-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}
.widget {
    aspect-ratio: 1; 
    background: #334155; 
    border-radius: 12px; /* Un peu plus rond */
    display: flex; 
    flex-direction: column; /* Permet icône + texte */
    align-items: center; 
    justify-content: center;
    gap: 8px; /* Espace entre icône fictive et texte */
    font-weight: 600; 
    font-size: 0.85rem; 
    cursor: pointer; 
    transition: 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Légère ombre pour le volume */
    border: 1px solid rgba(255,255,255,0.05);
}
.widget:hover, .widget.active { background: var(--primary); color: white; }
.glow-effect {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120%; height: 120%; background: var(--primary);
    filter: blur(100px); opacity: 0.2; z-index: -1;
}

/* Features */
.features { padding: 100px 0; }
.feature-row {
    display: flex; align-items: center; gap: 60px; margin-bottom: 100px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.feature-text p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; }
.feature-list { list-style: none; }
.feature-list li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.feature-list li::before {
    content: "✓"; color: var(--primary); position: absolute; left: 0; font-weight: bold;
}
.feature-visual { flex: 1; display: flex; justify-content: center; }

/* Abstract Visuals for Features */
.card-mockup, .monitor-mockup {
    background: var(--secondary); border: 1px solid var(--border);
    padding: 20px; border-radius: var(--radius); width: 100%; max-width: 400px;
}
.cmd-line { font-family: monospace; color: #cbd5e1; margin-bottom: 10px; }
.cmd-success { font-family: monospace; color: #22c55e; }
.workspace-stack { position: relative; height: 150px; width: 300px; }
.ws-card {
    position: absolute; width: 100%; height: 60px; background: var(--secondary);
    border: 1px solid var(--border); border-radius: 8px;
    display: flex; align-items: center; padding: 0 20px;
    transition: 0.3s;
}
.ws-card:nth-child(1) { top: 0; transform: scale(0.9); opacity: 0.6; z-index: 1; }
.ws-card:nth-child(2) { top: 20px; transform: scale(0.95); opacity: 0.8; z-index: 2; background: #334155;}
.ws-card:nth-child(3) { top: 40px; z-index: 3; border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

.status-row {
    font-family: monospace;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.screenshot-container {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.feature-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* How it works */
.how-it-works { padding: 100px 0; text-align: center; background: rgba(30, 41, 59, 0.3); }
.how-it-works h2 { font-size: 2.5rem; margin-bottom: 10px; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 60px;
}
.step-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    transition: transform 0.3s, border-color 0.3s;
    text-align: center;
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}
.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing */
.pricing { padding: 100px 0; text-align: center; }
.pricing h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 60px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.pricing-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}
.badge-featured {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.pricing-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pricing-header h3 { font-size: 1.5rem; margin-bottom: 15px; }
.price { margin: 10px 0; display: flex; flex-direction: column; align-items: center; }
.price .amount { font-size: 3rem; font-weight: 800; color: var(--primary); }
.price .price-notice {
    font-size: 0.85rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
    font-weight: 500;
}
.pricing-body { text-align: left; }
.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    min-height: 160px;
}
.pricing-features li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: var(--text-muted);
}
.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.pricing-card .btn {
    width: 100%;
    justify-content: center;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Bottom CTA & Footer */
.bottom-cta { text-align: center; padding: 80px 0; background: linear-gradient(to top, rgba(99,102,241,0.1), transparent); }
.bottom-cta h2 { font-size: 2.5rem; margin-bottom: 30px; }
.footer { padding: 60px 0 20px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 40px; }
.footer-links { display: flex; gap: 20px; }
.copyright { text-align: center; opacity: 0.5; font-size: 0.8rem; }

/* Legal Page */
.legal-page { padding: 80px 0; }
.legal-section { margin-bottom: 60px; }
.legal-section h1 { font-size: 2.5rem; margin-bottom: 10px; }
.legal-section h2 { font-size: 1.8rem; margin-top: 40px; margin-bottom: 15px; color: var(--primary); }
.legal-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.last-updated { font-size: 0.9rem; color: var(--text-muted); opacity: 0.7; margin-bottom: 40px; }
.legal-divider { border: none; border-top: 2px solid var(--border); margin: 80px 0; }

/* Contact Page */
.contact-page { padding: 80px 0; }
.contact-hero { text-align: center; margin-bottom: 60px; }
.contact-hero h1 { font-size: 2.8rem; margin-bottom: 20px; }
.contact-intro {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-email-box {
    text-align: center;
    padding: 40px;
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    margin-bottom: 60px;
    transition: all 0.3s;
}

.contact-email-box:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.contact-email-box svg {
    color: var(--primary);
    margin-bottom: 20px;
}

.email-link {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s;
    display: block;
}

.email-link:hover {
    color: var(--primary-hover);
}

.contact-reasons { margin-bottom: 50px; }
.contact-reasons h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.reason-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s;
}

.reason-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.8);
}

.reason-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.reason-icon.bug {
    background: #f59e0b;
}

.reason-icon.love {
    background: #ec4899;
}

.reason-card:hover .reason-icon {
    transform: scale(1.1);
}

.reason-icon svg {
    color: white;
}

.reason-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.reason-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-footer {
    text-align: center;
    padding: 30px;
    background: rgba(59, 130, 246, 0.03);
    border-radius: var(--radius);
}

.contact-footer p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* FAQ Page */
.faq-page { padding: 80px 0; }
.faq-hero { text-align: center; margin-bottom: 60px; }
.faq-hero h1 { font-size: 2.8rem; margin-bottom: 20px; }
.faq-intro {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 50px;
}

.faq-section-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-section-title::before {
    content: "";
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.faq-item {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    padding: 0 25px 25px;
    margin: 0;
}

.faq-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
}

.faq-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .feature-row, .feature-row.reverse { flex-direction: column; text-align: center; gap: 40px; }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-list { text-align: left; display: inline-block; }
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

    .contact-hero h1 { font-size: 2.2rem; }
    .contact-card { padding: 30px 20px; }
    .contact-email-box { padding: 30px 20px; }
    .email-link { font-size: 1.1rem; word-break: break-all; }
    .reasons-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .faq-hero h1 { font-size: 2.2rem; }
    .faq-question { padding: 18px 20px; font-size: 1rem; }
    .faq-item.open .faq-answer { padding: 0 20px 20px; }
    .faq-cta { padding: 30px 20px; }
}