:root {
    /* Light Theme (default) */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --background-color: #f3f4f6;
    --section-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --text-color: #e5e7eb;
    --background-color: #1a1b1e;
    --section-bg: #2d2e32;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Styles */
.header-animated {
    text-align: center;
    padding: 1.5rem;
    background: var(--section-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 800px;
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary-color);
}

/* Section Styles */
section {
    background: var(--section-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.section-content {
    opacity: 1;
    visibility: visible;
    transition: var(--transition);
}

/* Experience Styles */
.experience-category {
    margin-bottom: 2rem;
}

.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.experience-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
}

.experience-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.experience-company {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.experience-details {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}

.experience-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.experience-details li i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* Title Styles */
.title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-years {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.experience-years i {
    color: var(--primary-color);
}

/* Download Button Styles */
.cv-download {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.download-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
}

.download-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.download-button:active {
    transform: translateY(0);
}

.download-button i {
    font-size: 1.1rem;
}

.button-text {
    font-weight: 500;
}

/* Footer */
.footer-animated {
    text-align: center;
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .header-animated {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .profile-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .section-header {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .cv-download {
        position: fixed;
        top: 1rem;
        right: 1rem;
        left: auto;
    }

    .download-button {
        padding: 0.5rem;
        border-radius: 50%;
    }

    .download-button i {
        font-size: 1rem;
    }

    .button-text {
        display: none;
    }

    .experience-category {
        margin-bottom: 1.5rem;
    }

    .experience-item {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .experience-header h3 {
        font-size: 1.1rem;
    }

    .experience-date {
        margin-left: 0;
    }

    .experience-company {
        font-size: 0.95rem;
    }

    .experience-details li {
        font-size: 0.9rem;
    }

    .language-selector {
        position: fixed;
        top: 1rem;
        left: 1rem;
        right: auto;
        transform: none;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .cv-download {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .download-button {
        padding: 0.9rem 1.8rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    section {
        box-shadow: none;
        break-inside: avoid;
    }

    .cv-download {
        display: none;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Compétences Styles */
.competences-category {
    margin-bottom: 2rem;
}

.competences-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.competences-list {
    list-style: none;
    padding-left: 1rem;
}

.competences-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.tech-category h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tech-list {
    list-style: none;
    padding-left: 0.5rem;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Formation Styles */
.formation-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.formation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.formation-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.formation-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.formation-school {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Mobile Styles for Formation */
@media (max-width: 768px) {
    .formation-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .formation-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .formation-header h3 {
        font-size: 1rem;
    }

    .formation-date {
        margin-left: 0;
    }

    .formation-school {
        font-size: 0.9rem;
    }
}

/* Atouts Styles */
.atouts-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.atouts-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.atouts-list {
    list-style: none;
    padding-left: 1rem;
}

.atouts-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.atouts-description {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.95rem;
}

.langues-list {
    list-style: none;
    padding-left: 0;
}

.langues-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Mobile Styles for Atouts */
@media (max-width: 768px) {
    .atouts-category {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .atouts-description {
        font-size: 0.9rem;
    }

    .langues-list li {
        font-size: 0.9rem;
    }
}

/* Social Links Header */
.social-links-header {
    margin: 0.5rem 0;
}

.social-links-header .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.social-links-header .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-links-header .social-link i {
    font-size: 1.2rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--section-bg);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: white;
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: transform 0.5s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .header-animated {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .social-links-header .social-link {
        width: 2.2rem;
        height: 2.2rem;
    }

    .social-links-header .social-link i {
        font-size: 1.1rem;
    }

    .theme-toggle {
        bottom: 0.5rem;
        right: 0.5rem;
        width: 2.2rem;
        height: 2.2rem;
    }

    .theme-toggle i {
        font-size: 1.1rem;
    }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0.8rem;
    background: var(--section-bg);
    padding: 0.5rem;
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-selector .flag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--section-bg);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    border-radius: 2rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 500;
    min-width: 3.5rem;
}

.language-selector .flag-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: white;
}

.language-selector .flag-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.language-selector .flag-btn span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .language-selector {
        position: fixed !important;
        top: 1rem !important;
        left: 1rem !important;
        right: auto !important;
        transform: none !important;
        gap: 0.5rem;
    }

    .language-selector .flag-btn {
        padding: 0.4rem 1rem;
        min-width: 3rem;
    }

    .language-selector .flag-btn span {
        font-size: 0.9rem;
    }
}

/* Language Flags */
.language-flags {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin: 0.8rem 0;
}

.flag-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--section-bg);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 2rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 500;
}

.flag-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    color: white;
}

.flag-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.flag-btn i {
    font-size: 1.1rem;
}

.flag-btn span {
    font-size: 0.9rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .language-flags {
        margin: 0.5rem 0;
        gap: 0.5rem;
    }

    .flag-btn {
        padding: 0.4rem 0.8rem;
    }

    .flag-btn i {
        font-size: 1rem;
    }

    .flag-btn span {
        font-size: 0.85rem;
    }
}

/* Mobile/Desktop Experiences */
.mobile-experiences {
    display: none;
}

.desktop-experiences {
    display: block;
}

@media (max-width: 768px) {
    .mobile-experiences {
        display: block;
    }

    .desktop-experiences {
        display: none;
    }

    .mobile-experiences .experience-item {
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--section-bg);
        border-radius: 0.8rem;
        box-shadow: var(--shadow);
    }

    .mobile-experiences .experience-item:last-child {
        margin-bottom: 0;
    }

    .mobile-experiences .experience-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .mobile-experiences .experience-header h3 {
        font-size: 1.1rem;
        margin: 0;
    }

    .mobile-experiences .experience-date {
        font-size: 0.85rem;
        margin-left: 0;
    }

    .mobile-experiences .experience-company {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .mobile-experiences .experience-details {
        padding-left: 0;
        margin: 0;
    }

    .mobile-experiences .experience-details li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        line-height: 1.4;
    }

    .mobile-experiences .experience-details li i {
        margin-top: 0.2rem;
        flex-shrink: 0;
    }
}

/* Key Figures Styles */
.key-figures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 1rem;
    background: var(--section-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    width: 100%;
}

.key-figure-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
    background: var(--background-color);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
}

.key-figure-item:hover {
    transform: translateY(-5px);
}

.key-figure-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.key-figure-item .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.key-figure-item .label {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .key-figures {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 1.5rem auto;
        padding: 0.8rem;
    }

    .key-figure-item {
        padding: 0.8rem;
    }

    .key-figure-item i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .key-figure-item .number {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }

    .key-figure-item .label {
        font-size: 0.85rem;
    }
} 