/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f77800;
    background-color: #0f0500;
}

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

/* Header */
header {
    background-color: #0f0500;
    color: #f77800;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #9635ff;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #f77800;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #9635ff;
}

/* Hero Section */
#hero {
    background-color: #0f0500;
    color: #f77800;
    text-align: center;
    padding: 100px 0 50px;
    border-bottom: 1px solid #9635ff;
}

/* Section CV - Aperçu PDF */
.cv-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.cv-text,
.cv-preview {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: rgba(150, 53, 255, 0.1);
    border-radius: 5px;
    margin: 10px;
}

.cv-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Listes à puces pour les points clés */
.cv-highlights {
    margin: 10px 0 20px 20px;
    list-style-type: none;
    padding-left: 0;
}

.cv-highlights li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.cv-highlights li:before {
    content: "•";
    color: #9635ff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Détails du CV */
.cv-details {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(247, 120, 0, 0.1);
    border-radius: 5px;
    border-left: 4px solid #f77800;
}

.cv-details p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.cv-details i {
    margin-right: 10px;
    color: #f77800;
}

/* Aperçu PDF */
.pdf-container {
    width: 100%;
    border: 1px solid #9635ff;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
}

.pdf-container embed {
    width: 100%;
    height: 500px;
    border: none;
}

/* Grille des compétences */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.skill-category {
    flex: 1;
    min-width: 200px;
    margin: 10px;
    padding: 15px;
    background-color: rgba(150, 53, 255, 0.1);
    border-radius: 5px;
}

.skill-category h4 {
    color: #f77800;
    margin-bottom: 10px;
    border-bottom: 1px solid #9635ff;
    padding-bottom: 5px;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 8px;
    color: #fff;
    position: relative;
    padding-left: 15px;
}

.skill-category ul li:before {
    content: "•";
    color: #9635ff;
    position: absolute;
    left: 0;
}

/* Projets Section */
#projets {
    padding: 80px 0;
    background-color: #0f0500;
    color: #f77800;
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
    gap: 30px;
    justify-content: center;
}

.projet-card {
    background-color: #1a0a00;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(150, 53, 255, 0.3);
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid #9635ff;
}

.projet-card iframe {
    width: 100%;
    height: 167px;
    border: none;
    display: block;
}

/* Footer */
footer {
    background-color: #0f0500;
    color: #f77800;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #9635ff;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: #9635ff;
    color: #0f0500;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    border: 1px solid #f77800;
}

.btn:hover {
    background-color: #f77800;
    color: #0f0500;
}

/* Animations */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Easter Egg : Jeu du Dinosaure */
.easter-egg-hidden {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.game-container {
    position: relative;
    width: 800px;
    height: 300px;
    background-color: #f7f7f7;
    overflow: hidden;
    border: 3px solid #9635ff;
    border-radius: 10px;
}

.dino {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 50px;
    left: 50px;
    background-color: #f77800;
    border-radius: 10px;
}

.cactus {
    position: absolute;
    width: 20px;
    height: 50px;
    bottom: 50px;
    left: 800px;
    background-color: #0f0500;
}

.ground {
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 50px;
    background-color: #333;
}

.score {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #0f0500;
    font-weight: bold;
    font-size: 18px;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f77800;
    font-size: 24px;
    text-align: center;
}

.game-over button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #9635ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.game-over button:hover {
    background-color: #f77800;
}

#easter-egg.visible {
    display: flex;
}

/* Bouton pour fermer le jeu */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #f77800;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-button:hover {
    color: #9635ff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hidden {
    display: none !important;
}

/* Liens sociaux dans le footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: #f77800;
    font-size: 28px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #9635ff;
    transform: scale(1.2);
}