:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #414848;
    --text-color: #ffffff;
    --accent-color: #e74c3c;
    --card-background: #2d2d2d;
}

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

/* Ajouter au début de votre fichier competences.css ou dans un fichier global */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* viewport height */
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

main {
    flex: 1 0 auto; /* Cette propriété est cruciale - elle permet au contenu de s'étendre */
}

footer {
    flex-shrink: 0; /* Empêche le footer de rétrécir */
}


.cv-container {
    max-width: 1200px;
    margin: 72px auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 10px;
    background-color: var(--card-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    margin-bottom: 1.5rem;
}

.profile-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.profile-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.profile-description {
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.social-logos {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-logos a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-logos a:hover {
    color: var(--secondary-color);
}

.cv-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cv-section {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-section:hover {
    transform: translateY(-5px);
}

.cv-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.cv-item {
    margin-bottom: 1.5rem;
}

.cv-item:last-child {
    margin-bottom: 0;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cv-item-title {
    font-weight: bold;
    color: var(--text-color);
}

.cv-item-date {
    color: var(--accent-color);
}

.cv-item-subtitle {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.download-cv {
    display: block;
    width: 100%;
    max-width: 250px;
    text-align: center;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.download-cv:hover {
    scale: 1.1;
    background-color: #2980b9;
}

.qualities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.quality-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.quality-item i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    color: var(--secondary-color);
}

@media screen and (max-width: 768px) {
    .cv-sections {
        grid-template-columns: 1fr;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .cv-container {
        padding: 1rem;
    }
}

#email {
    color: white;
    text-decoration: none;
}

.center-section {
    margin: 40px;
}