/* --- GÉNÉRAL --- */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fffc00; /* Jaune Snapchat */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

/* --- LE CONTENEUR PRINCIPAL --- */
.snap-theme {
  background: white;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.logo {
  width: 70px;
  margin-bottom: 10px;
}

h1 {
  margin: 5px 0;
  font-size: 22px;
  color: #000;
  font-weight: 800;
}

p {
  margin: 5px 0 15px;
  color: #666;
  font-size: 14px;
}

/* --- FORMULAIRE & INPUTS --- */
input[type="text"], textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #eee;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #f8f8f8;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #000;
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  border-radius: 30px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.96);
}

/* --- SECTION AVIS MODERNE --- */
.reviews-container {
  margin-top: 25px;
  background: #ffffff;
  border-top: 1px solid #eee;
  padding-top: 20px;
  text-align: left;
}

.live-counter {
  font-size: 11px;
  color: #2ecc71;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #2ecc71;
  border-radius: 50%;
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0px rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0px rgba(46, 204, 113, 0); }
}

.review-card {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  border-left: 4px solid #fffc00;
}

.user-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.stars {
  color: #fffc00;
  text-shadow: 0.5px 0.5px 0px #000;
}

.review-card p {
  font-size: 11px;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

/* --- AJOUT AVIS --- */
.add-review {
  margin-top: 15px;
  padding: 10px;
  background: #fdfdfd;
  border-radius: 12px;
  border: 1px dashed #ccc;
}

.add-review h4 {
  font-size: 12px;
  margin: 0 0 10px 0;
  color: #333;
  text-align: center;
}

.add-review button {
  padding: 8px;
  font-size: 12px;
  background: #555;
  margin-top: 5px;
}

#reviewStatus {
  font-size: 10px;
  color: #27ae60;
  text-align: center;
  margin-top: 8px;
  font-weight: bold;
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
  .snap-theme { padding: 20px; }
  h1 { font-size: 18px; }
}
