:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --accent: #3B82F6;
    --text: #334155;
    --light: #F8FAFC;
}

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

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

/* Header */
.project-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.project-header .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.back-btn i {
    margin-right: 0.5rem;
}

/* Conteneur principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Hero du projet */
.project-hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    padding-top: 80px;
    position: relative;
}

.project-hero img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-hero h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
    color: var(--dark);
    font-weight: 700;
}

/* Section détails */
.project-section {
    padding: 4rem 0;
}

.project-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
}

.project-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-top: 0.5rem;
}

.project-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.project-content.reverse {
    flex-direction: row-reverse;
}

.project-text {
    flex: 1;
}

.project-visual {
    flex: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

        
.project-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Galerie */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

        /* Technologies */
.technologies {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin: 1.5rem 0;
}

.tech-tag {
    background: #F1F5F9;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text);
    border: 1px solid #E2E8F0;
}

/* Résultats */
.result-item {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.result-item i {
    color: var(--success);
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Boutons et liens */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.project-footer {
    padding: 3rem 0;
    text-align: center;
    background: #F8FAFC;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
    }

    .project-content.reverse {
        flex-direction: column;
    }

    .project-hero h1 {
        font-size: 2rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }
}

/* Schéma interactif */
.interactive-schema {
    margin: 2rem 0;
    text-align: center;
}

.schema-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 800px;
}

.schema-item {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 0.75rem;
    padding: 1rem;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.schema-item:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.schema-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.schema-arrow {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

/* Infobulle (optionnel) */
.schema-item::after {
    content: attr(data-info);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    width: 200px;
    margin-bottom: 10px;
}

.schema-item:hover::after {
    opacity: 1;
}

/* Pour la GoPro et Twitch (éviter la duplication visuelle) */
.gopro, .twitch {
    margin-top: 2rem;
}
