/* Variables CSS */
:root {
    --primary-blue: #0066ff;
    --secondary-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(15, 23, 42, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --accent: #00d4ff;
}

/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background animé */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.bg-animation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='%23ffffff' stroke-width='0.1' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { 
        transform: translate(0, 0); 
    }
    100% { 
        transform: translate(10px, 10px); 
    }
}

/* Indicateur de scroll */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--dark-bg);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Section Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.typing-text {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    height: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.availability-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid #10b981;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: #10b981;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { 
        opacity: 1; 
    }
    51%, 100% { 
        opacity: 0.3; 
    }
}

@keyframes pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); 
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); 
    }
}

/* Boutons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--dark-bg);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* Sections générales */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

/* Section À propos */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.profile-avatar::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent), var(--primary-blue));
    border-radius: 50%;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
}

.about-text {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.about-text h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Section Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

.skill-category h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-bar {
    width: 60%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent));
    transition: width 2s ease;
}

/* Section Expérience */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-blue), var(--accent));
}

.timeline-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.5rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--dark-bg);
}

.timeline-date {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Section Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

.project-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.project-icon.cybersec {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.project-icon.monitoring {
    background: linear-gradient(135deg, #10b981, #059669);
}

.project-icon.virtualization {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.project-icon.automation {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.project-icon.personal {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.project-category {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card h3 {
    padding: 0 1.5rem;
    margin: 1rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.project-card p {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 102, 255, 0.2);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.project-stats {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat i {
    color: var(--accent);
    font-size: 1.1rem;
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: bold;
}

.project-actions {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.8);
}

.modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.project-details {
    margin-bottom: 2rem;
}

.project-details h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.project-details ul {
    list-style: none;
    padding: 0;
}

.project-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.project-details li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-results {
    background: rgba(0, 102, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.project-results h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Section CV */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-actions {
    display: flex;
    gap: 1rem;
}

.cv-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
}

.cv-section {
    padding: 2rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.cv-section:last-child {
    border-bottom: none;
}

.cv-header-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.cv-personal h1 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.cv-personal h2 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: normal;
}

.cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-tag {
    background: var(--primary-blue);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.cv-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cv-contact-item i {
    color: var(--accent);
    width: 16px;
}

.cv-section h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.cv-alternance-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.alternance-details h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alternance-details p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cv-experience {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.cv-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-exp-title h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.cv-company {
    color: var(--accent);
    font-weight: bold;
}

.cv-company-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cv-company-link a:hover {
    color: var(--accent);
}

.cv-exp-content h5 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    margin-top: 1rem;
}

.cv-exp-content ul {
    list-style: none;
    padding: 0;
}

.cv-exp-content li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.cv-exp-content li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.cv-tech-env {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cv-formation {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.cv-form-header {
    margin-bottom: 1rem;
}

.cv-form-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cv-school {
    color: var(--accent);
    font-weight: bold;
    display: block;
    margin-bottom: 0.3rem;
}

.cv-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cv-formation p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cv-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cv-skill-category {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.cv-skill-category h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cv-skill-category ul {
    list-style: none;
    padding: 0;
}

.cv-skill-category li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cv-skill-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.cv-languages {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cv-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.flag {
    font-size: 1.2rem;
}

.cv-interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.cv-interest-category {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.cv-interest-category h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-interest-category ul {
    list-style: none;
    padding: 0;
}

.cv-interest-category li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cv-footer {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-footer-logo h4 {
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.cv-footer-logo p {
    color: var(--accent);
    font-size: 0.9rem;
}

.cv-footer-contact {
    text-align: right;
}

.cv-footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Section Certifications */
.certifications-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cert-category {
    margin-bottom: 3rem;
}

.cert-category h3 {
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-item {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
}

.cert-item.current::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.cert-item.completed::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.cert-item.progress::before {
    background: linear-gradient(180deg, var(--accent), var(--primary-blue));
}

.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.cert-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.cert-content {
    flex: 1;
}

.cert-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cert-school {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.cert-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.cert-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cert-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.cert-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.cert-status.current {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.cert-status.searching {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    animation: pulse 2s infinite;
}

.cert-status.progress {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.cert-status.planned {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mini-cert {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.mini-cert:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.mini-cert i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.mini-cert h5 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.mini-cert p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Section Témoignages */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.3;
}

.testimonial-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    padding-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.author-info p {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.rating {
    color: #fbbf24;
}

.rating i {
    font-size: 0.8rem;
}

/* Section Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
footer {
    background: var(--card-bg);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Animations de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mode clair */
[data-theme="light"] {
    --primary-blue: #0066ff;
    --secondary-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --dark-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(0, 0, 0, 0.05);
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --accent: #0066ff;
}

[data-theme="light"] .bg-animation {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 50%, #edf2f7 100%);
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

/* Styles d'impression pour le CV */
@media print {
    .cv-container {
        box-shadow: none;
        border: none;
    }
    
    .cv-actions {
        display: none;
    }
    
    .cv-section {
        page-break-inside: avoid;
    }
    
    nav, 
    .back-to-top, 
    .scroll-indicator {
        display: none;
    }
}

/* Design responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.mobile-active {
        transform: translateY(0);
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-nav {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .availability-badge {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 0.5rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .cv-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cv-header-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cv-personal h1 {
        font-size: 1.8rem;
    }
    
    .cv-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-interests {
        grid-template-columns: 1fr;
    }
    
    .cv-exp-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cv-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .cv-footer-contact {
        text-align: center;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .cert-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cv-personal h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
}


/* =================================================================
   AMÉLIORATIONS RESPONSIVE - MOBILE ET TABLETTE
   ================================================================= */

/* Variables responsive */
:root {
    --mobile-padding: 1rem;
    --tablet-padding: 2rem;
    --mobile-font-size: 0.9rem;
    --mobile-heading: 1.8rem;
}

/* =================================================================
   NAVIGATION MOBILE AMÉLIORÉE
   ================================================================= */

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }
    
    .nav-container {
        position: relative;
    }
    
    .logo {
        font-size: 1.3rem;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
        font-size: 1.2rem;
    }
    
    .nav-links.mobile-active {
        transform: translateX(0);
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        animation: none;
    }
    
    .nav-links.mobile-active li {
        animation: slideInUp 0.6s ease forwards;
    }
    
    .nav-links.mobile-active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.mobile-active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.mobile-active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.mobile-active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.mobile-active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links.mobile-active li:nth-child(6) { animation-delay: 0.6s; }
    .nav-links.mobile-active li:nth-child(7) { animation-delay: 0.7s; }
    .nav-links.mobile-active li:nth-child(8) { animation-delay: 0.8s; }
    
    @keyframes slideInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
        position: fixed;
        bottom: 2rem;
        right: 1rem;
        z-index: 1001;
    }
    
    .nav-links.mobile-active ~ .nav-actions {
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        flex-direction: row;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .btn-nav {
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Animation hamburger vers X */
    .mobile-menu-btn i {
        transition: transform 0.3s ease;
    }
    
    .nav-links.mobile-active ~ .mobile-menu-btn i::before {
        content: "\f00d"; /* Font Awesome times/close icon */
    }
}

/* =================================================================
   SECTION HERO RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .hero {
        padding: 1rem;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .typing-text {
        font-size: 1rem;
        margin-bottom: 2rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .availability-badge {
        order: -1;
        margin-bottom: 1rem;
        padding: 1rem 1.5rem;
        text-align: center;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .availability-badge {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}

/* =================================================================
   SECTIONS GÉNÉRALES RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
}

/* =================================================================
   SECTION À PROPOS RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-card {
        max-width: 300px;
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
        margin: 0 auto 1rem;
    }
    
    .about-text {
        padding: 1.5rem;
        text-align: left;
    }
    
    .about-text h3 {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* =================================================================
   COMPÉTENCES RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skill-bar {
        width: 100%;
        height: 10px;
    }
    
    .skill-item span {
        font-weight: bold;
        color: var(--text-primary);
    }
}

/* =================================================================
   TIMELINE RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .timeline {
        padding-left: 0;
        position: relative;
    }
    
    .timeline::before {
        left: 15px;
        width: 2px;
    }
    
    .timeline-item {
        padding: 1.5rem;
        margin-left: 30px;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        left: -22px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-date {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding: 1rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
}

/* =================================================================
   PROJETS RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .project-header {
        padding: 1rem;
        flex-direction: row;
        align-items: center;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .project-category {
        font-size: 0.8rem;
    }
    
    .project-card h3 {
        padding: 0 1rem;
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .project-card p {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .project-tech {
        padding: 0 1rem;
        gap: 0.3rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .stat {
        text-align: center;
    }
    
    .stat i {
        font-size: 1rem;
    }
    
    .stat span {
        font-size: 0.75rem;
    }
    
    .project-actions {
        flex-direction: column;
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .btn-small {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .project-card h3 {
        font-size: 1rem;
    }
}

/* =================================================================
   MODALES RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .project-details h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .project-details li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0.4rem 0;
    }
}

/* =================================================================
   CV RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .cv-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cv-actions {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 300px;
    }
    
    .cv-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cv-container {
        margin: 0;
        border-radius: 10px;
    }
    
    .cv-section {
        padding: 1.5rem;
    }
    
    .cv-header-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cv-personal h1 {
        font-size: 1.6rem;
    }
    
    .cv-personal h2 {
        font-size: 1.2rem;
    }
    
    .cv-tags {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .cv-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .cv-contact {
        align-items: center;
        gap: 0.5rem;
    }
    
    .cv-contact-item {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .cv-section h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .alternance-details {
        padding: 1rem;
        text-align: center;
    }
    
    .cv-exp-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cv-company-link {
        margin-top: 0.5rem;
    }
    
    .cv-skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cv-skill-category {
        padding: 1rem;
    }
    
    .cv-interests {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cv-footer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cv-personal h1 {
        font-size: 1.4rem;
    }
    
    .cv-personal h2 {
        font-size: 1.1rem;
    }
    
    .cv-section {
        padding: 1rem;
    }
}

/* =================================================================
   CERTIFICATIONS RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .cert-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .cert-icon {
        align-self: center;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .cert-content h4 {
        font-size: 1.1rem;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .mini-cert {
        padding: 1rem;
    }
    
    .mini-cert i {
        font-size: 1.5rem;
    }
    
    .mini-cert h5 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   TÉMOIGNAGES RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .author-info h4 {
        font-size: 0.9rem;
    }
    
    .author-info p {
        font-size: 0.8rem;
    }
}

/* =================================================================
   CONTACT RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
        padding: 1.5rem;
    }
    
    .contact-form {
        order: 1;
        padding: 1.5rem;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        font-weight: bold;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }
}

/* =================================================================
   NOTIFICATIONS RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .custom-notification {
        right: 10px !important;
        left: 10px !important;
        top: 80px !important;
        max-width: none !important;
        transform: translateY(-100%) !important;
        font-size: 13px !important;
        padding: 12px 15px !important;
    }
    
    .custom-notification.show {
        transform: translateY(0) !important;
    }
}

/* =================================================================
   BOUTONS ET INTERACTIONS RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 44px; /* Taille minimum tactile */
        touch-action: manipulation;
    }
    
    .btn-small {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Améliorer les zones tactiles */
    .theme-toggle,
    .mobile-menu-btn,
    .btn,
    .nav-links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =================================================================
   OPTIMISATIONS PERFORMANCE MOBILE
   ================================================================= */

@media (max-width: 768px) {
    /* Réduire les effets visuels gourmands sur mobile */
    .bg-animation::before {
        animation-duration: 30s; /* Plus lent */
    }
    
    .profile-avatar::before {
        animation: none; /* Désactiver sur mobile */
    }
    
    /* Optimiser les transformations */
    .project-card:hover,
    .skill-category:hover,
    .testimonial-card:hover {
        transform: none; /* Pas d'hover sur mobile */
    }
    
    /* Remplacer par des effets tactiles */
    .project-card:active,
    .skill-category:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* =================================================================
   TABLETTE (768px - 1024px)
   ================================================================= */

@media (min-width: 768px) and (max-width: 1024px) {
    .section {
        padding: 4rem 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cv-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        gap: 2rem;
    }
}

/* =================================================================
   AMÉLIORATIONS ACCESSIBILITÉ MOBILE
   ================================================================= */

@media (max-width: 768px) {
    /* Focus visible amélioré */
    .btn:focus,
    .nav-links a:focus,
    input:focus,
    textarea:focus {
        outline: 3px solid var(--accent);
        outline-offset: 2px;
    }
    
    /* Taille de texte minimale */
    body {
        font-size: 16px;
    }
    
    /* Espacement tactile */
    .nav-links a {
        padding: 1rem;
        margin: 0.5rem 0;
    }
}

/* =================================================================
   CORRECTION NAVIGATION MOBILE - BANDEAU HEADER
   ================================================================= */

/* Navigation de base - améliorée */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* =================================================================
   CORRECTIONS MOBILE SPÉCIFIQUES
   ================================================================= */

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
        height: auto;
        min-height: 60px;
    }
    
    .nav-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    /* Logo - reste visible */
    .logo {
        font-size: 1.3rem;
        z-index: 1001;
        position: relative;
        color: var(--primary-blue);
        font-weight: bold;
    }
    
    /* Actions navigation - repositionnées */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        z-index: 1001;
        position: relative;
    }
    
    /* Bouton thème - réduit */
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        border: 2px solid var(--accent);
        background: none;
        color: var(--accent);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .theme-toggle:hover {
        background: var(--accent);
        color: var(--dark-bg);
    }
    
    /* Bouton CV - adapté mobile */
    .btn-nav {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 20px;
        background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
        color: white;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .btn-nav:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
    }
    
    /* Bouton menu hamburger */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.4rem;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        width: 35px;
        height: 35px;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }
    
    /* Menu mobile - caché par défaut */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    /* Menu mobile ouvert */
    .nav-links.mobile-active {
        transform: translateX(0);
    }
    
    /* Liens du menu mobile */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        margin: 0;
    }
    
    .nav-links.mobile-active li {
        animation: slideInUp 0.6s ease forwards;
    }
    
    .nav-links.mobile-active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.mobile-active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.mobile-active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.mobile-active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.mobile-active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links.mobile-active li:nth-child(6) { animation-delay: 0.6s; }
    .nav-links.mobile-active li:nth-child(7) { animation-delay: 0.7s; }
    .nav-links.mobile-active li:nth-child(8) { animation-delay: 0.8s; }
    
    @keyframes slideInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        text-align: center;
        min-width: 200px;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent);
        background: rgba(0, 212, 255, 0.1);
    }
    
    /* Masquer les actions quand le menu est ouvert (optionnel) */
    .nav-links.mobile-active ~ .nav-actions .btn-nav {
        opacity: 0.7;
    }
}

/* =================================================================
   MOBILE TRÈS PETIT (iPhone SE, etc.)
   ================================================================= */

@media (max-width: 375px) {
    nav {
        padding: 0.8rem 0.8rem;
    }
    
    .nav-actions {
        gap: 0.3rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .btn-nav {
        padding: 5px 8px;
        font-size: 0.7rem;
        gap: 0.2rem;
    }
    
    .btn-nav i {
        font-size: 0.7rem;
    }
    
    .mobile-menu-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        margin-left: 0.3rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* =================================================================
   CORRECTIONS POUR LE SCROLL ET L'ÉTAT DE LA NAV
   ================================================================= */

@media (max-width: 768px) {
    /* S'assurer que le contenu ne passe pas sous la nav */
    body {
        padding-top: 60px;
    }
    
    /* Ajustement hero pour mobile */
    .hero {
        min-height: calc(100vh - 60px);
        padding-top: 60px;
    }
    
    /* Nav sticky améliorée */
    nav.scrolled {
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* =================================================================
   ÉTAT FOCUS ET ACCESSIBILITÉ
   ================================================================= */

@media (max-width: 768px) {
    .theme-toggle:focus,
    .btn-nav:focus,
    .mobile-menu-btn:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
    
    .nav-links a:focus {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        background: rgba(0, 212, 255, 0.1);
    }
    
    /* Éviter le tap highlight sur mobile */
    .theme-toggle,
    .btn-nav,
    .mobile-menu-btn,
    .nav-links a {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}