/* ==========================================================
   BASE LAYOUT
========================================================== */

.content_laboratoire {
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 2rem;
}

/* Fond */
.fond-laboratoire {
  background-image: url("../images/fonds/fond_laboratoire.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
}

/* ==========================================================
   LAYOUT PRINCIPAL
========================================================== */

.laboratoire-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Image */
.image-laboratoire img {
  width: 408px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
}

/* ==========================================================
   PANNEAU MÉTALLIQUE
========================================================== */

.panel-metal {
  flex: 1;
  background: linear-gradient(135deg, #3d3d3d, #2a2a2a 40%, #202020 70%);
  border: 4px solid #3f3f3f;
  border-radius: 12px;
  padding: 2rem;
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.8),
    0 10px 30px rgba(0,0,0,0.6);

  position: relative;
  overflow: hidden;

  background-image: url("../images/metal.webp");
  background-size: cover;
  background-blend-mode: overlay;

  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Rivets */
.panel-metal::before,
.panel-metal::after,
.panel-metal .riv-bottom-left,
.panel-metal .riv-bottom-right {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #b2b2b2 0%, #6d6d6d 60%, #1a1a1a 100%);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

.panel-metal::before {
  top: 10px;
  left: 10px;
}

.panel-metal::after {
  top: 10px;
  right: 10px;
}

.panel-metal .riv-bottom-left {
  bottom: 10px;
  left: 10px;
}

.panel-metal .riv-bottom-right {
  bottom: 10px;
  right: 10px;
}

/* Texte */
.panel-metal p {
  line-height: 1.6;
  color: #e2e2e2;
}

/* ==========================================================
   SCROLL
========================================================== */

.scroll-spacer {
  height: 600px;
}

/* ==========================================================
   ZONE SECRÈTE
========================================================== */

.secret-zone {
  display: flex;
  justify-content: center;
}

.secret-link img {
  width: 320px;
  opacity: 0.4;
  transform: translateY(120px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.secret-zone:hover img {
  opacity: 0.85;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE TABLETTE
========================================================== */

@media (max-width: 900px) {

  .laboratoire-layout {
    flex-direction: column;
    align-items: center;
  }

  .image-laboratoire img {
    width: 80%;
    max-width: 420px;
  }

  .panel-metal {
    width: 100%;
  }
  
  .image-laboratoire {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .image-laboratoire img {
    width: 90%;
    max-width: 360px;
  }
}

/* ==========================================================
   RESPONSIVE MOBILE
========================================================== */

@media (max-width: 600px) {

  .content_laboratoire {
    padding: 1rem;
    margin: 1rem auto;
  }

  .panel-metal {
    padding: 1.2rem 1rem; /* 👈 marge interne droite/gauche renforcée */
  }

  .panel-metal p {
    margin: 0; /* évite débordements visuels + contrôle propre */
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .scroll-spacer {
    height: 350px;
  }

  .secret-link img {
    width: 240px;
    transform: translateY(80px);
  }
}