/* Couleurs de Job Skill (à adapter si besoin) */
:root {
    --jobskill-primary: #5c5f7f; /* Votre couleur dominante */
    --jobskill-accent1: #ffc107; /* Jaune/Orange (de votre code précédent) */
    --jobskill-accent2: #007bff; /* Bleu (de votre code précédent) */
    --jobskill-text-light: #fefefe;
    --jobskill-text-dark: #333;
    --jobskill-shadow-light: rgba(0, 0, 0, 0.15);
    --jobskill-shadow-dark: rgba(0, 0, 0, 0.3);
}

/* Styles de base pour la page 404 */
body {
    font-family: 'Poppins', sans-serif; /* Utilisez votre police de marque si possible */
    margin: 0;
    padding: 0;
    background-color: var(--jobskill-primary); /* Fond coloré */
    color: var(--jobskill-text-light); /* Texte clair sur fond sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden; /* Pour les éléments décoratifs */
    position: relative;
}

/* --- Effets visuels de fond --- */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Les formes ne bloquent pas les clics */
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15; /* Très léger */
    filter: blur(50px);
    animation: moveShapes 20s infinite ease-in-out;
}
.shape:nth-child(1) {
    background: linear-gradient(45deg, var(--jobskill-accent1), transparent);
    width: 300px; height: 300px;
    top: 10%; left: 5%;
    animation-delay: 0s;
}
.shape:nth-child(2) {
    background: linear-gradient(135deg, var(--jobskill-accent2), transparent);
    width: 400px; height: 400px;
    bottom: 15%; right: 10%;
    animation-delay: 5s;
}
.shape:nth-child(3) {
    background: linear-gradient(225deg, var(--jobskill-accent1), transparent);
    width: 250px; height: 250px;
    top: 50%; left: 30%;
    animation-delay: 10s;
}
@keyframes moveShapes {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(0, 40px) scale(1.1); }
    75% { transform: translate(-20px, -20px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}
/* --- Fin des effets visuels --- */

.container-404 {
    background-color: rgba(255, 255, 255, 0.1); /* Légère transparence pour le cool effect */
    backdrop-filter: blur(10px); /* Effet verre dépoli */
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--jobskill-shadow-dark);
    padding: 50px 30px;
    max-width: 800px;
    width: 90%;
    position: relative;
    z-index: 10; /* Au-dessus des formes de fond */
    animation: popIn 0.6s ease-out forwards; /* Animation d'apparition */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Bordure subtile */
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.container-404 h1 {
    font-size: 12em; /* Encore plus grand */
    color: var(--jobskill-accent1); /* Couleur vive pour le chiffre */
    margin: 0;
    line-height: 1;
    font-weight: 700;
    text-shadow: 6px 6px 12px var(--jobskill-shadow-dark);
}

.container-404 h2 {
    font-size: 2.8em;
    color: var(--jobskill-text-light);
    margin-top: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.container-404 p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9); /* Texte légèrement transparent */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 25px; /* Plus d'espace entre les boutons */
    flex-wrap: wrap;
}

.buttons a {
    display: inline-block;
    padding: 16px 35px; /* Plus grand */
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--jobskill-shadow-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buttons a.btn-primary {
    background-color: var(--jobskill-accent2); /* Bleu comme bouton principal */
    color: var(--jobskill-text-light);
    border: 2px solid var(--jobskill-accent2);
}

.buttons a.btn-primary:hover {
    background-color: #0069d9; /* Bleu plus foncé */
    border-color: #0069d9;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px var(--jobskill-shadow-dark);
}

.buttons a.btn-secondary {
    background-color: transparent;
    color: var(--jobskill-accent1); /* Texte jaune/orange */
    border: 2px solid var(--jobskill-accent1); /* Bordure jaune/orange */
}

.buttons a.btn-secondary:hover {
    background-color: var(--jobskill-accent1); /* Fond jaune/orange au survol */
    color: var(--jobskill-text-dark); /* Texte sombre au survol */
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px var(--jobskill-shadow-dark);
}

.logo-jobskill {
    margin-top: 60px; /* Plus d'espace en haut */
    opacity: 0.7;
}
.logo-jobskill img {
    max-width: 180px; /* Logo plus grand */
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2)); /* Petite ombre sur le logo */
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .container-404 h1 {
        font-size: 8em;
    }
    .container-404 h2 {
        font-size: 2em;
    }
    .container-404 p {
        font-size: 1em;
    }
    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .buttons a {
        width: 80%;
        max-width: 300px;
        padding: 14px 25px;
    }
    .logo-jobskill {
        margin-top: 40px;
    }
}
@media (max-width: 480px) {
    .container-404 h1 {
        font-size: 6em;
    }
    .container-404 h2 {
        font-size: 1.6em;
    }
    .container-404 {
        padding: 40px 20px;
    }
    .logo-jobskill img {
        max-width: 150px;
    }
}
