/* Styles spécifiques à UE2 - Agent Smith (Vert olive, gris froid) */

/* Variables de couleur UE2 */
:root {
    --ue2-primary: #4B5320;
    --ue2-secondary: #A0A0A0;
    --ue2-dark: #0D0D0D;
    --ue2-accent: #E8E8E8;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ue2-dark) 0%, #2a2a2a 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    color: var(--ue2-accent);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--ue2-primary);
    text-shadow: 0 0 20px rgba(75, 83, 32, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--ue2-secondary);
}

/* Présentation Section */
.presentation-section {
    padding: 80px 20px;
    background: var(--ue2-dark);
    color: var(--ue2-accent);
}

.presentation-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.character-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ue2-secondary);
    border: 2px solid var(--ue2-primary);
    border-radius: 10px;
}

.character-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.placeholder {
    color: var(--ue2-primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.character-intro h2 {
    color: var(--ue2-primary);
    margin-bottom: 20px;
}

.ue-description h3 {
    color: var(--ue2-primary);
    margin-bottom: 20px;
}

/* Projets Section */
.projets-section {
    padding: 80px 20px;
    background: #2a2a2a;
    color: var(--ue2-accent);
}

.projets-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--ue2-primary);
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.projet-card {
    background: rgba(160, 160, 160, 0.1);
    border: 1px solid var(--ue2-primary);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.projet-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(75, 83, 32, 0.3);
}

.trace-preview {
    margin-top: 20px;
    text-align: center;
    background: rgba(75, 83, 32, 0.1);
    border: 1px solid rgba(75, 83, 32, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.trace-preview p {
    margin-bottom: 15px;
    color: var(--ue2-accent);
}

.trace-image {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trace-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(75, 83, 32, 0.3);
}

.trace-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.trace-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 1;
}

.trace-modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.trace-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border: 2px solid var(--ue2-primary);
    box-shadow: 0 0 50px rgba(75, 83, 32, 0.5);
    pointer-events: auto;
}

.trace-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--ue2-primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    pointer-events: auto;
}

.trace-modal-close:hover {
    color: var(--ue2-accent);
}

.projet-card.cloneable:hover::before,
.projet-card.cloneable:hover::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border: inherit;
    border-radius: inherit;
    opacity: 0.7;
    z-index: -1;
}

.projet-card.cloneable:hover::before {
    left: -10px;
    transform: rotate(-5deg);
}

.projet-card.cloneable:hover::after {
    left: 10px;
    transform: rotate(5deg);
}

.projet-card h3 {
    color: var(--ue2-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.projet-card p {
    position: relative;
    z-index: 1;
}

/* Citation Section */
.citation-section {
    padding: 80px 20px;
    background: var(--ue2-dark);
    color: var(--ue2-accent);
}

.citation-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.character-portrait {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ue2-secondary);
    border: 2px solid var(--ue2-primary);
    border-radius: 10px;
}

.character-portrait img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.citation {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--ue2-primary);
    text-align: center;
    flex: 1;
}

.citation cite {
    display: block;
    margin-top: 20px;
    color: var(--ue2-accent);
    font-size: 1.2rem;
}

/* Navigation Section */
.navigation-section {
    padding: 60px 20px;
    background: #2a2a2a;
    color: var(--ue2-accent);
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.back-btn {
    background: var(--ue2-primary);
    color: var(--ue2-accent);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: var(--ue2-secondary);
    color: var(--ue2-dark);
}

.ue-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.ue-btn {
    background: rgba(75, 83, 32, 0.1);
    color: var(--ue2-primary);
    padding: 10px 20px;
    border: 1px solid var(--ue2-primary);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ue-btn:hover {
    background: var(--ue2-primary);
    color: var(--ue2-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .presentation-content {
        flex-direction: column;
        text-align: center;
    }

    .citation-content {
        flex-direction: column;
        text-align: center;
    }

    .projets-grid {
        grid-template-columns: 1fr;
    }

    .ue-links {
        flex-direction: column;
        align-items: center;
    }
}