/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
}

/* Header */
header {
    background-color: #d5e3d7;
    padding: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

nav ul li a.active {
    background-color: #f2f7f3;
    color: #000;
}

nav ul li a:hover {
    background-color: #b4cbb8;
}

/* Main Section */
main {
    text-align: center;
    padding: 40px 20px;
}

h1, h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #666666;
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.graph {
    margin: 0 auto 20px;
    width: 70%;
}

.graph img, .graph-urban img {
    max-width: 100%;
    height: auto;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.year-highlight {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(90deg, #ffeb3b, #ff8a00);
    -webkit-background-clip: text;
    color: transparent;
}

.deaths-highlight {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(90deg, #00e676, #ff3d00);
    -webkit-background-clip: text;
    color: transparent;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Nouvelle section : Les Populations urbaines */
.urban-populations-section {
    padding: 40px 20px;
    text-align: center;
}

.graph-urban {
    margin: 0 auto 20px;
    width: 70%;
}

/* Conteneur pour les graphiques en deux colonnes */
.graphs-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.center-chart {
    display: flex;
    justify-content: center;
    width: 600px;  /* Limiter la largeur pour que le graphique soit bien centré */
}

#chart-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.graph-description {
    margin-top: 20px;
    text-align: center;
}

.graph-box {
    background-color: #f2f7f3;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 70%;
    margin: 0 auto;
    margin-bottom: 20px;
    align-items: center;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Placeholder pour le graphique */
.graphic-placeholder {
    background-color: #ffffff;
    width: 150px;
    height: 150px;
    border: 2px solid #ccc;
    border-radius: 8px;
}

/* Texte à droite du graphique */
.text-content {
    flex: 1;
    margin-left: 20px;
    text-align: left;
}

.text-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.text-content p {
    font-size: 16px;
    color: #666;
}

/* Partie footer */

footer {
    background-color: #d5e3d7;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    font-size: 18px;
    color: #000000;
}

button {
    background-color: #C7D6D5;  /* Button background color */
    color: white;  /* Button text color */
    border: none;  /* No border */
    padding: 10px 20px;  /* Padding for the button */
    cursor: pointer;  /* Pointer cursor on hover */
    font-size: 16px;  /* Font size */
    border-radius: 5px;  /* Rounded corners */
    transition: background-color 0.3s;  /* Smooth transition */
}

button:hover {
    background-color: #A7B2B0;  /* Darker shade on hover */
}