body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #0f0f0f;
  color: white;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

select {
  padding: 8px;
  background: black;
  color: white;
  border: 1px solid white;
}

/* ===================================
   SECTION DIAGRAMME + ANALYSE
=================================== */

.chart-layout {
    width: 90%;
    max-width: 1600px;
    margin: 120px auto 80px auto;

    display: flex;
    gap: 50px;
    align-items: stretch;
}

/* ==========================
   DIAGRAMME
========================== */

.chart-section {
    flex: 0 0 45%;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;

    padding: 40px;

    backdrop-filter: blur(5px);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chart-section canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 600px;
}

#yearSelector {
    margin-top: 30px;

    background: rgba(255,255,255,0.08);
    color: white;

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;

    padding: 12px 20px;

    font-size: 1rem;
    cursor: pointer;
}

#yearSelector option {
    background: #1b1b1b;
}

/* ==========================
   ANALYSE
========================== */

.year-analysis {
    flex: 1;

    margin: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.analysis-header {
    margin-bottom: 20px;
    text-align: left;
}

.analysis-header h2 {
    font-size: 2rem;
    color: white;
    position: relative;
    display: inline-block;
}

.analysis-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;

    width: 70%;
    height: 2px;

    background: white;
}

.analysis-content {
    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 20px;

    padding: 40px;

    backdrop-filter: blur(5px);

    transition: 0.3s;
}

.analysis-content:hover {
    transform: translateY(-5px);
}

.analysis-content p {
    color: #d8d8d8;

    font-size: 1.05rem;
    line-height: 1.9;

    text-align: justify;
}

/* ==========================
   PROJETS ASSOCIÉS
========================== */

.projects {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto 100px auto;
}

.projects h2 {
    margin-bottom: 40px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 30px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;

    padding: 25px;
    margin-bottom: 25px;

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 280px;
    height: 180px;

    object-fit: cover;

    border-radius: 12px;
}

.project-card div {
    text-align: left;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.project-card p {
    color: #d8d8d8;
    line-height: 1.7;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1100px) {

    .chart-layout {
        flex-direction: column;
    }

    .chart-section {
        flex: auto;
    }

    .project-card {
        flex-direction: column;
        text-align: center;
    }

    .project-card div {
        text-align: center;
    }

    .project-card img {
        width: 100%;
        max-width: 500px;
        height: auto;
    }
}

/* PROJECTS */
.projects {
  width: 80%;
  margin: auto;
}

.project-card {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  background: #1a1a1a;
  padding: 15px;
  border-radius: 10px;
  transition: 0.3s;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}