:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --dark-bg: #0f172a;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

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

.nav-list {
    display: flex;
    gap: var(--spacing-sm);
    list-style: none;
    align-items: center;
}

/* Ajustement de l'espacement entre les éléments de navigation */
.nav-list li:nth-last-child(-n+2) {
    margin-left: var(--spacing-md);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 0.2rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.2s ease;
    max-width: 80%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.github-link {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    position: relative;
}

.github-link:hover {
    color: var(--primary-color);
}

.github-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.2s ease;
    max-width: 80%;
}

.github-link:hover::after {
    width: 100%;
}

/* Nouvelles animations pour les boutons */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

.btn:hover {
    animation: glow 1.5s infinite;
}

.btn:active {
    animation: none;
    transition: all 0.1s ease;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Éléments décoratifs du hero */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.code-snippets {
    position: absolute;
    bottom: 10%;
    right: 5%;
    transform: rotate(-10deg);
    font-family: 'Monaco', 'Consolas', monospace;
    z-index: 1;
}

.snippet {
    background: rgba(99, 102, 241, 0.15);
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0.8;
    transform: translateX(0);
    animation: slideIn 8s linear infinite;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.1);
}

.snippet:nth-child(2) {
    animation-delay: 2s;
}

.snippet:nth-child(3) {
    animation-delay: 4s;
}

.snippet:nth-child(4) {
    animation-delay: 6s;
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    10% {
        transform: translateX(0);
        opacity: 0.8;
    }
    90% {
        transform: translateX(0);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.shape {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.2),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.code-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-right {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        justify-content: center;
        gap: var(--spacing-md);
    }

    .nav-list li:nth-last-child(-n+2) {
        margin-left: 0;
    }

    .hero {
        padding: 6rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Ajout des styles pour le logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Styles pour la preview de code */
.code-preview, .code-window {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.window-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

code {
    color: #f8f8f2;
    font-family: 'Monaco', 'Consolas', monospace;
    line-height: 1.5;
}

/* Coloration syntaxique */
.keyword {
    color: #ff79c6;
}

.function {
    color: #50fa7b;
}

.string {
    color: #f1fa8c;
}

.parenthesis {
    color: #f8f8f2;
}

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    opacity: 0.8;
}

/* Styles pour les titres de section */
.section-title {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Demo section */
.demo {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--dark-bg), #1a1a1a);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .code-window {
        font-size: 14px;
    }
}

/* Styles des boutons principaux */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-size: 200% auto;
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 10px 20px -10px var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    opacity: 0.1;
}

.demo-image {
    margin-top: 1rem;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 4px;
}

.demo-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #1a1a1a, var(--dark-bg));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.author-info h4 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-light);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-light);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, var(--dark-bg), #080c14);
    padding: 4rem 0 2rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%
    );
    opacity: 0.3;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-brand .logo {
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.social-links a:hover::after {
    transform: scaleX(1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajout d'un effet de brillance sur les formes */
@keyframes glow-shape {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2), inset 0 0 20px rgba(99, 102, 241, 0.1); }
    50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.3), inset 0 0 30px rgba(99, 102, 241, 0.2); }
}

.shape {
    animation: glow-shape 4s ease-in-out infinite alternate;
}