:root {
    /* Palette de couleurs */
    --primary: #acb6f4;
    --secondary: #c9b9ea;
    --accent: #e8bfe1;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #666666;
    
    /* Couleurs de fond */
    --bg-body: #ffffff;
    --bg-section: #f8f9ff;
    --bg-card: #ffffff;
    
    /* Effets glassy */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    
    /* Espacements */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 80px;
    --spacing-xl: 120px;
    
    /* Bordures */
    --border-radius: 24px;
    --border-radius-lg: 40px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SCROLL FULL-PAGE */
html {
    scroll-behavior: smooth;
    cursor: none;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Chaque section = 100% viewport */
.section {
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==================== */
/* CURSEUR INTELLIGENT - TOUJOURS VISIBLE */
/* ==================== */

.cursor-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #e8bfe1, #acb6f4); /* Couleur par défaut */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(232, 191, 225, 0.8);
}

.cursor-outline {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(232, 191, 225, 0.9);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    opacity: 0.7;
    box-shadow: 0 0 25px rgba(232, 191, 225, 0.6);
}

/* PAILLETTES */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(232, 191, 225, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: left 0.4s ease-out, top 0.4s ease-out, background 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(232, 191, 225, 0.5);
}

/* Effet hover */
.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(1.8);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1.3);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 1;
}

/* ==================== */
/* HERO EFFECTS SIMPLIFIED */
/* ==================== */

.hero {
  background: 
    radial-gradient(ellipse at 30% 30%, 
      rgba(138, 43, 226, 0.4) 0%,
      transparent 60%
    ),
    radial-gradient(ellipse at 70% 70%, 
      rgba(172, 182, 244, 0.3) 0%,
      transparent 60%
    ),
    linear-gradient(
      135deg,
      #f5f7ff 0%,
      #eef1ff 30%,
      #f0e6ff 70%,
      #f7f0ff 100%
    );
  position: relative;
  overflow: hidden;
}

/* Effet de texture granuleux (iOS style) */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(255, 255, 255, 0.03) 2px
    );
  opacity: 0.3;
  pointer-events: none;
}

/* 3. Effet hover sur la carte */
.hero-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(138, 43, 226, 0.2);
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.nav-wrapper {
    position: fixed;
    top: var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
}

nav {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-xs) var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    transition: var(--transition-smooth);
}

.nav-link {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link i {
    font-size: 1.1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition-quick);
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}



.hero-bg-text {
    position: absolute;
    font-size: 30vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
    line-height: 1;
    white-space: nowrap;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: -0.02em;
    pointer-events: none;
    user-select: none;
}

/* Image centrale */
.hero-character {
    position: absolute;
    bottom: -2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.hero-character img {
    width: 140%;
    height: 140%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Texte à GAUCHE (blanc) */
.hero-left {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 500px;
    text-align: left;
}

.hero-left h1 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-left .hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

/* Box à DROITE (blanche) */
.hero-right {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 500px;
}


.hero-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-card h3 {
    color: var(--black);
    margin-bottom: var(--spacing-md);
}

.hero-card p {
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}



/* Bouton */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: none;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(172, 182, 244, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(172, 182, 244, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

.btn i {
    font-size: 1.1rem;
    transition: var(--transition-quick);
}

.btn:hover i {
    transform: translateX(5px);
}

/* Section Compétences avec Chibi */
.skills-section {
    background: var(--bg-body);
    position: relative;
    overflow: visible;
}

/* Skills Section - Chibi avec overlay head/body */
.skills-chibi {
    position: absolute;
    right: 72%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 550px;
    height: 650px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Conteneur pour les deux images */
.skills-chibi .chibi-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image du corps */
.skills-chibi .chibi-body {
    position: absolute;
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.skills-chibi .chibi-head {
    position: absolute;
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
    z-index: 2;
    animation: subtleHeadTilt 12s ease-in-out infinite;
}

@keyframes subtleHeadTilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(4deg) translate(2px, 9px); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-4deg); }
}

.skills-section .container {
    position: relative;
    z-index: 10;
    padding-top: 100px;
    padding-bottom: var(--spacing-lg);
}

.skills {
    background: var(--bg-section);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    backdrop-filter: blur(10px);
    background: rgba(248, 249, 255, 0.9);
    box-shadow: 0 10px 40px rgba(172, 182, 244, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.skill-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: none;
    position: relative;
    z-index: 5;
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(172, 182, 244, 0.15);
    border-color: var(--primary);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(172, 182, 244, 0.1), rgba(201, 185, 234, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-smooth);
}

.skill-item:hover .skill-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: scale(1.05);
}

.skill-icon i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition-smooth);
}

.skill-item:hover .skill-icon i {
    color: var(--white);
    background: none;
}

/* Section Projets */
.projects-section {
    background: var(--bg-section);
    position: relative;
}

.projects-section .container {
    padding-top: 100px;
    padding-bottom: var(--spacing-lg);
    max-height: 100vh;
    overflow-y: auto;
}

.projects-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
    cursor: none;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 182, 244, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: none;
    position: relative;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(172, 182, 244, 0.2);
    border-color: var(--primary);
}

.project-image {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: none;
    transition: var(--transition-smooth);
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .view-project {
    transform: translateY(0);
    opacity: 1;
}

.project-content {
    padding: var(--spacing-md);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-sm);
}

.project-tag {
    background: linear-gradient(135deg, rgba(172, 182, 244, 0.1), rgba(201, 185, 234, 0.1));
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-quick);
}

.project-tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
}

/* Section Contact */
.contact-section {
    background: var(--bg-body);
    position: relative;
}

.contact-section .container {
    padding-top: 40px !important;
    padding-bottom: var(--spacing-md) !important;
    max-height: none;
    overflow: visible;
}

#contact h2 {
    margin-top: -200px !important;
}



.contact-container {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
}

.contact-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: none;
    min-height: 60px;
}

.contact-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.95);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(172, 182, 244, 0.1), rgba(201, 185, 234, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.3;
}

.contact-form {
    position: absolute;
    right: 5%;
    top: 250px;
    width: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--black);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-quick);
    cursor: none;
}

#message {
    min-height: 80px;
    max-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    padding: 14px 24px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* CHIBI CONTACT */
.contact-chibi {
    position: absolute;
    right: 13%;
    bottom: -3%;
    z-index: 100;
    width: 1200px;
    height: 1300px;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.contact-chibi img {
    width: 100%;
    height: auto;
    max-height: 1500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.25))
           brightness(1.05)
           contrast(1.1);
    opacity: 0.95;
    animation: waveMessage 7s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Effet de lueur */
.contact-chibi::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180%;
    height: 50px;
    background: radial-gradient(ellipse at center, 
        rgba(172, 182, 244, 0.25) 0%,
        rgba(201, 185, 234, 0.2) 30%,
        rgba(232, 191, 225, 0.15) 60%,
        transparent 85%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
}

/* Footer */
footer {
    background: var(--bg-section);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    height: 100%;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: none;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(172, 182, 244, 0.3);
}

.copyright {
    text-align: center;
    color: var(--gray);
    font-size: 1rem;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modal Glassy pour projets */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    margin: 5vh auto;
    padding: var(--spacing-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.2rem;
    cursor: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.modal-tech {
    background: linear-gradient(135deg, rgba(172, 182, 244, 0.1), rgba(201, 185, 234, 0.1));
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* Animation Wave Message */
@keyframes waveMessage {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    15% { transform: translateY(-12px) rotate(2deg); }
    30% { transform: translateY(0) rotate(0deg); }
    45% { transform: translateY(-8px) rotate(-1deg); }
    60% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(1deg); }
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .skills-chibi {
        width: 300px;
        right: 1%;
    }
    
    .contact-chibi {
        width: 280px;
        height: 470px;
        right: 2%;
    }
    
    .contact-chibi img {
        max-height: 470px;
    }
    
    .hero-left, .hero-right {
        max-width: 400px;
    }
}

@media screen and (max-width: 1024px) {
    .skills-chibi {
        display: none;
    }
    
    .contact-chibi {
        width: 250px;
        height: 420px;
    }
    
    .contact-chibi img {
        max-height: 420px;
    }
    
    .contact-chibi {
        display: none;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-character {
        width: 400px;
        height: 400px;
    }
    
    .contact-container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-left, .hero-right {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    .hero-left {
        padding-top: 180px;
    }
    
    .hero-right {
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-character {
        width: 300px;
        height: 300px;
        top: 180px;
    }
}

@media screen and (max-width: 768px) {
    .nav-wrapper {
        width: calc(100% - 40px);
    }
    
    nav {
        justify-content: space-between;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 12px;
    }
    
    .contact-chibi {
        width: 200px;
        height: 350px;
        position: relative;
        right: auto;
        bottom: auto;
        margin: 0 auto 30px;
    }
    
    .contact-chibi img {
        max-height: 350px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        padding: var(--spacing-lg);
    }
    
    html {
        scroll-snap-type: none;
        cursor: auto;
    }
    
    .cursor-dot,
    .cursor-outline,
    .cursor-trail {
        display: none;
    }
    
    .btn,
    .project-card,
    .contact-item,
    .social-link,
    .form-control {
        cursor: pointer;
    }
}

@media screen and (max-width: 480px) {
    .section {
        height: auto;
        min-height: 100vh;
        padding: var(--spacing-lg) 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-character {
        width: 250px;
        height: 250px;
    }
    
    .skills {
        padding: var(--spacing-md);
    }
    
    .contact-form {
        padding: var(--spacing-md);
        width: 90%;
        right: 5%;
        left: 5%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ========================================== */
/* SOLUTION CURSEUR DANS MODAL - FORCER Z-INDEX */
/* ========================================== */

/* 1. Augmenter le z-index du curseur GLOBALEMENT */
.cursor-dot {
    z-index: 99999 !important; /* Augmenté drastiquement */
}

.cursor-outline {
    z-index: 99998 !important; /* Augmenté drastiquement */
}

.cursor-trail {
    z-index: 99997 !important; /* Augmenté drastiquement */
}

/* 2. S'assurer que le modal n'écrase pas le curseur */
.project-modal {
    /* Le modal lui-même ne doit pas créer de nouveau stacking context */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 3. Le backdrop avec flou séparé */
.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 10000;
}

/* 4. Le contenu du modal */
.modal-content {
    z-index: 10001; /* Supérieur au backdrop */
}

/* 5. Forcer la visibilité et couleur du curseur */
.project-modal .cursor-dot {
    background: linear-gradient(135deg, #e8bfe1, #acb6f4) !important;
    box-shadow: 0 0 20px rgba(232, 191, 225, 0.9) !important;
    transform: translate(-50%, -50%) scale(1.2) !important;
}

.project-modal .cursor-outline {
    border-color: rgba(232, 191, 225, 0.9) !important;
    box-shadow: 0 0 35px rgba(232, 191, 225, 0.7) !important;
}

.project-modal .cursor-trail {
    background: rgba(232, 191, 225, 0.6) !important;
}