* {
    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 */
.tools {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tool-item {
    text-align: center;
    width: 100px; /* Ajuste selon la taille des logos */
}

.tool-logo {
    width: 50px; /* Taille uniforme des logos */
    height: 50px;
    object-fit: contain; /* Garde les proportions */
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.tool-item span {
    display: block;
    color: #FFFFFF;
    font-size: 0.9em;
}

.tool-logo:hover {
    transform: scale(1.1); /* Effet de zoom au survol */
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.5); /* Ombre verte */
}

/* Vitrine d'outils (nouveau) */
.tools-showcase {
    max-width: 980px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tool-category {
    background: radial-gradient(120% 120% at 10% 0%, rgba(187, 134, 252, 0.18), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(29, 185, 84, 0.12), transparent 45%),
        #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 16px 14px;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-category:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 185, 84, 0.22);
    box-shadow: 0 0 18px rgba(29, 185, 84, 0.14);
}

.tool-category__head h3 {
    margin: 0 0 6px;
    color: #FFFFFF;
    font-size: 1.1em;
    letter-spacing: 0.2px;
}

.tool-category__head p {
    margin: 0 0 12px;
    max-width: none;
    font-size: 0.95em;
    color: #B3B3B3;
}

.tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 0.92em;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.tool-badge:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.14);
}

.tool-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}

/* Variantes de couleurs par catégorie */
.tool-badge[data-kind="lang"] {
    border-color: rgba(187, 134, 252, 0.25);
    box-shadow: inset 0 0 0 1px rgba(187, 134, 252, 0.06);
}

.tool-badge[data-kind="framework"] {
    border-color: rgba(29, 185, 84, 0.22);
    box-shadow: inset 0 0 0 1px rgba(29, 185, 84, 0.06);
}

.tool-badge[data-kind="data"] {
    border-color: rgba(79, 195, 247, 0.18);
    box-shadow: inset 0 0 0 1px rgba(79, 195, 247, 0.05);
}

.tool-badge[data-kind="ide"] {
    border-color: rgba(255, 255, 255, 0.14);
}

.tool-badge[data-kind="devops"] {
    border-color: rgba(255, 167, 38, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 167, 38, 0.05);
}

.tool-badge[data-kind="pm"] {
    border-color: rgba(236, 64, 122, 0.16);
    box-shadow: inset 0 0 0 1px rgba(236, 64, 122, 0.05);
}

@media (max-width: 900px) {
    .tools-showcase {
        grid-template-columns: 1fr;
        max-width: 820px;
    }
}

/* Responsivité */
@media (max-width: 600px) {
    .tool-item {
        width: 80px;
    }
    .tool-logo {
        width: 40px;
        height: 40px;
    }
    .tool-badge {
        font-size: 0.9em;
        padding: 8px 10px;
    }
}

/* 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-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #B3B3B3;
}

.branch-list li {
    margin: 8px 0;
}

.branch-list strong {
    color: #FFFFFF;
}

.branch-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.86em;
    line-height: 1;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.tag--green {
    border-color: rgba(29, 185, 84, 0.22);
    box-shadow: inset 0 0 0 1px rgba(29, 185, 84, 0.06);
}

.tag--violet {
    border-color: rgba(187, 134, 252, 0.25);
    box-shadow: inset 0 0 0 1px rgba(187, 134, 252, 0.06);
}

.tag--orange {
    border-color: rgba(255, 167, 38, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 167, 38, 0.05);
}

.tag--pink {
    border-color: rgba(236, 64, 122, 0.16);
    box-shadow: inset 0 0 0 1px rgba(236, 64, 122, 0.05);
}

.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;
}

.projects-controls {
    max-width: 800px;
    margin: 20px auto 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.projects-search {
    flex: 1 1 320px;
}

#project-search {
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(26, 26, 26, 0.85);
    color: #FFFFFF;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#project-search:focus {
    border-color: rgba(187, 134, 252, 0.35);
    box-shadow: 0 0 0 4px rgba(187, 134, 252, 0.12);
}

.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-chip {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.35);
}

.filter-chip.is-active {
    border-color: rgba(29, 185, 84, 0.28);
    box-shadow: 0 0 12px rgba(29, 185, 84, 0.12);
}

.track {
    display: flex;
    align-items: center;
    background: #1A1A1A;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.track::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 0% 0%, rgba(187, 134, 252, 0.12), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(29, 185, 84, 0.10), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.track:hover {
    background: #252525;
    box-shadow: 0 0 10px #1DB954;
}

.track:hover::before {
    opacity: 1;
}

.track-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82em;
    line-height: 1;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.mini-tag--violet { border-color: rgba(187, 134, 252, 0.25); }
.mini-tag--green { border-color: rgba(29, 185, 84, 0.22); }
.mini-tag--blue { border-color: rgba(79, 195, 247, 0.18); }
.mini-tag--orange { border-color: rgba(255, 167, 38, 0.18); }
.mini-tag--pink { border-color: rgba(236, 64, 122, 0.16); }
.mini-tag--yellow { border-color: rgba(255, 238, 88, 0.16); }

/* Meta dans le modal projet */
.project-meta {
    margin-top: 10px;
    text-align: left;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
}

.project-meta p {
    margin: 0 0 10px;
    max-width: none;
}

.project-meta .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-meta .meta-label {
    color: #BB86FC;
    font-weight: 700;
    margin-right: 8px;
}
.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;
    }

    .projects-controls {
        justify-content: center;
    }

    .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;
    }
}