/* CONFIGURATION GÉNÉRALE & NAVBAR */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --dark-color: #333;
    --light-bg: #f2f2f2;
    --white: #fff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--light-bg);
    min-height: 100vh;
    color: var(--dark-color);
}

.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.3rem 10%;
    background: var(--white);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 2rem; color: var(--dark-color); text-decoration: none; font-weight: 700;
}

.navbar a {
    font-size: 1.15rem; color: var(--dark-color); text-decoration: none;
    font-weight: 500; margin-left: 2.5rem; transition: .3s;
}

.navbar a:hover, .navbar a.active {
    color: var(--primary-color);
}

#check { display: none; }
.icons { position: absolute; right: 5%; font-size: 2.8rem; color: var(--dark-color); cursor: pointer; display: none; }






/* Responsive Navbar */
@media (max-width: 822px) {
    .icons { display: inline-flex; }
    #check:checked ~ .icons #menu-icon { display: none; }
    .icons #close-icon { display: none; }
    #check:checked ~ .icons #close-icon { display: block; }
    .navbar {
        position: absolute; top: 100%; left: 0; width: 100%; height: 0;
        background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.1); overflow: hidden; transition: .3s ease;
    }
    #check:checked ~ .navbar { height: 17.7rem; }
    .navbar a {
        display: block; font-size: 1.1rem; margin: 1.5rem 0; text-align: center;
        transform: translateY(-50px); opacity: 0; transition: .3s ease;
    }
    #check:checked ~ .navbar a {
        transform: translateY(0); opacity: 1; transition-delay: calc(.1s * var(--i));
    }
}


.container {
    max-width: 1100px;
    margin: 120px auto 50px; /* Marge haut pour éviter la navbar fixe */
    padding: 0 20px;
}


.roman-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.roman-content {
    flex: 1;
}

.roman-content h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.description {
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.roman-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%; /* Image ronde */
    border: 5px solid var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px; /* Boutons arrondis */
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--dark-color);
    color: var(--white);
}

/* Sections Standards */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

/* Petite ligne bleue sous les titres */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--primary-color); /* Rappel de couleur à gauche */
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px); /* Légère animation au survol */
}

.card h3 { margin-bottom: 0.5rem; }
.card .date { font-style: italic; color: #777; margin-bottom: 1rem; font-size: 0.9rem; }

/* Styles des Compétences (Tags) */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category h3 { margin-bottom: 1rem; text-align: center; }

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag {
    background: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    cursor: default;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.tag.outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.tag.outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    margin-top: 3rem;
}

/* --- RESPONSIVE CONTENU --- */
@media (max-width: 768px) {
    .roman-card {
        flex-direction: column-reverse; /* Image au dessus sur mobile */
        text-align: center;
        padding: 2rem;
    }
    
    .roman-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-secondary { margin-left: 0; }
    
    .skills-wrapper {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}