body {
  /*font-family: "Helvetica Neue", sans-serif;*/
  /*line-height: 1.6;*/
  /*color: #333;*/
  /*overflow-x: hidden;*/
  /*transition: background-color 0.5s ease, color 0.5s ease;*/
  /*background-color: #f5f5f5;*/
}

.story-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* On NE met plus opacity:0 sur .story-section */

.story-section {
  display: flex;
  justify-content: center;
  align-items: center;
  /*min-height: 100vh;*/
  padding: 4rem;
  gap: 6rem;
  max-width: 1600px;
  margin: 0 auto;
}

.text-block {
  flex: 0.8;
  max-width: 600px;
  padding: 3.5rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  margin: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-origin: center center;
  letter-spacing: 0.3px;
}

.image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  /*transition: transform 0.3s ease;*/
}

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

.progress-bar {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 4px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.progress-bar-fill {
  position: absolute;
  top: 50%;
  left: 20px;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  height: 4px;
  background: linear-gradient(90deg, #f39c12, #f1c40f);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Ligne de fond de la barre */

.mid-theme {
  background-color: #3e4a61;
  color: #e0e0e0;
}

.modal-image {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.8);
  opacity: 0;
  cursor: pointer;
}

.modal-close span {
  display: block;
  transform: translateY(-2px);
}

.modal-close:hover {
  transform: rotate(0deg) scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Styles responsives */

@media screen and (max-width: 1200px) {
  .story-section {
    padding: 2rem;
    gap: 3rem;
  }
}

@media screen and (max-width: 1200px) {
  .text-block {
    padding: 2rem;
  }
}

@media screen and (max-width: 900px) {
  .story-section {
    flex-direction: column;
    padding: 1rem;
    gap: 2rem;
    min-height: auto;
    margin: 4rem 0;
  }
}

@media screen and (max-width: 900px) {
  .text-block {
    flex: 1;
    width: 100%;
    max-width: 100%;
    order: 2;
  }
}

@media screen and (max-width: 900px) {
  .image-block {
    flex: 1;
    width: 100%;
    order: 1;
  }
}

@media screen and (max-width: 900px) {
  .image-placeholder {
    max-width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 900px) {
  .progress-bar {
    width: 250px;
    top: 20px;
  }
}

@media screen and (max-width: 900px) {
  .progress-step {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media screen and (max-width: 600px) {
  .story-container {
    padding: 1rem;
  }
}

@media screen and (max-width: 600px) {
  .text-block {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 400px) {
  .progress-bar {
    width: 180px;
  }
}

