/* Section Contact */
.contact-section {
    padding: 4rem 0;
    position: relative;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(var(--primary-rgb), 0.2);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.2rem;
}

/* Animation pour fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries pour le responsive */
@media (max-width: 768px) {
    .contact-grid {
        padding: 0 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-social {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .social-link {
        justify-content: center;
    }
}

/* Variables globales améliorées */
:root {
    --primary-color: #00E5FF;
    --secondary-color: #7F00FF;
    --accent-color: #FF3E9D;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --bg-dark: #0A0A0A;
    --bg-card: rgba(30, 30, 30, 0.8);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(145deg, rgba(18, 18, 18, 0.95), rgba(30, 30, 30, 0.95));
    --shadow-neon: 0 0 15px rgba(0, 229, 255, 0.3);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Styles de base améliorés */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header avec effet parallaxe amélioré */
header {
    position: relative;
    padding: 1rem 0;
    background: var(--gradient-dark);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 2;
}

/* Titres avec effet de lueur */
h1, h2, h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

/* Cards avec effet glassmorphism amélioré */
.presentation-card,
.skill-card,
.experience-card,
.service-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-content {
    position: relative;
    z-index: 2;
}

.presentation-card::after,
.skill-card::after,
.experience-card::after,
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.1) 0%,
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.presentation-card:hover::after,
.skill-card:hover::after,
.experience-card:hover::after,
.service-card:hover::after {
    opacity: 1;
}

/* Effet de brillance au survol */
.presentation-card::before,
.skill-card::before,
.experience-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* Animation au survol */
.presentation-card:hover,
.skill-card:hover,
.experience-card:hover,
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary-color);
}

.presentation-card:hover::before,
.skill-card:hover::before,
.experience-card:hover::before,
.service-card:hover::before {
    transform: rotate(180deg);
}

/* Grilles responsives optimisées */
.skills-grid,
.experience-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* Barre de progression améliorée */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: var(--gradient-primary);
    animation: progress 1.5s ease-in-out;
    transform-origin: left;
}

@keyframes progress {
    from { transform: scaleX(0) }
    to { transform: scaleX(1) }
}

/* Boutons et liens interactifs */
.btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.btn::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: 0.5s;
}

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

/* Section contact améliorée */
.contact-form {
    background: var(--gradient-dark);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
}

.contact-details {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.contact-details a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.contact-details a:hover::after {
    width: 100%;
}

/* Footer amélioré */
footer {
    background: var(--gradient-dark);
    padding: 1rem;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Media queries optimisées */
@media (max-width: 768px) {
    .skills-grid,
    .experience-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .skills-grid,
    .experience-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Fonts and General Styling */
html {
    font-family: Gill Sans, Verdana;
    font-size: 16px;
    line-height: 2;
    background: linear-gradient(145deg, #121212, #1E1E1E);
    /* Fond sombre et moderne */
    color: #E0E0E0;
    /* Texte clair pour contraste */
    height: 100%;
    stroke-linecap: smooth;
}

html:hover {
    cursor: default;

}

.card-light-effect {
    position: relative;
    overflow: hidden;
}

.card-light-effect::after {
    content: '';
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: 5rem;
    height: 5rem;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-light-effect:hover::after {
    opacity: 1;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;

    min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes shooting-star {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(1000px) translateY(1000px) rotate(45deg);
        opacity: 0;
    }
}

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

#stars, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Premier plan d'étoiles */
#stars {
    background: transparent;
    box-shadow: multiple-box-shadow(700);
    animation: twinkle 3s infinite;
}

#stars:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 3px;
    height: 3px;
    background: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5),
                0 0 20px rgba(0, 229, 255, 0.3),
                0 0 30px rgba(0, 229, 255, 0.1);
    border-radius: 50%;
}

/* Second plan d'étoiles */
#stars2 {
    background: transparent;
    box-shadow: multiple-box-shadow(200);
    animation: twinkle 4s infinite;
}

#stars2:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 2px;
    height: 2px;
    background: rgba(128, 222, 234, 0.8);
    box-shadow: 0 0 8px rgba(128, 222, 234, 0.5),
                0 0 16px rgba(128, 222, 234, 0.3),
                0 0 24px rgba(128, 222, 234, 0.1);
    border-radius: 50%;
}

/* Arrière-plan d'étoiles */
#stars3 {
    background: transparent;
    box-shadow: multiple-box-shadow(100);
    animation: twinkle 5s infinite;
}

#stars3:after {
    content: " ";
    position: absolute;
    top: 2000px;
    width: 1px;
    height: 1px;
    background: rgba(178, 235, 242, 0.8);
    box-shadow: 0 0 6px rgba(178, 235, 242, 0.5),
                0 0 12px rgba(178, 235, 242, 0.3),
                0 0 18px rgba(178, 235, 242, 0.1);
    border-radius: 50%;
}

/* Étoiles filantes */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.8), transparent);
    animation: shooting-star 1s linear infinite;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(0, 229, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 229, 255, 1),
                0 0 40px rgba(0, 229, 255, 0.5),
                0 0 60px rgba(0, 229, 255, 0.3);
    transform: translateY(-50%);
}

/* Effet de brouillard spatial */
.space-fog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
    animation: fogMove 20s ease infinite;
    pointer-events: none;
}

@keyframes fogMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

/* Wrapper for Content */
.wrapper {
    flex: 1;
    /* Prend toute la hauteur disponible pour pousser le footer en bas */
    min-height: 100vh;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card:hover,
.experience-card:hover,
.service-card:hover {
    transform: scale(1.05) translateY(-10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header {
    background: linear-gradient(145deg, #1b1b1b, #0c0c0c, #252525);
    color: #FFFFFF;
    text-align: center;
    padding: 1rem 1rem;
    background-size: 200% 200%;
    border-bottom: 4px solid #00E5FF;
    animation: gradientShift 5s ease infinite;
}

.neon-title {
    text-shadow: 0 0 5px #00E5FF, 0 0 10px #00E5FF, 0 0 20px #00E5FF;
    animation: neonBlink 4s infinite alternate;
}

@keyframes neonBlink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

#stars,
#stars2,
#stars3 {
    filter: drop-shadow(0 0 5px #00E5FF);
    animation: twinkle 3s infinite alternate ease-in-out;
}

#stars {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

#stars2 {
    transform: translateY(0);
    transition: transform 0.2s ease-out;
}

#stars3 {
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(300px, 150px) scale(0.5);
    }
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    box-shadow: 0 0 10px white;
    animation: shootingStar 2s linear infinite;
}

header p {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    animation: fadeIn 2.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.heading-container {
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Main Content */
.content {
    /* Fond sombre et élégant */
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem auto;
    margin-top:0;
}

.presentation {
    transition: top 0.3s ease;
    text-align: center;
    position: relative;

}

.fixed-presentation {
    position: fixed;
    /* Rendre la section fixe */
    top: 0;
    /* Collée en haut de la fenêtre */
    left: 0;
    z-index: 1000;
    /* Placer au-dessus du reste du contenu */
    text-align: center;
    display: none;
    width: 18%;
    max-width: 200px;
    height: 100%;
}

.presentation-card{
    text-decoration: none;
}

.presentation-card:hover {
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.6);
    /* Lueur néon */
    transform: scale(1.05);
    /* Augmente la taille légèrement pour l'effet */
}

.presentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.presentation-grid-fixed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    height: 100%;
    align-content: center;
    padding-left: 1rem;
}

.presentation-card {
    background: #333333;
    /* Fond sombre pour les cartes */
    padding: 0.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presentation-grid-fixed .presentation-card {
    padding: 0.7rem;

}

.presentation-card:hover {
    cursor: pointer;
    transform: translateY(-3px);

}

.presentation-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #00E5FF;
}

.presentation-grid-fixed .presentation-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #00E5FF;
}

.presentation-card p {
    font-size: 0.8rem;
    color: #E0E0E0;

}

.presentation-grid-fixed .presentation-card p {
    font-size: 0.8rem;
    color: #E0E0E0;
}

/* Footer */
footer {
    background: #1F1F1F;
    /* Fond sombre avec un contraste léger */
    color: #B0B0B0;
    /* Texte clair mais plus doux pour le footer */
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
    border-top: 4px solid #00E5FF;
}

#stars,
#stars:after {
    content: " ";
    position: absolute;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow:
        784px 1923px #FFF, 1254px 1875px #FFF, 1986px 1289px #FFF, 345px 345px #FFF,
        765px 765px #FFF, 567px 1875px #FFF, 1456px 1483px #FFF, 1987px 784px #FFF;
    /* Ajoutez d'autres valeurs pour compléter les 700 étoiles */
}

.typing {
    width: 100%;
    animation: fadeIn 2.5s ease-in-out;

}

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

#stars2,
#stars2:after {
    content: " ";
    position: absolute;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow:
        1256px 984px #FFF, 450px 1325px #FFF, 1768px 1998px #FFF, 687px 748px #FFF,
        1354px 1125px #FFF, 987px 345px #FFF, 984px 675px #FFF, 175px 1984px #FFF;
    /* Ajoutez d'autres valeurs pour compléter les 200 étoiles */
}

#stars3,
#stars3:after {
    content: " ";
    position: absolute;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow:
        234px 1567px #FFF, 567px 987px #FFF, 1465px 657px #FFF, 1250px 1879px #FFF,
        1987px 234px #FFF, 876px 342px #FFF, 1980px 1184px #FFF, 987px 1278px #FFF;
    /* Ajoutez d'autres valeurs pour compléter les 100 étoiles */
}

@keyframes animStar {
    from {
        transform: translateY(calc(100vh + 100%));
        /* Démarre du bas de la page complète */
    }

    to {
        transform: translateY(-100vh);
        /* Monte jusqu'en haut de l'écran */
    }
}

/* Form Reset */
input,
textarea,
button {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    outline: none;
}

.contact-form {
    padding: 1.5rem 1rem;
    margin-bottom: 10rem;
    margin-top: 10rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.9), rgba(30, 30, 30, 0.9));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.1);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanline 2s linear infinite;
}

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

.contact-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--primary-color),
                     0 0 10px var(--primary-color),
                     0 0 15px var(--primary-color);
    }
    to {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color),
                     0 0 30px var(--primary-color);
    }
}

.contact-details {
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    border-color: var(--primary-color);
}

.contact-details p {
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details strong {
    color: var(--primary-color);
    min-width: 100px;
    display: inline-block;
    position: relative;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-details a::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: 0.5s;
}

.contact-details a:hover {
    background: rgba(0, 229, 255, 0.2);
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-details a:hover::before {
    left: 100%;
    transition: 0.5s;
}

/* Skills Section Styling */
.skills-section {
    /* Fond sombre et moderne */
    padding: 1.5rem 1rem;
    color: #E0E0E0;
}

.skills-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #00E5FF;
    /* Titre futuriste */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.skill-card {
    background: #2A2A2A;
    /* Carte sombre élégante */
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #00E5FF;
    /* Couleur principale des titres */
}

.skill-description {
    font-size: 0.9rem;
    color: #B0B0B0;
    /* Couleur subtile pour la description */
    line-height: 2;
}

/* Section Experience */
.experience-section {
    /* Fond sombre élégant */
    padding: 1.5rem 1rem;
    color: #E0E0E0;
}

.experience-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #00E5FF;
    /* Couleur principale */
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.experience-card {
    background: #2A2A2A;
    /* Fond sombre des cartes */
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #00E5FF;
    /* Accent futuriste */
}

.job-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #E0E0E0;
}

.job-period {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: #B0B0B0;
    /* Texte subtil */
}

.job-responsibilities {
    list-style: disc;
    padding-left: 1.5rem;
}

.job-responsibilities li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 2;
    color: #B0B0B0;
}

.infos {
    padding: 1.5rem 1rem;
    color: #E0E0E0;
    line-height: 1.9;
    border-radius: 1em;
}

.infos-description {
    font-size: 1.1rem;

}

.infos-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #00E5FF;
    /* Titre futuriste */
}

.infos ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.infos ul li {
    margin-bottom: 0.5rem;
}

.services-section {
    padding: 1.5rem 1rem;

}

.services-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00E5FF;
    text-align: center;
}

.services-section .tech-badges {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.services-section .badge {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
}

.services-section .badge {
    display: inline-block;
    background-color: #282828;
    color: #00E5FF;
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.services-section .badge:hover {
    background-color: #00E5FF;
    color: #282828;
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.presentation-icon,
.service-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.presentation-icon:hover,
.service-icon:hover {
    transform: rotate(15deg) scale(1.2);
    color: #00b0ff;
}

.service-card {
    background: #2A2A2A;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #6c63ff;
    /* Couleur principale */
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #00E5FF;
}

.service-card p {
    font-size: 0.9rem;
    color: #E0E0E0;
}

@media (max-width: 1800px) {
    .fixed-presentation {
        visibility: hidden;
    }

}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.8rem;
    }

    .content {
        padding: 1rem;
    }

    .presentation-card {
        padding: 0.5rem;
    }

    .presentation-icon {
        font-size: 1.2rem;
    }

    .presentation-card p {
        font-size: 0.7rem;
    }

    .infos-title {
        font-size: 1.2rem;
    }

    .infos-description {
        font-size: 0.9rem;
    }

    .experience-title {
        font-size: 1.2rem;

    }

    .experience-card {
        padding: 0.8rem;
    }

    .company-name {
        font-size: 0.9rem;

    }

    .job-title {
        font-size: 0.8rem;
    }

    .job-period {
        font-size: 0.6rem;
    }

    .job-responsibilities {
        font-size: 0.7rem;
    }

    .job-responsibilities li {
        font-size: 0.7rem;

    }

    .infos,
    .skills-section,
    .experience-section,
    .services-section,
    .contact-form {
        padding-top: 1rem;
    }

    .skills-title {
        font-size: 1.2rem;
    }

    .skill-card {
        padding: 0.8rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .skill-description {
        font-size: 0.7rem;
    }

    .services-section h3 {
        font-size: 0.9rem;
    }

    .service-icon {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 0.7rem;

    }

    .services-section .badge {
        font-size: 0.5rem;
    }

    .service-card {
        padding: 0.8rem;
    }

    .infos {
        line-height: 2;
    }

    .contact-title {
        font-size: 1.2rem;
    }

    .contact-details {
        font-size: 0.7rem;
        padding: 0.8rem;

    }
}

@media (max-width: 450px) {

    .container {
        width: 100%;

    }

    header h1 {
        font-size: 1.2rem;
    }

    header p {
        font-size: 0.6rem;
    }

    .content {
        padding: 0.8rem;
        padding-left: 0;
        padding-right: 0;
    }

    .infos-title {
        font-size: 1rem;
    }

    .infos-description {
        font-size: 0.7rem;
    }

    .presentation-card {
        padding: 0.3rem;
    }

    .experience-title {
        font-size: 1rem;

    }

    .experience-card {
        padding: 0.6rem;
    }

    .company-name {
        font-size: 0.8rem;

    }

    .job-title {
        font-size: 0.6rem;
    }

    .job-period {
        font-size: 0.5rem;
    }

    .job-responsibilities {
        font-size: 0.6rem;
    }

    .job-responsibilities li {
        font-size: 0.6rem;

    }

    .skills-title {
        font-size: 1rem;
    }

    .skill-card {
        padding: 0.6rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .skill-description {
        font-size: 0.6rem;
    }

    .services-section h3 {
        font-size: 0.8rem;
    }

    .service-icon {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.6rem;

    }

    .service-card {
        padding: 0.6rem;
    }

    .services-section .badge {
        font-size: 0.4rem;
    }

    .contact-details {
        padding: 0.6rem;
        font-size: 0.6rem;
    }

    .contact-title {
        font-size: 1rem;
    }

}

@media (max-width: 350px) {

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

}

@media (max-width: 210px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    }

    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    }

}

/* Effet de glitch pour mettre en valeur l'expérience */
@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 rgba(0, 229, 255, 0.7), 2px 2px rgba(255, 0, 128, 0.7);
    }
    20% {
        transform: translate(-2px, 2px);
        text-shadow: 1px -1px rgba(0, 229, 255, 0.7), -1px 1px rgba(255, 0, 128, 0.7);
    }
    40% {
        transform: translate(-2px, -2px);
        text-shadow: 2px 0 rgba(0, 229, 255, 0.7), -2px -2px rgba(255, 0, 128, 0.7);
    }
    60% {
        transform: translate(2px, 2px);
        text-shadow: -1px 0 rgba(0, 229, 255, 0.7), 1px -1px rgba(255, 0, 128, 0.7);
    }
    80% {
        transform: translate(2px, -2px);
        text-shadow: 1px 1px rgba(0, 229, 255, 0.7), -1px -1px rgba(255, 0, 128, 0.7);
    }
    100% {
        transform: translate(0);
        text-shadow: -2px 0 rgba(0, 229, 255, 0.7), 2px 2px rgba(255, 0, 128, 0.7);
    }
}

/* Animation du compteur d'années */
@keyframes countUp {
    from {
        --num: 0;
    }
    to {
        --num: 7;
    }
}

/* Effet de particules pour les compétences */
@keyframes particleFlow {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Style pour le texte d'expérience */
.experience-years {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    animation: glitch 5s infinite;
}

.experience-years::before {
    content: '7';
    position: absolute;
    left: 0;
    animation: countUp 2s steps(7) forwards;
    counter-reset: count var(--num);
}

/* Style amélioré pour les cartes de compétences */
.skill-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.15) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 1s ease;
    pointer-events: none;
}

.experience-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 1s ease;
    pointer-events: none;
}

.skill-card:hover::before {
    transform: rotate(180deg);
}

/* Particules flottantes pour les compétences */
.skill-card::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.skill-card:hover::after {
    animation: particleFlow 1.5s ease-out infinite;
}

/* Style amélioré pour la section services */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(18, 18, 18, 0.8);;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.15) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 1s ease;
    pointer-events: none;
}

.service-card:hover::before {
    transform: translateX(100%);
}

/* Animation du texte de description */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: 
        typing 4s steps(40, end) infinite,
        blink-caret 0.75s step-end infinite;
    margin: 0 auto;
}

@keyframes typing {
    0% { width: 0 }
    50% { width: 100% }
    55% { width: 100% } /* Pause brève quand le texte est complet */
    100% { width: 0 }
}

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

/* Effet de survol pour les liens */
.scroll-link {
    position: relative;
    transition: all 0.3s ease;
}

.scroll-link:hover {
    text-shadow: 0 0 8px var(--primary-color);
}

.scroll-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.scroll-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.presentation-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 229, 255, 0.2),
        transparent
    );
    animation: shine 1.5s infinite;
}

/* Réduction des espacements des sections */
section {
    padding: 1.5rem 0;
}

/* Grilles plus compactes */
.skills-grid,
.experience-grid,
.services-grid {
    gap: 0.8rem;
}

/* Titres plus petits */
h2, .skills-title, .experience-title, .services-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.company-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.job-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.job-period {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Texte plus compact */
.skill-description,
.job-responsibilities li,
.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Icônes de service */
.service-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

/* Section contact plus compacte */
.contact-form {
    padding: 1.5rem 1rem;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-details {
    padding: 1rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Badges technologiques */
.services-section .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Ajustements responsive */
@media (max-width: 768px) {
    .skills-grid,
    .experience-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .skill-card,
    .experience-card,
    .service-card {
        padding: 1rem;
    }

    .service-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 450px) {
    .skills-grid,
    .experience-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .skill-card,
    .experience-card,
    .service-card {
        padding: 0.8rem;
    }

    .service-icon {
        font-size: 1.5rem;
    }

    .services-section .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Effets de parallaxe améliorés */
.space-fog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
    animation: fogMove 20s ease infinite;
    pointer-events: none;
}

@keyframes fogMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

/* Étoiles filantes améliorées */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    animation: shootingStar 2s linear infinite;
    opacity: 0;
}

@keyframes shootingStar {
    0% {
        transform: translateX(-100%) translateY(100%) rotate(-45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(200%) translateY(-200%) rotate(-45deg);
        opacity: 0;
    }
}

/* Effet de survol des cartes amélioré */
.presentation-card,
.skill-card,
.experience-card,
.service-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-content {
    position: relative;
    z-index: 2;
}

.presentation-card::after,
.skill-card::after,
.experience-card::after,
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.1) 0%,
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.presentation-card:hover::after,
.skill-card:hover::after,
.experience-card:hover::after,
.service-card:hover::after {
    opacity: 1;
}

/* Animation des icônes */
.service-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Effet de focus sur les liens */
a:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-radius: 4px;
}

/* Animation du texte */
.typing-effect {
    border-right: 2px solid var(--primary-color);
    animation: typing 4s steps(40, end) infinite,
             blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

/* Effet de scroll fluide */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

/* Barre de défilement personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation des sections au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de survol des badges */
.badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.badge:hover::before {
    transform: rotate(180deg);
}