/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    /* Couleurs */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    
    --border-color: #e2e8f0;
    
    /* Statuts */
    --status-completed: #10b981;
    --status-progress: #f59e0b;
    --status-upcoming: #6366f1;
    
    /* Typographie */
    --font-family: 'Poppins', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 6rem;
    
    /* Bordures */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   UTILITAIRES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   BOUTON RETOUR ACCUEIL
   ======================================== */

.home-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.logo-img {
    height: 50px;
    width: auto;
}

/* ========================================
   BOUTONS AVEC EFFET D'ANIMATION
   ======================================== */

.btn {
    position: relative;
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    border: 0;
    outline: none;
    background: none;
    border: 1px solid var(--primary-color);
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 6px;
    z-index: -1;
    transition: all 0.4s ease;
}

.btn:hover::after {
    top: 0%;
    left: 0%;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary::after {
    background: var(--primary-dark);
}

.btn-primary:hover {
    color: #fff;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary::after {
    background: var(--primary-color);
}

.btn-secondary:hover {
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background-color: var(--bg-primary);
    padding: var(--spacing-lg) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 550px;
    height: auto;
    object-fit: cover;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-md);
    justify-content: center;
}

/* ========================================
   LIENS PROJETS
   ======================================== */

.projects-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.project-link {
    display: block;
    padding: 1rem 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(10px);
}

/* ========================================
   LIENS INSTITUTIONS & ENTREPRISES
   ======================================== */

.institution-link,
.company-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.institution-link:hover,
.company-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: var(--spacing-lg) 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ========================================
   TIMELINE PROFESSIONNELLE - PARCOURS
   ======================================== */

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
}


.education-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 0.25rem;
}

.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid;
    background-color: var(--bg-primary);
    z-index: 2;
    flex-shrink: 0;
}

.marker-dot.completed {
    border-color: var(--status-completed);
    background-color: var(--status-completed);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.marker-dot.in-progress {
    border-color: var(--status-progress);
    background-color: var(--status-progress);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    animation: pulse 2s infinite;
}

.marker-dot.upcoming {
    border-color: var(--status-upcoming);
    background-color: transparent;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.2);
    }
}

.marker-line {
    width: 2px;
    flex: 1;
    background-color: var(--border-color);
    margin-top: 0.5rem;
    min-height: 60px;

}

.education-content {
    flex: 1;
    background-color: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.education-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.education-degree {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

.education-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--status-completed);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-progress {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--status-progress);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-upcoming {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--status-upcoming);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.education-duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.education-institution {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   CERTIFICATIONS
   ======================================== */

.certifications-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.certifications-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.certifications-image {
    margin: var(--spacing-md) 0;
}

.cert-img {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.certifications-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.cert-badge {
    background-color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ========================================
   EXPÉRIENCE
   ======================================== */

.experience-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.experience-header {
    margin-bottom: var(--spacing-md);
}

.experience-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-company {
    display: inline-block;
    background-color: var(--bg-secondary);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin-right: 1rem;
    color: var(--text-primary);
}

.experience-duration {
    color: var(--text-light);
    font-size: 0.9rem;
}

.experience-description {
    margin-bottom: var(--spacing-sm);
}

.experience-highlights h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.experience-highlights ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.experience-highlights li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.experience-team {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-secondary);
}

/* ========================================
   COMPÉTENCES
   ======================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.skill-category {
    background-color: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.skill-category-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* ========================================
   PASSIONS
   ======================================== */

.passions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.passion-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.passion-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.passion-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.passion-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}
/* ========================================
   PAGE HEADER WHITE (sans gradient)
   ======================================== */

.page-header-white {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title-dark {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.page-subtitle-dark {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .page-title-dark {
        font-size: 2rem;
    }
    
    .page-subtitle-dark {
        font-size: 1rem;
    }
} 
/* ========================================
   PROJETS
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.project-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
}

.project-content {
    padding: var(--spacing-md);
}

.project-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   CV
   ======================================== */

.cv-container {
    max-width: 900px;
    margin: 0 auto;
}

.cv-actions {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.cv-viewer {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-md);
}

.cv-viewer embed {
    border-radius: var(--radius-sm);
}

.cv-fallback {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-secondary);
}

.cv-fallback a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Typographie mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .avatar-img {
        width: 350px;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Timeline */
    .education-item {
        gap: var(--spacing-sm);
    }
    
    .education-degree {
        font-size: 1rem;
    }
    
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Grids */
    .skills-grid,
    .passions-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Certifications */
    .cert-img {
        max-width: 100%;
    }
    
    .certifications-details {
        flex-direction: column;
    }
    
    /* Espacements */
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* CV */
    .cv-viewer embed {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .avatar-img {
        width: 280px;
    }
    
    .education-degree {
        font-size: 0.95rem;
    }
}
/* ========================================
   BOUTON ACCENT & HERO CTA SECONDARY
   ======================================== */

.hero-cta-secondary {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.btn-accent {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-accent::after {
    background: var(--accent-color);
}

.btn-accent:hover {
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ========================================
   PAGE POURQUOI MOI
   ======================================== */

.why-me-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.why-me-card {
    background-color: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.why-me-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.why-me-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.why-me-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.why-me-text {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
}

/* ========================================
   ENGAGEMENT SECTION
   ======================================== */

.engagement-content {
    max-width: 900px;
    margin: 0 auto;
}

.engagement-text {
    background-color: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.engagement-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.engagement-list {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding: 0;
}

.engagement-list li {
    color: var(--text-secondary);
    line-height: 2;
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

/* ========================================
   RESPONSIVE - POURQUOI MOI
   ======================================== */

@media (max-width: 768px) {
    .hero-cta-secondary {
        margin-top: 0.5rem;
    }
    
    .hero-cta-secondary .btn {
        width: 100%;
    }
    
    .why-me-grid {
        grid-template-columns: 1fr;
    }
    
    .why-me-card {
        text-align: center;
    }
    
    .why-me-text {
        text-align: center;
    }
}
/* ========================================
   QUALITÉS COMPLÉMENTAIRES (style liste simple)
   ======================================== */

.qualities-container {
    max-width: 900px;
    margin: 0 auto;
}

.quality-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.quality-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.quality-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quality-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .quality-title {
        font-size: 1.1rem;
    }
    
    .quality-description {
        font-size: 1rem;
    }
}/* ========================================
   PROJECTS SHOWCASE GRID
   ======================================== */

.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.project-showcase-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-showcase-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-showcase-card:hover .project-img {
    transform: scale(1.05);
}

.project-showcase-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-showcase-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-showcase-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.project-showcase-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    align-self: flex-start;
}

/* ========================================
   PROJECT DETAIL PAGE
   ======================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: var(--spacing-md);
}

.project-meta-item {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.project-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.project-detail-image {
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-img {
    width: 100%;
    height: auto;
}

.project-section {
    margin-bottom: var(--spacing-lg);
}

.project-section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.project-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

.project-list {
    list-style: none;
    margin: var(--spacing-sm) 0;
}

.project-list li {
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.project-list li::before {
    content: "▸";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--spacing-sm);
}

.tech-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.skills-acquired {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.skill-acquired-item {
    background-color: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.skill-acquired-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-acquired-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.project-navigation {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.project-nav-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.project-nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE PROJECTS
   ======================================== */

@media (max-width: 768px) {
    .projects-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-section-title {
        font-size: 1.5rem;
    }
    
    .skills-acquired {
        grid-template-columns: 1fr;
    }
    
    .project-nav-buttons {
        flex-direction: column;
    }
    
    .project-nav-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   PROJECT SECTION - LAYOUT TEXTE/IMAGE
   ======================================== */

.project-section-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.project-section-row.reverse {
    flex-direction: row-reverse;
}

.project-section-text {
    flex: 1;
}

.project-section-image {
    flex: 1;
    max-width: 400px;
}

.project-section-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Lien PDF présentation */
.project-pdf-link {
    margin-top: var(--spacing-md);
}

/* Responsive */
@media (max-width: 768px) {
    .project-section-row,
    .project-section-row.reverse {
        flex-direction: column;
    }
    
    .project-section-image {
        max-width: 100%;
        order: -1;
    }
    .warn-btn {
        --bg: #0f172a;
        --fg: #ffffff;
        --warn: #f59e0b;
        border: none;
        border-radius: 999px;
        padding: 14px 18px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: var(--bg);
        color: var(--fg);
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(0,0,0,.35);
        will-change: opacity,box-shadow;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
    }

    .warn-btn__icon {
        font-size: 18px
    }

    .warn-btn__text {
        letter-spacing: .08em
    }

    .warn-btn__sub {
        font-size: 13px;
        opacity: .9
    }

    .warn-btn.is-blinking {
        animation: blink 1.2s infinite
    }

    @keyframes blink {
        0%,100% {
            opacity: 1;
            box-shadow: 0 0 0 0 rgba(245,158,11,0)
        }

        50% {
            opacity: .35;
            box-shadow: 0 0 0 8px rgba(245,158,11,.25)
        }
    }

    .warn-btn:focus-visible {
        outline: 3px solid var(--warn);
        outline-offset: 3px
    }

    @media (max-width:420px) {
        .warn-btn__sub {
            display: none
        }

        .warn-btn {
            top: 10px;
            left: 10px;
            padding: 10px 14px
        }
    }

    @media (prefers-reduced-motion:reduce) {
        .warn-btn.is-blinking {
            animation: none !important
        }
    }
}

.warn-btn {
    --bg: #0f172a;
    --fg: #ffffff;
    --warn: #f59e0b;
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    color: var(--fg);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    will-change: opacity,box-shadow;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.warn-btn__icon {
    font-size: 18px
}

.warn-btn__text {
    letter-spacing: .08em
}

.warn-btn__sub {
    font-size: 13px;
    opacity: .9
}

.warn-btn.is-blinking {
    animation: blink 1.2s infinite
}

@keyframes blink {
    0%,100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(245,158,11,0)
    }

    50% {
        opacity: .35;
        box-shadow: 0 0 0 8px rgba(245,158,11,.25)
    }
}

.warn-btn:focus-visible {
    outline: 3px solid var(--warn);
    outline-offset: 3px
}

@media (max-width:420px) {
    .warn-btn__sub {
        display: none
    }

    .warn-btn {
        top: 10px;
        left: 10px;
        padding: 10px 14px
    }
}

@media (prefers-reduced-motion:reduce) {
    .warn-btn.is-blinking {
        animation: none !important
    }
}