/* CSS pour le widget Restaurant Individual */
/* À ajouter dans votre fichier css/restaurant-individual.css */

.restaurant-individual-card {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: #005632 !important;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin: 0;
  min-height: 650px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.restaurant-content {
  font-family: "Dunbar tall", sans-serif;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.restaurant-image-individual {
  flex: 0 0 48%;
  position: relative;
  overflow: hidden;
}

.restaurant-image-individual {
  width: 684px;
  height: auto;
  object-fit: cover;
}

.restaurant-info-individual {
  gap: 1rem;
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.restaurant-title {
  color: #efdfc4 !important;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.restaurant-description {
  margin-bottom: 30px;
}

.restaurant-description p {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.restaurant-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 30px;
}

.details-row {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.detail-section {
  width: 200px;
}

.detail-section h4 {
  font-size: 1em;
  font-weight: bold;
  margin: 0 0 15px 0;
  letter-spacing: 1px;
  opacity: 0.9;
}

.payment-methods,
.services-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-badge,
.service-badge {
  border: 1px solid #efdfc4;
  color: #efdfc4;
  padding: 8px 15px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.delivery-section {
  margin-top: 20px;
}

.delivery-section h4 {
  font-weight: bold;
  font-size: 16px;
}

.delivery-options {
  display: flex;
  gap: 15px;
  align-items: center;
}

.delivery-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.delivery-icon {
  font-size: 1.2em;
}

.order-section {
  margin: 30px 0 20px 0;
}

.order-button {
  background-color: #005632 !important;
  border: 1px solid #efdfc4 !important;
  box-shadow: 4px 4px 0px 0px #efdfc4 !important;
  border-radius: 4px !important;
  color: #efdfc4 !important;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.35, 0, 0.35, 1);
}

.order-button:hover {
  color: #efdfc4 !important;
  transform: translateY(3px);
  box-shadow: 0px 0px 0px 0px #efdfc4 !important;
}

.view-map-section {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
}

.view-map-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.map-icon {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .restaurant-content {
    flex-direction: column;
    padding: 30px 20px;
  }

  .restaurant-image {
    flex: none;
    height: 250px;
  }

  .restaurant-image img {
    border-radius: 15px;
  }

  .restaurant-info {
    padding: 30px 25px;
  }

  .restaurant-title {
    font-size: 2em;
  }

  .details-row {
    flex-direction: column;
    gap: 25px;
  }

  .delivery-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .restaurant-content {
    padding: 25px 15px;
  }

  .restaurant-title {
    font-size: 1.8em;
    letter-spacing: 1px;
  }

  .payment-methods,
  .services-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-button {
    width: 100%;
    text-align: center;
    padding: 18px;
  }
}

/* Styles pour les plateformes de livraison - À ajouter à restaurant-individual.css */

/* Section livraison */
.delivery-section {
  margin-top: 20px;
}

.delivery-section h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* Container des plateformes */
.delivery-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Chaque plateforme */
.delivery-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 40px;
}

.delivery-platform:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Logo des plateformes */
.platform-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.platform-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

/* Nom de la plateforme */
.platform-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* Section types de service (anciens services) */
.service-types-section {
  margin-top: 20px;
}

.service-types-section h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.service-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}

.service-icon {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .delivery-platforms {
    justify-content: center;
  }

  .delivery-platform {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .service-types {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .delivery-platform {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 10px 8px;
    min-width: 100px;
  }

  .platform-name {
    font-size: 10px;
    line-height: 1.2;
  }

  .platform-logo {
    width: 28px;
    height: 28px;
  }

  .platform-logo img {
    width: 28px;
    height: 28px;
  }
}

/* Couleurs spécifiques par plateforme (backup au cas où les bordures dynamiques ne marchent pas) */
.delivery-platform[data-platform="ubereats"] {
  border-color: #00d600;
}

.delivery-platform[data-platform="deliveroo"] {
  border-color: #00cccc;
}

.delivery-platform[data-platform="justeat"] {
  border-color: #ff4500;
}

.delivery-platform[data-platform="foodora"] {
  border-color: #d81594;
}

/* Animation au hover pour les logos */
.platform-logo img {
  transition: transform 0.2s ease;
}

.delivery-platform:hover .platform-logo img {
  transform: scale(1.1);
}

/* Amélioration du bouton voir carte */
.view-map-button {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-map-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.map-icon {
  font-size: 16px;
}

/* Styles pour les plateformes de livraison - À ajouter à restaurant-individual.css */

/* Section horaires */
.horaires-section {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.horaires-section h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.horaires-section h4::before {
  content: "🕒";
  font-size: 16px;
}

/* Horaires jour par jour */
.horaires-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.horaire-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.horaire-ligne:last-child {
  border-bottom: none;
}

.jour {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  min-width: 80px;
}

.heures {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-align: right;
}

/* Horaires en format texte simple */
.horaires-simple {
  font-size: 13px;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
}

/* Section livraison */
.delivery-section {
  margin-top: 20px;
}

.delivery-section h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* Container des plateformes */
.delivery-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Chaque plateforme */
.delivery-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 40px;
}

.delivery-platform:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Logo des plateformes */
.platform-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.platform-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
}

/* Nom de la plateforme */
.platform-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* Section types de service (anciens services) */
.service-types-section {
  margin-top: 20px;
}

.service-types-section h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.service-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}

.service-icon {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .delivery-platforms {
    justify-content: center;
  }

  .delivery-platform {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .service-types {
    justify-content: center;
  }

  /* Horaires responsive */
  .horaires-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .horaire-ligne {
    padding: 8px 0;
  }

  .jour {
    min-width: 70px;
    font-size: 12px;
  }

  .heures {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .delivery-platform {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 10px 8px;
    min-width: 100px;
  }

  .platform-name {
    font-size: 10px;
    line-height: 1.2;
  }

  .platform-logo {
    width: 28px;
    height: 28px;
  }

  .platform-logo img {
    width: 28px;
    height: 28px;
  }
}

/* Couleurs spécifiques par plateforme (backup au cas où les bordures dynamiques ne marchent pas) */
.delivery-platform[data-platform="ubereats"] {
  border-color: #00d600;
}

.delivery-platform[data-platform="deliveroo"] {
  border-color: #00cccc;
}

.delivery-platform[data-platform="justeat"] {
  border-color: #ff4500;
}

.delivery-platform[data-platform="foodora"] {
  border-color: #d81594;
}

/* Animation au hover pour les logos */
.platform-logo img {
  transition: transform 0.2s ease;
}

.delivery-platform:hover .platform-logo img {
  transform: scale(1.1);
}

/* Amélioration du bouton voir carte */
.view-map-button {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-map-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.map-icon {
  font-size: 16px;
}
