/* Section Compétences */
.skills-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

/* Preview GIF qui suit le curseur */
.skill-preview {
    position: fixed;
    min-width: 260px;
    max-width: 340px;
    min-height: 60px;
    max-height: 120px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
}

.skill-preview.active {
    opacity: 1;
}

.preview-text {
    width: 100%;
    color: #111;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

/* Cacher le preview sur mobile et tablette */
@media (max-width: 992px) {
    .skill-preview {
        display: none !important;
    }
}

.skill-category-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.skill-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.skill-category-title i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Séparateur vertical entre langages et frameworks */
.skills-section .row.mb-5 > .col-lg-6:first-child {
    position: relative;
    padding-right: 2rem;
}

.skills-section .row.mb-5 > .col-lg-6:last-child {
    padding-left: 2rem;
}

.skills-section .row.mb-5 > .col-lg-6:first-child::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, var(--primary-color) 10%, var(--secondary-color) 90%, transparent 100%);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

/* Cache la barre sur mobile */
@media (max-width: 991px) {
    .skills-section .row.mb-5 > .col-lg-6:first-child::after {
        display: none;
    }
    
    .skills-section .row.mb-5 > .col-lg-6:first-child,
    .skills-section .row.mb-5 > .col-lg-6:last-child {
        padding-right: 15px;
        padding-left: 15px;
    }
}

.skill-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 2px solid var(--light-color);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.08);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(108, 92, 231, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.skill-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotateY(360deg);
    filter: drop-shadow(0 5px 15px currentColor);
}

.skill-card h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    font-size: 1rem;
}

/* Couleurs des icônes */
.html-color {
    color: #E34F26;
}

.css-color {
    color: #1572B6;
}

.js-color {
    color: #F7DF1E;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.php-color {
    color: #777BB4;
}

.python-color {
    color: #3776AB;
}

.java-color {
    color: #007396;
}

.sql-color {
    color: #4479A1;
}

.markdown-color {
    color: #000000;
}

.react-color {
    color: #61DAFB;
}

.vue-color {
    color: #42B883;
}

.angular-color {
    color: #DD0031;
}

.node-color {
    color: #339933;
}

.bootstrap-color {
    color: #7952B3;
}

.laravel-color {
    color: #FF2D20;
}

.sass-color {
    color: #CC6699;
}

.tailwind-color {
    color: #06B6D4;
}

.git-color {
    color: #F05032;
}

.github-color {
    color: #181717;
}

.docker-color {
    color: #2496ED;
}

.npm-color {
    color: #CB3837;
}

.wordpress-color {
    color: #21759B;
}

.mongo-color {
    color: #47A248;
}

.mysql-color {
    color: #4479A1;
}

.figma-color {
    color: #F24E1E;
}

.react-color {
    color: #6DB33F;
}

.azure-color {
    color: #0078D4;
}

/* Animation supplémentaire au hover */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.skill-card {
    position: relative;
    overflow: hidden;
}

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

/* Effet de pulse sur l'icône */
@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.skill-card:hover .skill-icon {
    animation: pulse-icon 1s ease-in-out infinite;
}

/* Désactiver le hover pour GitHub (garder le lien sans surlignage) */
.skill-card-no-hover:hover {
    transform: none !important;
    border-color: rgba(108, 92, 231, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    background: white !important;
}

.skill-card-no-hover:hover::before {
    left: -100% !important;
}

.skill-card-no-hover:hover .skill-icon {
    transform: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .skill-icon {
        font-size: 3rem;
    }
    
    .skill-card {
        padding: 1.5rem 1rem;
    }
    
    .skill-category-title {
        font-size: 1.2rem;
    }
}
