body {
    margin: 0;
    padding: 120px 120px 0 120px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    min-height: 150vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    width: 70%;
    margin: 0 auto;
    border-radius: 16px;
}

.main-accueil {
    background: 
        linear-gradient(to bottom right, black 65%, transparent 100%),
        url(../img/Background_main.png) center bottom / contain no-repeat;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url(../img/Plan_de_travail_1.png);
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(10px);
    z-index: -1;
}

header {
    background-color: #01338f;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header-cache {
    transform: translateY(-100%);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 70px 20px 30px;
}

.parent {
    position: relative;
    cursor: pointer;
}

.parent svg {
    display: block;
    width: 200%;
}

ul {
    position: absolute;
    top: 50px;
    right: -45px;
    background-color: #01338f;
    border: solid;
    border-color: white;
    border-width: 2px;
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    min-width: 160px;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transition-delay: 0.2s;
}

.parent:hover > ul {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    transition-delay: 0s;
}

ul li a {
    display: block;
    padding: 20px 25px;
    color: white;
    font-family: LemonMilk;
    font-size: 1.2rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

ul li a:hover {
    color: #28b5b8;
}

@font-face {
    font-family: LemonMilk;
    src: url(../LEMONMILK-Medium.otf);
}

@font-face {
    font-family: Coolvetica;
    src: url(../Coolvetica\ Rg.otf);
}

nav a {
    text-decoration: none;
    font-family: LemonMilk;
    color: white;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

nav a:hover {
    color: #28b5b8;
}

.logo {
    width: 100px;
    height: auto;
    cursor: pointer;
}

.brand {
    display: flex;
    align-items: center;
    gap: 40px;
    text-decoration: none;
}

.name {
    font-family: LemonMilk;
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: white;
    text-transform: uppercase;
    z-index: 1;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

.titre {
    font-family: LemonMilk;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: #28b5b8;
    text-transform: uppercase;
    margin: 4px 0 0 0;
}

.portfolio {
    font-family: LemonMilk;
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
    margin-left: auto;
    margin-right: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    
}

.portfolio span {
    position: relative;
    z-index: 1;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

.dessin {
    width: 80px;
    height: auto;
    transform: rotate(-26deg);
    position: absolute;
    z-index: 0;
    left: -50px;
    margin-bottom: 45px;
}

svg {
    width: 40px;
    height: auto;
    margin-top: 5px;
}

.photo-profil {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    border: 5px solid #28b5b8;
}

.bienvenue {
    font-family: LemonMilk;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-align: center;
    margin-top: 30px;
}

h2 {
    font-family: Coolvetica;
    color: #28b5b8;
    font-size: 1rem;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 10px;
    max-width: 400px;
    line-height: 25px;
}

.apparition {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.apparition.visible {
    opacity: 1;
    transform: translateY(0);
}

.ligne {
    font-family: Coolvetica;
    color: #28b5b8;
    font-size: 1rem;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    max-width: 800px;
    line-height: 1.7;
    font-weight: bold;
}

.bloc-texte {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

footer {
    background-color: #325ba8;
    padding: 35px 20px;
    margin-top: 20px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-contact,
.footer-reseaux {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact h3,
.footer-reseaux h3 {
    font-family: LemonMilk;
    color: #28b5b8;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.footer-contact p {
    font-family: LemonMilk;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin: 0;
}

.footer-reseaux a {
    font-family: LemonMilk;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-reseaux a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.footer-reseaux a:hover {
    color: #28b5b8;
}

.footer-copy {
    font-family: LemonMilk;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
}

.competences {
    width: 100%;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.competences-titre {
    font-family: LemonMilk;
    color: white;
    font-size: 1.3rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.competences-categorie {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.competences-sous-titre {
    font-family: LemonMilk;
    color: #28b5b8;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.competences-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.competence-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: rgba(50, 91, 168, 0.15);
    border: 1px solid rgba(40, 181, 184, 0.3);
    border-radius: 12px;
    padding: 20px;
    width: 90px;
    transition: border-color 0.2s, transform 0.2s;
}

.competence-item:hover {
    border-color: #28b5b8;
    transform: translateY(-3px);
}

.competence-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.competence-item span {
    font-family: LemonMilk;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.55rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.main-projets {
    flex: 1;
    min-height: 100vh;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    width: 70%;
    margin: 0 auto;
    border-radius: 16px;
    gap: 50px;
}

.projets-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.projets-titre {
    font-family: LemonMilk;
    color: white;
    font-size: 2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0;
}

.projets-sous-titre {
    font-family: Coolvetica;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin: 0;
}

.filtres {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filtre-btn {
    font-family: LemonMilk;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid rgba(40, 181, 184, 0.3);
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.filtre-btn:hover,
.filtre-btn.actif {
    background-color: #28b5b8;
    color: white;
    border-color: #28b5b8;
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.projet-card {
    background-color: rgba(50, 91, 168, 0.1);
    border: 1px solid rgba(40, 181, 184, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.projet-card:hover {
    transform: translateY(-6px);
    border-color: #28b5b8;
}

.projet-card.cachee {
    display: none;
}

.projet-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: rgba(50, 91, 168, 0.2);
}

.projet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.projet-card:hover .projet-image img {
    transform: scale(1.05);
}

.projet-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.projet-card:hover .projet-overlay {
    opacity: 1;
}

.projet-lien {
    font-family: LemonMilk;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.2s, color 0.2s;
}

.projet-lien:hover {
    background-color: #28b5b8;
    border-color: #28b5b8;
}

.projet-infos {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projet-tag {
    font-family: LemonMilk;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #28b5b8;
    background-color: rgba(40, 181, 184, 0.1);
    border: 1px solid rgba(40, 181, 184, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    width: fit-content;
}

.projet-nom {
    font-family: LemonMilk;
    color: white;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.projet-desc {
    font-family: Coolvetica;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.6;
}

.projet-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.projet-techs span {
    font-family: LemonMilk;
    font-size: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px 8px;
}

.btn-retour {
    font-family: LemonMilk;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s;
}

.btn-retour:hover {
    color: #28b5b8;
}

.beat-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 600px;
}

.beat-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.beat-detail-titre {
    font-family: LemonMilk;
    color: white;
    font-size: 1.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.beat-detail-card {
    width: 100%;
    background-color: rgba(50, 91, 168, 0.15);
    border: 1px solid rgba(40, 181, 184, 0.3);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

.beat-detail-infos {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.beat-detail-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.beat-detail-label {
    font-family: LemonMilk;
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #28b5b8;
}

.beat-detail-valeur {
    font-family: LemonMilk;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: white;
}

.beat-detail-audio {
    width: 100%;
    border-radius: 8px;
}

.beat-detail-desc {
    font-family: Coolvetica;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 1px;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

.btn-acheter-detail {
    width: 100%;
    padding: 14px;
    background-color: #325ba8;
    color: white;
    font-family: LemonMilk;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-acheter-detail:hover {
    background-color: #28b5b8;
}