/* 
==========================================================================
PORTFOLIO JULIEN PINOT - CSS PROFESSIONNEL
Version Professionnelle - Design moderne et sobre pour expert cybersécurité
==========================================================================
*/

/* ==================== VARIABLES CSS PROFESSIONNELLES ==================== */
:root {
    /* Palette de couleurs professionnelles */
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1d4ed8;
    --secondary-slate: #475569;
    --accent-emerald: #059669;
    --accent-orange: #ea580c;

    /* === SIGNATURE CYBER (couleurs d'accent distinctives) === */
    --accent-cyan: #06b6d4;          /* cyan tech */
    --accent-cyan-light: #22d3ee;
    --accent-violet: #8b5cf6;         /* violet électrique */
    --accent-violet-light: #a78bfa;
    --gradient-signature: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-signature-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(139, 92, 246, 0.08) 100%);
    --glow-cyan: 0 0 24px rgba(6, 182, 212, 0.35);
    --glow-violet: 0 0 24px rgba(139, 92, 246, 0.35);
    
    /* Couleurs de statut */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Couleurs neutres */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Couleurs de fond */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;
    --bg-card: #ffffff;
    
    /* Texte (contrastes améliorés WCAG AAA) */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Overlays */
    --overlay-light: rgba(255, 255, 255, 0.95);
    --overlay-dark: rgba(15, 23, 42, 0.85);
    --overlay-blur: rgba(248, 250, 252, 0.7);
    
    /* Bordures et ombres */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px -5px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-card-hover: 0 4px 6px rgba(37, 99, 235, 0.05), 0 20px 25px -5px rgba(37, 99, 235, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typographie */
    --font-display: 700;
    --font-heading: 600;
    --font-body: 400;
    --font-light: 300;
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    
    /* Dimensions */
    --border-radius: 8px;
    --border-radius-md: 10px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --container-max: 1200px;
    --nav-height: 72px;
    
    /* Système d'espacement basé sur 8px */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 3rem;     /* 48px */
    --space-6: 4rem;     /* 64px */
    --space-7: 6rem;     /* 96px */
    
    /* Rétrocompatibilité */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Breakpoints */
    --bp-mobile: 375px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-wide: 1440px;
}



/* ==================== RESET ET BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: var(--font-body);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Optimisation images */
img {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* ==================== TYPOGRAPHIE PROFESSIONNELLE ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    transition: color 0.3s ease;
}

h1 {
    font-size: clamp(2.25rem, 4.5vw + 1rem, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.625rem, 3vw + 1rem, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

strong {
    font-weight: var(--font-heading);
    color: var(--text-primary);
}

/* ==================== HEADER PROFESSIONNEL ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

.header__logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-blue);
    font-weight: 800;
}

.navbar {
    margin-left: auto;
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
}

/* ==================== BURGER MENU (MOBILE ONLY) ==================== */
.burger-menu {
    display: none; /* Caché par défaut sur desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation du burger en X */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    position: relative;
}

/* Indicateur de page active moderne */
.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px 2px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__link:hover {
    color: var(--primary-blue);
    background: var(--bg-tertiary);
}

.navbar__link.active {
    color: var(--primary-blue);
    background: var(--bg-tertiary);
    font-weight: 600;
}

.navbar__link.active::after,
.navbar__link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar__link svg {
    width: 20px;
    height: 20px;
    margin-bottom: var(--space-1);
    transition: var(--transition-normal);
}

.navbar__link:hover svg,
.navbar__link.active svg {
    stroke: var(--primary-blue);
}

/* ==================== SECTIONS PRINCIPALES ==================== */
main {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

.section {
    padding: var(--space-6) var(--space-4);
    max-width: var(--container-max);
    margin: 0 auto var(--space-5);
}

.section--bg-secondary {
    background: var(--bg-secondary);
}

.section--bg-tertiary {
    background: var(--bg-tertiary);
}

/* Container fluide */
.container {
    width: min(100% - 2rem, var(--container-max));
    margin-inline: auto;
}

/* ==================== HERO SECTION PROFESSIONNELLE ==================== */
.hero-section {
    padding: calc(var(--spacing-2xl) * 2) var(--spacing-xl);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-slate) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--accent-emerald);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== BOUTONS PROFESSIONNELS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.015em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background: #047857;
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* État de chargement */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== CARTES PROFESSIONNELLES ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: var(--space-5);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Indicateur visuel en haut de carte */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-emerald));
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    margin-bottom: var(--space-3);
}

.card-title {
    color: var(--primary-blue);
    margin-bottom: var(--space-2);
    font-size: 1.25rem;
    font-weight: var(--font-heading);
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.card-content {
    color: var(--text-secondary);
}

/* ==================== GRILLES ADAPTATIVES ==================== */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

/* Images responsives */
img {
    max-width: 100%;
    height: auto;
}

/* Vidéos responsives */
video {
    max-width: 100%;
    height: auto;
}

/* Tableaux responsives */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
}

/* ==================== STATISTIQUES ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-5) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-emerald));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--primary-blue);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: var(--font-display);
    color: var(--primary-blue);
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ==================== COMPÉTENCES ==================== */
.skill-item {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    transition: var(--transition-normal);
}

.skill-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.skill-name {
    color: var(--text-primary);
    font-weight: 600;
}

.skill-level {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.875rem;
}

.skill-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-emerald));
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* ==================== PROJETS ==================== */
.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-emerald), var(--accent-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--primary-blue);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.project-content {
    padding: var(--space-4);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--primary-blue);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.project-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

/* ==================== FORMULAIRES ==================== */
.form-group {
    margin-bottom: var(--space-3);
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: var(--font-heading);
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--error);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin: var(--spacing-xl) 0;
    padding-left: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

/* ==================== TIMELINE AVEC LOGOS ==================== */
.timeline-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.timeline-header {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.company-logo {
    flex-shrink: 0;
    margin-right: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: var(--border-radius-md);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.timeline-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-sm);
}

.timeline-info {
    flex: 1;
    min-width: 0;
}

.timeline-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.3;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.timeline-company {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
}

.timeline-period {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.timeline-body {
    padding: var(--spacing-lg);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.timeline-achievements {
    margin-bottom: var(--spacing-lg);
}

.timeline-achievements h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-sm) 0;
}

.timeline-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-achievements li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.timeline-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.timeline-marker {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-marker i {
    width: 1rem;
    height: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-xl);
    text-align: center;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-normal);
    font-weight: 500;
}

.footer-link:hover {
    color: var(--white);
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin: 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-item::before {
        left: 0.625rem;
    }
    
    .timeline-marker {
        left: 0.5rem;
    }
}

@media (max-width: 768px) {
    .timeline-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .company-logo {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
        width: 60px;
        height: 60px;
    }
    
    .timeline-meta {
        align-items: center;
    }
    
    .timeline-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --space-5: 2rem;
        --space-6: 3rem;
    }
    
    /* HEADER MOBILE AVEC BURGER */
    .header {
        padding: var(--space-2) var(--space-3);
        height: 60px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .header__logo h1 {
        font-size: 1.25rem;
    }
    
    /* Afficher le burger menu uniquement sur mobile */
    .burger-menu {
        display: flex;
    }
    
    /* Menu mobile en overlay */
    .navbar {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        margin-left: 0;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Menu ouvert */
    .navbar.active {
        transform: translateX(0);
    }
    
    .navbar__menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: var(--space-3);
        margin: 0;
    }
    
    .navbar__item {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }
    
    .navbar__item:last-child {
        border-bottom: none;
    }
    
    .navbar__link {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-2);
        font-size: 1rem;
        text-align: left;
        border-radius: 0;
        width: 100%;
        transition: all 0.2s ease;
    }
    
    .navbar__link:hover,
    .navbar__link.active {
        background: var(--primary-blue);
        color: white;
    }
    
    .navbar__link::after {
        display: none;
    }
    
    .navbar__link svg {
        width: 24px;
        height: 24px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .navbar__link:hover svg,
    .navbar__link.active svg {
        stroke: white;
    }
    
    .navbar__link span {
        display: block;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Body scroll lock quand menu ouvert */
    body.menu-open {
        overflow: hidden;
    }
    
    main {
        margin-top: 60px;
    }
    
    .section {
        padding: var(--space-4) var(--space-3);
        margin-bottom: var(--space-4);
    }
    
    .hero-section {
        padding: var(--space-5) var(--space-3) var(--space-4);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
        line-height: 1.2;
        margin-bottom: var(--space-3);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem) !important;
        margin-bottom: var(--space-3);
    }
    
    .hero-description {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .card {
        padding: var(--space-4);
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-content p {
        font-size: 0.95rem;
    }
    
    .project-links,
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }
    
    /* Réduire animations sur mobile */
    .card:hover,
    .stat-item:hover,
    .project-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    :root {
        --space-4: 1.5rem;
        --space-5: 2rem;
    }
    
    .header {
        padding: var(--space-2);
    }
    
    .header__logo h1 {
        font-size: 1.1rem;
    }
    
    /* Menu mobile reste identique sur très petit écran */
    .navbar__link {
        padding: var(--space-3) var(--space-2);
        font-size: 0.95rem;
    }
    
    .navbar__link svg {
        width: 22px;
        height: 22px;
    }
    
    .navbar__link span {
        font-size: 0.95rem;
    }
    
    .section {
        padding: var(--space-3) var(--space-2);
    }
    
    .hero-section {
        padding: var(--space-4) var(--space-2) var(--space-3);
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        margin-bottom: var(--space-2);
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: var(--space-2);
    }
    
    .hero-description {
        font-size: 0.875rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.8125rem;
        width: 100%;
        justify-content: center;
    }
    
    .card,
    .project-card {
        padding: var(--space-3);
    }
    
    .project-tech {
        gap: var(--space-1);
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .d-flex,
    .project-links {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .footer {
        padding: var(--space-4) var(--space-2);
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-2);
        justify-content: center;
    }
    
    .footer-link {
        font-size: 0.875rem;
    }
}

/* ==================== UTILITAIRES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }

.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }

.border { border: 1px solid var(--border-color); }
.border-none { border: none; }
.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }

/* ==================== CLASSES SPÉCIALES ==================== */
.intro-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-2xl);
    max-width: 800px;
    box-shadow: var(--shadow-md);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info,
.contact-form-container {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.availability-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.availability-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== SCROLLBAR PERSONNALISÉE ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ==================== ACCESSIBILITÉ ==================== */
/* Skip link pour navigation clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: var(--primary-blue);
    color: white;
    z-index: 9999;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible amélioré pour tous les éléments interactifs */
*:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ==================== OPTIMISATIONS TOUCH ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Améliorer les zones de touch sur mobile */
    .btn,
    .navbar__link,
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Désactiver les effets hover sur touch */
    .card:hover,
    .btn:hover,
    .navbar__link:hover {
        transform: none;
    }
    
    /* Activer les effets sur active/tap */
    .card:active,
    .btn:active {
        transform: scale(0.98);
    }
}

/* ==================== ORIENTATION PAYSAGE MOBILE ==================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: var(--space-3) var(--space-3);
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .section {
        padding: var(--space-3) var(--space-3);
    }
}

/* ==================== TRÈS PETITS ÉCRANS (320px) ==================== */
@media (max-width: 360px) {
    :root {
        --space-2: 0.75rem;
        --space-3: 1rem;
        --space-4: 1.25rem;
    }
    
    .header__logo h1 {
        font-size: 1rem;
    }
    
    .navbar__menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .navbar__link {
        padding: 6px 2px;
        font-size: 0.65rem;
    }
    
    .navbar__link svg {
        width: 14px;
        height: 14px;
    }
    
    .navbar__link span {
        font-size: 0.6rem;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .hero-description {
        font-size: 0.8rem !important;
    }
    
    .card {
        padding: var(--space-2);
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.125rem !important;
    }
}

/* ==================== PERFORMANCE ET OPTIMISATIONS ==================== */
/* Optimiser le rendu des animations sur mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    }
    
    /* Améliorer le scrolling sur iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Désactiver certaines transitions coûteuses sur mobile */
    .card::before,
    .project-card::before,
    .stat-item::before {
        display: none;
    }
}

/* Améliorer la lisibilité pour high contrast */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #1a1a1a;
        --border-color: #000000;
    }
}

/* Respecter les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== SÉLECTION DE TEXTE ==================== */
::selection {
    background: var(--primary-blue);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-blue);
    color: var(--white);
}

/* ==================== MICRO-INTERACTIONS ==================== */
/* Transition de page */
@keyframes pageTransition {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: pageTransition 0.4s ease-out;
}

/* Effet de survol sur les liens */
a:not(.btn) {
    position: relative;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:not(.btn):hover {
    color: var(--primary-blue);
}

/* Placeholder élégants pour images */
.img-placeholder {
    background: linear-gradient(
        90deg,
        var(--gray-100) 0%,
        var(--gray-50) 50%,
        var(--gray-100) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==================== ANIMATIONS SUBTILES ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* ==================== LOADING STATES ==================== */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

/* @keyframes spin defini plus haut (l.508) */

/* ==================== HOVER EFFECTS ==================== */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-border:hover {
    border-color: var(--primary-blue);
}

/* ==================== ANIMATIONS DÉCORATIVES ==================== */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

/* @keyframes scrollPulse est defini dans animations.css */

/* ==================== FIN DU CSS PROFESSIONNEL ==================== */


/* ==================== SIGNATURE CYBER (refonte 2026) ==================== */

/* Texte avec gradient signature (titre hero, accents) */
.text-gradient {
    background: var(--gradient-signature);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Petite barre decorative pour les sections */
.signature-bar {
    display: inline-block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--gradient-signature);
    margin-bottom: var(--space-2);
}

/* Conteneur centré moderne avec padding consistant */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* Boutons : focus visible accessible (WCAG) */
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
    border-radius: var(--border-radius);
}

/* Liens : hover plus subtil & cohérent */
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* Curseur de selection custom */
::selection {
    background: rgba(6, 182, 212, 0.25);
    color: var(--text-primary);
}

/* Reduced motion : respecter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Code inline (utile pour les rapports techniques) */
code, kbd, samp {
    font-family: var(--font-family-mono);
    font-size: 0.9em;
    background: var(--gray-100);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--accent-violet);
}

/* ==================== FIN SIGNATURE CYBER ==================== */
