body {
  overflow-x: hidden;
}

/* =========================================================
   FOND
   ========================================================= */

.fond-puit {
  background-image: url("../images/fonds/fond_vieux_puit.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #e8eeee;
}

/* =========================================================
   CONTENU
   ========================================================= */

.content_puit {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 2rem;

  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: calc(100vh - 160px); /* ajuste selon header+footer */
}

/* =========================================================
   TEXTE — VOILE TOILE
   ========================================================= */

.texte-puit {
  width: 100%;
  max-width: 420px;
  padding: 1.8rem 2rem;

  background: rgba(20,20,25,0.35);
  backdrop-filter: blur(2px);

  border-left: 2px solid rgba(160,160,170,0.35);
  box-shadow: 0 0 30px rgba(0,0,0,0.6);

  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  opacity: 0.9;
}

.ecouter-indice {
  display: inline-block;
  margin-top: 0.6rem;

  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.06em;

  color: #d8b07a; /* cuivre doux */
  opacity: 0.9;

  text-shadow:
    0 0 6px rgba(255,180,100,0.35),
    0 0 12px rgba(255,140,60,0.15);

  filter: saturate(1.1);
}

/* =========================================================
   TITRE
   ========================================================= */

.texte-puit h1 {
  margin-bottom: 1.2rem;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: #d4c98a;
  opacity: 0.8;
}

/* =========================================================
   TEXTE
   ========================================================= */

.texte-puit p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =========================================================
   BOUTON — TORCHE / ECOUTE
   ========================================================= */

#ecouter-puit {
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid rgba(255,180,90,0.5);
  color: #ffcf8a;
  padding: 0.6rem 1.2rem;
  font-family: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;

  box-shadow:
    0 0 6px rgba(255,140,50,0.4),
    inset 0 0 8px rgba(255,160,80,0.3);

  animation: flamme 2.5s infinite ease-in-out;
}

@keyframes flamme {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(255,140,50,0.4),
      inset 0 0 8px rgba(255,160,80,0.3);
  }
  50% {
    box-shadow:
      0 0 12px rgba(255,180,80,0.8),
      inset 0 0 12px rgba(255,200,120,0.4);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
  /* CONTENEUR */
  .content_puit {
    justify-content: center;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 0 0rem;
  }

  /* CARTE TEXTE */
  .texte-puit {
    max-width: 100%;
    padding: 1rem 1rem;
  }

  /* TITRE */
  .texte-puit h1 {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
  }

  /* TEXTE */
  .texte-puit p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* INDICE */
  .ecouter-indice {
    font-size: 0.9rem;
    margin-top: 0.3rem;
  }

  /* BOUTON */
  #ecouter-puit {
    width: 60%;
    margin-top: 1rem;
    padding: 0.5rem 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }
}
