/* Section Compétences */
.competences-section {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.competences-header {
    display: none;
}

.slide-counter {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    z-index: 2;
}

.slide-counter .current-slide,
.slide-counter .total-slides {
    font-weight: 600;
}

.slide-counter .total-slides::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.8;
}

.competences-slider {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.competences-slider:active {
    cursor: grabbing;
}

.competences-track {
    display: flex;
    transition: transform 0.3s ease-out;
    width: 100%;
}

.competence-slide {
    min-width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.competence-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.competence-content {
    position: absolute;
    inset: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.competence-content h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.competence-content p {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #00a0d3;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-btn.prev {
    left: 2rem;
}

.nav-btn.next {
    right: 2rem;
}

/* Styles responsifs */
@media screen and (max-width: 1024px) {
    .competences-section {
        padding: 4rem 2rem;
    }

    .competences-header {
        padding: 0 1rem;
    }

    .competence-slide {
        height: 500px;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 768px) {
    .competences-section {
        padding: 3rem 1.5rem;
    }

    .competences-header h2 {
        font-size: 2rem;
    }

    .competence-slide {
        height: 400px;
    }

    .competence-content {
        padding: 1.5rem;
    }

    .competence-content h3 {
        font-size: 1.5rem;
    }

    .competence-content p {
        font-size: 0.9rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        top: 50%;
    }

    .nav-btn.prev {
        left: 0.5rem;
    }

    .nav-btn.next {
        right: 0.5rem;
    }

    .slide-counter {
        top: 1rem;
        right: 1rem;
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .competences-section {
        padding: 2rem 1rem;
    }

    .competences-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .competences-header h2 {
        font-size: 1.75rem;
    }

    .competence-slide {
        height: 350px;
    }

    .competence-content {
        padding: 1rem;
    }

    .competence-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .competence-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
    }

    .slide-counter {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-section h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: #00a0d3;
    margin-bottom: 2rem;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00a0d3;
    background-color: transparent;
    border: 2px solid #00a0d3;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-section .cta-button:hover {
    background-color: #00a0d3;
    color: white;
    transform: translateY(-3px);
}

/* Responsive styles for CTA Section */
@media screen and (max-width: 768px) {
    .cta-section {
        padding: 4rem 1.5rem;
    }

    .cta-section h1 {
        font-size: 2.5rem;
    }

    .cta-section .cta-button {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h1 {
        font-size: 2rem;
    }

    .cta-section .cta-button {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }
} 