/*
 * Corrections mobile (audit iPhone 390 px, 2026-11-12).
 * Chargee en dernier depuis templates/_partials/head.tpl pour passer
 * apres pere-blaize-recette-v3.css et les CSS generees du theme.
 */

/* Libelle "View" (produits personnalisables / non commandables) masque par
   font-size: 0 : on lui donne une icone, comme le bouton panier. */
#products .products-grid a.btn-product-list:not(.add-to-cart)::before,
.product-miniature a.btn-product-list:not(.add-to-cart)::before {
  content: "\f06e"; /* fa-eye */
  font-family: "FontAwesome";
  font-size: 16px;
  line-height: 1;
}

/* Pied de page (toutes tailles d'ecran) : telephone cliquable, lien conseils et reseaux sociaux
   (repris de la barre verte, masquee sur mobile). */
.pb-footer-center address a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.pb-footer-center .pb-footer-contact + .pb-footer-contact {
    margin-top: 12px;
}
.pb-footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.pb-footer-social a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 50%;
    color: #fff;
    font-size: 0;
    text-decoration: none;
}
.pb-footer-social a::before {
    font-family: "FontAwesome";
    font-size: 18px;
    line-height: 1;
}
.pb-footer-social a:hover,
.pb-footer-social a:focus-visible {
    background: rgb(255 255 255 / 15%);
}
.pb-footer-social .pb-social-facebook::before { content: "\f09a"; }
.pb-footer-social .pb-social-instagram::before { content: "\f16d"; }
.pb-footer-social .pb-social-linkedin::before { content: "\f0e1"; }
.pb-footer-social li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pb-footer-social li::before,
.pb-footer-social li::after {
    content: none !important;
    display: none !important;
}

/* Bandeau d'information editable (toutes tailles d'ecran) : widget "Editeur de
   texte" Elementor avec la classe "pb-info-source", transforme par
   pere-blaize-header.js. Avant le script, on reserve la hauteur sans montrer
   le texte brut ; texte vide = bandeau masque. */
body:not(.elementor-editor-active) .pb-info-source {
  height: 32px;
  margin: 0 !important;
  overflow: hidden;
  background: #a57140;
}
body:not(.elementor-editor-active) .pb-info-source:not(.pb-info-ready) .elementor-widget-container {
  visibility: hidden;
}
.pb-info-source .elementor-widget-container {
  margin: 0;
  padding: 0;
}
body:not(.elementor-editor-active) .pb-info-source.pb-info-empty {
  display: none;
}

@media (max-width: 767px) {
  /* --- Debordement horizontal des grilles produits ---------------------- */
  /* La rangee avait -13,33 px de marge pour 9 px de padding conteneur. */
  body:not(#index) #products .products-grid.row {
    margin-left: -6px;
    margin-right: -6px;
  }
  body:not(#index) #products .products-grid.row > .js-product-miniature-wrapper {
    padding-left: 6px;
    padding-right: 6px;
  }

  /* --- Fil d'Ariane lisible et cliquable ------------------------------- */
  #wrapper nav.breadcrumb,
  #wrapper nav.breadcrumb :is(ol, li, a, span) {
    font-size: 12px !important;
    line-height: 1.5;
  }
  #wrapper nav.breadcrumb li a {
    display: inline-block;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  /* --- Barre verte du haut masquee : tout est repris dans le pied de page
     (contact, telephone cliquable, conseils, suivi colis, reseaux sociaux). */
  #header .header-nav {
    display: none !important;
  }

  /* --- En-tete mobile : cibles tactiles >= 44 px ------------------------ */
  #mobile-header .m-nav-btn {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  #mobile-header .row-mobile-header > .col-mobile-btn {
    padding-left: 0;
    padding-right: 0;
  }
  /* En-tete collant plus compact une fois la page defilee.
     La HAUTEUR du header ne doit jamais changer (il est sticky, dans le flux) :
     sinon la page se decale, le scroll bouge et le mode compact oscille.
     On le remonte donc de 32 px de plus (via top) et on reduit le logo par
     transform, qui ne touche pas a la mise en page. */
  #header.pb-header-compact {
    top: calc(-1 * var(--pb-header-bands-height, 64px) - 32px);
  }
  #mobile-header .row-mobile-header,
  #mobile-header .col-mobile-logo img {
    transition: transform 220ms ease;
  }
  #header.pb-header-compact #mobile-header .row-mobile-header {
    transform: translateY(16px);
  }
  #header.pb-header-compact #mobile-header .col-mobile-logo img {
    transform: scale(0.65);
  }

  /* Bouton "retour en haut" : recouvrait du contenu sur petit ecran. */
  #back-to-top {
    display: none !important;
  }

  #js-cart-close {
    min-width: 44px;
    min-height: 44px;
    margin-right: -12px;
  }

  /* --- Accueil : hero ---------------------------------------------------- */
  body#index .elementor-element-ljcpbow .elementor-widget-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  body#index .elementor-element-ljcpbow h1.elementor-heading-title {
    font-size: 54px;
    line-height: 1.05;
  }

  /* --- Accueil : bienvenue (texte sur les fleurs) ------------------------ */
  body#index .pb-welcome-section,
  body#index .elementor-element-mp3bke1 {
    background-size: auto 210px !important;
    background-position: right bottom !important;
  }

  /* --- Accueil : la Gazette centree --------------------------------------- */
  body#index .pb-gazette-posts .simpleblog-posts {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* --- Fiche produit ------------------------------------------------------ */
  body#product .product-add-to-cart .product-quantity > :is(.col-add-wishlist, .col-add-compare) {
    flex: 0 0 auto;
    width: auto;
  }
  body#product .bootstrap-touchspin .btn-touchspin {
    min-width: 32px;
    min-height: 22px;
  }
  /* Onglets inactifs a opacity 0.4 : contraste insuffisant. */
  body#product #main-product-wrapper .nav-tabs .nav-link {
    padding-top: 8px;
  }
  body#product #main-product-wrapper .nav-tabs .nav-link:not(.active) {
    opacity: 0.75;
  }

  /* --- Formulaires : aides et liens trop petits --------------------------- */
  .form-control-comment,
  .custom-checkbox label em,
  .forgot-password a,
  #back-to-login {
    font-size: 12px !important;
  }
  .forgot-password a,
  .no-account a,
  #back-to-login,
  .pb-continue-shopping {
    display: inline-block;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .custom-checkbox input[type="checkbox"] + span,
  .custom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
  .custom-radio {
    width: 20px;
    height: 20px;
  }

  /* --- Bandeau de reassurance --------------------------------------------- */
  .elementor-icon-box-title,
  .elementor-icon-box-title span,
  .elementor-icon-box-description,
  .elementor-icon-box-description p {
    font-size: 12px !important;
  }
}
