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ary-color: #4f7cff;
    --secondary-color: #a24bfc;
    --accent-color: #00ffcc;
    --text-color: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.65);
    --glass-bg: rgba(30, 38, 70, 0.35);
    --glass-border: rgba(255, 255, 255, 0.1);
    --terminal-bg: rgba(15, 15, 30, 0.95);
    --terminal-header: #1a1a2e;
    --shadow-color: rgba(0, 0, 30, 0.5);
    
    /* Typographie */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Autres */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s ease;
    --transition-slow: 0.8s ease;
    --glow-radius: 10px;
    /* Variables pour le curseur personnalisé */
    --cursor-size: 12px;
    --cursor-follower-size: 36px;
    --cursor-color: rgba(79, 124, 255, 0.7);
    --cursor-hover-color: rgba(0, 255, 204, 0.8);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background-image: var(--bg-texture);
    cursor: none !important;
}

/* Personnalisation de la scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 124, 255, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 124, 255, 0.8);
}

/* ===== UTILITAIRES ===== */
.hidden {
    display: none !important;
}

.glass-panel {
    background: var(--glass-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.glass-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow-color);
}

/* ===== ANIMATION INITIALE ===== */
.initialization-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
}

.initialization-overlay.active {
    opacity: 1 !important;
    display: flex !important;
}

.initialization-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

body.loaded .initialization-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.loading-bar-container {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.loading-bar {
    position: absolute;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(79, 124, 255, 0.5);
}

.loading-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

@keyframes fadeInBar {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.terminal-container {
    width: 80%;
    max-width: 600px;
    background-color: var(--terminal-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

@keyframes terminalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-buttons span:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-buttons span:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-buttons span:nth-child(3) {
    background-color: #27c93f;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.terminal-content {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-color);
    height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.terminal-line {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.terminal-line:after {
    content: '_';
    opacity: 0;
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ===== CANVAS BACKGROUND ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded #bg-canvas {
    opacity: 1;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER ===== */
.header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.header-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 1s;
}

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

.name {
    font-family: var(--font-primary);
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.header-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 124, 255, 0.2), rgba(162, 75, 252, 0.05));
    filter: blur(40px);
    opacity: 0.5;
    z-index: -1;
}

/* ===== SECTIONS ===== */
.section {
    margin: var(--spacing-xl) 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-right: var(--spacing-md);
}

.accent {
    color: var(--accent-color);
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* ===== SECTION À PROPOS ===== */
.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.tech-signature {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
}

.signature-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin-right: var(--spacing-sm);
}

/* ===== SECTION COMPÉTENCES ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.skill-item {
    margin-bottom: var(--spacing-xs);
}

.skill-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.skill-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 1.5s ease;
}

/* ===== SECTION EXPÉRIENCE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(to bottom, var(--glass-border), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.2);
}

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

.job-header {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-sm);
}

.job-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.job-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.job-company {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

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

.job-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.job-tech-stack span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--accent-color);
}

/* ===== SECTION PROJETS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 160px;
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.3), rgba(162, 75, 252, 0.2));
    position: relative;
    overflow: hidden;
}

.project-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    animation: shiftGlow 8s linear infinite;
}

@keyframes shiftGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.project-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.project-description {
    flex-grow: 1;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

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

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--accent-color);
}

/* ===== SECTION CONTACT ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm);
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.2);
}

.form-group label {
    position: absolute;
    top: 0;
    left: 10px;
    padding: 0 5px;
    font-size: 0.85rem;
    background: var(--glass-bg);
    transition: transform var(--transition-fast), font-size var(--transition-fast);
    transform: translateY(-50%);
    pointer-events: none;
}

.form-group input:placeholder-shown + label,
.form-group textarea:placeholder-shown + label {
    transform: translateY(14px);
    font-size: 1rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--primary-color);
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: white;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 124, 255, 0.4);
}

.submit-button:hover::before {
    left: 100%;
}

.button-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.submit-button:hover .button-icon {
    transform: translateX(4px);
}

/* ===== MODE DEBUG ===== */
.debug-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 20, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
}

.debug-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.debug-interface {
    width: 90%;
    max-width: 800px;
    background: var(--terminal-bg);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 30px rgba(79, 124, 255, 0.3);
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: transform var(--transition-med), opacity var(--transition-med);
}

.debug-overlay.active .debug-interface {
    transform: scale(1);
    opacity: 1;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--terminal-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.debug-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 0.1em;
}

.debug-close {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.debug-close:hover {
    color: white;
}

.debug-content {
    padding: var(--spacing-md);
    max-height: 70vh;
    overflow-y: auto;
}

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

.debug-section-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.debug-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.debug-metric {
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-color);
}

.debug-console {
    background: #0d0d1a;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.5;
    height: 200px;
    overflow-y: auto;
}

.debug-console div {
    margin-bottom: 0.3rem;
}

.debug-download {
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.debug-download:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .name {
        font-size: 4rem;
    }
    
    .title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -30px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .terminal-container {
        width: 95%;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-marker {
        left: -25px;
        width: 10px;
        height: 10px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--glow-radius) rgba(79, 124, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 15px var(--glow-radius) rgba(79, 124, 255, 0.4);
    }
}

@keyframes glitchEffect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.glitch {
    animation: glitchEffect 0.3s ease;
}

/* ===== CURSEUR PERSONNALISÉ ===== */
/* Supprimer complètement les styles du curseur personnalisé
   car maintenant ils sont définis directement en inline dans le JS */

/* Assurer que le curseur natif est masqué */
body {
    cursor: none !important;
}

/* Animation pour le clignotement des textes */
.blink-text {
    animation: blinkText 1.2s infinite;
}

@keyframes blinkText {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Animation complétée */
.loading-complete {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-color);
    left: 0;
    bottom: -25px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.loading-complete.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Assurer la visibilité du contenu principal */
.main-container.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Assurer visibilité du body */
body {
    visibility: visible !important;
    opacity: 1 !important;
    background-color: var(--bg-color) !important;
}

/* Supprimer tout overlay potentiellement bloquant */
.initialization-overlay {
    display: none !important;
}

/* Masquer le contenu principal pendant le chargement */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9000;
    opacity: 1;
    transition: opacity 0.8s ease;
}

body.loaded::before {
    opacity: 0;
    pointer-events: none;
}

/* Canvas masqué initialement */
#bg-canvas {
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded #bg-canvas {
    opacity: 1;
}

/* Assurer la visibilité du terminal et de la barre */
.terminal-container {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.loading-bar-container {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Styles améliorés pour les listes d'expérience */
.job-details ul {
    margin: 1rem 0;
    padding-left: 0.5rem;
}

.job-details li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    position: relative;
}

.job-details li strong {
    color: var(--accent-color);
    font-weight: 600;
}

.job-details li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .job-details li {
        margin-bottom: 1rem;
    }
}

/* Styles pour la section IA Conception */
.ai-conception {
    margin-top: 2rem;
}

.ai-design-panel {
    padding: 0.8rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.ai-design-text {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    letter-spacing: 0.01em;
}

.ai-design-text:nth-child(2) {
    animation-delay: 0.6s;
}

.typewriter-effect {
    position: relative;
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    width: 100%;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    margin-bottom: 0.8rem;
    animation-delay: 1s;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

.ai-tools {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

.ai-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    width: 180px;
}

.ai-tool:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--accent-color-transparent));
    animation: glowPulse 2s infinite;
}

.ai-tool-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.ai-tool:hover .ai-tool-logo {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.ai-tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.ai-tool:hover .ai-tool-logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.cursor-logo {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(30, 30, 30, 0.3));
}

.claude-logo {
    background: linear-gradient(135deg, rgba(240, 240, 255, 0.1), rgba(240, 240, 255, 0.3));
}

.gpt-logo {
    background: linear-gradient(135deg, rgba(9, 130, 94, 0.1), rgba(9, 130, 94, 0.3));
}

.ai-tool-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.ai-tool-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .ai-tools {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .ai-tool {
        width: 100%;
        max-width: 280px;
    }
    
    .ai-tool-logo {
        width: 70px;
        height: 70px;
        padding: 6px;
    }
    
    .typewriter-effect {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .ai-tool-logo {
        width: 60px;
        height: 60px;
        padding: 5px;
    }
    
    .ai-tool-text h3 {
        font-size: 1.1rem;
    }
    
    .ai-tool-text p {
        font-size: 0.85rem;
    }
}

/* Styles pour la section Technologies */
.technologies {
    margin-top: 3rem;
}

.tech-panel {
    padding: 2rem;
}

.tech-subtitle {
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-color);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

/* Pour centrer la dernière ligne si elle est incomplète */
.tech-grid::after {
    content: '';
    grid-column: span 1;
}

@media (min-width: 1200px) {
    .tech-grid {
        grid-template-columns: repeat(4, minmax(240px, 1fr));
        gap: 2rem;
    }
    
    .tech-grid::after {
        grid-column: span 4;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .tech-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .tech-grid::after {
        grid-column: span 3;
    }
}

@media (max-width: 767px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tech-grid::after {
        grid-column: span 2;
    }
    
    .tech-item {
        padding: 1.25rem 0.75rem;
    }
    
    .tech-logo {
        width: 55px;
        height: 55px;
        padding: 8px;
    }
    
    .tech-logo img[src$=".svg"] {
        width: 85%;
        height: 85%;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid::after {
        grid-column: span 1;
    }
    
    .tech-logo {
        width: 45px;
        height: 45px;
        padding: 6px;
    }
    
    .tech-logo img[src$=".svg"] {
        width: 80%;
        height: 80%;
    }
    
    .tech-info h3 {
        font-size: 1rem;
    }
    
    .tech-info p {
        font-size: 0.8rem;
    }
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.8rem 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 1 !important;
    transform: translateY(0);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    animation: techItemAppear 0.8s ease forwards;
    animation-fill-mode: both;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

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

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.25);
    border-color: rgba(var(--accent-color-rgb), 0.4);
    z-index: 2;
}

.tech-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

/* Styles spécifiques pour les différents formats d'images */
.tech-logo img[src$=".svg"] {
    width: 90%;
    height: 90%;
}

.tech-logo img[src$=".png"] {
    padding: 2px;
}

.tech-logo img[src$=".avif"] {
    width: 85%;
    height: 85%;
}

.tech-item:hover .tech-logo img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.tech-info {
    position: relative;
    z-index: 2;
}

.tech-info h3 {
    margin: 0 0 0.4rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.tech-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.tech-item:hover .tech-info h3 {
    color: var(--accent-color);
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.1);
    }
    50% {
        box-shadow: 0 0 12px rgba(var(--accent-color-rgb), 0.2);
    }
    100% {
        box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.1);
    }
}

/* Style beaucoup plus spécifique pour le logo Cursor */
.cursor-logo img {
    object-fit: contain !important;
    object-position: center !important;
    width: 75% !important;
    height: 75% !important;
    transform: none !important;
    margin: 0 !important;
    border-radius: 6px !important;
}

/* Effet de glow harmonisé pour les cartes AI uniquement */
.ai-tool:hover {
    box-shadow: 0 5px 25px rgba(var(--accent-color-rgb), 0.2);
    border-color: rgba(var(--accent-color-rgb), 0.4);
    animation: glowPulse 2s infinite;
}

/* Style cohérent pour tous les logos */
.ai-tool-logo,
.tech-logo {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ai-tool-logo::after,
.tech-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.ai-tool:hover .ai-tool-logo::after,
.tech-item:hover .tech-logo::after {
    left: 100%;
    opacity: 1;
}

/* Styles spécifiques pour formats particuliers */
img[src$=".webp"] {
    border-radius: 8px;
}

img[src$=".jpg"] {
    border-radius: 6px;
}

/* Restauration de l'animation au survol pour les logos */
.tech-item:hover .tech-logo {
    transform: scale(1.12);
    background-color: rgba(255, 255, 255, 0.12);
}

/* Délais d'animation pour chaque élément */
.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.2s; }
.tech-item:nth-child(3) { animation-delay: 0.3s; }
.tech-item:nth-child(4) { animation-delay: 0.4s; }
.tech-item:nth-child(5) { animation-delay: 0.5s; }
.tech-item:nth-child(6) { animation-delay: 0.6s; }
.tech-item:nth-child(7) { animation-delay: 0.7s; }

/* Style spécifique pour le logo Claude */
.claude-logo img {
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
}

/* Assurer que les éléments tech-item soient toujours visibles */
.tech-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.tech-item:hover::after {
    opacity: 1;
}

/* CSS critiques pour garantir la visibilité */
.tech-item {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.highlight-text {
    color: var(--accent-color);
    font-size: 1.25rem;
    text-align: center;
    margin: 0.5rem 0 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: rgba(var(--accent-color-rgb), 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.highlight-text strong {
    font-weight: 600;
} 