
body {
  margin: 0;
  background: #edf2f4;
  font-family: 'Poppins', sans-serif;
}
/* ===== CONTENEUR ===== */
.graphe {
  margin: 60px auto 120px auto;
  width: 90%;
  max-width: 1200px;
}

/* ===== TITRE PRINCIPAL ===== */
.graphe > h3:first-of-type {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 40px;
}

/* ===== BLOCS ZIGZAG ===== */
.bloc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 60px;
  gap: 20px;
}

/* Forcer sens : image à gauche (par défaut) ou à droite (row-reverse) */
.bloc.img-left {
  flex-direction: row; /* image puis texte */
  margin-right: 50px;
}
.bloc.img-right {
  flex-direction: row-reverse; /* texte puis image (image à droite visuellement) */
  margin-left: 50px;
}

/* Image */
.bloc img.graphique {
  border-radius: 10px;
  max-width: 45%;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Texte */
.text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  word-wrap: break-word;
  background-color: #2b2e42;
  padding: 30px;
  border-radius: 10px;
  color: #fff;
}

.text-block h3 {
  font-weight: bold;
  text-decoration: underline;
  font-size: 28px;
  margin: 0 0 8px 0;
}

.text-block p {
  margin: 0;
    font-size: 22px;
  line-height: 1.4;
}

/* Alignements selon sens */
.bloc.img-left .text-block { text-align: left; align-items: flex-start; }
.bloc.img-right .text-block { text-align: right; align-items: flex-end; }


/* Responsive : sur petits écrans, empiler (image au-dessus du texte) */
@media (max-width: 768px) {
  .bloc {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .bloc img.graphique, .text-block {
    max-width: 90%;
    width: 100%;
  }

  .bloc.img-right .text-block,
  .bloc.img-left .text-block {
    text-align: center;
    align-items: center;
  }
}

/* Footer fixe */
footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2b2e42;
  color: white;
  text-align: center;
  padding: 10px;
}
