/* --- Définition des Variables de Couleurs (GLOBAL) --- */
:root {
    --primary-color: #0d0d1a; /* Fond principal très sombre */
    --secondary-color: #1a1a2e; /* Couleur secondaire pour les éléments */
    --text-light: #e0e0e0; /* Texte clair par défaut */
    --text-muted: #a0a0a0; /* Texte secondaire */

    --primary-glow: #00f0ff; /* Bleu Cyan vif */
    --secondary-glow: #e900ff; /* Magenta/Rose vif */
    --border-dark: rgba(0, 240, 255, 0.2); /* Bordure discrète */
    --card-bg: rgba(26, 26, 46, 0.7); /* Fond de carte semi-transparent */
    --icon-glow-tech: #64FFDA; /* Vert aqua néon pour icônes tech */
    --icon-glow-soft: #FF69B4; /* Rose clair pour icônes soft */
}

/* --- Styles Généraux --- */
body {
    background-color: var(--primary-color);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Permet au footer de rester en bas */
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

/* Animation d'arrière-plan (similaire à index.html) */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 240, 255, 0.1) 0%, transparent 20%),
                radial-gradient(circle at bottom right, rgba(233, 0, 255, 0.1) 0%, transparent 20%);
    z-index: -1; /* Place l'animation derrière le contenu */
    animation: backgroundGlow 20s infinite alternate; /* Animation de glow */
}

@keyframes backgroundGlow {
    0% {
        background: radial-gradient(circle at top left, rgba(0, 240, 255, 0.1) 0%, transparent 20%),
                    radial-gradient(circle at bottom right, rgba(233, 0, 255, 0.1) 0%, transparent 20%);
    }
    50% {
        background: radial-gradient(circle at center, rgba(0, 240, 255, 0.15) 0%, transparent 25%),
                    radial-gradient(circle at bottom left, rgba(233, 0, 255, 0.15) 0%, transparent 25%);
    }
    100% {
        background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.1) 0%, transparent 20%),
                    radial-gradient(circle at bottom left, rgba(233, 0, 255, 0.1) 0%, transparent 20%);
    }
}


/* --- Header --- */
header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

#system-time {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2em;
    color: var(--primary-glow);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5em; /* Taille plus grande pour le titre */
    margin: 0;
    line-height: 1;
}

.subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1em;
    color: var(--text-muted);
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background-image: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); /* Effet de glow pour le texte */
}

/* Bouton de retour (placé dans le header) */
.back-button-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.futuristic-shop-button {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
    display: flex; /* Permet l'alignement icône/texte */
    align-items: center;
}

.futuristic-shop-button i {
    margin-right: 8px; /* Espace entre l'icône et le texte */
}

.futuristic-shop-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: var(--primary-glow);
    color: var(--primary-glow);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Main Content --- */
main {
    flex: 1; /* Permet à la section principale de prendre l'espace disponible */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligne le contenu en haut du main */
}


/* --- Styles pour la Section Compétences (Design Hexagonal) --- */

#skills-section {
    padding: 40px 20px;
    max-width: 1000px; /* Élargit le conteneur */
    width: 100%; /* S'assure qu'il utilise le max-width */
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(5px);
    margin-top: 20px; /* Espace par rapport au header */
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    color: #E0FFFF; /* Bleu clair néon */
    text-align: left;
    margin-bottom: 30px;
    margin-top: 20px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.8), 0 0 25px rgba(0, 240, 255, 0.6);
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
    padding-bottom: 10px;
}

.soft-skills-title {
    color: #FFC0CB; /* Rose néon pour les soft skills */
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8), 0 0 25px rgba(255, 0, 255, 0.6);
    border-bottom-color: rgba(255, 0, 255, 0.3);
    margin-top: 60px;
}


/* --- Grille des compétences techniques (Hexagones) --- */
.tech-skills-grid {
    display: grid;
    /* 5 colonnes sur les grands écrans pour l'effet d'image */
    grid-template-columns: repeat(5, minmax(120px, 1fr)); 
    gap: 30px 40px; 
    justify-content: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.skill-hexagon {
    position: relative;
    width: 120px; 
    height: calc(120px * 0.866); 
    background: rgba(0, 0, 0, 0.4);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    cursor: default;
}

.skill-hexagon::before {
    content: attr(data-level);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: #E0FFFF; 
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
    white-space: nowrap;
    opacity: 0.8;
}

/* Décalage des hexagones impairs pour créer l'effet de nid d'abeille de l'image */
/* C'est plutôt la 2ème ligne qui est décalée, donc les éléments 2, 4, 6... */
.tech-skills-grid div:nth-child(n+2):nth-child(-n+4),
.tech-skills-grid div:nth-child(n+6):nth-child(-n+8) {
    transform: translateY(calc(120px * 0.433));
}
/* Réajustement si vous avez plus de lignes pour le décalage, basé sur la démo de l'image */


.skill-hexagon:hover {
    transform: scale(1.05);
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px rgba(0, 240, 255, 0.5);
}

.skill-icon {
    font-size: 3em;
    color: var(--icon-glow-tech); /* Utilise la variable pour la couleur */
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.7);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.skill-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    color: var(--text-light);
    margin-top: 5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* --- Grille des compétences humaines (Soft Skills) --- */
.soft-skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

.soft-skill-item {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 10px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.soft-skill-item:hover {
    background-color: rgba(255, 0, 255, 0.1);
    transform: translateY(-5px);
    border-color: #FFC0CB;
    box-shadow: 0 0 15px #FFC0CB, inset 0 0 8px rgba(255, 0, 255, 0.5);
}

.soft-skill-icon {
    color: var(--icon-glow-soft); /* Utilise la variable pour la couleur */
    margin-right: 15px;
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.soft-skill-name {
    font-size: 1.1em;
    color: var(--text-light);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* --- Footer --- */
footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(233, 0, 255, 0.1);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    margin-top: auto; /* Pousse le footer vers le bas */
    z-index: 10;
}

footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

/* --- Media Queries pour le Responsive Design --- */
@media (max-width: 1024px) {
    .tech-skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* 3-4 colonnes */
        gap: 25px 30px;
    }
    .skill-hexagon {
        width: 100px;
        height: calc(100px * 0.866);
    }
    .skill-hexagon:nth-child(n+2):nth-child(-n+4),
    .skill-hexagon:nth-child(n+6):nth-child(-n+8) { /* Ajuster pour le décalage */
        transform: translateY(calc(100px * 0.433));
    }
}


@media (max-width: 768px) {
    #system-time, .back-button-container {
        position: static; /* Positionnement statique pour mobile */
        text-align: center;
        margin-bottom: 15px;
        width: auto;
    }
    header {
        padding-bottom: 10px;
    }
    h1 {
        font-size: 2.5em;
    }
    .subtitle {
        font-size: 1em;
    }
    .futuristic-shop-button {
        margin: 0 auto; /* Centrer le bouton */
    }

    #skills-section {
        padding: 20px 15px;
    }
    .section-title {
        font-size: 2em;
        text-align: center;
        border-bottom: none;
        padding-bottom: 0;
    }
    .tech-skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); /* 2-3 colonnes */
        gap: 15px 20px;
    }
    .skill-hexagon {
        width: 90px;
        height: calc(90px * 0.866);
    }
    .skill-hexagon:nth-child(n+2):nth-child(-n+4),
    .skill-hexagon:nth-child(n+6):nth-child(-n+8) { /* Ajuster pour le décalage */
        transform: translateY(calc(90px * 0.433));
    }
    .skill-icon {
        font-size: 2.5em;
    }
    .skill-name {
        font-size: 0.9em;
    }
    .skill-hexagon::before {
        bottom: -20px;
        font-size: 0.7em;
    }
    .soft-skills-grid {
        gap: 15px;
    }
    .soft-skill-item {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .soft-skill-icon {
        font-size: 1.3em;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    .subtitle {
        font-size: 0.9em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .tech-skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); /* Encore plus petit */
        gap: 10px 15px;
    }
    .skill-hexagon {
        width: 70px;
        height: calc(70px * 0.866);
    }
    .skill-hexagon:nth-child(n+2):nth-child(-n+4),
    .skill-hexagon:nth-child(n+6):nth-child(-n+8) { /* Ajuster pour le décalage */
        transform: translateY(calc(70px * 0.433));
    }
    .skill-icon {
        font-size: 2em;
    }
    .skill-name {
        font-size: 0.8em;
    }
    .skill-hexagon::before {
        font-size: 0.6em;
        bottom: -18px;
    }
}
