/* 1. Styles généraux */

body {
  font-family: "Poppins", sans-serif;
  color: #f5f7f2;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #020807;
  background-image: radial-gradient(
    circle at top,
    #2b6f4f 0%,
    #071b14 45%,
    #020807 100%
  );
  position: relative;
}

/* 2. Hero (bannière du haut) */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero-content {
  max-width: 700px;
  background: rgba(3, 20, 14, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  padding: 2.2rem 2rem 1.9rem;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title span {
  color: #a5d6a7;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #e8f5e9;
  opacity: 0.9;
  margin-bottom: 1.8rem;
}

.hero-btn {
  border: none;
  outline: none;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    #43a047 40%,
    #a1ea84 49.99%,
    #a1ea84 50.01%,
    #004d40 60%
  );
  background-size: 300% 100%;
  background-position: 100% 50%;
  background-repeat: no-repeat;
  color: #f1f8e9;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-position 0.5s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  background-position: 0% 50%;
}

.hero-btn:active {
  transform: scale(0.97);
}

/* 3. Liste d’images (galerie) */

.list-images {
  display: none; /* caché au début */
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
}


.list-images.visible {
  display: flex;
  flex-wrap: wrap; /* permet de passer à la ligne en dessous */
  gap: 2rem;
  justify-content: center;
}

.image-cliquable {
  cursor: pointer;
}

.card {
  background: #050b0f;
  border-radius: 20px;
  overflow: hidden;
  max-width: 360px;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  flex: 1 1 300px; /* ← juste cette ligne en plus */
}

/* Image en haut de la carte */
.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

/* Texte de la carte */
.card-content,
.card h2,
.card p {
  padding: 0 1.5rem 1.5rem;
}

.card h2 {
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.popup-visible {
  display: block;
  animation: zoomIn 0.25s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8) translate(-50%, -50%);
    opacity: 0;
  }
  to {
    transform: scale(1) translate(-50%, -50%);
    opacity: 1;
  }
}

.popup-invisible {
  display: none;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000000;
  padding: 5px;
  border: 2px solid #000000;
  border-radius: 10px;
  z-index: 101;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup img {
  max-width: 90vw; /* occupe jusqu'à 90% de la largeur de la fenêtre */
  max-height: 90vh; /* occupe jusqu'à 90% de la hauteur de la fenêtre */
  border-radius: 8px;
  display: block;
}

.cache-fenetre {
  position: relative;
  z-index: 1;
}

.btn {
  background-color: #a1ea84;
  border: 2px solid black;
  border-radius: 13px;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}

.credit {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.credit a {
  color: #a1ea84;
  text-decoration: underline;
}
.credit a:hover {
  color: #43a047;
}

.formulaire {
  flex: 1 1 320px;
  max-width: 350px;
  display: none; /* caché au début, montré au clic sur le bouton */
  max-width: 350px;
  margin: 3rem auto 0;
  padding: 1.8rem 2rem;
  background-color: #020807;
  opacity: 0.9;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  color: #f5f7f2;
}

.formulaire h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.formulaire label {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.formulaire input[type="text"],
.formulaire input[type="url"] {
  width: 100%;
  height: 40px;
  margin-top: 0.3rem;
  padding: 0 0.7rem;
  border-radius: 6px;
  border: 1px solid #4c4949;
  background-color: #050b0f;
  color: #f5f7f2;
}

.formulaire button[type="submit"] {
  margin-top: 1.1rem;
  width: 100%;
  height: 42px;
  border-radius: 6px;
  border: 0;
  background-color: #43a047;
  color: #f5f7f2;
  font-weight: 600;
  cursor: pointer;
}
.formulaire textarea#description {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #4c4949;
  background-color: #050b0f;
  color: #f5f7f2;
  resize: vertical; /* tu peux laisser la possibilité d’agrandir */
}

.formulaire-et-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 3rem;
}

.preview-zone {
  flex: 1 1 320px;
  max-width: 360px;
  color: #f5f7f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

.preview-zone h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
}

#preview-card .card {
  margin-top: 0.5rem;
}

.mentions-hidden {
  display: none;
}

footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #f5f7f2;
  opacity: 0.85;
}
footer a {
  color: #a1ea84;
  text-decoration: underline;
}
