/* Section Home */
#home {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 0 3em 0;
}

#home img {
    width: 40em;
    height: 18em;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero {
    text-align: left;
    max-width: 900px;
}

.hero h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Aperçu des projets */
.voirProjet {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#ProjectsViewDemo {
    padding: 0 0 2em 0;
}

#ProjectsViewDemo .grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1em;
}

#ProjectsViewDemo .cell {
    flex: 0 0 auto;
    width: 15em;
    max-height: 30em;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#ProjectsViewDemo .cell:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

#ProjectsViewDemo .cell h3 {
    margin-bottom: 10px;
    color: white;
    font-size: 1.2em;
}

#ProjectsViewDemo .cell p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

#ProjectsViewDemo .cell a {
    color: white;
    text-decoration: none;
}

/* Timeline / Parcours */
.history-tl-container {
    margin-top: 40px;
}

.tl {
    list-style: none;
    padding: 0;
}

.tl-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tl-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.timestamp {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-title {
    font-size: 1.4em;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.item-detail {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    line-height: 1.6;
}

/* Compétences */
.Competences_columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.Competences_columns > div {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.Competences_columns > div:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.Competences_columns h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: white;
}

.Competences_columns ul {
    list-style: none;
    padding: 0;
}

.Competences_columns li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.Competences_columns li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    #home {
        flex-direction: column;
        gap: 30px;
    }

    #home img {
        width: 100%;
        height: auto;
    }

    .hero h2 {
        font-size: 2em;
    }

    .Competences_columns {
        grid-template-columns: 1fr;
    }
}