
/* ============================================================
   TÉMOIGNAGES ADMIN — assets/css/temoignages.css
   ============================================================ */

#temoignages-section{ 
	position: relative; 
	padding: 80px 0px 0px;
}


.tem-container {
  padding: 28px 32px;
  max-width: 1200px;
}

/* ── En-tête ── */
.tem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.tem-titre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Schoolbell', cursive;
  font-size: 1.6rem;
  color: #b5833e;
}

.tem-titre i { color: #b5833e; }

.tem-compteurs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tem-compteur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.tem-compteur.attente {
  background: #fff4e0;
  color: #b5833e;
  border: 1px solid #eec9ae;
}

.tem-compteur.valide {
  background: #e8f5ec;
  color: #2e7d47;
  border: 1px solid #c3e6cb;
}

.tem-compteur.refuse {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

/* ── Onglets ── */
.tem-onglets {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #ede8dc;
  margin-bottom: 28px;
}

.tem-onglet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #8a7060;
  cursor: pointer;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  position: relative;
}

.tem-onglet:hover {
  color: #b5833e;
}

.tem-onglet.active {
  color: #b5833e;
  border-bottom-color: #b5833e;
}

.tem-badge {
  background: #e05252;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.4;
}

/* ── Panneaux ── */
.tem-panneau {
  display: none;
}

.tem-panneau.active {
  display: block;
}

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

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

/* ── Grille cards ── */
.tem-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ── Card témoignage ── */
.tem-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 2px 16px rgba(181, 131, 62, 0.08);
  border: 1px solid #ede8dc;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(181, 131, 62, 0.13);
}

/* Header card */
.tem-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

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

.tem-card-meta {
  flex: 1;
  min-width: 0;
}

.tem-card-nom {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d2b1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tem-card-email {
  font-size: 0.78rem;
  color: #8a7060;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tem-etoiles {
  display: flex;
  gap: 2px;
  font-size: 0.85rem;
  color: #f0b429;
}

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

.tem-card-date {
  font-size: 0.75rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Message */
.tem-card-message {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: #5a4535;
  line-height: 1.65;
  background: #fdfaf5;
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid #eec9ae;
  flex: 1;
}

/* Actions */
.tem-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tem-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.tem-btn.valider {
  background: #e8f5ec;
  color: #2e7d47;
  border: 1.5px solid #c3e6cb;
}

.tem-btn.valider:hover {
  background: #54a66a;
  color: #fff;
  border-color: #54a66a;
  transform: translateY(-1px);
}

.tem-btn.refuser {
  background: #fff4e0;
  color: #b5833e;
  border: 1.5px solid #eec9ae;
}

.tem-btn.refuser:hover {
  background: #b5833e;
  color: #fff;
  border-color: #b5833e;
  transform: translateY(-1px);
}

.tem-btn.supprimer {
  background: #fdecea;
  color: #c0392b;
  border: 1.5px solid #f5c6cb;
  margin-left: auto;
}

.tem-btn.supprimer:hover {
  background: #d9534f;
  color: #fff;
  border-color: #d9534f;
  transform: translateY(-1px);
}

/* Animation suppression */
.tem-card.suppression {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s, transform 0.25s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .tem-container {
    padding: 18px 16px;
  }

  .tem-grille {
    grid-template-columns: 1fr;
  }

  .tem-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tem-onglet {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}




/* ============================================================
   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%; }
}