.send_buttons {
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.send_buttons .button {
  background: #df0000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  font-size: 16px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
  min-width: 140px;
  text-align: center;
}

.send_buttons .button:hover {
  background: #c20000 !important;
}

.send_buttons .button[style*="background:#888"] {
  background: #666 !important;
}

.send_buttons .button[style*="background:#888"]:hover {
  background: #555 !important;
}

/* Formulaires de contact */
.send_profiles {
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: #ccc;
  display: none;
}

.send_profiles > p {
  border-radius: 4px;
}

.send_profiles label {
  font-weight: 600;
  color: #fff;
  display: block;
}

.send_profiles input[type="text"],
.send_profiles textarea {
  padding: 12px 16px !important;
  border: 1px solid #444 !important;
  border-radius: 6px !important;
  background: #333 !important;
  font-size: 14px !important;
  color: #fff !important;
  transition: border-color 0.3s !important;
  margin-bottom: 15px !important;
  outline: none !important;
  width: 100% !important;
  max-width: 500px !important;
  box-sizing: border-box !important;
}

.send_profiles input[type="text"]:focus,
.send_profiles textarea:focus {
  border-color: #df0000 !important;
}

.send_profiles textarea {
  min-height: 80px !important;
  height: 120px !important;
  resize: vertical;
}

.send_profiles .buttoni {
  background: #df0000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px 0 0 0;
  transition: background 0.3s;
}

.send_profiles .buttoni:hover {
  background: #c20000 !important;
}

/* Grille des profils */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

/* Carte de profil */
.profile-card {
  background: #222;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px;
  position: relative;
}

/* Avatar du profil */
.profile-avatar {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

/* Informations du profil */
.profile-info {
  color: #e0e0e0;
  line-height: 1.4;
}

.profile-name {
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #df0000, #b30000);
  padding: 8px 10px;
  border-radius: 6px;
  margin: -10px -10px 10px -10px;
}

.profile-name h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.profile-name:hover h3 {
  color: #fff;
}

/* Contact info styling */

.profile-info p {
  margin: 4px 0;
  font-size: 11px;
  display: flex;
  align-items: center;
}

.profile-info i.fa {
  color: #df0000;
  margin-right: 6px;
  width: 13px;
  text-align: center;
  font-size: 11px;
}

/* Age styling */
.profile-info p:not([style]):not(:has(i.fa)) {
  margin: 4px 0;
  color: #fff;
}

/* Section Mensurations */
.profile-info p[style*="color:#df0000"] {
  color: #df0000 !important;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 8px 0 6px 0;
  text-align: center;
}

/* Mensurations details */
.profile-info p[style*="color:#df0000"] ~ p {
  margin: 2px 0;
  font-size: 13px;
  color: #ddd;
}

/* Bouton de suppression */
.remove-profile {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #df0000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-profile:hover {
  background: #c20000;
}

/* Message vide */
.profiles-grid p {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .send_buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .send_buttons .button {
    width: 100%;
    min-width: auto;
  }
  
  .profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .profile-avatar img {
    height: 120px;
  }
  
  .send_profiles {
    padding: 20px;
  }
  
  .send_profiles input[type="text"],
  .send_profiles textarea {
    max-width: 100% !important;
  }
}
