/* ===== GLOBAL ===== */
/* ===== CENTRAGE GLOBAL DU CONTENU ===== */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: #1f1f1f;
  line-height: 1.6;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== CONTENEUR CENTRAL ===== */
h1,
h2,
h3,
p,
ul {
  max-width: 900px;
  width: 90%;
}

/* ===== JUSTIFICATION DU TEXTE ===== */
p {
  text-align: justify;
  margin: 10px auto;
}

/* ===== LISTES CENTRÉES PROPREMENT ===== */
ul {
  padding-left: 0;
  margin: 10px auto;
}

/* on garde les items mais centrés */
li {
  background-color: white;
  margin: 10px auto;
  padding: 10px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== TITRES CENTRÉS ===== */
h1 {
  text-align: center;
  margin-top: 30px;
  color: #1e2a38;
  font-size: 2.2em;
}

h2 {
  text-align: left;
  color: #2c3e50;
  border-left: 5px solid #4caf50;
  padding-left: 10px;
}

h3 {
  color: #4caf50;
  margin-top: 10px;
}

/* ===== NAVIGATION RESTE CENTRÉE ===== */
nav {
  width: 100%;
  background-color: #1e2a38;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== SOUS MENU CENTRÉ ===== */
.submenu {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background-color: #e9eef5;
  position: sticky;
  top: 0;
}
/* ===== NAVIGATION ===== */
nav {
  background-color: #1e2a38;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: 0.3s;
}

nav a:hover {
  background-color: #3a4d63;
}

/* ===== SOUS MENU ===== */
.submenu {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background-color: #e9eef5;
  position: sticky;
  top: 0;
}

.submenu a {
  text-decoration: none;
  color: #1e2a38;
  font-weight: bold;
}

/* ===== TITRES ===== */
h1 {
  text-align: center;
  margin-top: 30px;
  color: #1e2a38;
  font-size: 2.2em;
}

h2 {
  margin-top: 40px;
  color: #2c3e50;
  border-left: 5px solid #4caf50;
  padding-left: 10px;
}

h3 {
  color: #4caf50;
  margin-top: 10px;
}

/* ===== LISTES ===== */
ul {
  list-style-type: none;
  padding-left: 0;
}

li {
  background-color: white;
  margin: 10px auto;
  padding: 10px;
  width: 80%;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== PARAGRAPHES ===== */
p {
  width: 85%;
  margin: auto;
  text-align: justify;
}

/* ===== BLOCS TEXTE + IMAGE ===== */
.texte-image {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 85%;
  margin: auto;
}

.texte-image img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ===== MODALE ===== */
#myModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

#myModal > div {
  background: white;
  margin: 10% auto;
  padding: 20px;
  width: 50%;
  border-radius: 8px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .texte-image {
    flex-direction: column;
  }

  li {
    width: 95%;
  }

  p {
    width: 95%;
  }
}
