

/* ============================================================
   SECTION TÉMOIGNAGES PUBLIC 
   ============================================================ */

/* ── Section wrapper ── */
#temoignages-section {
  background: #ffffff;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

/* ── En-tête ── */
.pub-tem-header {
  text-align: center;
  margin-bottom: 48px;
}

.pub-tem-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff8c9;
  color: #b5833e;
  border: 1px solid #eec9ae;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pub-tem-titre {
  font-family: 'Schoolbell', cursive;
  font-size: 2.2rem;
  color: #b5833e;
  margin: 0 0 24px 0;
}

/* Note globale */
.pub-tem-note-globale {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fdfaf5;
  border: 1px solid #ede8dc;
  border-radius: 16px;
  padding: 14px 24px;
}

.pub-tem-note-chiffre {
  font-family: 'Schoolbell', cursive;
  font-size: 2.8rem;
  color: #b5833e;
  line-height: 1;
}

.pub-tem-etoiles-globales {
  display: flex;
  gap: 3px;
  font-size: 1.1rem;
  color: #f0b429;
  margin-bottom: 4px;
}

.pub-tem-etoiles-globales .fa-regular { color: #ddd; }

.pub-tem-nb-avis {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: #8a7060;
}

/* ── État vide ── */
.pub-tem-vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  color: #c0ac98;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
}

.pub-tem-vide i { font-size: 2.5rem; opacity: 0.4; }

/* ── Carousel Swiper ── */
.pub-tem-swiper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 60px 40px !important;
  position: relative;
}

.pub-tem-swiper .swiper-wrapper {
  align-items: stretch;
}

.pub-tem-swiper .swiper-slide {
  height: auto;
}

/* Flèches custom */
.pub-tem-prev,
.pub-tem-next {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid #eec9ae;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #b5833e;
  font-size: 0.9rem;
  transition: all 0.15s;
  box-shadow: 0 2px 10px rgba(181,131,62,0.12);
}

.pub-tem-prev { left: 0; }
.pub-tem-next { right: 0; }

.pub-tem-prev:hover,
.pub-tem-next:hover {
  background: #b5833e;
  color: #fff;
  border-color: #b5833e;
}

/* ── Card témoignage public ── */
.pub-tem-card {
  background: #fdfaf5;
  border: 1px solid #ede8dc;
  border-radius: 20px;
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pub-tem-card:hover {
  box-shadow: 0 8px 28px rgba(181,131,62,0.12);
  transform: translateY(-3px);
}

.pub-tem-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pub-tem-card-etoiles {
  display: flex;
  gap: 3px;
  font-size: 0.9rem;
  color: #f0b429;
}

.pub-tem-card-etoiles .fa-regular { color: #ddd; }

.pub-tem-quote {
  font-size: 1.4rem;
  color: #eec9ae;
}

.pub-tem-card-message {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #5a4535;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
  margin: 0;
}

.pub-tem-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #ede8dc;
}

.pub-tem-card-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.pub-tem-card-nom {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3d2b1f;
}

.pub-tem-card-date {
  font-size: 0.78rem;
  color: #aaa;
}

/* ── Bouton flottant FAB ── */
.pub-tem-fab {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  background: #54a66a;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(84,166,106,0.35);
  transition: all 0.2s;
}

.pub-tem-fab:hover {
  background: #3d8a55;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(84,166,106,0.4);
}

/* ── Modale ── */
.pub-tem-modale {
  position: fixed;
  inset: 0;
  background: rgba(61,43,31,0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pubTemFadeIn 0.15s ease;
}

@keyframes pubTemFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pub-tem-modale-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 12px 48px rgba(61,43,31,0.18);
  animation: pubTemSlideUp 0.2s ease;
}

@keyframes pubTemSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pub-tem-modale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pub-tem-modale-titre {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Schoolbell', cursive;
  font-size: 1.4rem;
  color: #b5833e;
  margin: 0;
}

.pub-tem-modale-titre i { color: #f0b429; }

.pub-tem-modale-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #e8dfd0;
  background: transparent;
  color: #8a7060;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.15s;
}

.pub-tem-modale-close:hover {
  background: #fdecea;
  border-color: #f5c6cb;
  color: #c0392b;
}

/* Formulaire modale */
.pub-tem-form-group {
  margin-bottom: 20px;
}

.pub-tem-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b5833e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.pub-tem-required { color: #e05252; }

/* Étoiles interactives */
.pub-tem-stars-input {
  display: flex;
  gap: 6px;
}

.pub-tem-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: #ddd;
  padding: 0;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
}

.pub-tem-star-btn:hover,
.pub-tem-star-btn.active {
  color: #f0b429;
  transform: scale(1.15);
}

/* Textarea */
#formTemoignage textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e8dfd0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #3d2b1f;
  background: #fdfaf5;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#formTemoignage textarea:focus {
  border-color: #54a66a;
  box-shadow: 0 0 0 3px rgba(84,166,106,0.12);
  background: #fff;
}

/* Bouton envoyer modale */
.pub-tem-btn-envoyer {
  width: 100%;
  padding: 13px;
  background: #b5833e;
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}

.pub-tem-btn-envoyer:hover {
  background: #9c6e30;
  transform: translateY(-1px);
}

.pub-tem-btn-envoyer:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Feedback */
.pub-tem-feedback {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.pub-tem-feedback.success {
  background: #e8f5ec;
  color: #2e7d47;
  border: 1px solid #c3e6cb;
}

.pub-tem-feedback.error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #temoignages-section { padding: 50px 20px; }
  .pub-tem-titre { font-size: 1.8rem; }
  .pub-tem-swiper { padding: 10px 44px 30px !important; }
  .pub-tem-fab span { display: none; }
  .pub-tem-fab { padding: 14px; border-radius: 50%; }
}