/* --- VARIABLES DE COULEURS (Palette Jelly Shoes) --- */
:root {
    --purple-dark: #450693;
    --purple-light: #8C00FF;
    --pink-neon: #FF3F7F;
    --yellow-pop: #FFC400;
    
    --bg-dark: #0a0118; /* Fond très sombre, presque noir/violet */
    --text-main: #ffffff;
}

/* --- RÉINITIALISATION --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Empêche le scroll horizontal accidentel */
}

/* --- EN-TÊTE ET NAVIGATION --- */
header {
    background: transparent; /* Rend le fond totalement transparent */
    padding: 1.5rem 0; 
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.2, 1), background-color 0.3s;
}

.navbar {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0 1rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold; /* C'est ici que ça change ! */
    font-size: 0.95rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease, text-shadow 0.3s;
}

/* On ajoute un léger effet lumineux au texte au survol pour compenser le fond transparent */
.navbar a:hover {
    color: var(--yellow-pop);
    text-shadow: 0 0 8px rgba(255, 196, 0, 0.6);
}





/* --- FOOTER --- */
footer {
    text-align: center; /* Centre le texte */
    padding: 2rem 1rem; /* Donne un peu d'espace en haut et en bas */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Une ligne séparatrice ultra discrète */
    position: relative;
    z-index: 10; /* S'assure qu'il passe au-dessus du halo lumineux de l'accueil */
}

footer p {
    font-size: 0.75rem; /* Texte tout petit */
    color: rgba(255, 255, 255, 0.4); /* Blanc semi-transparent pour être très subtil */
    letter-spacing: 1px; /* Espacement élégant */
}










/* --- PAGE D'ACCUEIL (Hero Section) --- */
.accueil-hero {
    height: 100vh; /* Prend toute la hauteur de l'écran */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10; /* Assure que le texte reste au-dessus du halo */
}

/* Le grand titre "Bienvenue" net et lisible */
.accueil-hero h1 {
    font-size: 7rem; 
    font-weight: 900; 
    letter-spacing: -4px;
    margin-bottom: 0.5rem;
    position: relative;
    
    /* Dégradé animé avec des teintes très légèrement éclaircies pour mieux ressortir */
    background-image: 
        radial-gradient(at 10% 10%, #FF3F7F 0px, transparent 50%), 
        radial-gradient(at 90% 10%, #BB66FF 0px, transparent 50%), /* Violet plus clair */
        radial-gradient(at 50% 90%, #FFC400 0px, transparent 50%), 
        radial-gradient(at 90% 90%, #8C00FF 0px, transparent 50%),  
        linear-gradient(135deg, #8C00FF, #FF3F7F); 
    background-size: 200% 200%;
    
    /* Découpe du texte */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
    
    /* LA SOLUTION : Une ombre noire très diffuse. 
       Elle détache le texte du fond sans faire baver les bords ! */
    filter: drop-shadow(0px 4px 15px rgba(0, 0, 0, 0.9));

    transition: filter 0.4s ease, transform 0.4s ease;
    animation: jellyGradientMove 8s ease infinite;
}

/* Effet au survol : on ajoute l'aura néon par-dessus l'ombre noire */
.accueil-hero h1:hover {
    filter: drop-shadow(0px 4px 15px rgba(0, 0, 0, 0.9)) drop-shadow(0px 0px 25px rgba(255, 63, 127, 0.6)); 
    transform: scale(1.02); 
}

/* DÉFINITION DE L'ANIMATION DE MOUVEMENT DU DÉGRADÉ */
@keyframes jellyGradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Le sous-titre machine à écrire */
.accueil-hero h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #e0e0e0;
}

/* Le texte dynamique injecté en JS */
#typewriter-text {
    color: var(--yellow-pop);
    font-weight: 600;
}

/* L'animation du curseur qui clignote */
.cursor {
    color: var(--pink-neon);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- LE HALO LUMINEUX INTERACTIF --- */
.halo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* TRÈS IMPORTANT : empêche le halo de bloquer les clics sur les boutons */
    z-index: 0;
    /* On crée un dégradé radial centré sur les variables de la souris */
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(140, 0, 255, 0.15), /* Couleur au centre du halo */
        transparent 40%
    );
}





/* --- LAYOUT A PROPOS --- */
.about-container {
    display: flex;
    align-items: stretch; /* Force les colonnes à avoir la même hauteur */
    max-width: 1200px;
    margin: 120px auto 4rem;
    gap: 2rem;
    padding: 0 2rem;
}

/* Effet Verre (Glassmorphism) */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

/* Panneau Gauche */
.about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribue le contenu sur toute la hauteur */
    padding: 3rem 2rem;
    text-align: center; /* Centre le texte par défaut */
    height: auto; /* Laisse le stretch du container décider de la hauteur */
}

/* --- CENTRAGE DE L'IDENTITÉ --- */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement l'image et le texte */
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
}

.role-badge {
    background: rgba(140, 0, 255, 0.2);
    color: var(--purple-light);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border: 1px solid var(--purple-light);
}

.separator {
    width: 80%;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

/* Items de contact */
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item .icon {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-text label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--pink-neon);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-text p {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

/* Badges de compétences */
.skill-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.skill-tag {
    text-align: left; /* Garde le texte des badges lisible à gauche */
    margin-bottom: 8px;
}

.skill-tag:hover { transform: translateX(5px); }
.skill-tag.web { border-left-color: var(--pink-neon); }
.skill-tag.code { border-left-color: var(--yellow-pop); }
.skill-tag.sys { border-left-color: var(--purple-light); }

.about-left .btn-neon {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
}

.profile-img-bubble {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--pink-neon);
    padding: 5px;
    margin: 0 auto 1.5rem auto; /* Le "margin: 0 auto" garantit le centrage horizontal */
    box-shadow: 0 0 25px rgba(255, 63, 127, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-img-bubble img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.neon-text {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

/* --- AJUSTEMENT DES ESPACEMENTS --- */
.profile-body {
    flex-grow: 1; /* Prend l'espace restant pour pousser le footer vers le bas */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Centre verticalement le contenu interne */
    gap: 20px; /* Espace entre les sections internes */
}


/* --- ENRICHISSEMENT PROFIL GAUCHE --- */
.bio-section p {
    font-size: 0.85rem;
    color: #bbb;
    font-style: italic;
    line-height: 1.4;
    padding: 0 10px;
}

.tools-mini {
    margin-top: 1.5rem;
}

.tools-mini h4 {
    font-size: 0.9rem;
    color: var(--pink-neon);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tools-grid span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
}

/* --- BOUTONS SOCIAUX --- */
.social-grid {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 1.5rem;
}

.btn-social {
    flex: 1;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Style spécifique LinkedIn */
.btn-social.linkedin {
    border: 1px solid #0077b5;
    color: #0077b5;
}

.btn-social.linkedin:hover {
    background: #0077b5;
    color: white;
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.5);
}

/* Style spécifique GitHub */
.btn-social.github {
    border: 1px solid #fff;
    color: #fff;
}

.btn-social.github:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* --- SEPARATEUR --- */
.separator {
    width: 60%;
    margin: 1.2rem auto;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



.info-list p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: #ccc;
}

.info-list span {
    color: var(--pink-neon);
    font-weight: bold;
}

/* Panneau Droit [cite: 12] */
.about-right {
    flex: 2;
}

.section-title {
    font-size: 1.6rem;
    color: var(--purple-light);
    margin-bottom: 2rem;
    border-left: 4px solid var(--pink-neon);
    padding-left: 1rem;
}

/* Éléments de parcours [cite: 12, 15] */
.exp-item, .timeline-step {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.date-tag {
    background: var(--purple-dark);
    color: var(--yellow-pop);
    padding: 0.2rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Boutons Néon */
.btn-neon {
    width: 100%;
    margin: 0;
}

.btn-neon:hover {
    background: var(--pink-neon);
    color: white;
    box-shadow: 0 0 15px var(--pink-neon);
}



/* Couleurs spécifiques par branche de projet */
.branch-ubo { border-color: var(--purple-light); }
.branch-master { border-color: #00d4ff; } /* Un bleu cyan pour l'UBO Master */
.branch-cesi { border-color: var(--yellow-pop); }
.branch-lp { border-color: var(--pink-neon); }



#graph-tooltip {
    position: fixed;
    display: none;
    background: rgba(10, 1, 24, 0.95);
    border: 2px solid var(--pink-neon);
    padding: 15px;
    border-radius: 12px;
    z-index: 9999; /* Doit être le plus haut possible */
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 63, 127, 0.5);
    color: white;
}

@keyframes flow {
    from { stroke-dashoffset: 16; }
    to { stroke-dashoffset: 0; }
}


.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}


.timeline-content {
    margin-left: 30px;
}

.timeline-content h4 { color: white; margin-bottom: 5px; }
.timeline-content p { color: #aaa; font-size: 0.9rem; }


.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.timeline-content {
    margin-left: 30px;
}

.timeline-content h4 { color: white; margin-bottom: 5px; }
.timeline-content p { color: #aaa; font-size: 0.9rem; }

/* --- TOOLTIP FLOTTANT (Fenêtre de précision) --- */
#graph-tooltip {
    position: fixed;
    display: none;
    background: rgba(15, 5, 30, 0.95);
    border: 1px solid var(--pink-neon);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px var(--purple-light);
    z-index: 3000;
    pointer-events: none;
    backdrop-filter: blur(10px);
    color: white;
    min-width: 150px;
}

.tooltip-header { font-weight: bold; color: var(--yellow-pop); margin-bottom: 5px; }
.tooltip-body { font-size: 0.8rem; color: #ddd; }





/* --- FRISES CHRONOLOGIQUES (Version Finale) --- */
.timeline-container {
    position: relative;
    padding-left: 20px;
}

.timeline-line {
    position: absolute;
    left: 70px;
    /* Ajuste ces valeurs pour que le trait commence/finit au milieu des boîtes */
    top: 35px;    /* Milieu de la première box (ex: 2025) */
    bottom: 35px; /* Milieu de la dernière box (ex: 2019) */
    width: 2px;
    background: var(--purple-light);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.timeline-date-box {
    width: 100px;
    background: var(--bg-dark);
    border: 2px solid var(--pink-neon);
    color: var(--yellow-pop);
    text-align: center;
    padding: 8px 5px;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
}

/* --- GRAPHE D'AVENIR --- */
.graph-container {
    position: relative;
    width: 100%;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.03); /* Fond du graphe */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: visible;
    margin-top: 2rem;
}

.node {
    position: absolute;
    transform: translateY(-15%);
    padding: 10px 18px;
    background: #0a0118;
    border: 2px solid var(--pink-neon);
    border-radius: 10px;
    color: white;
    font-weight: bold;
    z-index: 10;
    white-space: nowrap;
    /* On s'assure qu'aucune marge ne décale le calcul du JS */
    margin: 0; 
}

* Lignes SVG */
.graph-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.graph-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
    stroke-dasharray: 6;
    animation: flow 2s linear infinite;
}

@keyframes flow {
    from { stroke-dashoffset: 16; }
    to { stroke-dashoffset: 0; }
}





/* --- PAGE PROJETS --- */
.projects-container {
    max-width: 1200px;
    margin: 120px auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem !important;
}

.projects-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Grille de cartes */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Carte de projet */
.project-card {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(140, 0, 255, 0.3);
    border-color: var(--pink-neon);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--pink-neon);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 0 10px var(--pink-neon);
}

.card-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    color: var(--yellow-pop);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    color: var(--purple-light);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.project-description {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.project-tags span {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- STYLE BOUTON NEON DANS LES CARTES --- */
.project-card .btn-neon {
    display: inline-block;
    width: fit-content; /* Le bouton s'adapte au texte */
    padding: 10px 20px;
    border: 1px solid var(--pink-neon);
    color: var(--pink-neon);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto; /* Pousse le bouton vers le bas de la carte */
}

.project-card .btn-neon:hover {
    background: var(--pink-neon);
    color: white;
    box-shadow: 0 0 20px var(--pink-neon);
    transform: scale(1.05);
}

/* Ajustement de la grille pour que le bouton soit toujours en bas */
.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}






/* --- PAGE SÉLECTION E5 --- */
.e5-presentation-container {
    max-width: 1000px;
    margin: 120px auto 4rem;
    padding: 0 2rem;
    position: relative;
}

.central-title {
    text-align: center;
    margin-bottom: 5rem;
}

.e5-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
    perspective: 1000px /* Espace entre les fiches */
}

/* Ligne verticale centrale */
.e5-line {
    position: absolute;
    width: 2px;
    /* On commence à 50px du haut pour centrer sur la première fiche */
    top: 50px; 
    /* On s'arrête à 50px du bas pour centrer sur la dernière fiche */
    bottom: 50px; 
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple-light);
    z-index: 1;
}

.e5-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 2;
    /* On s'assure que le contenu peut déborder légèrement sur les côtés si besoin */
    max-width: 1200px;
    margin: 0 auto;
}

/* Connecteurs horizontaux (traits) */
.e5-item::before {
    content: "";
    position: absolute;
    height: 2px;
    background: var(--pink-neon);
    z-index: -1;
    opacity: 0.6;
}

/* Trait long vers la gauche */
.e5-item:nth-child(even):not(.e5-line)::before {
    width: 100px;
    right: 50%;
    transform: translateX(-100px);
}

/* Trait long vers la droite */
.e5-item:nth-child(odd)::before {
    width: 100px;
    left: 50%;
    transform: translateX(100px);
}

/* Fiches (images cliquables) */
.e5-card-link {
    width: 180px;
    position: relative;
    z-index: 10;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    display: block;
}

.e5-card-img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--pink-neon);
    background: var(--bg-dark);
    /* Optionnel : légère ombre de base */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.e5-card-link:hover {
    transform: rotate(15deg);
    filter: drop-shadow(0 0 20px var(--pink-neon));
}

/* Connecteurs horizontaux */
.e5-connector {
    height: 2px;
    width: 50px;
    background: var(--pink-neon);
}

/* Alignement gauche (Texte à gauche, Fiche à droite de la ligne) */
.left-content {
    justify-content: flex-end;
    padding-right: 50%; /* Le connecteur s'arrête à la ligne centrale */
}

.e5-info {
    width: 400px; /* Augmenté de 300px à 400px */
    position: relative;
}

.info-left { text-align: right; padding-right: 126px; padding-bottom: 10px;}
.info-right { text-align: left; padding-left: 126px; padding-bottom: 10px;}
.info-spacer { width: 400px; }

.left-content .e5-info {
    text-align: right;
    margin-right: 20px;
}

/* Alignement droite (Fiche à gauche de la ligne, Texte à droite) */
.right-content {
    justify-content: flex-start;
    padding-left: 50%;
}

.right-content .e5-info {
    text-align: left;
    margin-left: 20px;
}

/* Style des textes d'information */
.e5-info h3 { color: var(--yellow-pop); margin-bottom: 5px; }
.e5-info p { color: white; font-size: 0.9rem; margin-bottom: 5px; }
.e5-date { color: var(--pink-neon); font-weight: bold; font-size: 0.8rem; }




Voici ton fichier style.css mis à jour. J'ai extrait les styles génériques de ton fichier ap1.ejs pour les centraliser ici.

Cela te permet de garder tes fichiers .ejs propres : tu n'auras plus qu'à y laisser les coordonnées de placement spécifiques (top, left, right) dans des styles "inline" ou une petite balise <style>, tandis que tout le design visuel sera géré par ce fichier.

1. Fichier public/css/style.css mis à jour
Remplace le contenu par celui-ci (ou ajoute ces blocs à la fin) :

CSS

/* --- VARIABLES ET BASES DÉJÀ PRÉSENTES (GARDER LE DÉBUT DU FICHIER) --- */

/* --- STRUCTURE GÉNÉRIQUE DES RÉALISATIONS (S-CURVE) --- */
.e5-detail-container { 
    padding: 120px 2rem; 
    min-height: 100vh; 
}

.serpentin-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    overflow: visible; /* Important pour les halos au survol */
}

.serpentin-svg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.serpentin-step {
    position: absolute;
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 10;
    transform: translateY(-50%); /* Centre le dot verticalement sur la ligne */
}

/* --- DESIGN DES BULLES DE COMPÉTENCES --- */
.dot-section {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(10, 1, 24, 0.9);
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid var(--pink-neon);
    box-shadow: 0 0 15px rgba(255, 63, 127, 0.3);
}

.big-dot {
    width: 40px; 
    height: 40px;
    background: var(--purple-dark);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--yellow-pop);
    font-weight: bold;
    border: 2px solid var(--yellow-pop);
    flex-shrink: 0;
}

.skill-title {
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* --- CONTENEUR D'IMAGES LIÉES --- */
.linked-images-container {
    position: absolute;
    display: flex;
    gap: 25px;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
}

.zoomable {
    width: 180px;
    border-radius: 10px;
    border: 2px solid var(--purple-light);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: #000;
}

.zoomable:hover {
    transform: rotate(15deg) scale(1.15);
    box-shadow: 0 0 40px rgba(140, 0, 255, 0.8);
    border-color: var(--pink-neon);
    z-index: 100;
}

/* --- STYLE DE L'EN-TÊTE DE PAGE (E5-TITLE) --- */
.e5-title {
    text-align: center;
    max-width: 900px;
    margin: 120px auto 80px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.e5-title h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.e5-title p:nth-child(2) { /* Nom GSB / Entreprise */
    font-size: 1.5rem;
    color: var(--yellow-pop);
    font-weight: bold;
    margin-bottom: 5px;
}

.e5-title p:nth-child(3) { /* Période / Dates */
    font-size: 0.9rem;
    color: var(--pink-neon);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.e5-title-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.e5-title-details p {
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.6;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* Badge décoratif */
.e5-title-details::before {
    content: "Contexte du projet";
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    background: var(--purple-light);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.label-connector {
    width: 2px; /* On le met vertical pour pointer vers l'image */
    height: 20px;
    background: var(--pink-neon);
}


/* --- MODAL LIGHTBOX --- */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(5, 1, 15, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 10%;
    gap: 50px;
}

/* Texte à gauche */
.modal-side-text {
    flex: 1;
    max-width: 400px;
    color: white;
    animation: slideIn 0.5s ease;
}

.modal-side-text h2 {
    color: var(--yellow-pop);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.modal-side-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

/* Image à droite */
.modal-image-container {
    flex: 2;
    display: flex;
    justify-content: center;
}

.modal-content {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    border: 2px solid var(--pink-neon);
    box-shadow: 0 0 50px rgba(255, 63, 127, 0.3);
}

.close-modal {
    position: absolute;
    top: 30px; right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

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

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


/* --- BOUTON RETOUR FLOTTANT --- */
.back-button-container {
    position: fixed;
    top: 100px; /* Juste en dessous de ta navbar */
    left: 40px;
    z-index: 1001; /* Au-dessus du serpentin */
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    background: var(--pink-neon);
    border-color: var(--pink-neon);
    box-shadow: 0 0 20px rgba(255, 63, 127, 0.5);
    transform: translateX(-5px);
}

.btn-back:hover .arrow {
    transform: translateX(-3px);
}

/* Masquer le bouton sur mobile s'il prend trop de place */
@media (max-width: 768px) {
    .back-button-container {
        top: auto;
        bottom: 30px;
        left: 20px;
    }
}








/* ========================================= */
/* ------ RESPONSIVE DESIGN (Mobiles) ------ */
/* ========================================= */
@media (max-width: 768px) {
    
    /* 1. Ajustement du Menu */
    .navbar {
        gap: 1rem; /* Réduit l'espace entre les liens */
        flex-wrap: wrap; /* Permet aux liens de passer à la ligne au lieu de déborder */
    }

    .navbar a {
        font-size: 0.8rem; /* Texte un peu plus petit */
        letter-spacing: 1px;
    }

    /* 2. Ajustement de l'Accueil */
    .accueil-hero h1 {
        font-size: 3.5rem; /* On réduit le titre géant pour qu'il rentre sur l'écran */
    }

    .accueil-hero h2 {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .about-left, .about-right {
        width: 100%; /* Chaque bloc prend toute la largeur du téléphone */
        flex: none;
    }
}