/* Style pour la bannière sticky */
.main-header {
    position: -webkit-sticky; 
    position: sticky;
    top: 0;
    z-index: 1000; 
    background-color: #fff; 
    box-shadow: 0 4px 2px -2px gray;
    transition: padding 0.3s ease, background-color 0.3s ease; /* Transition fluide pour padding et couleur de fond */
}

/* Quand on a défilé, la barre devient plus petite */
.main-header.scrolled {
    padding: 10px 0; /* Réduit la hauteur de la barre */
    background-color: #1a1a1d; /* Change la couleur de fond lorsque l'on défile */
}

/* Pour la mise en forme du nav si nécessaire */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.main-nav li {
    display: inline-block;
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease; /* Transition fluide pour la couleur du texte */
}

.main-header.scrolled .main-nav a {
    color: #fff; /* Change la couleur du texte quand on défile */
}

.main-nav a:hover {
    background-color: #f76c6c;
}

/* Styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    background-color: #1a1a1d;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
}

.main-nav a {
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: #f76c6c;
}

/* Main Content */
.main-content {
    padding: 50px 20px;
}

/* Section */
.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* À propos */
#about {
    background-color: #e9e9e9;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Parcours */
#parcours {
    background-color: #f9f9f9;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    background-color: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item h3 {
    color: #2d3a3a;
    font-size: 1.3rem;
}

.timeline-item p {
    color: #666;
}

/* Projets */
#projects {
    background-color: #f4f4f4;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
}

.project-details ul {
    padding-left: 20px;
}

.project-details li {
    font-size: 1rem;
    color: #666;
}

.project a {
    display: inline-block;
    background-color: #f76c6c;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.project a:hover {
    background-color: #d65a5a;
}

/* Stages */
#stages {
    background-color: #fff;
}

.stages-container {
    display: flex;
    gap: 2rem;
}

.stage-year {
    flex: 1;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stage h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.stage p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.stage a {
    display: inline-block;
    background-color: #1a1a1d;
    color: #fff;
    padding: 8px 16px;
    text-align: center;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.stage a:hover {
    background-color: #f76c6c;
}

/* CV */
#cv {
    text-align: center;
}

.btn-download {
    display: inline-block;
    background-color: #f76c6c;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #d65a5a;
}

/* Veille */
#veille {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

ul {
    margin-left: 20px;
}

ul li {
    font-size: 1rem;
    color: #666;
}

/* Formulaire Contact */
#contact {
    background-color: #f4f4f9;
    padding: 50px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background-color: #f76c6c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #d65a5a;
}

/* Footer */
.main-footer {
    background-color: #1a1a1d;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
}
