:root {
    --primary-color: #333; /* Gris foncé pour le texte principal */
    --secondary-color: #555; /* Gris moyen pour le texte secondaire */
    --accent-color: #007bff; /* Bleu professionnel pour les accents */
    --background-color: #f8f8f8; /* Arrière-plan très léger */
    --card-background: #ffffff; /* Fond des blocs de contenu */
    --border-color: #e0e0e0; /* Couleur des bordures subtiles */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}

header {
    background-color: var(--card-background);
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-picture {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.5em;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden; /* Pour que l'image ne dépasse pas si vous en mettez une */
}

.profile-picture:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header .tagline {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-top: 10px;
    font-weight: 400;
}

header .highlight {
    color: var(--secondary-color);
    font-size: 1.1em;
    margin-top: 5px;
    font-weight: 300;
}

header .intro-freelance {
    margin-top: 25px;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--primary-color);
    padding: 10px 20px;
    background-color: var(--background-color);
    border-radius: 5px;
    display: inline-block;
}

main section {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

p {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 1em;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    font-size: 1.05em;
    color: var(--secondary-color);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.service-item ul {
    list-style: none;
    padding: 0;
}

.service-item ul li {
    font-size: 1em;
    color: var(--secondary-color);
    margin-bottom: 5px;
    padding-left: 15px;
}

.service-item ul li::before {
    content: '✓'; /* Symbole plus distinct pour les compétences */
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Experience & Education Styles */
.job-item, .education-item {
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    background-color: var(--background-color);
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.job-item:last-child, .education-item:last-child {
    margin-bottom: 0;
}

.job-item h3, .education-item h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 5px;
}

.job-item .company, .education-item p {
    color: var(--secondary-color);
    font-size: 1em;
    margin-bottom: 5px;
}

.job-item .duration, .education-item .duration {
    color: var(--light-text-color);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.job-item ul {
    margin-top: 10px;
}

.job-item ul li {
    font-size: 1em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--secondary-color);
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3; /* Un bleu plus foncé au survol */
}

footer {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 0.95em;
    margin-top: 40px;
    background-color: var(--card-background);
}

/* Projects Section Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-item {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #0056b3 100%);
    color: white;
}

.project-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 20px;
    background-color: white;
    border-radius: 8px;
    padding: 8px;
}

.project-title h3 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    color: white;
}

.project-subtitle {
    margin: 5px 0 0 0;
    font-size: 1.1em;
    opacity: 0.9;
    color: white;
}

.project-description {
    padding: 25px;
}

.project-description p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-description h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin: 20px 0 10px 0;
}

.project-description ul {
    margin-bottom: 20px;
}

.project-description ul li {
    font-size: 1em;
    margin-bottom: 6px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

.project-links {
    padding: 0 25px 25px 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0;
    display: inline-block;
}

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

.button-secondary {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0;
    display: inline-block;
}

.button-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px 0;
    }

    header {
        padding: 40px 0;
    }

    header h1 {
        font-size: 2.5em;
    }

    header .tagline {
        font-size: 1.2em;
    }

    header .highlight, header .intro-freelance {
        font-size: 1em;
    }

    main section {
        padding: 30px;
    }

    h2 {
        font-size: 1.8em;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .job-item, .education-item {
        padding-left: 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .project-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .project-description {
        padding: 20px;
    }

    .project-links {
        padding: 0 20px 20px 20px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    header .tagline {
        font-size: 1em;
    }

    h2 {
        font-size: 1.6em;
    }

    p, ul li, .service-item p, .contact-info p {
        font-size: 1em;
    }

    .job-item h3, .education-item h3 {
        font-size: 1.2em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-title h3 {
        font-size: 1.4em;
    }

    .project-subtitle {
        font-size: 1em;
    }
}

