* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #f1f1f1;
  background-image: url('https://hilelectronic.com/wp-content/uploads/2023/10/Circuit-Board-Patterns.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

section {
  padding: 2rem 1rem;
  scroll-margin-top: 100px;
}

.container {
  background-color: rgba(30, 30, 30, 0.85);
  color: #f1f1f1;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

header {
  background: transparent;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  background-color: rgba(43, 92, 77, 0.9);
}

header h1 {
  margin-bottom: 0.5rem;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #80ffc1;
}

nav a.active {
  color: #ffd700;
  text-decoration: underline;
}

.hero {
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.hero .container {
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 3rem;
  border-radius: 10px;
}

/* SERVICES - Flip Card Animation */
.services {
  display: grid;
  grid-template-columns: repeat(4, 2fr);
  gap: 1rem;
  margin-top: 1rem;
}

.flip-card {
  background-color: transparent;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 200px;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.flip-card-front {
  background: rgba(60, 90, 60, 0.8);
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

.flip-card-back {
  background: rgba(43, 92, 77, 0.9);
  color: #fff;
  transform: rotateY(180deg);
}

/* Scrollable content */
.flip-back-content {
  max-height: 100%;
  overflow-y: auto;
  text-align: left;
}

.flip-back-content::-webkit-scrollbar {
  width: 6px;
}

.flip-back-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* FORMULAIRE de CONTACT */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

form input,
form textarea {
  padding: 0.7rem;
  border-radius: 5px;
  border: none;
  background: rgba(40, 40, 40, 0.8);
  color: #fff;
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  padding: 0.8rem;
  background-color: #2b5c4d;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #3d7e68;
}

/* Message de confirmation */
#confirmation-message,
#confirmation-message-evenementiel {
  background-color: #4caf50;
  color: white;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 5px;
  text-align: center;
  display: none;
}

/* FOOTER */
footer {
  background: rgba(43, 92, 77, 0.95);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  border-top: 2px solid #1f3f35;
}

/* Responsive Mobile */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .hero h1,
  .hero h2 {
    font-size: 1.5rem;
  }

  header h1 {
    font-size: 1.7rem;
  }
}

#event-date {
  /* reprend le style de tes autres champs texte */
  padding: 0.7rem;
  border-radius: 5px;
  border: none;
  background: rgba(40, 40, 40, 0.8);
  color: #fff;
  font-size: 1rem;
}

#event-date::placeholder {
  color: #bbb;        /* gris clair pour se différencier du contenu */
  font-style: italic; /* optionnel */
}

/* Bulle de remerciement */
.thank-you-message {
  background-color: #4caf50;
  color: white;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  display: none; /* Masquée par défaut */
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* Animation de disparition avec barre de défilement */
.thank-you-message.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
