.competences-section {
    padding: 4rem 2rem;
    background-color: #000;
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.competence-card {
    position: relative;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.competence-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
}

.competence-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e385ff;
}

.competence-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.competence-card p {
    color: #e385ff;
    font-size: 0.9rem;
    margin-top: auto;
}

.competence-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(227, 133, 255, 0.3);
    border: 1px solid #e385ff;
}

/* Modal spécifique aux compétences */
#competence-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

#competence-modal.show-competence-modal {
    display: block !important;
}

#competence-modal .modal-content {
    background: #2d1b36;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    color: #fff;
    position: relative;
    border: 2px solid #4a2b59;
}

#competence-modal .modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

#competence-modal .modal-close:hover {
    color: #e385ff;
}

#modal-title {
    color: #e385ff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#modal-description {
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

#modal-files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.file-card {
    background: #1a0f20;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #4a2b59;
    text-align: center;
}

.file-card:hover {
    background: #4a2b59;
    transform: translateY(-2px);
    border-color: #e385ff;
}

.file-card i {
    font-size: 2rem;
    color: #e385ff;
    margin-bottom: 0.5rem;
}

.file-card p {
    color: #fff;
    font-size: 0.9rem;
}

/* Boutons de téléchargement */
.e6-download-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: transparent;
    color: #e385ff;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e385ff;
    margin-top: 1rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.e6-download-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #e385ff;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.e6-download-btn:hover:before {
    width: 300%;
    height: 300%;
}

.e6-download-btn:hover {
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 133, 255, 0.3);
}

.e6-download-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.e6-download-btn:hover i {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .competences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .competences-grid {
        grid-template-columns: 1fr;
    }
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #e385ff;
    font-size: 1.1rem;
}

/* Styles pour la modal PDF */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.pdf-modal-content {
    background: #1a1a1a;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(227, 133, 255, 0.3);
}

.pdf-modal-header {
    background: #2d1b36;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e385ff;
}

.pdf-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.pdf-modal-close {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pdf-modal-close:hover {
    color: #e385ff;
}

.pdf-modal-body {
    height: calc(100% - 60px);
    padding: 0;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}