@font-face {
    font-family: "Nohemi";
    src: url("../fonts/Nohemi-VF.ttf") format("truetype-variations");
    font-weight: 100 900;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: "Nohemi", Arial, sans-serif;
    margin: 0;
}

/* --- HEADER / BANNIÈRE --- */
.projet-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.banniere-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.img-banniere {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), #0a0a0a);
}

.header-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    z-index: 2;
}

.badge-type {
    background-color: #bb86fc;
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

h1 {
    font-size: 3.5em;
    margin: 15px 0 25px 0;
    color: #fff;
    line-height: 1.1;
}

.btn-visiter {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
}
.btn-visiter:hover {
    background: #fff;
    color: #000;
}

/* --- CONTENU PRINCIPAL --- */
.contenu-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

/* --- SIDEBAR (Infos) --- */
.infos-sidebar {
    border-right: 1px solid #333;
    padding-right: 40px;
}

.info-bloc {
    margin-bottom: 40px;
}

.info-bloc h3 {
    color: #888;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.info-bloc p {
    font-size: 1.1em;
    font-weight: 500;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-soft {
    background: #1c1c1c;
    border: 1px solid #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.liste-competences {
    list-style: none;
    padding: 0;
}

.liste-competences li {
    margin-bottom: 8px;
    padding-left: 15px;
    border-left: 2px solid #bb86fc;
}

/* --- SECTION TEXTE --- */
.contenu-principal h2 {
    color: #bb86fc;
    font-size: 1.8em;
    margin-bottom: 20px;
    margin-top: 0;
}

.bloc-texte {
    margin-bottom: 50px;
    line-height: 1.8;
    font-size: 1.1em;
    color: #ccc;
}

/* --- GALERIE --- */
.section-galerie {
    margin-top: 60px;
}

.grille-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.item-galerie {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

.item-galerie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.item-galerie img:hover {
    transform: scale(1.05);
}

/* --- LIGHTBOX --- */
#lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* --- FOOTER --- */
.navigation-footer {
    margin-top: 80px;
    border-top: 1px solid #333;
    padding-top: 40px;
}

.btn-retour {
    color: #888;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}
.btn-retour:hover {
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contenu-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .infos-sidebar {
        border-right: none;
        border-bottom: 1px solid #333;
        padding-right: 0;
        padding-bottom: 40px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .projet-header {
        height: 40vh;
    }

    h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 600px) {
    .infos-sidebar {
        grid-template-columns: 1fr;
    }
}
