/* Styles spécifiques à la page d'accueil */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D0D0D 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    color: #E8E8E8;
    max-width: 800px;
    padding: 0 20px;
}

.hero-name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #00FF41;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #E8E8E8;
}

.hero-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #00FF41;
}

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

/* Fiche Hacker Section */
.fiche-section {
    padding: 80px 20px;
    background: #0D0D0D;
    color: #E8E8E8;
    font-family: 'Courier New', monospace;
}

.fiche-container {
    max-width: 1200px;
    margin: 0 auto;
}

.fiche-title {
    text-align: center;
    font-size: 2rem;
    color: #00FF41;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.fiche-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    border: 2px solid #00FF41;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
}

.fiche-left {
    flex: 1;
    text-align: center;
}

.photo-container {
    margin-bottom: 20px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #00FF41;
    border-radius: 5px;
    filter: grayscale(100%) contrast(1.2);
}

.identity-info p {
    margin: 10px 0;
    text-align: left;
}

.identity-info strong {
    color: #00FF41;
}

.fiche-right {
    flex: 1;
}

.fiche-right h3 {
    color: #00FF41;
    margin-bottom: 20px;
    text-align: center;
}

.modules-table {
    width: 100%;
    border-collapse: collapse;
}

.modules-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    vertical-align: top;
}

.module-label {
    color: #E8E8E8;
    font-weight: bold;
    width: 40%;
}

.module-value {
    color: #00FF41;
    font-family: 'Courier New', monospace;
}

.module-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.module-icon {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.4rem;
    padding: 0.25rem;
}

/* Rapport d'analyse */
.rapport-section {
    border: 2px solid #00FF41;
    padding: 30px;
    background: rgba(0, 0, 0, 0.8);
    animation: typewriter 2s steps(40, end);
}

.rapport-title {
    color: #00FF41;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.rapport-content {
    line-height: 1.6;
}

/* Centres d'intérêt */
.interets-section {
    padding: 80px 20px;
    background: #1a1a1a;
    color: #E8E8E8;
}

.interets-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #00FF41;
}

.interets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.interet-item {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid #00FF41;
}

.interet-item h3 {
    color: #00FF41;
    margin-bottom: 15px;
}

/* Parcours */
.parcours-section {
    padding: 80px 20px;
    background: #0D0D0D;
    color: #E8E8E8;
}

.parcours-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #00FF41;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid #00FF41;
    border-radius: 5px;
}

.timeline-item h3 {
    color: #00FF41;
    margin-bottom: 10px;
}

/* Compétences UE */
.competences-section {
    padding: 80px 20px;
    background: #1a1a1a;
    color: #E8E8E8;
}

.competences-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #00FF41;
}

.ue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ue-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ue-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.ue1-card:hover { border-color: #00FF41; }
.ue2-card:hover { border-color: #4B5320; }
.ue3-card:hover { border-color: #8B0000; }
.ue4-card:hover { border-color: #00FF41; }
.ue5-card:hover { border-color: #1A1A4E; }
.ue6-card:hover { border-color: #E07B39; }

.ue-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0D0D0D;
    position: relative;
}

.ue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ue-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00FF41;
    color: #0D0D0D;
    font-size: 2rem;
    font-weight: bold;
}

.ue-card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 0 0;
    background: rgba(0, 0, 0, 0.05);
}

.ue-card-icon img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.placeholder {
    color: #00FF41;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.ue-card h3 {
    padding: 20px;
    margin: 0;
    color: #00FF41;
    text-align: center;
}

.ue-card p {
    padding: 0 20px 20px;
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .fiche-content {
        flex-direction: column;
        gap: 20px;
    }

    .ue-grid {
        grid-template-columns: 1fr;
    }

    .interets-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation typewriter */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}