/* Section Introduction */
.expertise-intro {
    background: var(--bgaccent);
    color: var(--txtaccent);
    padding: 60px 20px;
    text-align: center;
}

.expertise-intro h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.expertise-intro p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--txtaccent1);
}

/* Section Expérience */
.expertise-experience .expertise-box {
    background: var(--txtaccent5);
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.expertise-experience .expertise-box:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
}

.expertise-experience .expertise-box h3 {
    margin: 20px 0;
    font-size: 1.5rem;
    color: var(--txtaccent4);
}

.expertise-experience .expertise-box p {
    font-size: 1rem;
    color: var(--textaccent2);
}

/* Section Certifications */
.expertise-certifications {
    background: var(--txtaccent5);
    padding: 60px 20px;
    color: var(--txtaccent4);
}

.expertise-certifications h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--txtaccent4);
    position: relative;
}

/* Certification Content: Text + Image Layout */
.certification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap; /* Ensure no wrapping for larger screens */
}

.certification-text {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.certification-list {
    list-style: none;
    margin: 0;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.certification-list li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--txtaccent4);
}

.certification-list i {
    color: var(--haccent);
    margin-right: 10px;
    font-size: 1.5rem;
}

.certification-image {
    flex: 0 0 auto; /* Prevent the image from resizing */
    width: 300px; /* Set a fixed width for the image container */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.certification-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .certification-content {
        flex-wrap: wrap; /* Allow wrapping for smaller screens */
    }

    .certification-image {
        width: 100%; /* Full width on small screens */
        justify-content: center; /* Center the image */
        margin-top: 20px;
    }

    .certification-text {
        flex: 1 1 100%; /* Full width on small screens */
        text-align: center;
    }

    .certification-list {
        text-align: left;
        margin: 0 auto; /* Center the list */
    }
}

@media (max-width: 768px) {
    .certification-content {
        flex-direction: column; /* Stack text and image */
    }

    .certification-image {
        margin-top: 20px;
    }
}



/* Section Projets */
.project-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-item {
    text-align: center;
    background: var(--txtaccent5);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-item h3 {
    margin-top: 15px;
    color: var(--txtaccent4);
}

/* Section Contact */
.expertise-contact {
    background: var(--bgaccent_withOpacity);
    color: var(--txtaccent);
    text-align: center;
    padding: 60px 20px;
}

.expertise-contact .cta-button {
    background: var(--haccent);
    color: var(--txtaccent);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
}

.expertise-contact .cta-button:hover {
    transform: translateY(-5px);
    background: var(--haccent2);
}
