/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(74, 144, 226, 0.3); }
    50% { text-shadow: 0 0 40px rgba(74, 144, 226, 0.6); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #888;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.back-btn {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #4a90e2;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4a90e2;
}

/* Sections communes */
.section {
    padding: 6rem 0;
}

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

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #ffffff, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Objectives Section */
.objectives-list {
    max-width: 800px;
    margin: 0 auto;
}

.objective-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.objective-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.objective-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4a90e2;
    opacity: 0.5;
}

/* Implementation Section */
.dark {
    background: #050505;
}

.implementation-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.step:hover {
    transform: scale(1.02);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Results Section */
.documentation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.doc-icon {
    font-size: 3rem;
}

.doc-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.doc-button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.download-btn {
    background: #4a90e2;
    border: 1px solid #4a90e2;
}

.download-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.button-icon {
    font-size: 1.2em;
}

/* Footer */
.site-footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-text a:hover {
    color: #4a90e2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .documentation-card {
        flex-direction: column;
        text-align: center;
    }

    .doc-buttons {
        flex-direction: column;
    }

    .doc-button {
        width: 100%;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.resource-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.resource-card h3 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #ffffff;
}

.resource-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4a90e2;
}

/* Implementation Steps */
.step-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 3rem;
}

.step-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    color: #ffffff;
}

.step-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4a90e2;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.step:hover {
    transform: translateX(10px);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

/* Dark Sections Enhancement */
.section.dark {
    background: linear-gradient(to bottom, #050505, #0a0a0a);
    position: relative;
}

.section.dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(74, 144, 226, 0.3), transparent);
}

.section.dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(74, 144, 226, 0.3), transparent);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .step-details {
        margin-left: 1rem;
    }

    .step:hover {
        transform: translateX(5px);
    }
}

/* Documentation Card Enhancement */
.documentation-card {
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.documentation-card:hover {
    border-color: rgba(74, 144, 226, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
} 