/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header en haut */
header {
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px #ff9a9e, 0 0 20px #ff9a9e, 0 0 30px #ff9a9e;
    }
    100% {
        text-shadow: 0 0 20px #fad0c4, 0 0 40px #fad0c4, 0 0 60px #fad0c4;
    }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff9a9e;
}

/* Contenu principal */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    overflow-y: auto;
    width: 100%;
    margin-top: 80px;
    margin-bottom: 60px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Styles pour la page de progression */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
}

.player-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.5);
}

.player-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.player-card:hover .player-image {
    transform: scale(1.1);
}

.player-name {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #ffffff;
}

/* Styles pour la page de détails */
.player-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.player-image-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.rewards {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.rewards h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.rewards ul {
    list-style-type: none;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.rewards ul li {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Styles pour la page des événements */
.event-info {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-in-out;
}

.event-info p {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.event-name {
    font-weight: bold;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: subtleGlow 3s infinite alternate;
}

@keyframes subtleGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 154, 158, 0.5), 0 0 10px rgba(255, 154, 158, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(250, 208, 196, 0.5), 0 0 20px rgba(250, 208, 196, 0.5);
    }
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

#countdown div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#countdown span {
    font-size: 2rem;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

#countdown span:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.5);
}

#countdown small {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #ffffff;
    opacity: 0.8;
}

@keyframes slideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.event-details {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    max-width: 800px;
    width: 100%;
    animation: fadeIn 2s ease-in-out;
}

.event-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
}

.event-details h4 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.event-details p, .event-details ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 1rem;
}

.event-details ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.event-details ul li {
    margin-bottom: 0.5rem;
}

/* Footer en bas */
footer {
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
}

/* Supprimer le soulignement des liens */
a {
    text-decoration: none;
    color: inherit;
}

/* Couleurs des types */
.type-vol {
    color: #a890f0; /* Violet pour Vol */
    font-weight: bold;
}

.type-combat {
    color: #c03028; /* Rouge pour Combat */
    font-weight: bold;
}

.type-eau {
    color: #6890f0; /* Bleu pour Eau */
    font-weight: bold;
}

.type-fee {
    color: #ee99ac; /* Rose pour Fée */
    font-weight: bold;
}

/* Styles pour la page d'accueil */
.welcome {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 800px;
    animation: fadeIn 2s ease-in-out;
}

.welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.welcome p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.welcome .quote {
    font-style: italic;
    color: #fad0c4;
    margin-top: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.5);
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.feature-card .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.5);
}

/* Styles pour la page d'aide */
.help-section {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    animation: fadeIn 2s ease-in-out;
}

.help-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
}

.help-section p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.berry-list {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.berry-list li {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.step {
    margin-bottom: 2rem;
    text-align: center;
}

.step p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.step-image {
    width: 80%; /* Réduction de la taille des images */
    max-width: 500px; /* Limite la largeur maximale */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    display: block;
}

.step-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.5);
}

.success {
    font-size: 1.1rem;
    color: #4caf50; /* Vert pour indiquer le succès */
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    background: rgba(76, 175, 80, 0.1); /* Fond semi-transparent vert */
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #4caf50; /* Bordure verte */
}

.warning {
    font-size: 1.1rem;
    color: #ff9a9e; /* Rouge pour attirer l'attention */
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    background: rgba(255, 154, 158, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ff9a9e;
}

/* Animation pour les sections */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Styles pour la page des liens */
.links-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.5);
}

.link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.link-card p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.link-card .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.5);
}

/* Styles spécifiques pour la page mods.html */
.mods-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mods-title {
    font-size: 2rem; /* Taille réduite */
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff; /* Couleur unie au lieu du dégradé */
    font-weight: bold;
    text-transform: uppercase; /* Optionnel : pour un style plus sobre */
    letter-spacing: 1px; /* Espacement des lettres pour un effet plus élégant */
    animation: none; /* Supprimer l'animation de glow */
}

.mod-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.5);
}

.mod-card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ff9a9e;
}

.mod-card-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ffffff;
}

.mod-card-warning {
    font-size: 1.1rem;
    color: #ff9a9e;
    font-weight: bold;
    margin-bottom: 1rem;
    background: rgba(255, 154, 158, 0.1);
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ff9a9e;
}

.mod-card-steps {
    list-style-type: decimal;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.mod-card-steps li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mod-card-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mod-card-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.5);
}

.label {
    font-weight: bold;
    color: #ff9a9e; /* Couleur pour le label */
}

.ip-address {
    font-family: monospace; /* Police à chasse fixe pour les adresses IP */
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Style pour le message "Événement commencé !" */
.event-started {
    text-align: center;
    margin-top: 2rem;
    animation: glow 2s infinite alternate;
}

/* Animation pour le message */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px #ff9a9e, 0 0 20px #ff9a9e, 0 0 30px #ff9a9e;
    }
    100% {
        text-shadow: 0 0 20px #fad0c4, 0 0 40px #fad0c4, 0 0 60px #fad0c4;
    }
}

/* Style pour le message "Événement commencé !" */
#event-started-message {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 154, 158, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.5);
    display: none; /* Caché par défaut */
}

.event-started span {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Style pour les emojis */
.event-started span .emoji {
    font-size: 2.5rem;
    background: none; /* Pas de fond pour les emojis */
    -webkit-text-fill-color: initial; /* Couleur d'origine des emojis */
    display: inline-block;
    animation: bounce 1s infinite;
}

/* Animation pour les emojis */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation pour le message */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px #ff9a9e, 0 0 20px #ff9a9e, 0 0 30px #ff9a9e;
    }
    100% {
        text-shadow: 0 0 20px #fad0c4, 0 0 40px #fad0c4, 0 0 60px #fad0c4;
    }
}

/* Style pour le texte des récompenses */
.reward-notice {
    font-size: 1.1rem;
    color: #ff9a9e; /* Couleur rose pour attirer l'attention */
    font-weight: bold;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 154, 158, 0.1); /* Fond rose très léger */
    border-radius: 10px;
    border: 1px solid #ff9a9e; /* Bordure rose */
    text-align: center;
}

/* Style pour l'énigme */
#enigme {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.5);
    display: none; /* Caché par défaut */
}

.enigme-container {
    max-width: 800px;
    margin: 0 auto;
}

.enigme-container h3 {
    font-size: 2rem;
    color: #ff9a9e;
    margin-bottom: 1rem;
}

.enigme-container pre {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    white-space: pre-wrap; /* Permet au texte de s'adapter */
    line-height: 1.6;
}