/* =========================================
   PAGE NOTRE HISTOIRE
   ========================================= */

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  background-image: url('Images/confettis.png');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  gap: 36px;
}

/* ---- Section alternée (texte + image) ---- */
.section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  gap: 28px;
  margin-bottom: 0;
}

/* ---- Boîte texte ---- */
.text {
  flex: 1;
  width: 45%;
  text-align: justify;
  background-color: var(--primary-light);
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.text:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.text h2 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.text p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-dark);
}

/* ---- Image ---- */
.image {
  flex: 1;
  width: 45%;
  height: auto;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  transition: transform 0.25s ease;
  display: block;
}

.image:hover {
  transform: scale(1.02);
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .section {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .image,
  .text {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 550px) {
  .container {
    padding-top: calc(var(--nav-height) + 100px);
    gap: 24px;
  }
  .text {
    padding: 16px 18px;
  }
  .text h2 {
    font-size: 17px;
  }
  .text p {
    font-size: 13px;
  }
}
