* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
    padding: 15px;
    max-width: 950px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 2px solid #1565C0;
}

.photo-container {
    margin-bottom: 10px;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1565C0;
    margin: 0 auto;
    display: block;
}

h1 {
    font-size: 2em;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.2em;
    color: #1565C0;
    font-weight: 500;
}

section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    font-size: 1.3em;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.profile-list {
    list-style: none;
}

.profile-list li {
    margin-bottom: 10px;
}

#about p {
    margin-bottom: 10px;
}

#about ul {
    padding-left: 20px;
    margin: 5px 0;
}

.clients-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.client-logo {
    width: 130px;
    height: 87px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #1565C0;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
}

.articles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.article-card {
    text-decoration: none;
    color: inherit;
    width: 180px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-title {
    padding: 10px;
    color: #2c3e50;
    font-size: 0.9em;
    text-align: center;
}

.certifications-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.certification-logo {
    width: 135px;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4ff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.certification-logo:hover {
    transform: scale(1.1);
}

.certification-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    color: #555555;
    font-size: 0.9em;
}

.sub-section-title {
    font-size: 1.1em;
    color: #2c3e50;
    margin: 20px 0 10px 0;
    text-align: center;
}

.diplomas-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diploma-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.diploma-row:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.diploma-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.diploma-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.diploma-details h4 {
    color: #2c3e50;
    font-size: 1em;
}

.diploma-details p {
    margin: 0;
    color: #555555;
    font-size: 0.85em;
}

.formations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.formation-row {
    flex: 1 1 calc(30% - 15px);
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.formation-row:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.formation-icon {
    font-size: 1.2em;
    min-width: 24px;
    text-align: center;
}

.formation-details h4 {
    margin-bottom: 3px;
    color: #2c3e50;
    font-size: 0.9em;
    line-height: 1.2;
}

.formation-details p {
    margin: 0;
    color: #555555;
    font-size: 0.8em;
}

/* Splide Carousel Styles */
.splide {
    margin: 15px auto;
    max-width: 100%;
    position: relative;
}
.splide__slide {
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.splide__slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.recommandation {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1976D2;
    height: 100%;
    box-sizing: border-box;
}
.recommandation p {
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.author {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    text-align: right;
}
.splide__arrow {
    pointer-events: all;
    background: #1976D2BB !important;
    width: 30px !important;
    height: 30px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.splide__arrow:hover {
    transform: scale(1.05);
}
.splide__arrow svg {
    fill: white !important;
    width: 20px !important;
    height: 20px !important;
}
.splide__arrow--prev {
    margin-left: -20px;
}
.splide__arrow--next {
    margin-right: -20px;
}
.splide__progress {
    margin-top: 15px;
}
.splide__progress__bar {
    background: #1976d280;
    height: 4px;
    border-radius: 2px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    display: block;
}

.language-switcher {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 5px;
}

.language-switcher a {
  display: block;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.language-switcher a:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 2em;
    }
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    .formation-row {
        flex: 1 1 100%;
    }
}