/* ---------------------------------------------------------
   WOODILY.FR - Header, Menus (desktop + mobile) & Footer
   Classic 2.2.0
   --------------------------------------------------------- */

/* ===== HEADER (barres + fond + texte) ===== */
#header,
.header-nav,
.top-menu {
  background-color: #005cbb !important;
  color: #ffffff !important;
}

#header a,
.header-nav a,
.top-menu a,
.header-nav .user-info a,
.header-nav .blockcart a {
  color: #ffffff !important;
}

#header a:hover,
.header-nav a:hover,
.top-menu a:hover,
.header-nav .user-info a:hover,
.header-nav .blockcart a:hover {
  color: #ffdf6c !important; /* Bon contraste sur bleu */
}

/* Icônes (panier, compte, loupe, caret) */
.header-nav .material-icons,
.blockcart .material-icons,
.search-widget .material-icons,
#_desktop_top_menu .expand-more,
#_desktop_top_menu .collapse-icons .material-icons {
  color: #ffffff !important;
}

/* ===== MENUS – DESKTOP ===== */

/* Liens de niveau 0 (barre principale) */
#_desktop_top_menu .top-menu[data-depth="0"] > li > a,
#_desktop_top_menu .top-menu > li > a,
#_desktop_top_menu .top-menu .category > a {
  color: #ffffff !important;
}

#_desktop_top_menu .top-menu > li:hover > a,
#_desktop_top_menu .top-menu > li > a:focus,
#_desktop_top_menu .top-menu > li.current > a {
  color: #ffdf6c !important;
}

/* Conteneur des sous-menus (popover/collapse) */
#_desktop_top_menu .sub-menu,
#_desktop_top_menu .popover.sub-menu,
#_desktop_top_menu .dropdown-menu {
  background-color: #005cbb !important;
  border-color: rgba(255,255,255,0.25) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

/* Liens des sous-menus */
#_desktop_top_menu .sub-menu a,
#_desktop_top_menu .dropdown-menu .dropdown-item {
  color: #ffffff !important;
}

#_desktop_top_menu .sub-menu a:hover,
#_desktop_top_menu .dropdown-menu .dropdown-item:hover {
  color: #ffdf6c !important;
}

/* Séparateurs éventuels dans les sous-menus */
#_desktop_top_menu .sub-menu .top-menu > li {
  border-color: rgba(255,255,255,0.12) !important;
}

/* ===== RECHERCHE dans le header (champ lisible sur fond bleu) ===== */
#search_widget form input[type="text"] {
  background: #ffffff !important;
  color: #1d2a39 !important;
  border: none !important;
  border-radius: 12px;
}
#search_widget form input::placeholder { color: #5b6472 !important; }

/* ===== MENUS – MOBILE ===== */

/* Tiroir mobile + contenus */
#mobile_top_menu_wrapper,
#mobile_top_menu_wrapper .top-menu,
#mobile_top_menu_wrapper .sub-menu {
  background-color: #005cbb !important;
  color: #ffffff !important;
}

#mobile_top_menu_wrapper a {
  color: #ffffff !important;
}
#mobile_top_menu_wrapper a:hover {
  color: #ffdf6c !important;
}

/* Icônes (burger, fermer, caret) */
#menu-icon,
.js-mobile-menu,
.js-top-menu-close,
#mobile_top_menu_wrapper .collapse-icons .material-icons,
#mobile_top_menu_wrapper .expand-more {
  color: #ffffff !important;
}

/* ===== FOOTER ===== */
#footer,
#footer .footer-container {
  background-color: #005cbb !important;
  color: #ffffff !important;
}

#footer a { color: #ffffff !important; }
#footer a:hover { color: #ffdf6c !important; }

/* Titres / séparateurs du footer */
#footer .h3,
#footer h3 {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.3) !important;
}

/* Icônes / toggles éventuels du footer (accordéons mobile) */
#footer .material-icons,
#footer .collapse-icons .material-icons {
  color: #ffffff !important;
}

/* ===== FOOTER — BLOC CONTACT ===== */
#footer .block-contact-title,
#footer #contact-infos {
  color: #ffffff !important;
}
#footer #contact-infos a {
  color: #ffffff !important;
  text-decoration: underline; /* lisible sur fond bleu */
}
#footer #contact-infos a:hover {
  color: #ffdf6c !important;  /* survol cohérent avec le reste du footer */
}

/* Si le bloc est repliable/expandable (collapse), on force aussi la couleur */
#footer #contact-infos.collapse,
#footer #contact-infos.collapsing,
#footer #contact-infos.show {
  color: #ffffff !important;
}

/* ===== FOOTER — NEWSLETTER (fond turquoise #00a4b1) ===== */

/* Conteneur global du bloc newsletter */
#footer .block_newsletter,
#footer form[action*="blockEmailSubscription"],
#footer .block_newsletter form,
#footer #block-newsletter-label,
#footer .block_newsletter .row {
  background-color: #00a4b1 !important;
  color: #ffffff !important;
  padding: 1rem 1.25rem;
  border-radius: 12px;
}

/* Libellé et paragraphes */
#footer #block-newsletter-label,
#footer .block_newsletter p {
  color: #ffffff !important;
  margin-bottom: .5rem;
}

/* Champ e-mail : fond blanc + bon contraste */
#footer .block_newsletter input[type="email"],
#footer input[type="email"][name="email"] {
  background: #ffffff !important;
  color: #1d2a39 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: .6rem .9rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  width: 100%;
}
#footer .block_newsletter input[type="email"]::placeholder {
  color: #5b6472 !important;
}

/* Boutons S’abonner */
#footer .block_newsletter .btn.btn-primary,
#footer input.btn.btn-primary[name="submitNewsletter"] {
  background: #ffdf6c !important;   /* jaune doux contrasté */
  color: #003a73 !important;
  border: none !important;
  border-radius: 12px !important;
  margin-top: .5rem;
  transition: filter .2s ease;
}
#footer .block_newsletter .btn.btn-primary:hover,
#footer input.btn.btn-primary[name="submitNewsletter"]:hover {
  filter: brightness(1.05);
}

/* Texte d'information sous le champ */
#footer .block_newsletter p:last-child {
  color: #ffffff !important;
  font-size: .9rem;
  margin-top: .5rem;
}

/* Focus accessibles */
#footer .block_newsletter input[type="email"]:focus,
#footer .block_newsletter .btn:focus {
  outline: 3px solid #99c2ff !important;
  outline-offset: 2px;
  border-radius: 10px;
}

/* Responsive (mobile) */
@media (max-width: 576px) {
  #footer .block_newsletter,
  #footer form[action*="blockEmailSubscription"] {
    padding: .75rem 1rem;
  }
  #footer .block_newsletter .btn.btn-primary {
    width: 100%;
  }
}

/* ===== SUPPRESSION DU LISERET BLANC AUTOUR DU LOGO ===== */

/* Image du logo desktop et mobile */
#_desktop_logo img,
#_mobile_logo img,
.header_logo img,
.logo img {
  background: transparent !important; /* supprime fond blanc éventuel */
  border: none !important;             /* supprime bordure blanche */
  box-shadow: none !important;         /* supprime ombre claire */
  outline: none !important;
}

/* Conteneur du logo */
#_desktop_logo,
#_mobile_logo,
.header_logo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* ===== LOGO cliquable : supprimer tout liseret/bordure/fond ===== */

/* Le lien qui entoure le logo (desktop + mobile) */
#_desktop_logo a,
#_mobile_logo a,
.header_logo a,
.logo a {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  padding: 0 !important;
  display: inline-block; /* évite certains effets de ligne de base */
}

/* États : survol, actif */
#_desktop_logo a:hover,
#_mobile_logo a:hover,
.header_logo a:hover,
.logo a:hover,
#_desktop_logo a:active,
#_mobile_logo a:active,
.header_logo a:active,
.logo a:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Focus : pas d’outline blanc ; on met un focus accessible et cohérent */
#_desktop_logo a:focus { outline: none !important; }
#_desktop_logo a:focus-visible {
  outline: 3px solid #ffdf6c !important;  /* anneau jaune lisible sur bleu */
  outline-offset: 2px;
  border-radius: 8px;
}
#_mobile_logo a:focus { outline: none !important; }
#_mobile_logo a:focus-visible {
  outline: 3px solid #ffdf6c !important;
  outline-offset: 2px;
  border-radius: 8px;
}

/* L’image du logo elle-même */
#_desktop_logo img,
#_mobile_logo img,
.header_logo img,
.logo img,
a img {
  display: block;                  /* supprime la fine ligne de base */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Évite qu’un style global du header recolore le fond autour du logo */
#header #_desktop_logo,
#header #_mobile_logo,
#header .header_logo,
#header .logo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ================================
   FIXES MOBILE — FOOTER ACCORDÉON
   ================================ */

/* Titres de blocs footer (lignes cliquables) */
@media (max-width: 768px) {
  #footer .links .title,
  #footer .links .h3 {
    background-color: #005cbb !important;
    color: #ffffff !important;
  }

  /* Icônes (ouvrir/fermer) des titres */
  #footer .links .title .material-icons,
  #footer .collapse-icons .material-icons {
    color: #ffffff !important;
  }

  /* Panneaux repliés / en cours d'ouverture / ouverts */
  #footer .links .collapse,
  #footer .links .collapsing,
  #footer .links .collapse.show {
    background-color: #00a4b1 !important;
    color: #ffffff !important;
  }

  /* Liens à l’intérieur des panneaux */
  #footer .links .collapse a {
    color: #ffffff !important;
  }
  #footer .links .collapse a:hover {
    color: #ffdf6c !important;
  }

  /* Séparateurs éventuels */
  #footer .links .collapse li {
    border-color: rgba(255,255,255,0.15) !important;
  }
}

/* Newsletter : s'assurer que le fond turquoise reste visible aussi en mobile */
@media (max-width: 768px) {
  #footer .block_newsletter,
  #footer form[action*="blockEmailSubscription"],
  #footer .block_newsletter form,
  #footer #block-newsletter-label,
  #footer .block_newsletter .row {
    background-color: #00a4b1 !important;
    color: #ffffff !important;
  }
}

/* ================================
   IMAGES — SÉCURISATION MOBILE
   ================================ */

/* Empêche tout style tiers de masquer/estomper les images produit */
@media (max-width: 576px) {
  .product-miniature .thumbnail.product-thumbnail img,
  .product-miniature img,
  .thumbnail-container img,
  .images-container img,
  .product-cover img,
  .js-qv-product-cover,
  .js-qv-product-cover img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
  }
}

/* Si un style global met des images à 0 via lazyload, on neutralise */
.lazyload,
.lazyloaded,
img[data-src],
img[data-lazy] {
  opacity: 1 !important;
  visibility: visible !important;
}

