/* ============================================
   La Ferme de Margaux — CSS global
   Chargé via WPCode priorité 999
   Ne pas modifier dans Personnaliser OceanWP
   ============================================ */

/* ============================================
   Guide Verger — Correctif conflits OceanWP
   Spécificité renforcée avec body pour passer
   après les styles OceanWP
   À coller dans Personnaliser > CSS additionnel
   ============================================ */

/* ── CARTES ESPÈCES ── */
body .esp-flex {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  background: #ddd6cc !important;
  width: 100% !important;
}
body .esp-c {
  display: block !important;
  box-sizing: border-box !important;
  width: calc(25% - 3px) !important;
  min-width: 0 !important;
  margin: 0 3px 3px 0 !important;
  padding: 15px 12px !important;
  float: none !important;
}
@media (max-width: 700px) {
  body .esp-c { width: calc(33.333% - 3px) !important; }
}
@media (max-width: 480px) {
  body .esp-c { width: calc(50% - 3px) !important; }
}

/* ── PRODUITS RÉSULTATS : image fixe, texte à droite ── */
body .arbre-top {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: start !important;
  -ms-flex-align: start !important;
  align-items: flex-start !important;
  gap: 13px !important;
  width: 100% !important;
}
body .arbre-top img.arbre-img,
body .arbre-row .arbre-img {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  -webkit-flex-shrink: 0 !important;
  -ms-flex-negative: 0 !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
  display: block !important;
  float: none !important;
}
body .arbre-top .ab {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 !important;
  flex: 1 !important;
  min-width: 0 !important;
  width: auto !important;
}
body .arbre-ph {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  -webkit-flex-shrink: 0 !important;
  -ms-flex-negative: 0 !important;
  flex-shrink: 0 !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  float: none !important;
}

/* ── CALENDRIER MINI (dans chaque produit) ── */
body .mini-cal-wrap {
  display: block !important;
  width: 100% !important;
  margin: 7px 0 5px !important;
  overflow: visible !important;
  height: auto !important;
}
body .mini-cal-row {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  height: 10px !important;
  min-height: 10px !important;
  max-height: 10px !important;
  gap: 1px !important;
  margin-bottom: 1px !important;
  overflow: hidden !important;
  width: 100% !important;
}
body .mini-cal-row .mc-m {
  display: block !important;
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 0% !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  height: 10px !important;
  min-height: 10px !important;
  max-height: 10px !important;
  border-radius: 1px !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── CALENDRIER SYNTHÈSE (récapitulatif final) ── */
body .cal-syn-barre {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 !important;
  flex: 1 !important;
  height: 15px !important;
  min-height: 15px !important;
  gap: 1px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
body .cal-syn-m {
  display: block !important;
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 0% !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  height: 15px !important;
  min-height: 15px !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body .cal-syn-row {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 3px !important;
  width: 100% !important;
}
body .cal-syn-nom {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  -webkit-flex-shrink: 0 !important;
  -ms-flex-negative: 0 !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
}
@media (max-width: 600px) {
  body .cal-syn-nom {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    font-size: 10px !important;
  }
}
@media (max-width: 400px) {
  body .cal-syn-nom {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
  }
}

/* ── MOBILE : image pleine largeur ── */
@media (max-width: 520px) {
  body .arbre-top {
    -webkit-box-orient: vertical !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  body .arbre-top img.arbre-img,
  body .arbre-row .arbre-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 120px !important;
    min-width: 0 !important;
  }
  body .arbre-ph {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 70px !important;
  }
}
/* ── Bouton "Concepteur de verger" dans le header ── */
.after-header-content-inner a {
  display: inline-block !important;
  background-color: #2d4420 !important;
  color: white !important;
  text-decoration: none !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  padding: 7px 14px !important;
  border-left: 3px solid #4a6e35 !important;
  transition: background-color .2s ease !important;
  white-space: nowrap !important;
}
.after-header-content-inner a:hover {
  background-color: #1a2e14 !important;
  color: white !important;
  text-decoration: none !important;
}

/* ── Desktop/tablette : affiché normalement ── */
.after-header-content,
.after-header-content-inner {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
/* ── Desktop : masquer la barre mobile ── */
@media (min-width: 769px) {
  .guide-verger-mobile-bar { display: none !important; }
}
/* ── Mobile : masquer le bouton header, afficher la barre ── */
@media (max-width: 768px) {
  .after-header-content { display: none !important; }
  .guide-verger-mobile-bar {
    display: block !important;
    width: 100% !important;
    background-color: #2d4420 !important;
    text-align: center !important;
    border-top: 2px solid #4a6e35 !important;
  }
  .guide-verger-mobile-bar a {
    display: block !important;
    width: 100% !important;
    padding: 10px 0 !important;
    color: white !important;
    text-decoration: none !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
  }
  .guide-verger-mobile-bar a:hover {
    background-color: #1a2e14 !important;
    color: white !important;
  }
}

/* ============================================
   Footer — La Ferme de Margaux
   Mise en page 4 colonnes style moderne
   À coller dans Personnaliser > CSS additionnel
   ============================================ */

/* ── Conteneur principal ── */
#footer-widgets .footer-widgets-inner {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  gap: 40px 30px !important;
  padding: 50px 30px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* ── 4 colonnes égales ── */
#footer-widgets .footer-box {
  -webkit-box-flex: 1 !important;
  -ms-flex: 1 1 200px !important;
  flex: 1 1 200px !important;
  min-width: 180px !important;
  max-width: calc(25% - 25px) !important;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Typographie générale ── */
#footer-widgets .footer-widget p,
#footer-widgets .footer-widget a {
  font-size: 13px !important;
  line-height: 1.8 !important;
}

/* ── Titres de colonne (h2 dans les widgets) ── */
#footer-widgets .footer-widget h2 {
  font-size: 13px !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,.15) !important;
  font-weight: 500 !important;
}

/* ── Images dans le footer : ne pas forcer pleine largeur ── */
#footer-widgets .footer-widget img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ── Alignement centré → aligné à gauche ── */
#footer-widgets .footer-widget p.has-text-align-center,
#footer-widgets .footer-widget h2.has-text-align-center,
#footer-widgets .footer-widget figure.aligncenter {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#footer-widgets .footer-widget figure.aligncenter {
  display: block !important;
}

/* ── Espacement entre blocs ── */
#footer-widgets .footer-widget {
  margin-bottom: 10px !important;
}
#footer-widgets .footer-widget:last-child {
  margin-bottom: 0 !important;
}

/* ── Responsive tablette : 2 colonnes ── */
@media (max-width: 900px) {
  #footer-widgets .footer-box {
    -ms-flex: 1 1 calc(50% - 20px) !important;
    flex: 1 1 calc(50% - 20px) !important;
    max-width: calc(50% - 20px) !important;
  }
}

/* ── Responsive mobile : 1 colonne ── */
@media (max-width: 540px) {
  #footer-widgets .footer-widgets-inner {
    gap: 30px 0 !important;
    padding: 30px 20px !important;
  }
  #footer-widgets .footer-box {
    -ms-flex: 1 1 100% !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  #footer-widgets .footer-widget p.has-text-align-center,
  #footer-widgets .footer-widget h2.has-text-align-center {
    text-align: center !important;
  }
}