/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* Container du formulaire */
.jc-comment-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Espacement entre les champs */
.jc-comment-form p {
  margin-bottom: 1rem;
}

/* Styles des inputs et textarea */
.jc-comment-form input[type="text"],
.jc-comment-form input[type="email"],
.jc-comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

/* Focus state */
.jc-comment-form input[type="text"]:focus,
.jc-comment-form input[type="email"]:focus,
.jc-comment-form textarea:focus {
  border-color: #1e73be; /* bleu Avada par défaut */
  outline: none;
}

/* Ajustement du reCAPTCHA */
.jc-comment-form .g-recaptcha {
  transform: scale(0.90);
  transform-origin: 0 0;
  margin-bottom: 1rem;
}

/* Bouton d’envoi */
.jc-comment-form input[type="submit"] {
  display: inline-block;
  background-color: #1e73be;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Hover sur le bouton */
.jc-comment-form input[type="submit"]:hover {
  background-color: #155a8a;
}

.cute-comments-container {
  margin: 2rem 0;
}
.cute-comment {
  background: #f0f8ff;
  border: 1px solid #d0e7ff;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.cute-comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.cute-author {
  font-weight: bold;
  color: #1a1a1a;
}
.cute-date {
  font-style: italic;
  color: #777;
}
.cute-content {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}
.cute-no-comments {
  font-style: italic;
  color: #666;
}

.cute-comments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.cute-comment-card {
  background: #fff;
  border: 1px solid #000;
  border-bottom-right-radius: 16px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.cute-comment-content {
  margin-bottom: 1rem;
}
.cute-text {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.cute-stars {
  color: #2ecc71;
  font-size: 1.2rem;
}

.cute-comment-meta {
  display: flex;
  align-items: center;
  margin-top: auto;
}
.cute-avatar {
  border-radius: 50%;
  margin-right: 0.75rem;
}
.cute-author {
  font-weight: bold;
  color: #222;
}

.cute-no-comments {
  grid-column: 1 / -1;
  text-align: center;
  font-style: italic;
  color: #666;
}

.star-rating {
  direction: rtl;
  font-size: 1.5rem;
  unicode-bidi: bidi-override;
}
.star-rating input {
  display: none;
}
.star-rating label {
  color: #ccc;
  cursor: pointer;
  display: inline-block;
  transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #2ecc71;
}

.cute-stars,
.comment-rating-stars {
  color: #2ecc71;    /* vert */
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.comment-rating-stars {
  margin-bottom: 1rem;
}

/* Masquer toutes les cartes sauf les 2 premières */
.cute-comments-grid .cute-comment-card:nth-child(n+3) {
  display: none;
}

/* Style du bouton */
.cute-load-more {
  display: block;
  margin: 1.5rem auto;
  padding: 0.75rem 1.5rem;
  background-color: #1e73be;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
.cute-load-more:hover {
  background-color: #155a8a;
}