/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: system-ui, sans-serif;
    background-color: #f9f9f9;
    color: #222;
    height: 100%;
    line-height: 1.6;
}

/* Layout principal : flex pour pousser le footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

/* Navigation */
nav {
    background-color: #34495e;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 1rem;
}

nav a {
    color: white;
    margin: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease-in-out;
}

nav a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Contenu principal */
main {
    flex: 1; /* <-- Le coeur de la correction */
    padding: 2rem 1rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    flex-shrink: 0; /* Empêche le footer de se compresser ou s'étirer */
}

/* Responsive : un peu plus d'espace sur les grands écrans */
@media (min-width: 768px) {
    nav {
        justify-content: flex-start;
    }

    main {
        padding: 3rem;
    }
}

.cv-section {
    margin-bottom: 2em;
}

.cv-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
}

.cv-entry {
    margin-bottom: 1.2em;
    padding-left: 1em;
    border-left: 3px solid #3498db;
}

.cv-entry ul {
    margin: 0.5em 0 0 0;
    padding-left: 1.5em;
}

.cv-skills {
    list-style-type: square;
    padding-left: 1.5em;
}
