:root {
    --primary: #0a0f1a;   /* Fond bleu nuit */
    --secondary: #0e1525; /* Fond secondaire */
    --text: #FFFFFF;      /* couleur texte */
    --golden-ratio: 1.618;

    /* Nouvelle palette optimisée */
    --main-color: #3ddc97; /* Vert moderne */
    --main-color-light: #5ef0c1; /* Version claire */
    --main-color-dark: #2cca61; /* Version foncée */
    --main-color-accent: #217a4a; /* Accent */
    
    /* Couleurs complémentaires */
    --complementary-1: #ff6b6b; /* Rouge doux */
    --complementary-2: #4cc9f0; /* Bleu clair */
    --complementary-3: #f8961e; /* Orange vif */
    
    /* Dégradé amélioré */
    --main-gradient: linear-gradient(
        135deg,
        var(--main-color-dark) 0%,
        var(--main-color) 50%,
        var(--main-color-light) 100%
    );
    
    /* Effets de lumière */
    --glow-color: rgba(61, 220, 151, 0.3);
}

body {
    font-family: 'Syne', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(46, 109, 164, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(46, 109, 164, 0.15) 0%, transparent 25%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.8"/><circle cx="30" cy="75" r="0.3" fill="white" opacity="0.8"/><circle cx="50" cy="20" r="0.4" fill="white" opacity="0.8"/><circle cx="70" cy="60" r="0.5" fill="white" opacity="0.8"/><circle cx="90" cy="40" r="0.3" fill="white" opacity="0.8"/><circle cx="15" cy="50" r="0.4" fill="white" opacity="0.8"/><circle cx="80" cy="15" r="0.3" fill="white" opacity="0.8"/><circle cx="25" cy="90" r="0.5" fill="white" opacity="0.8"/><circle cx="60" cy="30" r="0.3" fill="white" opacity="0.8"/></svg>');
    background-attachment: fixed;
    font-size: 20px;
    line-height: 1.7;
}

/* Animation de fond améliorée */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

.golden-w {
    width: calc(100% / var(--golden-ratio));
}

.golden-h {
    height: calc(100% / var(--golden-ratio));
}

.section {
    min-height: 100vh;
    padding: 10vh 5vw;
    position: relative;
    overflow: hidden;
}

/* Animations scroll améliorées */
.slide-in-left {
    opacity: 0;
    transform: translateX(-30vw);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30vw);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-top {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Animation flottement améliorée */
.float {
    animation: float 6s ease-in-out infinite;
}

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

/* Spirale dorée avec effet de lumière */
.golden-spiral {
    position: absolute;
    width: 80vmin;
    height: 80vmin;
    background: radial-gradient(circle at center, transparent 60%, rgba(61, 220, 151, 0.15) 60.1%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Effets texte améliorés */
.text-main-stroke {
    font-weight: 800;
    -webkit-text-stroke: 1px var(--main-color-accent);
    color: transparent;
    text-shadow: 0 0 10px var(--glow-color);
}

.text-main {
    background: var(--main-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px var(--glow-color);
}

/* Boutons améliorés avec effets 3D */
.btn-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.8s ease;
}

.btn-hover:hover::before {
    left: 100%;
}

.btn-hover:hover {
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 0 15px 30px rgba(61, 220, 151, 0.4);
}

/* Effet de grille amélioré */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(61, 220, 151, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 220, 151, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Backgrounds avec effets de lumière */
.bg-main {
    background: var(--main-gradient);
    color: #fff;
    box-shadow: 0 0 30px var(--glow-color);
}

.border-main {
    border: 2px solid transparent;
    background: linear-gradient(var(--primary), var(--primary)) padding-box,
                var(--main-gradient) border-box;
    border-radius: 0.5rem;
}

/* Effet de particules amélioré */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(61, 220, 151, 0.6);
    border-radius: 50%;
    filter: blur(1px);
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    50% { transform: translateY(-50vh) rotate(180deg) scale(1.2); opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg) scale(1); opacity: 0; }
}

/* Effet de lumière amélioré */
.glow-effect {
    position: relative;
    z-index: 1;
    box-shadow: none !important;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(61, 220, 151, 0.3) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease, width 0.6s ease, height 0.6s ease;
}

.glow-effect:hover::after {
    opacity: 1;
    width: 140%;
    height: 140%;
}

/* Animation de pulsation améliorée */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(61, 220, 151, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.pulse {
    animation: pulse 3s infinite;
}

/* Effets de transition entre sections */
.section-transition {
    position: relative;
    overflow: hidden;
}

.section-transition::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--primary), transparent);
    z-index: 2;
}

/* Effet de parallaxe amélioré */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Animation de rotation avec effet de lumière */
@keyframes spin-slow {
    0% { transform: rotate(0deg); box-shadow: 0 0 10px var(--main-color); }
    50% { box-shadow: 0 0 30px var(--main-color-light); }
    100% { transform: rotate(360deg); box-shadow: 0 0 10px var(--main-color); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Effet de feuilles/forêt amélioré */
.leaf-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,10 Q40,5 50,20 Q60,5 70,10 Q80,15 75,30 Q90,40 70,50 Q90,60 75,70 Q80,85 70,90 Q60,95 50,80 Q40,95 30,90 Q20,85 25,70 Q10,60 30,50 Q10,40 25,30 Q20,15 30,10" fill="none" stroke="%233ddc97" stroke-width="0.3" opacity="0.15"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Style pour les éléments dorés */
.golden-element {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    animation: goldenGlow 3s infinite alternate;
}

@keyframes goldenGlow {
    from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.7); }
    to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.5); }
}

/* Barre de progression gamifiée */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--main-gradient);
    border-radius: 4px;
    position: relative;
    transition: width 1.5s ease-out;
}

.progress-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);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Badges gamifiés */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    color: #3ddc97;
    border: 1px solid #3ddc97;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Cartes 3D */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s ease;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Système de niveau gamifié */
.level-indicator {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.level-progress {
    height: 100%;
    background: var(--main-gradient);
    border-radius: 3px;
    width: 0%;
    position: relative;
    transition: width 0.5s ease-out;
}

.level-progress.animate-progress {
    animation: progressPulse 1s ease-out;
}

@keyframes progressPulse {
    0% { transform: scaleX(1); }
    50% { transform: scaleX(1.05); }
    100% { transform: scaleX(1); }
}

.level-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: levelShine 3s infinite;
}

@keyframes levelShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Animation de confetti */
@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--main-color);
    opacity: 0;
    z-index: 9999;
    animation: confetti-fall 3s ease-in-out forwards;
}

/* Effet de halo */
.halo {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.3;
    z-index: 0;
    display: none !important;
}

/* Effet de morphing */
@keyframes morph {
    0% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
}

.morph-effect {
    animation: morph 8s ease-in-out infinite;
}

/* S'assurer que toutes les images utilisent object-fit */
.card-3d img, .morph-effect img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Tooltip personnalisé */
.custom-tooltip {
    position: relative;
}

.custom-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: max-content;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.custom-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

@font-face {
    font-family: 'Lightning';
    src: url('https://fonts.cdnfonts.com/s/19795/lightning.woff') format('woff');
}

.font-lightning {
    font-family: 'Lightning', sans-serif;
    letter-spacing: 1px;
}

@keyframes electric {
    0% { color: #facc15; text-shadow: 0 0 5px #facc15; }
    50% { color: #fde047; text-shadow: 0 0 10px #fde047; }
    100% { color: #facc15; text-shadow: 0 0 5px #facc15; }
}

.animate-electric {
    animation: electric 1.5s infinite;
}

/* Correction pour la photo "Qui suis-je" */
.about-photo-container {
    position: relative;
    transition: all 0.5s ease;
}

.about-photo-container:hover {
    transform: translateY(-5px);
}

.about-photo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background: linear-gradient(var(--primary), var(--primary)) padding-box,
                var(--main-gradient) border-box;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-photo-container:hover::before {
    opacity: 1;
}

/* Correction pour les boutons des offres */
.offer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.offer-card:hover {
    transform: translateY(-5px) scale(1.02); /* Effet plus subtil */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.offer-content {
    flex: 1;
}

.offer-button {
    margin-top: auto;
}

/* Correction spécifique pour la carte du milieu */
.offer-card.transform.scale-105 {
    transform: none !important;
    height: 100%;
    min-height: 100%;
}

/* Style du badge "RECOMMANDÉ" */
.offer-card .bg-green-200\/20 {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* Correction pour la section "Travaillons ensemble" en mobile */
@media (max-width: 768px) {
    #contact .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #contact .slide-in-left, #contact .slide-in-right {
        text-align: center;
    }
    
    #contact .flex.justify-center {
        justify-content: center;
    }
}

/* Effet Glow pour les offres */
.glow-offer {
    position: relative;
    transition: all 0.3s ease;
}

.glow-offer::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes offer-glow {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.glow-offer:hover::before {
    opacity: 1;
    animation: offer-glow 3s infinite;
}

.glow-offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Animation de base */
@keyframes textReveal {
    from {
        background-position: -200% 0;
        opacity: 0.5;
    }
    to {
        background-position: 200% 0;
        opacity: 1;
    }
}

/* Classes spécifiques */
.golden-phi {
    font-weight: bold;
    background: linear-gradient(to right, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Style pour tous les éléments highlight */
[class^="highlight-"] {
    font-weight: bold;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    background-position: -200% 0;
    display: inline-block;
    padding: 0 2px;
}

/* Animation quand visible */
[data-scroll-animation].animated [class^="highlight-"] {
    opacity: 1;
    background-position: 100% 0;
}

/* Couleurs spécifiques pour chaque highlight */
.highlight-name { 
    background-image: linear-gradient(to right, #a855f7, #ec4899, #a855f7);
}

.highlight-dev { 
    background-image: linear-gradient(to right, #06b6d4, #3b82f6, #06b6d4);
}

.highlight-story { 
    background-image: linear-gradient(to right, #ec4899, #8b5cf6, #ec4899);
}

.highlight-study { 
    background-image: linear-gradient(to right, #10b981, #059669, #10b981);
}

.highlight-school { 
    background-image: linear-gradient(to right, #0ea5e9, #06b6d4, #0ea5e9);
}

.highlight-role { 
    background-image: linear-gradient(to right, #ef4444, #f97316, #ef4444);
}

.highlight-visibility { 
    background-image: linear-gradient(to right, #8b5cf6, #7c3aed, #8b5cf6);
}

.highlight-design { 
    background-image: linear-gradient(to right, #06b6d4, #3b82f6, #06b6d4);
}

.highlight-tech { 
    background-image: linear-gradient(to right, #10b981, #059669, #10b981);
}

.highlight-narration { 
    background-image: linear-gradient(to right, #ec4899, #8b5cf6, #ec4899);
}

.highlight-impact { 
    background-image: linear-gradient(to right, #8b5cf6, #7c3aed, #8b5cf6);
}

.golden-ratio {
    background: linear-gradient(to right, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Animation des sections */
.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.slide-in-top {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Style spécifique pour la section about */
.about-section {
    position: relative;
}

.about-section p {
    line-height: 1.8;
}

/* Animation séquentielle des spans */
.about-section [class^="highlight-"] {
    --i: 0;
    animation-delay: calc(var(--i) * 0.1s);
}

/* Menu mobile amélioré */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
    
    /* Ajustements généraux */
    .section {
        padding: 6vh 5vw;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    /* Formulaire */
    #contact .grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Cartes projets */
    .project-card {
        flex-direction: column;
    }

    /* Correction pour la section "Qui suis-je" en mobile */
    #about .grid {
        grid-template-columns: 1fr;
    }
    
    #about .slide-in-right {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* Style pour l'option vidéo */
.js-video-option-trigger {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.js-video-option-trigger::after {
    content: "+";
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--main-color);
}

.js-video-option-trigger.active::after {
    content: "-";
}

.js-video-option-trigger:hover {
    transform: translateX(5px);
}

.js-video-option-trigger i {
    transition: transform 0.3s ease;
}

.js-video-option-trigger:hover i {
    transform: scale(1.2);
}

/* Style pour l'option Pareto */
.js-pareto-option-trigger {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.js-pareto-option-trigger::after {
    content: "+";
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: var(--main-color);
}

.js-pareto-option-trigger.active::after {
    content: "-";
}

.js-pareto-option-trigger:hover {
    transform: translateX(5px);
}

.js-pareto-option-trigger i {
    transition: transform 0.3s ease;
}

.js-pareto-option-trigger:hover i {
    transform: scale(1.2);
}

.js-video-option-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    opacity: 0;
}

.js-video-option-details.open {
    max-height: 200px;
    opacity: 1;
}

.js-video-option-details.hidden {
    display: none;
}

.js-video-option-details p {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.js-video-option-details p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--main-color);
}

.text-glow-green {
    text-shadow: 0 0 10px rgba(61, 220, 151, 0.5);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(61, 220, 151, 0.5); }
    50% { text-shadow: 0 0 15px rgba(61, 220, 151, 0.8); }
}

/* Correction pour mobile */
@media (max-width: 768px), (-webkit-touch-callout: none) {
    [class^="highlight-"] {
        -webkit-text-fill-color: initial;
        background-image: none !important;
        color: var(--main-color);
        opacity: 1 !important;
        background-position: 0 0 !important;
    }
    
    /* Forcer l'état visible sur mobile */
    .slide-in-left, .slide-in-right, .slide-in-top {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Ajouts */
@keyframes glitch {
    0% { text-shadow: 2px 0 #ff6b6b, -2px 0 #4cc9f0; }
    25% { text-shadow: -2px 0 #ff6b6b, 2px 0 #4cc9f0; }
    50% { text-shadow: 2px 0 #8b5cf6, -2px 0 #3ddc97; }
    100% { text-shadow: 2px 0 #ff6b6b, -2px 0 #4cc9f0; }
}
  
.glitch-title {
    position: relative;
    display: inline-block;
}
  
.glitch-title::before, 
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}
  
.glitch-title::before {
    color: #ff6b6b;
    animation: glitch 3s infinite alternate-reverse;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
  
.glitch-title::after {
    color: #4cc9f0;
    animation: glitch 2s infinite alternate;
    z-index: -2;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

/* Augmentation générale */
body {
  font-size: 20px; /* Augmenté de 18px à 20px */
  line-height: 1.7; /* Meilleure lisibilité */
}

/* Headers */
h1 {
  font-size: 3rem; /* Augmenté de 2.8rem à 3rem */
}

h2 {
  font-size: 2.6rem; /* Augmenté de 2.4rem à 2.6rem */
}

h3 {
  font-size: 2rem; /* Augmenté de 1.8rem à 2rem */
}

/* Textes principaux */
p {
  font-size: 1.2rem; /* Augmenté de 1.1rem à 1.2rem */
  line-height: 1.7; /* Meilleure lisibilité */
}

/* Spécifiques pour les sections */
.section p {
  font-size: 1.3rem; /* Augmenté de 1.2rem à 1.3rem */
}

.offer-card p {
  font-size: 1.2rem; /* Augmenté de 1.1rem à 1.2rem */
}

/* Navigation mobile */
#mobileMenu a {
  font-size: 2rem !important; /* Augmenté de 1.7rem à 2rem */
}

/* Formulaire */
input, textarea, button {
  font-size: 1.2rem !important; /* Augmenté de 1.1rem à 1.2rem */
}

/* Badges et petits textes */
.badge {
  font-size: 0.9rem; /* Augmenté de 0.75rem à 0.9rem */
}

/* Liens et éléments de navigation */
a {
  font-size: 1.2rem; /* Augmenté de 1.1rem à 1.2rem */
}

/* Ajustements pour les titres de sections */
.text-5xl {
  font-size: 3.5rem !important; /* Augmenté de 3rem à 3.5rem */
}

.text-6xl {
  font-size: 4rem !important; /* Augmenté de 3.5rem à 4rem */
}

.text-7xl {
  font-size: 4.5rem !important; /* Augmenté de 4rem à 4.5rem */
}

.text-8xl {
  font-size: 5rem !important; /* Augmenté de 4.5rem à 5rem */
}

/* Ajustements pour les textes de contenu */
.text-xl {
  font-size: 1.4rem !important; /* Augmenté de 1.25rem à 1.4rem */
}

.text-2xl {
  font-size: 1.6rem !important; /* Augmenté de 1.5rem à 1.6rem */
}

.text-3xl {
  font-size: 1.8rem !important; /* Augmenté de 1.875rem à 1.8rem */
}

.text-4xl {
  font-size: 2.2rem !important; /* Augmenté de 2.25rem à 2.2rem */
}

/* Ajustements pour les petits textes */
.text-sm {
  font-size: 1rem !important; /* Augmenté de 0.875rem à 1rem */
}

.text-xs {
  font-size: 0.9rem !important; /* Augmenté de 0.75rem à 0.9rem */
}

/* Animation des projets au scroll */
.project-card {
    transition: all 0.5s ease;
}

.project-card.is-visible {
    transform: scale(0.95) rotate(0deg);
}

.project-card.is-visible img {
    filter: brightness(1.1);
}

.project-card.is-visible .border-main {
    transform: rotate(0deg);
    opacity: 1;
}

@media (max-width: 768px) {
    .project-card.is-visible {
        transform: scale(0.95);
    }
}

/* Désactivation des effets de luminosité */
.bg-gradient-to-br, 
.bg-gradient-to-b,
.bg-main-accent\/10 {
    display: none !important;
}

/* Animations de base */
@keyframes slideLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* Classes d'animation */
.animate-card {
  opacity: 0; /* Caché au départ */
  animation-fill-mode: forwards;
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
  will-change: transform, opacity;
}

[data-animation="slide-left"] {
  animation-name: slideLeft;
}

[data-animation="slide-right"] {
  animation-name: slideRight;
}

[data-animation="slide-bottom"] {
  animation-name: slideBottom;
}

/* Délais pour effet cascade */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .animate-card {
    animation: none !important;
    opacity: 1;
  }
}

/* Mobile First */
@media (max-width: 768px) {
  .animate-card {
    animation-duration: 0.5s;
  }
}