:root {
    --primary-blue: #1D2F6F;
    --secondary-blue: #8390FA;
    --accent-orange: #FAB348;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --bg-gray: #f7fafc;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Réutilisation de la Navigation du Portfolio */
nav {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.back-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-orange);
}

/* Main Content Container */
.project-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.project-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary-blue);
    padding-bottom: 1.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.project-meta {
    color: var(--text-light);
    font-style: italic;
}

/* Intégration de Contenu (PDF / Iframe) */
.content-viewer {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
}

/* Conteneur pour PDF ou Kaggle (Ratio 16:9 ou 4:3 ajustable) */
.embed-container {
    width: 100%;
    height: 120vh; /* Hauteur adaptative */
    border: none;
}

/* Description et analyse */
.project-description {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

.project-description h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-description p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.project-description ul {
    margin: -0.8rem 0 0 2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .project-title { font-size: 1.8rem; }
    .embed-container { height: 80vh; }
}