/* --- CONFIGURATION & COULEURS --- */
:root {
    --primary-dark: #0f172a;    /* Bleu nuit professionnel */
    --accent-blue: #2563eb;     /* Bleu action sobre */
    --bg-light: #f8fafc;        /* Fond de page très clair */
    --border-color: #e2e8f0;    /* Bordures fines */
    --text-main: #334155;       /* Gris ardoise pour la lecture */
    --white: #ffffff;
}

/* --- HERO CATEGORY (Sobre & Direct) --- */
.hero-category {
    background-color: var(--primary-dark);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
}

.hero-category .badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-category h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-category p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

/* --- NAVIGATION --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 30px 0 0 50px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-blue);
}

/* --- GRILLE DE PROJETS --- */
.category-projects {
    padding: 60px 0;
    background-color: var(--bg-light);
}

/* LA CARTE DE PROJET (Simple & Pro) */
.project-item {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* IMAGE DU PROJET */
.project-item img {
    width: 40%; /* L'image prend 40% de la largeur */
    height: 300px;
    object-fit: cover;
    border-right: 1px solid var(--border-color);
}

/* INFOS DU PROJET */
.project-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.project-info p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* BOUTON DETAILS (Minimaliste) */
.btn-details {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-details:hover {
    background-color: var(--accent-blue);
    color: var(--white);
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .project-item {
        flex-direction: column; /* Image au-dessus du texte sur mobile */
    }
    .project-item img {
        width: 100%;
        height: 200px;
    }
    .back-link {
        margin-left: 20px;
    }
}