.principal-detail-projet {
    background-color: #0a0a0a;
}
.hero-projet {
    text-align: center;
    position: relative;
    padding-bottom: 60px;
}
.conteneur-image-hero-projet {
    width: 100%;
    height: 55vh;
    overflow: hidden;
    position: relative;
}
.conteneur-image-hero-projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.conteneur-image-hero-projet .superposition-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 1) 5%,
        rgba(10, 10, 10, 0) 60%
    );
}
.titre-hero-projet {
    margin-top: -100px;
    position: relative;
    z-index: 2;
}
.titre-hero-projet h1 {
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.titre-degrade {
    background-image: linear-gradient(to right, #bb86fc, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.url-projet {
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    transition: color 0.3s;
    font-weight: 300;
    overflow-wrap: break-word;
}
.url-projet:hover {
    color: #bb86fc;
}
.badge-date {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 18px;
    background-color: #222;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Correction : Ajustement de la marge basse du conteneur principal */
.enveloppe-contenu-projet {
    max-width: 900px;
    margin: 0 auto 0px auto; /* Laisse une marge raisonnable en bas */
    padding: 0 20px;
    display: grid;
    gap: 30px;
}
.carte-info-projet {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 0;
}

.entete-carte-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}
.entete-carte-info svg {
    stroke: #bb86fc;
    flex-shrink: 0;
}
.entete-carte-info h2 {
    font-size: 1.5em;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
}

.texte-violet {
    color: #bb86fc;
}
.corps-carte-info {
    color: #ccc;
    line-height: 1.7;
    font-size: 1.05em;
    overflow-wrap: break-word;
    word-break: break-all;
}
.corps-carte-info p {
    margin-top: 0;
}

.liste-competences,
.liste-logiciels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.etiquette-competence {
    background-color: transparent;
    color: #bb86fc;
    border: 1px solid #bb86fc;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
}
.etiquette-logiciel {
    background-color: #333;
    color: #eee;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.grille-deux-colonnes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.grille-deux-colonnes .carte-info-projet {
    display: flex;
    flex-direction: column;
}
.grille-deux-colonnes .carte-info-projet .corps-carte-info {
    flex-grow: 1;
}

.navigation-projet {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 80px;
}
/* Styles pour le bouton de retour */
.bouton-principal {
    font-family: "Nohemi", Arial, sans-serif;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    background-image: linear-gradient(to right, #bb86fc, #8e44ad);
    color: #ffffff;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.bouton-principal:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Suppression de toutes les règles .section-commentaires */

@media (max-width: 768px) {
    .titre-hero-projet h1 {
        font-size: 2.2em;
    }
    .grille-deux-colonnes {
        grid-template-columns: 1fr;
    }
    .enveloppe-contenu-projet {
        padding: 0 15px;
    }
}
