/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

/* Mode sombre */
body.dark-mode {
    background-color: #1a1a1a;
    color: white;
}

body.dark-mode header {
    background-color: #333;
}

header {
    background-color: #c87f0a;
    padding: 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    display: inline;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

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

#dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    background-image: url('onepiece-bg.jpg');
    background-size: cover;
    text-align: center;
    padding: 100px 20px;
}

.hero button {
    background-color: #c87f0a;
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.hero button:hover {
    background-color: #a86b09;
    transform: scale(1.1);
}

/* Effets sur les projets */
.projet {
    width: 30%;
    background-color: #fff;
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    margin-bottom: 80px; /* Ajoute un espace en bas des projets */  
}

.projet:hover {
    transform: translateY(-10px);
    
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
/* Centrer les projets */
#projets .projet-container {
    display: flex;
    flex-direction: column; /* Les projets s'affichent en colonne */
    align-items: center;
}

#projets .projet {
    width: 50%; /* Réduction de la largeur pour bien centrer */
}


/* Mode sombre pour les projets */
body.dark-mode .projet {
    background-color: #333;
    color: white;
}

/* Section Contact */
#contact {
    background-color: #c87f0a; /* Couleur dorée style One Piece */
    color: white;
    padding: 50px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

#contact p {
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
}

#contact a {
    color: #ffe600; /* Jaune éclatant */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

#contact a:hover {
    color: #ffcc00; /* Légère variation au survol */
    text-decoration: underline;
}

/* Redimensionner l'image SVG de Pterodactyl */
.pterodactyl-logo {
    width: 150px;  /* Ajuste la taille de l'image */
    height: auto;  /* Garde les proportions */
    margin-bottom: 20px; /* Espace en bas de l'image */
}

/* Style pour les logos Discord et Python côte à côte */
.bot-logos {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Aligne verticalement */
    gap: 20px; /* Espacement entre les logos */
    margin-bottom: 10px;
}

.bot-logos img {
    width: 80px; /* Taille uniforme des logos */
    height: auto;
}


.hidden-egg {
    width: 50px; /* Taille de l'œuf */
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hidden-egg:hover {
    opacity: 1;
}

#car-game-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 10px;
    z-index: 9999;
}

#car-game {
    width: 400px;
    height: 600px;
    background: #606060;
    border: 5px solid white;
}
