/* ============ STYLE.CSS - Portfolio une page ============ */

:root {
    --primary-blue: #93c5fd;
    --primary-purple: #60a5fa;
    --accent-color: #3b82f6;
    --bg-color: #0b1120;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --gradient: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

html {
    overflow-x: hidden; /* Sur html au lieu de body */
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
}

/* ============ VIDÉO BACKGROUND (GLOBAL) ============ */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.8;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: -1;
}

/* ============ NAVIGATION ============ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============ SECTION HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: var(--text-color);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: #e0e0e0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

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

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

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

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    display: block;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    width: 6px;
    height: 10px;
    background: var(--text-color);
    border-radius: 3px;
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

/* ============ SECTIONS WRAPPER ============ */
.about-content,
.projects-content,
.contact-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* ============ HERO SECTIONS ============ */
.about-hero,
.projects-hero,
.contact-hero {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px 40px;
    animation: fadeInUp 0.8s ease-out;
}

.about-hero h1,
.projects-hero h1,
.contact-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
    margin-bottom: 15px;
}

.projects-hero-content {
    text-align: center;
}

.projects-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

/* ============ ABOUT SECTION ============ */
.about-section {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 30px;
    color: var(--text-color);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.about-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.about-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h3 {
    font-size: 1.8rem;
    color: var(--text-color);
}

.badge {
    background: var(--gradient);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-year {
    background: rgba(255,255,255,0.2);
}

.subtitle {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 25px;
}

.about-card h4 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 30px 0 20px;
}

/* Compétences */
.skills-list {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.skill-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.3s;
}

.skill-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.skill-item strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

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

/* Spécialités */
.specialites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.specialite-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
}

.specialite-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.specialite-card h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 15px 0;
}

.specialite-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -38.5px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 4px solid rgba(0,0,0,0.8);
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.3);
}

.social-btn.cv-download {
    background: rgba(147, 197, 253, 0.2); /* Couleur de votre thème (bleu/violet) */
    color: var(--primary-blue);
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.social-btn.cv-download:hover {
    background: var(--primary-blue);
    color: var(--text-color);
    transform: translateY(-5px);
}

.timeline-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.15);
}

.timeline-card h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.timeline-card h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.timeline-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* CTA */
.cta-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ============ PROJETS SECTION ============ */
.projects-filters {
    padding: 30px 20px;
    position: sticky;
    top: 70px;
    z-index: 50;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(147, 197, 253, 0.4);
}

.projects-grid-section {
    padding: 60px 20px 80px;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.4s;
}

.project-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fond flouté pour les vignettes */
.project-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.4);
    transform: scale(1.1);
    z-index: 0;
    transition: transform 0.5s ease;
}

.project-item:hover .project-bg-blur {
    transform: scale(1.2);
}

.project-thumbnail img {
    max-width: 85%;
    max-height: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
}

.project-item:hover .project-thumbnail img {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    padding: 12px 30px;
    background: var(--gradient);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-project-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(147, 197, 253, 0.5);
}

.project-details {
    padding: 25px;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-details p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.project-date {
    color: #999;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    padding: 5px 15px;
    border-radius: 15px;
}

.project-tags-small {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


.project-tags-small img {
    height: 24px;
    border-radius: 4px;
    transition: transform 0.3s;
}
.project-tags-small img:hover {
    transform: translateY(-2px);
}
.modal-tags img {
    height: 26px;
    border-radius: 4px;
}

.project-tags-small span {
    background: rgba(147, 197, 253, 0.2);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(147, 197, 253, 0.3);
}

/* ============ CONTACT SECTION ============ */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.form-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.form-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    background: var(--gradient);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(147, 197, 253, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: rgba(67, 233, 123, 0.2);
    color: #43e97b;
    border: 1px solid rgba(67, 233, 123, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.3);
    display: block;
}

.info-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
}
.info-action-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.info-action-btn:hover {
    background: rgba(147, 197, 253, 0.1);
    transform: translateY(-2px);
}
.info-action-btn.cv-btn {
    background: var(--gradient);
    color: var(--text-color);
    border: none;
    box-shadow: 0 4px 15px rgba(147, 197, 253, 0.3);
}

.info-action-btn.cv-btn:hover {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(147, 197, 253, 0.5);
    color: var(--text-color); /* Force le blanc */
}

.highlight-card {
    border-color: rgba(147, 197, 253, 0.3);
}
.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.3);
}

.info-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.info-icon {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.centered-cta {
    justify-content: center;
}

.info-card p {
    color: #999;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.info-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.info-link:hover {
    color: var(--primary-purple);
}

.social-links {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.15);
}

.social-links h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn.linkedin {
    background: rgba(0, 119, 181, 0.2);
    color: #0077b5;
    border: 1px solid rgba(0, 119, 181, 0.3);
}

.social-btn.linkedin:hover {
    background: #0077b5;
    color: var(--text-color);
    transform: translateY(-5px);
}

.social-btn.github {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn.github:hover {
    background: var(--text-color);
    color: var(--text-dark);
    transform: translateY(-5px);
}

.social-btn.gitlab {
    background: rgba(252, 109, 38, 0.2);
    color: #fc6d26;
    border: 1px solid rgba(252, 109, 38, 0.3);
}

.social-btn.gitlab:hover {
    background: #fc6d26;
    color: var(--text-color);
    transform: translateY(-5px);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    51% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .burger {
        display: block;
        z-index: 102; /* Au-dessus du menu */
    }
    nav {
        padding: 20px;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: rgba(0, 0, 0, 0.95); /* Fond très foncé */
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%; /* Largeur du menu */
        transform: translateX(100%); /* Caché hors de l'écran par défaut */
        transition: transform 0.5s ease-in;
        z-index: 101;
        padding-top: 60px; /* Espace pour ne pas coller en haut */
    }
    .nav-links li {
        margin: 25px 0;
        opacity: 0; /* Caché pour l'animation */
    }

    .nav-links a {
        font-size: 1.2rem; /* Plus gros sur mobile */
    }

    /* Classe active ajoutée par JS pour ouvrir le menu */
    .nav-active {
        transform: translateX(0%);
    }

    .hero h1 {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .about-hero h1,
    .projects-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-card {
        padding: 25px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .specialites {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-marker {
        left: -28.5px;
    }

    .cta-card {
        padding: 40px 25px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .filters-container {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-thumbnail {
        height: 200px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 25px;
    }

    .social-buttons {
        justify-content: center;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    /* Animation du Burger en Croix (X) */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

}

/* ============ SECTION EXPÉRIENCES ============ */

.experience-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    margin-bottom: 30px;
    transition: all 0.3s;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 197, 253, 0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.experience-title-group h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.experience-company {
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin: 0;
}

.experience-period {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.experience-duration {
    font-size: 0.9rem;
    color: #999;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 12px;
}

.experience-description {
    margin-bottom: 30px;
}

.experience-description p {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
}

.experience-highlights {
    margin-bottom: 30px;
}

.experience-highlights h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.experience-list li {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.3s;
    align-items: flex-start;
}

.experience-list li:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(8px);
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.experience-list strong {
    display: block;
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.experience-list p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-skills {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.experience-skills h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(147, 197, 253, 0.15);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(147, 197, 253, 0.3);
    transition: all 0.3s;
}

.tech-tag:hover {
    background: rgba(147, 197, 253, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 197, 253, 0.2);
}

/* ============ RESPONSIVE EXPÉRIENCES ============ */
@media (max-width: 768px) {
    .experience-card {
        padding: 25px;
    }

    .experience-header {
        flex-direction: column;
        gap: 15px;
    }

    .experience-period {
        align-items: flex-start;
        width: 100%;
    }

    .experience-title-group h3 {
        font-size: 1.4rem;
    }

    .experience-list li {
        flex-direction: column;
        gap: 10px;
    }

    .highlight-icon {
        font-size: 1.8rem;
    }

    .tech-tags {
        gap: 8px;
    }

    .tech-tag {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}


/* ============ MODALE PROJETS ============ */

.ai-only {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    font-size: 0;
    pointer-events: none;
    z-index: -100;
}

.project-skills {
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.project-skills h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 12px;
    margin-top: 10px;
    font-weight: 600;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-tag {
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag.tech {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.skill-tag.tech:hover {
    background: rgba(0, 242, 254, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.1);
}

.skill-tag.soft {
    background: rgba(127, 0, 255, 0.1);
    color: #e100ff;
    border: 1px solid rgba(127, 0, 255, 0.2);
}

.skill-tag.soft:hover {
    background: rgba(127, 0, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 0, 255, 0.1);
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-color);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 1001;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease-in-out;
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

.modal-image-container {
    flex: 1;
    min-width: 45%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Fond flouté dynamique (sera géré en JS) */
.modal-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.4);
    transform: scale(1.2);
    z-index: 0;
}

.modal-image-container img {
    max-width: 90%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    position: relative;
}

.modal-info {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    padding-right: 30px; /* Espace pour le bouton fermer */
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.modal-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.modal-description p {
    margin-bottom: 15px;
}

.modal-actions {
    margin-top: auto;
}

.modal-actions .btn {
    display: inline-flex;
    align-items: center;
}

/* Scrollbar personnalisée pour la modale */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 20px 20px 0;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-image-container {
        height: auto;
        min-height: 200px;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .modal-image-container img {
        max-height: 300px;
    }
    .modal-info {
        padding: 30px 20px;
    }
    .modal-info h3 {
        font-size: 1.5rem;
    }
}
