/* Utilisation des variables définies dans style.css */
:root {
    --primary-color: #002D62;
    --secondary-color: #2ECC71;
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-light: rgba(255, 255, 255, 0.95);
    --backg.about-section ul li:nth-child(1) .job-title::after { content: " ⚙️"; }
.about-section ul li:nth-child(2) .job-title::after { content: " 🐳"; }
.about-section ul li:nth-child(3) .job-title::after { content: " ⚡"; }
.about-section ul li:nth-child(4) .job-title::after { content: " 🎯"; }d-dark-footer: rgba(34, 34, 34, 0.95);
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --transition-duration: 0.3s;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Prévention des débordements de texte */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

p, li, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

.main-footer {
    background-color: var(--background-dark-footer);
}

main.about-page {
    padding-top: 130px;
    padding-bottom: var(--spacing-xl);
    position: relative;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-section {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.experience-section {
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.about-content {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    box-sizing: border-box;
    width: 100%;
}

.photo-bubble {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 2;
    overflow: hidden;
}

.photo-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-section,
.experience-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    max-width: 100%;
    overflow-wrap: break-word;
    border: 1px solid rgba(46, 204, 113, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover,
.experience-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 8px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 2.5em;
    padding-top: 50px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.about-section h2, .experience-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 1.6em;
    position: relative;
    padding-left: 40px;
}



.summary-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: #444;
    background: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: var(--spacing-md) 0;
    position: relative;
}

.summary-text::before {
    content: "💡";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
}

.about-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: var(--spacing-lg);
}

.about-section ul li {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: var(--spacing-lg);
    border-radius: 15px;
    margin-bottom: var(--spacing-md);
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-section ul li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transition: width 0.3s ease;
}

.about-section ul li:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.about-section ul li:hover::before {
    width: 8px;
}

.about-section ul li:nth-child(1) .job-title::after { content: " ⚙️"; }
.about-section ul li:nth-child(2) .job-title::after { content: " 🐳"; }
.about-section ul li:nth-child(3) .job-title::after { content: " �"; }
.about-section ul li:nth-child(4) .job-title::after { content: " �"; }

.about-contact-info, .contact-info {
    margin-top: var(--spacing-xl);
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border: 1px solid rgba(46, 204, 113, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.about-contact-info::before, .contact-info::before {
    content: "📍";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8em;
    opacity: 0.7;
}

.about-contact-info strong, .contact-info strong {
    color: var(--primary-color);
    font-size: 1.1em;
}

.job-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.job-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.job-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid #f0f0f0;
}

.job-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3em;
    position: relative;
    padding-left: 30px;
}

.job-header h3::before {
    content: "🏢";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1em;
}

.job-duration {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.job-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1em;
    display: inline-block;
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.job-location {
    font-style: italic;
    color: #666;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: 25px;
}

.job-location::before {
    content: "📍";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9em;
}

.job-description {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    background-color: rgba(248, 249, 250, 0.8);
    padding: var(--spacing-sm);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.skills-list {
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

@media (max-width: 768px) {
    /* Amélioration du conteneur pour les petits écrans */
    .about-content {
        padding: 0 var(--spacing-sm);
        max-width: 100%;
        gap: var(--spacing-md);
    }
    
    main.about-page {
        padding-top: 50px;
    }
    .photo-bubble {
        position: static;
        transform: none;
        margin: 0 auto var(--spacing-md);
    }
    h1 {
        padding-top: var(--spacing-lg);
        font-size: 2em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
    .about-section, .experience-section {
        padding: var(--spacing-lg);
        animation: none;
    }
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-duration {
        order: -1;
    }
}

/* Media query pour les très petits écrans */
@media (max-width: 480px) {
    .about-content {
        padding: 0 var(--spacing-xs);
    }
    
    h1 {
        font-size: 1.6em;
        padding: 0 var(--spacing-xs);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h2 {
        font-size: 1.4em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .about-section, .experience-section {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-xs);
        animation: none;
    }
    
    .job-item {
        padding: var(--spacing-sm);
    }
    
    .job-duration {
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Assurer que le texte long ne déborde pas */
    .summary-text, .job-description, .contact-info {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}