body {
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    background-color: #0a0a1f; /* Fond plus foncé avec teinte bleue */
    background: linear-gradient(
        125deg,
        #0a0a1f 0%,
        #0d0d2a 25%,
        #12122d 50%,
        #0d0d2a 75%,
        #0a0a1f 100%
    );
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Style pour le canvas des particules */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at 20% 30%,
            rgba(74, 128, 255, 0.03) 0%,
            rgba(74, 128, 255, 0) 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(49, 84, 155, 0.03) 0%,
            rgba(49, 84, 155, 0) 60%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(20, 30, 60, 0.05) 0%,
            rgba(20, 30, 60, 0) 70%
        );
    pointer-events: none;
    z-index: 1;
}

/* Ajout d'un effet de "poussière d'étoiles" distant */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(
            1px 1px at 50% 50%,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(0, 0, 0, 0) 100%
        );
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 1;
}

/* Ajustement du canvas des particules */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Assurer que le contenu reste au-dessus des effets de fond */
#intro, #cv {
    position: relative;
    z-index: 3;
}

#intro {
    text-align: center;
}

#intro h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Animation de la flèche */
.bounce-arrow {
    animation: bounce 2s infinite;
    font-size: 1.2rem;
    color: #4a9eff;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(5px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* Animation scroll-down */
.scroll-down a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-down a:hover {
    transform: translateY(3px);
}

.scroll-down a:hover .bounce-arrow {
    color: #6ab0ff;
    text-shadow: 0 0 15px rgba(74, 158, 255, 0.7);
}

.container {
    margin-top: 100px;
}

/* Animations AOS */
[data-aos] {
    transition-duration: 2s;
}

/* Animation typewriter */
.typewriter h1 {
    overflow: hidden;
    border-right: 3px solid #fff;
    white-space: nowrap;
    margin: 0 auto;
    animation: 
        typing 3.5s steps(30, end),
        blink-caret 0.75s step-end infinite;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff }
}

/* Conteneur typewriter */
.typewriter {
    display: inline-block;
    max-width: fit-content;
}

/* Classes utilitaires */
.hidden {
    opacity: 0;
}

/* Section CV */
#cv {
    color: #fff;
}

/* Titres de section */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--bs-primary);
}

.profile-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.profile-image-wrapper {
    flex-shrink: 0;  /* Empêche l'image de se rétrécir */
    width: 250px;    /* Largeur fixe pour le conteneur */
    margin: 0 auto;  /* Centre horizontalement */
    display: flex;   /* Permet le centrage des éléments internes */
    justify-content: center; /* Centre horizontalement les éléments */
    align-items: center;     /* Centre verticalement les éléments */
}

/* Photo de profil */
/* Photo de profil avec animation PC */
@media (hover: hover) and (pointer: fine) {
    .profile-image-container {
        position: relative;
        width: 100%;
        height: 250px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid #4a9eff;
        box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
        transition: all 0.3s ease;
    }

    .profile-image-container:hover {
        transform: scale(1.10);
        box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
        border-color: #6ab0ff;
    }

    .profile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.3s ease;
    }

    .profile-image-container:hover .profile-image {
        transform: scale(1.1);
    }
}

/* Style de base pour mobile et appareils sans hover */
.profile-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4a9eff;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.profile-content {
    flex: 1;
    min-width: 0;
}

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


.progress {
    height: 8px;
    background-color: rgba(255,255,255,0.1);
}

.progress-bar {
    transition: width 1.5s ease;
}

/* Timeline pour l'expérience */
.timeline {
    position: relative;
    padding: 2rem 0;
    perspective: 1000px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 3px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #4a9eff 15%,
        #4a9eff 85%,
        transparent 100%
    );
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.6);
    animation: timelineGlow 5s ease-in-out infinite;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 9px;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent,
        #4a9eff,
        transparent
    );
    transform: translateX(-50%);
    animation: timelineFlow 5s linear infinite;
    opacity: 1;
    filter: blur(3px);
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(74, 158, 255, 0.05),
        transparent
    );
    transition: all 0.3s ease;
    opacity: 0;
}

.timeline-content:hover::after {
    opacity: 1;
}

@keyframes timelineGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(74, 158, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(74, 158, 255, 0.6);
    }
}

@keyframes timelineFlow {
    0% {
        top: -60px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        top: calc(100% - 70px);
        opacity: 0;
    }
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    position: relative;
    background: rgba(13, 13, 37, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.15);
    background: rgba(13, 13, 37, 0.8) !important;
}

/* Animation pour les barres de progression */
[data-aos="progress-bar"] {
    width: 0;
    transition-property: width;
}

[data-aos="progress-bar"].aos-animate {
    width: var(--width);
}

/* Social Links */
.social-links a, .social-links button {  /* Ajout de button ici */
    transition: all 0.3s ease;
}

.social-links a:hover, .social-links button:hover {  /* Ajout de button:hover ici */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Effet de glassmorphism pour les sections */
.skill-category, .timeline-content {
    background: rgba(13, 13, 37, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Amélioration de la lisibilité du texte */
.lead, p {
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.blur-effect {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

/* Style pour le bouton email et son popup */
.email-btn {
    position: relative;
}

.email-popup {
    position: absolute;
    background: rgba(13, 13, 37, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-family: 'Roboto Mono', monospace;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.email-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ajout d'une nouvelle classe pour les dates et entreprises */
.timeline-content .text-muted {
    color: #e0e0e0 !important; /* Gris très clair pour une meilleure lisibilité */
    opacity: 0.9;              /* Légère transparence pour garder l'effet subtil */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Ombre légère pour améliorer la lisibilité */
}

/* Amélioration optionnelle du contraste pour tout le texte de la timeline */
.timeline-content {
    color: #ffffff;
}

.timeline-content p {
    color: #e0e0e0;
}

.timeline-content ul li {
    color: #e0e0e0;
}

/* Modification de la couleur bleue pour les titres dans la timeline */
.timeline-content .h5.text-primary {
    color: #4a9eff !important; /* Bleu plus vif et lumineux */
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.3); /* Effet de lueur subtil */
    font-weight: 600; /* Police légèrement plus grasse */
}

/* Optionnel : Ajustement de la couleur principale pour les autres éléments bleus */
:root {
    --bs-primary: #4a9eff;
}

/* Amélioration du contraste pour les petits textes dans les timeline-content */
.timeline-content .ms-3 {
    color: #d0d0d0; /* Gris clair pour les sous-points */
}

/* Sections de compétences */
.skill-category {
    background: rgba(13, 13, 37, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.15);
}

/* Style pour le conteneur des tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Style pour chaque tag individuel */
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Animation au survol des tags */
.skill-tag:hover {
    transform: translateY(-2px);
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.5);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.15);
}

/* Support spécifique pour iOS */
@supports (-webkit-touch-callout: none) {
    .skill-tag {
        background: rgba(74, 158, 255, 0.2);
    }
}

/* Animation cohérente pour les conteneurs de compétences et de formation */
.skill-category, .timeline-content {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.skill-category:hover, .timeline-content:hover {
    transform: translateY(-5px);
    border-color: #4a9eff;
    box-shadow: 0 8px 32px rgba(74, 158, 255, 0.15);
}

/* Ajustement des titres dans les deux sections pour la cohérence */
.skill-category .h5.text-primary, 
.timeline-content .h5.text-primary {
    color: #4a9eff !important;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
    font-weight: 600;
}

.skill-group {
    position: relative;
    padding-left: 1rem;
}

.skill-group h4 {
    position: relative;
    padding-left: 0.5rem;
}

.skill-group h4::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 2px;
    background: #4a9eff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.5);
    transition: all 0.3s ease;
}

/* Animation au survol du groupe */
.skill-group:hover h4::before {
    height: 85%;
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.7);
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .skill-group {
        padding-left: 0.8rem;
    }

    .skill-group h4::before {
        width: 1.5px;
        left: -0.8rem;
    }

    .skill-tags {
        gap: 0.35rem;
    }
    
    .skill-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }

    .timeline::before {
        left: 1rem;
    }

    .timeline::after {
        left: 1rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 3rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .profile-image-container {
        width: 200px;
        height: 200px;
    }

    .container {
        margin-top: 50px;
    }
    #intro h1 {
        font-size: 2.3rem;
    }
    
}