/* Styles améliorés pour la section Skills */
.skill-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    z-index: 1;
    padding: 100px 0;
}

/* Formes géométriques d'arrière-plan */
.skill-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 93, 224, 0.1) 0%, rgba(0, 93, 224, 0) 70%);
    z-index: -1;
}

.skill-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 93, 224, 0.1) 0%, rgba(0, 93, 224, 0) 70%);
    z-index: -1;
}

.skill-floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    opacity: 0.5;
}

.skill-shape {
    position: absolute;
    opacity: 0.2;
}

.skill-shape-1 {
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(45deg, #0062cc, transparent);
    animation: floatingShape 8s infinite ease-in-out;
}

.skill-shape-2 {
    bottom: 15%;
    right: 20%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00a8ff, transparent);
    animation: floatingShape 6s infinite ease-in-out reverse;
}

.skill-shape-3 {
    top: 40%;
    left: 5%;
    width: 80px;
    height: 80px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(45deg, #0062cc, #00a8ff);
    animation: rotateShape 12s infinite linear;
}

.skill-shape-4 {
    bottom: 30%;
    left: 15%;
    width: 50px;
    height: 50px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(45deg, #00a8ff, #0062cc);
    animation: floatingShape 10s infinite ease-in-out;
}

.skill-wrap {
    position: relative;
    z-index: 1;
}

.skill-content-wrap {    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 98, 204, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s ease;
}

.skill-content-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 98, 204, 0.2);
}

/* Section titre */
.skill-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.skill-section-title .sub-title {
    color: #0062cc;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.skill-section-title .sub-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #0062cc, transparent);
}

.skill-section-title .title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.skill-section-title .title span {
    color: #0062cc;
}

.skill-section-title .description {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

/* Contenu gauche */
.skill-content-left {
    position: relative;
    padding: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-content-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 162, 255, 0.05), rgba(0, 98, 204, 0.05));
    z-index: -1;
}

.skill-content-left:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 98, 204, 0.1);
}

.experience {
    text-align: center;
    position: relative;
}

.experience::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0062cc, #00a8ff);
    border-radius: 3px;
}

.experience .number {
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    color: #0062cc;
    text-shadow: 2px 2px 10px rgba(0, 98, 204, 0.2);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #0062cc, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience .number::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -15px;
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230062cc"><path d="M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.experience span {
    font-size: 20px;
    font-weight: 600;
    color: #444;
    display: block;
    margin-top: 5px;
}

/* Contenu droit */
.skill-content-right {
    position: relative;
}

.skill-bar-wrap {
    margin-top: 20px;
}

.skill-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    border-left: 4px solid #0062cc;
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 98, 204, 0.1);
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.skill-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    z-index: 1;
}

.skill-percentage {
    font-size: 16px;
    font-weight: 700;
    color: #0062cc;
}

.skill-bar {
    height: 10px;
    border-radius: 5px;
    background: rgba(0, 98, 204, 0.1);
    overflow: hidden;
    position: relative;
}

.bar-inner {
    height: 100%;
    border-radius: 5px;
    width: 100%;
    position: relative;
}

.progress-line {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, #0062cc, #00a8ff);
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* Icônes de compétences */
.skill-icon {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 98, 204, 0.2);
    z-index: 2;
}

.skill-icon i {
    color: #0062cc;
    font-size: 14px;
}

/* Animations */
@keyframes floatingShape {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(0, -20px) rotate(0); }
    75% { transform: translate(-10px, -10px) rotate(-5deg); }
}

@keyframes rotateShape {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.number-animation {
    position: relative;
}

.counter-wrap {
    position: relative;
    display: inline-block;
}

.counter-item {
    position: relative;
    z-index: 2;
}

.counter-wrap::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    background: rgba(0, 162, 255, 0.2);
    left: 0;
    bottom: 5px;
    z-index: 1;
    border-radius: 10px;
}

/* Animation pour les barres de progression */
.skill-bar-wave .bar-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: wave 2s infinite linear;
    z-index: 1;
}

@keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.circular-skill {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#0062cc 0%, #00a8ff var(--progress), #e9ecef var(--progress), #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 2s ease;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
}

.circular-percent {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    color: #0062cc;
}

/* Animations des chiffres */
.animated-counter {
    display: inline-block;
    animation: pulse-number 2s infinite;
}

@keyframes pulse-number {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 991px) {
    .skill-section {
        padding: 80px 0;
    }
    
    .skill-content-wrap {
        padding: 30px;
    }
    
    .experience .number {
        font-size: 60px;
    }
    
    .experience span {
        font-size: 18px;
    }
    
    .skill-content-left {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .skill-section {
        padding: 60px 0;
    }
    
    .skill-content-wrap {
        padding: 25px;
    }
    
    .skill-section-title .title {
        font-size: 28px;
    }
    
    .skill-section-title .sub-title {
        font-size: 16px;
    }
    
    .experience .number {
        font-size: 50px;
    }
}
