* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.projet-header {
    background: linear-gradient(135deg, #3E54AC, #655DBB);
    padding: 2rem;
    text-align: center;
    position: relative;
    color: white;
}

.projet-header h1 {
    font-size: 2.5rem;
    color: white;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: translateX(-5px);
}

.back-arrow {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    filter: brightness(0) invert(1);
}

.projet-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.projet-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.projet-content {
    display: flex;
    flex-direction: row;
}

.projet-info {
    flex: 1;
    padding: 2.5rem;
}

.projet-image {
    flex: 1;
    min-height: 300px;
    max-height: 500px;
}

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

.projet-info h2 {
    color: #3E54AC;
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #BFACE2;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.projet-info p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.projet-button {
    display: inline-block;
    background-color: #3E54AC;
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(62, 84, 172, 0.2);
}

.projet-button:hover {
    background-color: #655DBB;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(62, 84, 172, 0.3);
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #f5f5f5;
    color: #666;
}

@media (max-width: 900px) {
    .projet-content {
        flex-direction: column-reverse;
    }

    .projet-image {
        min-height: 200px;
    }
}