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

:root {
    --primary: #dc2626; /* Rouge vif pour les éléments principaux */
    --primary-dark: #b91c1c; /* Rouge foncé pour les hover */
    --primary-light: #fecaca; /* Rouge clair pour les dégradés */
    --secondary: #7f1d1d; /* Rouge bordeaux pour les accents */
    --dark: #0a0a0a; /* Noir profond */
    --dark-gray: #262626; /* Gris très foncé */
    --light: #fef2f2; /* Fond très clair avec teinte rougeâtre */
    --gray: #737373; /* Gris neutre */
    --success: #16a34a; /* Vert pour garder la cohérence des états */
    --warning: #ea580c; /* Orange/rouge pour les avertissements */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

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

/* Navigation - Mise à jour avec les nouvelles couleurs */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #5c1515;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 29, 29, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section - Dégradé rouge/noir */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 150px 0 100px;
    margin-top: 70px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #fecaca;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Quick Start Section */
.quick-start {
    padding: 100px 0;
    background: var(--light);
}

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

.quick-start-content h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark);
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.step-content p {
    color: var(--gray);
}

/* Terminal - Adaptation aux couleurs rouge/noir */
.quick-start-terminal {
    background: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.terminal-header {
    background: var(--dark-gray);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}

.terminal-dots span:nth-child(2) {
    background: var(--warning);
}

.terminal-dots span:nth-child(3) {
    background: var(--success);
}

.terminal-title {
    color: #a0aec0;
    font-size: 0.9rem;
}

.terminal-content {
    padding: 30px;
    font-family: 'Courier New', monospace;
    color: #e2e8f0;
    line-height: 1.8;
}

.prompt {
    color: var(--primary-light);
}

.output {
    color: #90cdf4;
}

/* Video Section */
.video-showcase {
    padding: 100px 0;
    background: white;
}

.video-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
}

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

.video-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #fecaca;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1);
}

.video-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-placeholder a {
    color: white;
    text-decoration: none;
    text-align: center;
}

.play-button {
    font-size: 3rem;
    margin-bottom: 10px;
}

.video-card h3 {
    padding: 20px;
    margin: 0;
    color: var(--dark);
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--gray);
    margin: 0;
}

/* Footer - Adaptation rouge/noir */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 20px;
    text-align: center;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .quick-start-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
}
/* Styles pour le logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* Logo dans la hero section */
.hero-logo {
    margin-bottom: 30px;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Logo dans le footer */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    opacity: 0.9;
}

/* Responsive pour le logo */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .hero-logo-img {
        height: 60px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none; /* Cache le texte sur très petits écrans */
    }
    
    .logo-img {
        height: 32px;
    }
}
/* Additional styles for documentation */
.feature-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 15px;
}

.doc-card .feature-tag {
    position: absolute;
    top: 15px;
    right: 15px;
}

.doc-card {
    position: relative;
}

/* Amélioration de la navigation active */
.nav-menu a.active {
    color: var(--primary);
    font-weight: bold;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
/* SourceForge Section Styles */
.sourceforge-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.sourceforge-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.sourceforge-icon img {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.sourceforge-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.sourceforge-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
}

.sourceforge-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.sourceforge-buttons .btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sourceforge-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sourceforge-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .sourceforge-text h2 {
        font-size: 1.5rem;
    }
}