/* ================================
   BASE
================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #0B0112;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
}

/* ================================
   PARTICLES & SCAN LINES
================================ */
#particles-js {
    position: fixed;
    width: 100%; height: 100%;
    top: 0; left: 0;
    z-index: -1;
    background-color: #0B0112;
}

.scan-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent, transparent 3px,
        rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
    );
}

/* ================================
   HEADER
================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Zen Dots", sans-serif;
    font-size: 20px;
    background: #000000;
    padding: 16px 24px;
    border-bottom: 1px solid white;
    box-shadow: 0px 0px 17px 1px rgba(191, 0, 255, 0.9);
    position: relative;
    z-index: 10;
}

a {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin: 8px 16px;
}

nav { display: flex; align-items: center; }

nav > a {
    color: #BF00FF;
    transition: color 0.3s, text-shadow 0.3s;
}

nav > a:hover,
nav > a.nav-active {
    color: #ffffff;
    text-shadow: 0 0 12px #BF00FF;
}

/* ================================
   LAYOUT
================================ */
.competences-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px 100px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: "Zen Dots", sans-serif;
    color: #BF00FF;
    text-align: center;
    font-size: 56px;
    margin: 0 0 60px;
    text-shadow: 0 0 22px rgba(191, 0, 255, 0.7);
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #BF00FF;
    margin: 16px auto 0;
    box-shadow: 0 0 10px #BF00FF;
}

/* ================================
   SECTIONS
================================ */
.skill-section {
    margin-bottom: 64px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-icon {
    width: 44px;
    height: 44px;
    background: rgba(191, 0, 255, 0.1);
    border: 1px solid rgba(191, 0, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title {
    font-family: "Zen Dots", sans-serif;
    font-size: 22px;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
}

/* Ligne décorative sous le titre de section */
.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(191, 0, 255, 0.4), transparent);
    margin-left: 16px;
}

/* ================================
   GRILLE DES COMPÉTENCES
================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ================================
   CARTE COMPÉTENCE
================================ */
.skill-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(20, 5, 35, 0.65);
    border: 1px solid rgba(191, 0, 255, 0.18);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: #BF00FF;
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(191, 0, 255, 0.5);
    box-shadow: 0 0 20px rgba(191, 0, 255, 0.2);
}

.skill-card:hover::before {
    opacity: 1;
}

/* ================================
   ICÔNES LANGAGES
================================ */
.skill-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Zen Dots", sans-serif;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.skill-icon--html  { background: rgba(228, 77, 38, 0.15);  border: 1px solid rgba(228, 77, 38, 0.4);  color: #e44d26; }
.skill-icon--css   { background: rgba(38, 77, 228, 0.15);  border: 1px solid rgba(38, 77, 228, 0.4);  color: #264de4; }
.skill-icon--js    { background: rgba(247, 223, 30, 0.12); border: 1px solid rgba(247, 223, 30, 0.4); color: #f7df1e; }
.skill-icon--php   { background: rgba(119, 123, 179, 0.15);border: 1px solid rgba(119, 123, 179, 0.4);color: #777bb3; }
.skill-icon--sql   { background: rgba(0, 117, 143, 0.15);  border: 1px solid rgba(0, 117, 143, 0.4);  color: #00758f; }
.skill-icon--python{ background: rgba(55, 118, 171, 0.15); border: 1px solid rgba(55, 118, 171, 0.4); color: #3776ab; }
.skill-icon--figma { background: rgba(162, 89, 255, 0.12); border: 1px solid rgba(162, 89, 255, 0.35);color: #a259ff; }
.skill-icon--ps    { background: rgba(49, 168, 255, 0.12); border: 1px solid rgba(49, 168, 255, 0.35);color: #31a8ff; }
.skill-icon--ai    { background: rgba(255, 154, 0, 0.12);  border: 1px solid rgba(255, 154, 0, 0.35); color: #ff9a00; }
.skill-icon--pr    { background: rgba(103, 0, 198, 0.15);  border: 1px solid rgba(103, 0, 198, 0.4);  color: #9900c7; }
.skill-icon--tool  { background: rgba(191, 0, 255, 0.08);  border: 1px solid rgba(191, 0, 255, 0.25); color: #BF00FF; }

/* ================================
   INFOS COMPÉTENCE
================================ */
.skill-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-info h3 {
    font-family: "Zen Dots", sans-serif;
    font-size: 15px;
    margin: 0;
    color: #ffffff;
}

.skill-info p {
    font-size: 13px;
    color: #9980ab;
    margin: 0;
    line-height: 1.4;
}

/* Barre de progression */
.skill-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(191, 0, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.skill-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7a00a8, #BF00FF);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(191, 0, 255, 0.6);
}

/* Badge niveau */
.skill-tag {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
    font-weight: 500;
    background: rgba(191, 0, 255, 0.1);
    border: 1px solid rgba(191, 0, 255, 0.3);
    color: #e5b3ff;
}

.skill-tag--progress {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffc04d;
}

.skill-tag--learning {
    background: rgba(0, 200, 255, 0.08);
    border-color: rgba(0, 200, 255, 0.25);
    color: #7de8ff;
}

/* ================================
   SECTION OBJECTIFS
================================ */
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.upcoming-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(20, 5, 35, 0.5);
    border: 1px solid rgba(191, 0, 255, 0.12);
    border-radius: 10px;
    padding: 18px;
    backdrop-filter: blur(4px);
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: fadeUp 0.6s ease both;
}

.upcoming-card:hover {
    border-color: rgba(191, 0, 255, 0.35);
    box-shadow: 0 0 14px rgba(191, 0, 255, 0.12);
}

.upcoming-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #BF00FF;
    box-shadow: 0 0 8px #BF00FF;
    flex-shrink: 0;
    margin-top: 6px;
    animation: pulse-dot 2s ease-in-out infinite;
}

.upcoming-card h3 {
    font-family: "Zen Dots", sans-serif;
    font-size: 14px;
    margin: 0 0 6px;
    color: #ffffff;
}

.upcoming-card p {
    font-size: 13px;
    color: #9980ab;
    margin: 0;
    line-height: 1.4;
}

/* ================================
   FOOTER MMI
================================ */
.mmi {
    font-family: "Zen Dots", sans-serif;
    font-size: 28px;
    text-shadow: rgba(182, 101, 209, 0.9) 0px 0px 22px;
    color: #BF00FF;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 4px #BF00FF; }
    50%       { box-shadow: 0 0 12px #BF00FF, 0 0 20px rgba(191,0,255,0.4); }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .skills-grid,
    .upcoming-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .competences-container { padding: 0 20px 80px; }
    .skills-grid,
    .upcoming-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 36px; }
    .mmi { font-size: 18px; bottom: 16px; right: 16px; }
}
