/*  Theme Name:   Bees Safe Theme
Theme URI:    https://bees-safe.com
Description:  Thème de Bees Safe - Pineapple Squad
Author:       Pineapple Squad  
Author URI:   https://pineapple-squad.com 
Template:     Divi  
Version:      0.1.0 */
:root {
  /* Rouge*/
  --rouge-dark: red;
  /* Orange */
  --orange-dark: #ef6c00;
  --orange-light: #FEF3EB;
  /*Yellow*/
  --yellow-miel: #FFB346;
}

/* Accueil */
.bee-gallery {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 40px;
}

.bee-deco {
  position: absolute;
  top: 0;
}

.bee-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 15px;
  align-items: center;
  width: 400px;
}

.bee-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.bee-grid .right {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (max-width: 768px) {
  .bee-grid {
    grid-template-columns: 1fr;
  }

  .bee-grid .right {
    flex-direction: row;
  }

  .bee-grid img {
    border-radius: 8px;
  }
}

/**********/
.autocomplete-box {
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  position: absolute;
  z-index: 1000;
  width: 300px;
}

.suggestion-item {
  padding: 8px;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #f0f0f0;
}

.map-section {
  display: flex;
}

.filter-barre .search-bar {
  flex: 1;
}

.map-block {
  flex: 2;
}

.search-block {
  flex: 1;
  background-color: var(--orange-light);
}

/*#homepageSearch #autocomplete-results {
  top: 200px;
}*/
.apiculteur-item {
  background: white;
  margin: 20px;
  padding: 25px 20px;
  border-radius: 10px;
}

.apiculteur-item p {
  padding-bottom: 1px;
}

#apiculteurs-list {
  max-height: 80vh;
  overflow-y: auto;
  padding: 10px;
  border-radius: 8px;
}

.filter-barre {
  background: #F8C092;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Conteneur du dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Bouton qui ouvre le dropdown */
.dropbtn {
    background-color: #f39c12;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}


.dropdown-content {
    display: none; 
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    border: 1px solid #ccc;
    z-index: 1000;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.dropdown-content.show {
    display: block;
}


.form-item {
    margin-bottom: 8px;
}


.form-item label {
    cursor: pointer;
}

.form-item input[type="checkbox"] {
    margin-right: 8px;
}


/*MON PROFIL*/
.tem-1 {
  background-color: var(--orange-light);
}

.profil-wrapper {
  padding: 5% 8%;
}

#section-profil {
  background-color: white;
  padding: 2%;
}
#section-profil .my-subscriptions {
  margin-top: 30px
}
#section-profil .my-subscriptions .pms-account-subscription-details-table__actions {
  margin-top: 10px;
}
.profil-menu {
  width: 200px;
}

.profil-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profil-menu li {
  padding: 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.profil-menu li:hover {
  background: #f0f0f0;
}

.profil-menu li.active {
  color: var(--orange-dark);
}

.profil-content {
  flex: 1;
  background: #fff;
  padding: 10px 40px;
  border-radius: 8px;
}

.profil-content h3 {
  font-size: 14px;
  color: var(--orange-dark);
  font-family: 'Poppins';
  text-transform: uppercase;
  padding-bottom: 20px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.sec-avatar {
  justify-content: flex-start !important;
  gap: 15px;
}

.avatar-buttons {
  gap: 15px;
}

.form-profil {
  margin-top: 20px;
}

.form-profil input,
.form-profil textarea {
  padding: 5px 10px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
  background-color: #ffffff;
}

.form-profil input {
  width: 250px;
}

.form-profil label,
.acf-label label {
  display: flex;
  flex-direction: column;
  color: #999993;
}

#save-my-account {
  border-radius: 24px;
  font-size: 16px;
  background-color: var(--orange-dark);
  padding: 8px 30px;
  border: none;
  color: white;
  margin-top: 20px;
  cursor: pointer;
}

.form-check {
  flex-direction: row !important;
}

.profil-content .um {
  margin-left: 0px !important;
}

.form-profil-api {
  margin-top: 20px;
}

.acf-input-wrap input {
  border: none;
}

.acf-input .acf-repeater .acf-row-handle.order {
  background: var(--orange-dark);
  text-shadow: none;
  color: white;
}

.mes-services h2 {
  text-align: center;
  color: #ef6c00;
  padding-bottom: 30px;
}

.mes-services ul {
  -webkit-columns: 2;
  -moz-columns: 2;
  list-style-position: inside;
}

.mes-services ul li {
  line-height: 2.2em;
}

.interventions-list {
  display: flex;
  gap: 15px;
  flex-direction: column;
}

.inter-item {
  background-color: #fef3eb;
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 800px;
}

.inter-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

#avis-section {
  background: white;
  display: flex;
  width: fit-content;
  padding: 7px 5px;
  border-radius: 10px;
  margin-bottom: 15px;
  gap: 10px;
}

.produits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.produits-list .produit-item {
  background-color: #fef3eb;
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden
}

.produits-list .produit-item img {
  width: 250px;
  max-height: 200px;
  object-fit: cover
}

.produits-list .produit-item>div {
  padding: 10px
}

.produits-list .produit-item .btn-plus-info {
  float: right;
  font-size: 20px;
  margin: 10px;
  margin-bottom: 20px;
  padding: 7px 20px;
  border-radius: 50px;
  line-height: 15px;
  font-family: 'Bebas Neue', sans-serif;
  background-color: #ef6c00;
  color: white;
  cursor: pointer;
  border: 0;
}

.popup-produit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 99999;

}

.popup-produit>div {
  background: #fff;
  padding: 0;
  max-width: 750px;
  max-height: 90vh;
  width: 90%;
  position: relative;
  border-radius: 8px;
  overflow-y: auto;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  ;
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #b2b2b2;
}

.popup-first-part {
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.popup-first-part img {
  width: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.popup-first-part .tel,
.popup-first-part .mail {
  background-color: #ef6c00;
  padding: 5px 20px;
  border-radius: 50px;
  margin-bottom: 10px
}

.popup-first-part .tel a,
.popup-first-part .mail a {
  color: #fff;
}

.popup-second-part {
  background-color: #FEF3EB;
  padding: 20px;
  padding-bottom: 40px;
}

.vente-options span {
  border-radius: 50px;
  padding: 5px 10px;
  margin: 10px;
}

.vente-options .vente-active {
  position: relative;
  padding-left: 30px;
  border: 1px solid #ef6c00;
  background-color: white;
  color: #ef6c00;
}

.vente-options .vente-active:before {
  content: '✓';
  position: absolute;
  left: 10px;
  color: #ef6c00;
}

.vente-options .vente-inactive {
  border: 1px solid #666666;
}

.popup-last-part {
  padding: 30px;
  padding-bottom: 40px;
}

.popup-last-part .address-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.popup-last-part .address-list div {
  border: 1px solid #c6c6c6;
  border-radius: 5px;
  padding: 7px;
  max-width: 200px;
  font-weight: 500;
  font-size: 14px;
}

.address-item {
  background-color: #fef3eb;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px
}

/* Nom de la personne */
.inter-item strong {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

/* Adresse et date */
.inter-item p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Status */
.inter-item em {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  color: #888;
  font-size: 0.9rem;
}

/* Actions (valider / supprimer) */
.inter-item .actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.inter-item .actions button {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  color: #fff;
}

/* Boutons spécifiques */
.inter-item .actions .validate-btn {
  background-color: #27ae60;
}

.inter-item .actions .validate-btn:hover {
  background-color: #219150;
}

.inter-item .actions .delete-btn {
  background-color: #e74c3c;
}

.inter-item .actions .delete-btn:hover {
  background-color: #c0392b;
}

/* Icônes style emoji */
.inter-item .icon {
  margin-right: 6px;
  font-size: 1rem;
}

.avis-box {
  background: white;
  padding: 10px 5px;
  border-radius: 5px;
  margin-top: 10px;
}

.avis-box p {
  line-height: 5px;
  font-size: 1em;
}

.avis-box .stars,
#avis-stars .star {
  color: var(--orange-dark);
  font-size: 1.4em;
}

/* PROFIL API */
.api-wrapper {
  padding: 2% 8%;
}

.api-wrapper .api-1 div:nth-child(2) img {
  border: 15px solid white;
  rotate: 2deg;
  max-width: 470px;
}

.acf-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.acf-gallery img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-template-profil-api .flex-direction-nav a {
  padding-top: 10px;
}

.api-wrapper:nth-child(3) li::before {
  content: "✔";
  color: var(--orange-dark);
  font-weight: bold;
  margin-right: 8px;
}

.api-wrapper .section-coord>div {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
}

#mes-services .acf-table thead {
  display: none;
}

#mes-services .acf-label {
  display: none;
}

#liste-adresses {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

#liste-adresses li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--orange-light);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--rouge-dark);
  font-size: 18px;
  cursor: pointer;
}

.suggestion {
  background: white;
  border: 1px solid #ddd;
  padding: 5px;
  cursor: pointer;
}

.suggestion:hover {
  background: #eee;
}

.statut-role {
  background-color: var(--orange-dark);
  color: white;
  padding: 6px 20px !important;
  border-radius: 50px;
}

.gestion-adresses label {
  color: var(--orange-dark);
  font-weight: 400;
}

.profil-content #mes-adresses h3 {
  color: #333;
  padding-top: 40px;
  padding-bottom: 18px;
}

.bg-free {
  background-color: var(--yellow-miel);
}

.bg-premium {
  background-color: var(--orange-dark);
}

.popup-max-add {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: var(--orange-dark) 2px solid;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  background: white;
  text-align: center;
}

.popup-max-add button {
  margin-top: 10px;
  padding: 5px 15px;
  background-color: var(--yellow);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-max-add .statut-role {
  width: fit-content;
  margin: auto;
  margin-bottom: 10px;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/***MAP***/
.btn-prim {
  color: #FFFFFF !important;
  border-radius: 24px;
  font-size: 16px;
  background-color: var(--orange-dark);
  cursor: pointer;
  border: none;
  padding: 5px 20px;
  margin-top: 10px;
}

.btn-sec {
  color: var(--orange-dark) !important;
  border-radius: 24px;
  font-size: 16px;
  background-color: white;
  cursor: pointer;
  border: var(--orange-dark) 1px solid !important;
  padding: 5px 20px;
  margin-top: 10px;
  margin-left: 10px;
}

.modal-contact {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-contact.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 450px;
  width: 90%;
  border-radius: 10px;
  text-align: center;
  animation: fadeIn .25s ease;
}

.modal-content a {
  border: solid 2px #e46d0b;
  padding: 10px 10px;
}

.modal-close {
  float: right;
  cursor: pointer;
  font-size: 1.5rem;
}

.modal-content h2 {
  padding-bottom: 30px;
}

#modalBody {
  padding: 40px 0px;
}

#avisPrenom,
#avisNom,
#avisEmail {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #111;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

#avisPrenom:focus,
#avisNom:focus,
#avisEmail:focus {
  border-color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
  outline: none;
}

#avisPrenom::placeholder,
#avisNom::placeholder,
#avisEmail::placeholder {
  color: #9ca3af;
}

.avis-optin {
  margin-top: 2em;
}

.avisSubmit {
  margin-bottom: 15px;
}

@keyframes fadeIn {
  from {
    transform: scale(.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/*Intervention*/
.inter-stat {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.inter-stat>div:first-child {
  background: white;
  padding: 10px 40px;
}

.statut-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  padding: 10px 40px 10px 15px;
  font-size: 1em;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' stroke='%23666' stroke-width='3' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.statut-select:hover {
  border-color: #aaa;
}

.statut-select:focus {
  border-color: #4c9aff;
  box-shadow: 0 0 0 4px rgba(76, 154, 255, 0.2);
}

.inter-stat label {
  padding-right: 5px;
}

/* Donner mon avis */
.page-id-371 #et-main-area {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.section-avis {
  display: flex;
  flex: 1;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 4% 0px;
}

.star-rating {
  font-size: 30px;
  color: #ccc;
  cursor: pointer;
}

.star-rating .filled {
  color: #ef6c00;
}

.star-rating span {
  color: #ccc;
  transition: color 0.2s;
}

/* Container général */
.section-avis form {
  width: 400px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
}

/* Labels */
.section-avis label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

/* Textarea */
.section-avis textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  resize: vertical;
  transition: border 0.2s;
}

.section-avis textarea:focus {
  border-color: #ff9800;
  outline: none;
}

/* Submit button */
.section-avis .btn-orange {
  display: inline-block;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.section-avis .btn-orange:hover {
  background-color: #e68900;
  transform: translateY(-2px);
}

/* Messages */
.avis-message {
  text-align: center;
  margin-bottom: 20px;
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: bold;
}

.avis-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.avis-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Part - Mes Annonces */
.form-create-annonce {
  background-color: #fef3eb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 800px;
}

.form-create-annonce input,
.form-create-annonce select {
  padding: 5px 10px;
  border-radius: 8px
}

.form-create-annonce label.nom-product,
.form-create-annonce label.lieu,
.form-create-annonce label.photo,
.caracteristiques label,
.contact legend,
.moyens-vente legend,
.addresses-dispo legend {
  margin-top: 10px;
  text-transform: uppercase;
  font-size: 14px;
  color: #333;
}

.contact label,
.addresses-dispo label,
.moyens-vente label {
  border-radius: 8px;
  background-color: white;
  display: block;
  margin-bottom: 5px;
  padding: 10px 20px
}

input[name="nom_annonce"],
input[name="lieu_production"],
input[name="prix"],
input[name="edit_nom_annonce"],
input[name="edit_lieu_production"],
input[name="edit_prix"] {
  border: 1px solid #bbb;
  width: 100%;
  padding: 10px;
}

input[name="poids"] {
  border: 1px solid #bbb;
  padding: 5px 10px;
}

fieldset.contact,
fieldset.caracteristiques {
  margin: 10px 0;
}

.annonces-list li {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 50px;
  border: 1px solid #ef6c00;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 800px;
}

.annonces-list li img {
  height: 150px;
  width: 150px;
  object-fit: cover;
}

#mes-annonces .success {
  border: 1px solid #4f9f44;
  color: #4f9f44;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 20px
}

.change-annonce {
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px
}

.change-annonce button {
  color: white;
  background: #ef6b00;
  border: 0;  
  margin-top: 20px;
  padding: 8px 30px;
  border-radius: 50px;
  cursor: pointer
}

/* Responsive */
@media (max-width: 600px) {
  .section-avis form {
    padding: 20px;
  }

  .star-rating {
    font-size: 20px;
  }

  .btn-orange {
    width: 100%;
    text-align: center;
  }
}