:root {
  --primary-color: #6bc4e6;
  --secondary-color: #ff6b9d;
  --accent-color: #ffd700;
  --background-color: #e6f7ff;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --white: #ffffff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
.site-header{
  background:#fff;
  border-bottom:1px solid #e6e9ef;
  padding:12px 0;
  position:sticky;
  top:0;
  z-index:10;
}
.header-inner{
  max-width:1000px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
  overflow: hidden;
  background-color: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  animation: fadeIn 1s ease-in-out;
  border-top: 5px solid var(--primary-color);
}

h1, h2, h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.2rem;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 15px;
  text-align: center;
  margin-top: 0;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.overall-rating-container {
  flex: 1;
  min-width: 200px;
  text-align: center;
  background-color: rgba(107, 196, 230, 0.15);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--secondary-color);
}

.average-ratings {
  flex: 1;
  min-width: 200px;
  background-color: rgba(107, 196, 230, 0.15);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--accent-color);
}

.rating-category {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.toilet-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  margin-bottom: 25px;
}

.toilet-image:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.toilet-image-container {
  flex: 1;
  min-width: 300px;
}

.form-container form {
  flex: 2;
  min-width: 300px;
}

.form-group {
  margin-bottom: 25px;
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.rating input {
  display: none;
}

.rating label {
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.rating input:checked ~ label,
.rating input:checked ~ label ~ label {
  color: var(--accent-color);
}

.rating label:hover,
.rating label:hover ~ label {
  color: var(--secondary-color);
  transform: scale(1.2);
}

.form-group textarea,
.form-group input[type="text"] {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[type="text"] {
  min-height: auto;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
  background-color: var(--white);
}

button {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin: 30px auto 0;
}

button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(0);
}

.notes-container {
  margin-top: 50px;
  animation: slideIn 0.6s ease-out;
}

.note {
  background-color: var(--white);
  margin: 20px 0;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 6px solid var(--secondary-color);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.note:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
}

.note h3 {
  color: var(--secondary-color);
  margin-top: 0;
  font-size: 1.3rem;
  border-bottom: 2px solid rgba(255, 107, 157, 0.2);
  padding-bottom: 10px;
}

.note-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.logo-container {
  text-align: center;
  margin: 20px auto;
  width: 100%;
}

.logo {
  max-width: 160px;
  height: auto;
  transition: all 0.4s ease;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.logo:hover {
  transform: scale(1.08) rotate(5deg);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.rating-display {
  display: inline-flex;
  margin-left: 12px;
  position: relative;
  font-size: 1.2rem;
}

.rating-icon {
  color: #ccc;
  margin-right: 3px;
}

.rating-icon.full {
  color: var(--accent-color);
}

.rating-value {
  font-weight: bold;
  margin-right: 10px;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.badge {
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
  border-radius: 0 0 15px 15px;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .container {
    width: 98%;
    padding: 20px;
  }

  .form-container {
    flex-direction: column;
  }

  .toilet-image-container,
  .form-container form {
    min-width: 100%;
    margin-right: 0;
  }

  button {
    width: 100%;
    padding: 15px;
  }

  .header-container {
    flex-direction: column;
  }

  .overall-rating-container,
  .average-ratings {
    min-width: 100%;
  }

  h1 {
    font-size: 1.8rem;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 90%;
  }
}

.hero {
      text-align: center;
      padding: 2rem 0;
      background-color: #f8f9fa;
      margin-bottom: 2rem;
      border-radius: 8px;
    }
    .card {
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s;
    }
    .card:hover {
      transform: translateY(-5px);
    }
    .thumb {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }
    .placeholder {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 180px;
      background: #e9ecef;
      color: #6c757d;
    }
    .card-body {
      padding: 1rem;
    }
    .btn {
      display: inline-block;
      background: #007bff;
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      text-decoration: none;
      margin-top: 0.5rem;
    }
    .note-card {
      background: white;
      border-radius: 8px;
      padding: 1rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .rating-display {
      display: inline-flex;
      gap: 0.2rem;
      margin-left: 0.5rem;
    }
    .rating-icon {
      color: #dee2e6;
    }
    .rating-icon.full {
      color: #ffc107; /* Jaune pour les étoiles pleines */
    }
    .muted {
      color: #6c757d;
      font-size: 0.9rem;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 1rem;
    }
    .site-header {
      background: white;
      padding: 1rem 0;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      margin-bottom: 2rem;
    }
    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 1rem;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      color: #333;
    }
    .logo {
      height: 40px;
    }
    .main-nav {
      display: flex;
      gap: 1rem;
    }
    .main-nav a {
      text-decoration: none;
      color: #333;
      padding: 0.5rem 1rem;
      border-radius: 4px;
    }
    .main-nav a:hover {
      background: #f8f9fa;
    }
