/* Design system futuriste high-tech - Sci-fi moderne */

:root {
    /* Couleurs de base - Thème sombre high-tech */
    --background: hsl(220, 15%, 8%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(220, 15%, 10%);
    --card-foreground: hsl(210, 40%, 98%);
    
    /* Couleurs principales - Bleu électrique */
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(220, 15%, 8%);
    
    /* Couleurs secondaires - Violet néon */
    --secondary: hsl(270, 60%, 60%);
    --secondary-foreground: hsl(210, 40%, 98%);
    
    /* Couleurs atténuées */
    --muted: hsl(220, 15%, 15%);
    --muted-foreground: hsl(215, 25%, 70%);
    
    /* Couleurs d'accent - Cyan */
    --accent: hsl(180, 100%, 50%);
    --accent-foreground: hsl(220, 15%, 8%);
    
    /* Couleurs néon spéciales */
    --neon-blue: hsl(217, 91%, 60%);
    --neon-purple: hsl(270, 60%, 60%);
    --neon-cyan: hsl(180, 100%, 50%);
    --neon-pink: hsl(320, 85%, 70%);
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 60%), hsl(270, 60%, 60%));
    --gradient-accent: linear-gradient(90deg, hsl(180, 100%, 50%), hsl(217, 91%, 60%));
    --gradient-hero: linear-gradient(135deg, hsl(220, 15%, 8%), hsl(220, 15%, 12%));
    
    /* Ombres néon */
    --shadow-neon-blue: 0 0 20px hsl(217, 91%, 60%, 0.5);
    --shadow-neon-purple: 0 0 20px hsl(270, 60%, 60%, 0.5);
    --shadow-neon-cyan: 0 0 20px hsl(180, 100%, 50%, 0.5);
    --shadow-glow: 0 0 40px hsl(217, 91%, 60%, 0.3);
    
    /* Bordures et éléments */
    --border: hsl(220, 15%, 20%);
    --radius: 0.75rem;
    
    /* Animations et transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-glow: all 0.5s ease-in-out;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 10px currentColor;
}

/* Header */
.header {
    position: relative;
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--background) 0%, hsl(220, 15%, 12%) 100%);
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.professional-title {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid hsl(217, 91%, 60%, 0.3);
    border-radius: 2rem;
    background: hsl(220, 15%, 10%, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
}

.title-text {
    font-family: 'Fira Code', monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--primary);
    font-weight: 500;
}

/* Animation de défilement des compétences */
.skills-container {
    max-width: 60rem;
    margin: 3rem auto 0;
    overflow: hidden;
    position: relative;
}

.scrolling-skills {
    background: hsl(220, 15%, 10%, 0.5);
    border: 1px solid hsl(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.skills-track {
    display: flex;
    animation: scrollInfinite 30s linear infinite;
    white-space: nowrap;
}

.skill-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    background: hsl(217, 91%, 60%, 0.1);
    border: 1px solid hsl(217, 91%, 60%, 0.3);
    border-radius: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Particules flottantes */
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 25%;
    width: 12px;
    height: 12px;
    background: var(--accent);
}

.particle-2 {
    top: 40%;
    right: 33%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    opacity: 0.4;
    animation-delay: 1s;
}

.particle-3 {
    top: 60%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    opacity: 0.3;
    animation-delay: 2s;
}

/* Section principale */
.main-section {
    padding: 5rem 0;
    position: relative;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
}

/* Photo de profil */
.profile-section {
    display: flex;
    justify-content: center;
}

.profile-container {
    position: relative;
}

.profile-image-wrapper {
    width: 20rem;
    height: 20rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid hsl(217, 91%, 60%, 0.3);
    box-shadow: var(--shadow-neon-blue);
    transition: var(--transition-glow);
    position: relative;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: hologramShine 3s ease-in-out infinite;
}

.profile-image-wrapper:hover {
    box-shadow: var(--shadow-neon-cyan);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-glow {
    position: absolute;
    inset: -1rem;
    border-radius: 1.5rem;
    background: linear-gradient(45deg, 
        hsl(217, 91%, 60%, 0.2), 
        hsl(180, 100%, 50%, 0.2), 
        hsl(270, 60%, 60%, 0.2)
    );
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

/* Bio section */
.bio-section {
    space-y: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bio-text {
    margin-bottom: 2rem;
}

.bio-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.highlight {
    font-weight: 600;
}

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

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

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    background: hsl(220, 15%, 10%, 0.3);
    transition: var(--transition-smooth);
}

.stat-primary {
    border: 1px solid hsl(217, 91%, 60%, 0.2);
}

.stat-accent {
    border: 1px solid hsl(180, 100%, 50%, 0.2);
}

.stat-secondary {
    border: 1px solid hsl(270, 60%, 60%, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-primary .stat-number {
    color: var(--primary);
}

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

.stat-secondary .stat-number {
    color: var(--secondary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Section réseaux sociaux */
.social-section {
    padding: 4rem 0;
    background: hsl(220, 15%, 10%, 0.1);
    text-align: center;
}

.rotating-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: hsl(220, 15%, 10%, 0.3);
    border: 1px solid hsl(217, 91%, 60%, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.icon-circle:hover {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: var(--shadow-neon-blue);
    color: var(--accent);
}

.icon-circle svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: var(--transition-smooth);
}

/* Section CV */
.cv-section {
    padding: 5rem 0;
    text-align: center;
}

.cv-card {
    max-width: 24rem;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: hsl(220, 15%, 10%, 0.3);
    border: 1px solid hsl(217, 91%, 60%, 0.3);
    border-radius: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    animation: pulseNeon 2s ease-in-out infinite;
}

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

.cv-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.cv-icon svg {
    width: 100%;
    height: 100%;
}

.cv-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.cv-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.cv-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px hsl(217, 91%, 60%, 0.3);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.modal {
    background: var(--card);
    border: 1px solid hsl(217, 91%, 60%, 0.3);
    border-radius: 1rem;
    max-width: 50rem;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: hsl(220, 15%, 10%, 0.5);
}

.modal-header h3 {
    color: var(--foreground);
    font-size: 1.25rem;
    margin: 0;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--foreground);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* CV Document */
.cv-document {
    background: hsl(210, 40%, 98%);
    color: hsl(220, 15%, 8%);
    padding: 3rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.cv-header-doc {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid hsl(217, 91%, 60%);
}

.cv-header-doc h1 {
    font-size: 2.5rem;
    color: hsl(217, 91%, 60%);
    margin-bottom: 0.5rem;
}

.cv-subtitle {
    font-size: 1.25rem;
    color: hsl(270, 60%, 60%);
    margin-bottom: 1rem;
    font-weight: 600;
}

.cv-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: hsl(220, 15%, 40%);
}

.cv-section-doc {
    margin-bottom: 2rem;
}

.cv-section-doc h3 {
    font-size: 1.5rem;
    color: hsl(217, 91%, 60%);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid hsl(217, 91%, 60%, 0.3);
}

.cv-item {
    margin-bottom: 1.5rem;
}

.cv-item h4 {
    font-size: 1.125rem;
    color: hsl(220, 15%, 20%);
    margin-bottom: 0.5rem;
}

.cv-item p {
    color: hsl(220, 15%, 40%);
    margin-bottom: 0.25rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: hsl(217, 91%, 60%, 0.1);
    color: hsl(217, 91%, 50%);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid hsl(217, 91%, 60%, 0.2);
    background: hsl(220, 15%, 10%, 0.05);
    text-align: center;
}

.footer-content {
    space-y: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-separator {
    color: var(--muted-foreground);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scrollInfinite {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes pulseNeon {
    0%, 100% {
        box-shadow: 0 0 20px hsl(217, 91%, 60%, 0.5);
    }
    50% {
        box-shadow: 0 0 40px hsl(217, 91%, 60%, 0.8), 0 0 60px hsl(217, 91%, 60%, 0.3);
    }
}

@keyframes hologramShine {
    0% {
        background-position: -100% -100%;
    }
    100% {
        background-position: 100% 100%;
    }
}

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


a.imprime-cv-btn {
  position: fixed;
  top: 1rem;
  right: 8.5rem;
  padding: 0.5rem 1rem;
  background: #15ade4;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(38, 255, 0, 0.7),
    0 0 20px rgba(255, 0, 128, 0.5),
    0 0 30px rgba(0, 255, 0, 0.3);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.5px;
  transition: background 0.3s, box-shadow 0.4s;
}
a.imprime-cv-btn:hover {
  background: rgba(255, 0, 128, 0.7);
  box-shadow:
    0 0 14px rgba(18, 98, 134, 0.9),
    0 0 28px rgba(18, 150, 77, 0.7),
    0 0 40px rgba(158, 207, 23, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .profile-image-wrapper {
        width: 16rem;
        height: 16rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rotating-icons {
        gap: 1rem;
    }
    
    .cv-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}