* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #121212;
    color: #FFFFFF;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #121212, #1A1A1A);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    color: #1DB954;
    font-size: 1.5em;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #BB86FC;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1DB954;
}

/* Sections */
section {
    padding: 100px 20px;
    text-align: center;
}

h1 {
    color: #FFFFFF;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}

p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #B3B3B3;
}

.gradient-bg {
    background: linear-gradient(135deg, #121212, #1A1A1A, #BB86FC);
}

/* Accueil */
.profile {
    max-width: 800px;
    margin: 0 auto;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #1DB954;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
}

.social-links {
    margin-top: 20px;
}

.social-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    background: #1A1A1A;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #1DB954;
    color: #121212;
    box-shadow: 0 0 10px #1DB954;
}

/* Bouton */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #1DB954;
    color: #121212;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #BB86FC;
    box-shadow: 0 0 15px #BB86FC;
}

/* Skills */
.skills {
    max-width: 600px;
    margin: 40px auto;
}

.skill {
    margin: 20px 0;
    text-align: left;
}

.skill span {
    color: #FFFFFF;
    font-weight: 700;
}

.bar {
    background: #333;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, #1DB954, #BB86FC);
    height: 100%;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Outils/Logiciels Utilisés */
.tools {
    max-width: 1000px; /* Slightly wider for better spacing */
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adaptive grid */
    gap: 25px; /* Increased spacing for a cleaner look */
    justify-items: center;
    padding: 0 20px;
}

.tool-card {
    background: #1A1A1A; /* Dark card background */
    border-radius: 12px; /* Softer rounded corners */
    padding: 20px;
    text-align: center;
    width: 140px; /* Fixed width for consistency */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.tool-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(29, 185, 84, 0.4); /* Enhanced green glow */
    background: linear-gradient(135deg, #1A1A1A, #252525); /* Subtle gradient shift */
}

.tool-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%; /* Keep circular logos */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tool-card:hover .tool-logo {
    transform: scale(1.15); /* Slightly larger on hover */
    filter: brightness(1.2); /* Brighten logo on hover */
}

.tool-card span {
    display: block;
    color: #FFFFFF;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.tool-card:hover span {
    color: #1DB954; /* Green text on hover */
}

/* Animated background effect on hover */
.tool-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(29, 185, 84, 0.2); /* Subtle green glow */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.tool-card:hover::before {
    width: 200px;
    height: 200px;
}

/* Ensure content stays above the background effect */
.tool-card .tool-logo,
.tool-card span {
    position: relative;
    z-index: 1;
}

/* Responsivité */
@media (max-width: 768px) {
    .tools {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Smaller cards on tablets */
        gap: 20px;
    }

    .tool-card {
        width: 120px;
        padding: 15px;
    }

    .tool-logo {
        width: 60px;
        height: 60px;
    }

    .tool-card span {
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .tools {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Even smaller for mobile */
        gap: 15px;
    }

    .tool-card {
        width: 100px;
        padding: 12px;
    }

    .tool-logo {
        width: 50px;
        height: 50px;
    }

    .tool-card span {
        font-size: 0.85em;
    }
}

/* Responsivité */
@media (max-width: 600px) {
    .tool-item {
        width: 100px;
    }
    .tool-logo {
        width: 60px; /* Taille réduite pour petits écrans */
        height: 60px;
    }
}

/* Responsivité */
@media (max-width: 600px) {
    .tool-item {
        width: 80px;
    }
    .tool-logo {
        width: 40px;
        height: 40px;
    }
}

/* Timeline Branch (Parcours) */
.timeline-branch {
    max-width: 800px; /* Légèrement plus large pour plus d'espace */
    margin: 40px auto;
    position: relative;
    padding: 20px 0;
}

.timeline-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #1DB954, #BB86FC);
    transform: translateX(-50%);
}

.branch-item {
    position: relative;
    width: 50%; /* Chaque élément occupe la moitié de la largeur */
    margin: 40px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.branch-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Positionnement alterné */
.branch-item.left {
    left: 0;
    text-align: right;
}

.branch-item.right {
    left: 50%;
    text-align: left;
}

.branch-point {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #1DB954;
    border-radius: 50%;
    box-shadow: 0 0 10px #1DB954;
    z-index: 1;
    transform: translateY(-50%);
}

.branch-item.left .branch-point {
    right: -6px; /* Positionne le point à droite pour les éléments à gauche */
}

.branch-item.right .branch-point {
    left: -6px; /* Positionne le point à gauche pour les éléments à droite */
}

.branch-content {
    background: #1A1A1A;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.branch-item.left .branch-content {
    margin-right: 20px; /* Espace entre le contenu et la ligne centrale */
}

.branch-item.right .branch-content {
    margin-left: 20px; /* Espace entre le contenu et la ligne centrale */
}

.branch-content:hover {
    background: #252525;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

/* Responsivité */
@media (max-width: 768px) {
    .branch-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
    }

    .branch-item .branch-point {
        left: -6px !important;
        right: auto !important;
    }

    .branch-item .branch-content {
        margin-left: 20px;
        margin-right: 0;
    }

    .timeline-branch::before {
        left: 6px;
    }
}

/* Options BTS */
.options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.option {
    background: #1A1A1A;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.option:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
}

.option h3 {
    color: #1DB954;
    font-size: 1.5em;
    margin-bottom: 10px;
}

h2 {
    color: #BB86FC;
    font-size: 1.8em;
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

/* Playlist (Projets) */
.playlist {
    max-width: 800px;
    margin: 40px auto;
}

.track {
    display: flex;
    align-items: center;
    background: #1A1A1A;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.track:hover {
    background: #252525;
    box-shadow: 0 0 10px #1DB954;
}

.track-img {
    width: 150px; /* Taille encore plus grande */
    height: 150px; /* Taille encore plus grande */
    border-radius: 4px;
    margin-right: 25px; /* Marge augmentée pour l'espacement */
    object-fit: cover;
}

.track-info {
    flex-grow: 1;
}

.track-info h3 {
    color: #FFFFFF;
    font-size: 1.2em;
}

.track-info p {
    color: #B3B3B3;
    font-size: 0.9em;
}

.play-btn {
    color: #1DB954;
    font-size: 1.5em;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.2);
    color: #BB86FC;
}

/* Modal (Pop-up) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1A1A1A;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px; /* Plus large pour la galerie */
    width: 90%;
    position: relative;
    box-shadow: 0 0 20px #1DB954;
    max-height: 80vh;
    overflow-y: auto; /* Défilement si beaucoup d'images */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #BB86FC;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #1DB954;
}

/* Galerie */
.gallery {
    margin-top: 20px;
}

.gallery-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 40%; /* Image à gauche */
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.gallery-item .description {
    width: 60%; /* Description à droite */
    color: #B3B3B3;
    line-height: 1.6;
}

.gallery-item .description strong {
    color: #1DB954;
}

/* Responsivité */
@media (max-width: 600px) {
    .track-img {
        width: 80px; /* Taille réduite pour petits écrans */
        height: 80px;
        margin-right: 15px;
    }

    .gallery-item {
        flex-direction: column;
    }
    .gallery-item img,
    .gallery-item .description {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Contact */
form {
    max-width: 600px;
    margin: 40px auto;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #1A1A1A;
    border: none;
    color: #FFFFFF;
    border-radius: 4px;
}

textarea {
    height: 150px;
}
/* Conteneur des boutons de téléchargement */
.download-boxes {
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacement entre les boutons */
}

/* Style des boutons de téléchargement */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1A1A1A;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    width: 250px; /* Largeur fixe pour uniformité */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Titre du document */
.download-btn .download-title {
    font-size: 1em;
    font-weight: 700;
    color: #FFFFFF;
}

/* Icône de téléchargement */
.download-btn .download-icon {
    font-size: 1.2em;
    color: #1DB954;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Effet au survol */
.download-btn:hover {
    background: #1DB954;
    color: #121212;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
}

/* Animation de l’icône au survol */
.download-btn:hover .download-icon {
    transform: translateY(5px); /* L’icône "rebondit" vers le bas */
    color: #121212;
}

/* Animation de fond au survol */
.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(187, 134, 252, 0.2); /* Léger effet violet */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Assure que le contenu reste au-dessus de l’effet */
.download-btn .download-title,
.download-btn .download-icon {
    position: relative;
    z-index: 1;
}

/* Responsivité */
@media (max-width: 600px) {
    .download-btn {
        width: 100%; /* Pleine largeur sur petits écrans */
        max-width: 300px;
    }
}
/* Conteneur des certificats */
.certificates-boxes {
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espacement entre les boutons */
}

/* Réutilisation du style des boutons de téléchargement */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1A1A1A;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    width: 250px; /* Largeur fixe pour uniformité */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn .download-title {
    font-size: 1em;
    font-weight: 700;
    color: #FFFFFF;
}

.download-btn .download-icon {
    font-size: 1.2em;
    color: #1DB954;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    background: #1DB954;
    color: #121212;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
}

.download-btn:hover .download-icon {
    transform: translateY(5px); /* Animation de l’icône */
    color: #121212;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(187, 134, 252, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn .download-title,
.download-btn .download-icon {
    position: relative;
    z-index: 1;
}

/* Responsivité */
@media (max-width: 600px) {
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
}
/* Section Alternance */
#alternance {
    padding: 100px 20px;
    text-align: center;
    background: #121212;
}

.mission-list {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
    list-style: none;
}

.mission-list li {
    background: #1A1A1A;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    color: #B3B3B3;
    transition: all 0.3s ease;
}

.mission-list li:hover {
    background: #252525;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

.mission-list li::before {
    content: '✔';
    color: #1DB954;
    margin-right: 10px;
}

/* Responsivité */
@media (max-width: 600px) {
    .mission-list li {
        padding: 10px;
        font-size: 0.9em;
    }
}
/* Section Veille */
#veille {
    padding: 100px 20px;
    text-align: center;
}

.veille-container {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.veille-item {
    background: #1A1A1A;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 380px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.veille-item:hover {
    background: #252525;
    box-shadow: 0 0 10px #1DB954;
    transform: translateY(-5px);
}

.veille-item h3 {
    color: #FFFFFF;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.veille-item .preview {
    color: #B3B3B3;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Modal (réutilise les styles existants, mais ajout pour sources) */
#modal-content-text {
    color: #B3B3B3;
    line-height: 1.6;
    margin-bottom: 20px;
}

#modal-content-text strong {
    color: #1DB954;
}

#modal-sources {
    list-style: none;
    color: #B3B3B3;
    font-size: 0.9em;
}

#modal-sources li {
    margin: 5px 0;
}

#modal-sources a {
    color: #BB86FC;
    text-decoration: none;
}

#modal-sources a:hover {
    color: #1DB954;
}

/* Responsivité */
@media (max-width: 600px) {
    .veille-item {
        max-width: 100%;
    }
}
