/* ======================
   COMPETENCES SECTION
   ====================== */

.skills-wrapper {
    margin-top: 30px;
}

.skill-category {
    margin-bottom: 50px;
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-category h3 {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.skill-category h3 i {
    font-size: 24px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

/* Skill Card */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-height: 140px;
}

.skill-card:hover {
    border-color: var(--accent-color);
    background-color: rgba(100, 255, 218, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.1);
}

.skill-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    font-size: 48px;
    transform: rotate(10deg) scale(1.1);
}

.skill-name {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

/* Certifications */
.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.certification-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.certification-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
}

.certification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    min-width: 80px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    font-size: 32px;
    color: var(--accent-color);
}

.certification-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.certification-content {
    flex: 1;
}

.certification-content h3 {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.certification-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.certification-date {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.certification-link:hover {
    gap: 12px;
}

/* Projects Showcase */
.projects-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: center;
}

.projects-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-image-container:hover {
    border-color: var(--accent-color);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image-container:hover .project-image {
    transform: scale(1.05);
}

.project-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(10, 25, 47, 0.95));
    color: var(--text-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-image-container:hover .project-image-caption {
    transform: translateY(0);
}

.project-image-caption h3 {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.project-image-caption p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.projects-navigation h3 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.projects-navigation > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

.projects-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-nav-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    group: hover;
}

.project-nav-btn:hover {
    border-color: var(--accent-color);
    background-color: rgba(100, 255, 218, 0.05);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    width: 50px;
    height: 50px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.project-nav-btn:hover .btn-icon {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    transform: rotate(-10deg);
}

.btn-text {
    flex: 1;
}

.btn-title {
    display: block;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.btn-description {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-arrow {
    color: var(--accent-color);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.project-nav-btn:hover .btn-arrow {
    transform: translateX(8px);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info h3 {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-info p i {
    color: var(--accent-color);
    font-size: 20px;
    min-width: 24px;
}

.contact-info p:hover {
    padding-left: 10px;
    color: var(--accent-color);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

.map-container {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(100, 255, 218, 0.05);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    padding: 15px;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-form button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

#formResponse {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .certifications-container {
        grid-template-columns: 1fr;
    }

    .projects-showcase {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .skill-card {
        padding: 15px 10px;
        min-height: 120px;
    }

    .skill-icon {
        font-size: 32px;
    }

    .skill-card:hover .skill-icon {
        font-size: 40px;
    }

    .skill-name {
        font-size: 12px;
    }

    .projects-buttons {
        gap: 10px;
    }

    .project-nav-btn {
        padding: 20px;
        gap: 15px;
    }

    .btn-title {
        font-size: 15px;
    }

    .btn-description {
        font-size: 12px;
    }
}

.synthese-container {
    overflow-x: auto;
    margin-top: 20px;
}

.synthese-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.synthese-table th,
.synthese-table td {
    padding: 18px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--text-color);
    font-size: 14px;
}

.synthese-table thead {
    background-color: rgba(100, 255, 218, 0.08);
}

.synthese-table th {
    color: var(--accent-color);
    font-weight: 700;
}

.synthese-table tr:hover {
    background-color: rgba(100, 255, 218, 0.05);
}

.synthese-download {
    margin-top: 20px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.download-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Projects Container */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.project-category {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    transition: all 0.3s ease;
}

.project-toggle {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 25px;
    background-color: var(--bg-secondary);
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.project-toggle:hover {
    background-color: rgba(100, 255, 218, 0.05);
    border-bottom-color: var(--accent-color);
}

.project-toggle.active {
    border-bottom-color: var(--accent-color);
}

.project-toggle .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    width: 50px;
    height: 50px;
    background-color: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.project-toggle:hover .btn-icon {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.project-toggle .btn-text {
    flex: 1;
    text-align: left;
}

.project-toggle .btn-title {
    display: block;
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 4px;
}

.project-toggle .btn-description {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.project-toggle .btn-arrow {
    color: var(--accent-color);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.project-toggle.active .btn-arrow {
    transform: rotate(180deg);
}

.project-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: rgba(100, 255, 218, 0.02);
}

.project-list.open {
    max-height: 1000px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 1px solid rgba(100, 255, 218, 0.08);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.project-item:last-child {
    border-bottom: none;
}

.project-item:hover {
    background-color: rgba(100, 255, 218, 0.1);
    padding-left: 35px;
}

.project-item i {
    color: var(--accent-color);
    font-size: 18px;
}

.project-item span {
    font-weight: 500;
}

@media (max-width: 768px) {
    .synthese-table th,
    .synthese-table td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .project-toggle {
        padding: 18px;
        gap: 15px;
    }

    .project-toggle .btn-icon {
        min-width: 45px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .project-toggle .btn-title {
        font-size: 15px;
    }

    .project-toggle .btn-description {
        font-size: 12px;
    }

    .project-item {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .skill-card {
        padding: 10px;
    }

    .skill-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .certification-card {
        gap: 15px;
        padding: 15px;
    }

    .certification-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .certification-content h3 {
        font-size: 16px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }

    .map-container {
        height: 250px;
    }
}
