.site-advantages {
  background-color: #fff;
  box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  padding: 20px 20px 20px;
  text-align: center;
}
.site-advantages h1 {
  font-size: 22px;
  opacity: 0.8;
  margin: 20px 0;
}
.site-advantages .desc {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.site-advantages .desc .desc-half {
  width: 49%;
  background: #E9E9E9;
  margin: 0px 0 30px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #A4A4A4;
}
.site-advantages .desc .desc-half h2 {
  font-size: 16px;
}
.site-details {
  max-width: 800px;
}

/* Tables dans les présentations marchands */
.site-details .presentation table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.site-details .presentation table th,
.site-details .presentation table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}
.site-details .presentation table th {
  background-color: #2c7be5;
  color: #fff;
  font-weight: bold;
}
.site-details .presentation table tr:nth-child(even) {
  background-color: #f8f9fa;
}
.site-details .presentation table tr:hover {
  background-color: #e9ecef;
}
@media only screen and (max-width: 600px) {
  .site-details .presentation table {
    font-size: 12px;
  }
  .site-details .presentation table th,
  .site-details .presentation table td {
    padding: 6px 8px;
  }
  /* Top parrains mobile fix */
  .top-parrains-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px 10px !important;
    justify-items: center;
  }
  .top-parrain-card {
    width: 100% !important;
    max-width: 100px;
  }
  .top-parrain-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 90px !important;
    display: block !important;
    font-size: 11px;
  }
}

/* Trust badges on offers */
.member-badges {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-top: 2px;
  flex-wrap: wrap;
}
.member-badges .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.member-badges .badge:hover {
  opacity: 0.8;
}
.badge-top {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #f59e0b;
}
.badge-verified {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #3b82f6;
}
.badge-offers {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

/* Badges explanation page */
.badges-page {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 20px;
}
.badges-page h1 {
  font-size: 24px;
  margin-bottom: 10px;
}
.badges-page .badges-intro {
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}
.badge-explain-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 20px;
}
.badge-explain-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.badge-explain-icon.icon-top {
  background: #fef3c7;
  color: #b45309;
}
.badge-explain-icon.icon-verified {
  background: #dbeafe;
  color: #1d4ed8;
}
.badge-explain-icon.icon-offers {
  background: #d1fae5;
  color: #065f46;
}
.badge-explain-content h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.badge-explain-content p {
  color: #555;
  line-height: 1.5;
  margin: 0 0 8px;
}
.badge-explain-content .badge-criteria {
  font-size: 13px;
  color: #2c7be5;
  font-weight: 600;
}

/* Admin sites - mobile fix for search buttons */
@media only screen and (max-width: 768px) {
  body.adminSites .search-site-section {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 10px;
    position: static !important;
    text-align: center !important;
  }
  body.adminSites .search-site-section input[name="searchSite"] {
    position: static !important;
    width: 100% !important;
    height: 44px;
    margin-bottom: 5px;
    z-index: auto !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 5px;
    font-size: 16px;
    padding: 0 12px !important;
    order: -1;
  }
  body.adminSites .search-site-section .btn.secondary.big,
  body.adminSites .search-site-section .btn {
    position: static !important;
    z-index: auto !important;
    flex: 1 1 calc(50% - 8px);
    font-size: 13px;
    height: 40px;
    line-height: 40px;
    padding: 0 8px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
  }
  body.adminSites .site-dashboard tr td {
    padding: 5px;
    font-size: 12px;
  }
  body.adminSites .site-dashboard tr td .actions li {
    display: block;
    margin: 5px 0;
  }
}
