/* Import de la police */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap');

:root {
    --primary-color: #ff5722;
    --secondary-color: #ff9800;
    --background-gradient: linear-gradient(135deg, #ffebee, #fff3e0);
    --text-color: #333;
    --box-bg: rgba(255, 255, 255, 0.9);
    --accent-bg: #fff8e1;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background: var(--background-gradient);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    min-height: 100vh;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 30px;
}

header h1 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 0.2em;
}

header p {
    font-size: 1.2em;
    color: var(--text-color);
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    background-color: var(--box-bg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    margin: 0 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Sections */
section {
    margin: 60px 0;
    background: var(--box-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Titres */
section h2 {
    text-align: center;
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

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

.project-card {
    background: var(--accent-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.project-card p {
    font-size: 0.95em;
    color: #555;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

/* CV */
.cv-section ul {
    list-style: none;
    padding: 0;
}

.cv-section li {
    margin-bottom: 10px;
}
/* === Barres de compétences === */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.skill {
    margin-bottom: 20px;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.skill-bar {
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    height: 12px;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease-in-out;
}

/* === Timeline (Parcours) === */

.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 50px;
    border-left: 3px solid var(--primary-color);
}

.timeline-entry {
    position: relative;
    margin-bottom: 30px;
}

.timeline-entry::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -29px;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-entry h4,
.timeline-entry p {
    margin-left: 0;
}


/* Formulaire de contact */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

input[type="submit"] {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="submit"]:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: #777;
    font-size: 0.9em;
    background-color: #fff3e0;
}
