:root {
  --primary-color: #D32F2F;
  --secondary-color: #FF9800;
  --accent-color: #4CAF50;
  --gold-color: #FFD700;
  --light-color: #FFF8F0;
  --dark-color: #2C1810;
  --pizza-red: #D32F2F;
  --pizza-orange: #FF9800;
  --pizza-yellow: #FFC107;
  --pizza-green: #4CAF50;
  --pizza-brown: #8D6E63;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
  min-height: 100vh;
  padding-top: 60px;
  color: #2C1810;
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    color: #e8e8e8;
  }

  .contact-avis-container,
  .card {
    background: #2d2d2d !important;
    color: #e8e8e8 !important;
    border-color: #4a4a4a !important;
  }

  .form-control,
  .form-select,
  textarea,
  input {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    border-color: #d0d0d0 !important;
  }

  .form-control::placeholder,
  textarea::placeholder,
  input::placeholder {
    color: #999999 !important;
    -webkit-text-fill-color: #999999 !important;
  }

  .card-title,
  h1,
  h2,
  h3,
  h4,
  .section-title,
  label {
    color: #e8e8e8 !important;
  }

  .text-muted,
  .card-text,
  p,
  small {
    color: #b8b8b8 !important;
  }
}

/* Bouton retour */
.btn-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Conteneur principal */
.contact-avis-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* En-tête */
.header-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  color: white;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: '🍕🍝🥗';
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  top: 10px;
  left: 10px;
  animation: float 20s linear infinite;
}

.logo-container {
  position: relative;
  z-index: 1;
}

.restaurant-logo {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 3rem;
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.restaurant-name {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: 'Georgia', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.restaurant-tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 5px;
}

.restaurant-slogan {
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
}

/* Sections */
.section-title {
  color: var(--dark-color);
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
  font-weight: 600;
}

/* Cartes de contact */
.contact-card {
  background: white;
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.8rem;
  color: white;
}

.icon-whatsapp {
  background: #25D366;
}

.icon-phone {
  background: var(--primary-color);
}

.icon-location {
  background: var(--accent-color);
}

.icon-clock {
  background: var(--secondary-color);
}

.contact-text {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Actions rapides */
.quick-actions {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 20px;
  margin-top: 30px;
}

.quick-action {
  background: white;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.quick-action:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-action i {
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.quick-action span {
  font-weight: 500;
  color: var(--dark-color);
}

/* --- Nouvelle Interface Avis Moderne --- */
.feedback-section {
  background: white !important;
  border-radius: 24px !important;
  padding: 30px 20px !important;
  margin: 20px 0 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  width: 100% !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.emoji-rating-modern {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  /* Réduit un peu l'espace */
  margin: 25px 0 !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  /* Autorise le passage à la ligne au cas où */
}

.emoji-item {
  cursor: pointer !important;
  font-size: clamp(2rem, 10vw, 3rem) !important;
  /* Taille fluide : min 2rem, idéal 10% largeur, max 3rem */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  filter: grayscale(100%) !important;
  opacity: 0.4 !important;
  user-select: none !important;
  display: block !important;
  line-height: 1 !important;
  padding: 5px !important;
}

.emoji-item:hover,
.emoji-item.active {
  transform: scale(1.1) !important;
  filter: grayscale(0%) !important;
  opacity: 1 !important;
}

.emoji-item.active {
  animation: emojiPop 0.4s ease !important;
}

@keyframes emojiPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1.1);
  }
}

.tag-pill {
  cursor: pointer !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  background-color: #f5f5f5 !important;
  color: #555 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  border: 1px solid #ddd !important;
  display: inline-block !important;
  margin: 4px !important;
}

.tag-pill.active {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25) !important;
}

.modern-textarea {
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
  padding: 12px 15px !important;
  resize: none !important;
  min-height: 60px !important;
  width: 100% !important;
  font-size: 16px !important;
}

.btn-toggle-info {
  background: #f0f0f0 !important;
  border: 1px solid #ddd !important;
  color: #666 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
  margin-top: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 500 !important;
}

.btn-toggle-info.active {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

.modern-submit-btn {
  width: 100% !important;
  background: var(--primary-color) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 16px !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-top: 15px !important;
  display: block !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2) !important;
}

.modern-submit-btn:disabled {
  background: #eee !important;
  color: #999 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* Optimisation Mobile */
@media (max-width: 400px) {
  .emoji-rating-modern {
    gap: 5px !important;
  }

  .emoji-item {
    font-size: 1.8rem !important;
  }
}

/* Statistiques */
.stats-section {
  background: linear-gradient(135deg, #255710, #1F440F);
  color: white;
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.average-rating {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-color);
  line-height: 1;
}

.total-ratings {
  font-size: 1rem;
  opacity: 0.8;
}

.stats-details h6 {
  margin: 0;
  font-size: 1.1rem;
}

.stats-details p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Barres de progression */
.rating-bars {
  margin-top: 20px;
}

.rating-bar-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.rating-number {
  width: 40px;
  font-size: 1.5rem;
  text-align: center;
}

.rating-progress {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin: 0 15px;
}

.rating-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-color), #FFF176);
  border-radius: 5px;
  transition: width 1s ease;
}

.rating-count {
  width: 40px;
  text-align: right;
  font-weight: 600;
}

/* Avis récents */
.reviews-section {
  margin-top: 40px;
}

.no-reviews {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.no-reviews i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 15px;
}

/* Review Card */
.review-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 600;
  color: var(--dark-color);
}

.review-date {
  font-size: 0.85rem;
  color: #888;
}

.review-emoji {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.review-text {
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.review-comment {
  color: #555;
  line-height: 1.5;
  font-size: 0.9rem;
  margin-top: 8px;
}

.review-reponse {
  font-size: 0.85rem;
}

.review-tags .badge {
  font-size: 0.7rem;
  margin-right: 4px;
}

/* Bloc avis publics (note moyenne + liste) */
.reviews-public-block {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  .reviews-public-block {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.reviews-public-summary {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.reviews-avg-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 6px;
}

.reviews-public-list {
  max-height: 320px;
  overflow-y: auto;
}

/* Section "Avis des autres" (sous le bouton Envoyer mon avis) */
.avis-autres-section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .avis-autres-section {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

.avis-autres-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avis-autres-title i {
  opacity: 0.9;
}

/* Carte Google Maps */
.map-section {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
}

.access-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.access-info p {
  margin-bottom: 8px;
  color: #555;
}

/* Footer */
.footer-section {
  text-align: center;
  padding: 30px 0;
  color: #666;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.copyright {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.made-by {
  font-size: 0.8rem;
  color: #888;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateX(-100%) rotate(0deg);
  }

  100% {
    transform: translateX(100%) rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-avis-container {
    padding: 15px;
  }

  .header-section {
    padding: 30px 15px;
  }

  .restaurant-name {
    font-size: 2.2rem;
  }

  .emoji-rating {
    gap: 10px;
  }

  .emoji-option {
    min-width: 80px;
  }

  .emoji {
    font-size: 2.8rem;
  }

  .btn-back {
    width: 45px;
    height: 45px;
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 576px) {
  .restaurant-name {
    font-size: 1.8rem;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .emoji-rating {
    flex-direction: column;
    align-items: center;
  }

  .emoji-option {
    width: 100%;
    max-width: 200px;
  }

  .btn-back {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
  }
}