/* Cible tous les éléments injectés par Pinterest */
[class^="PIN_"], [class*=" PIN_"],
a[data-pin-do], a[data-pin-log], a[data-pin-href],
.pinit-button, .pinit-btn, .pinit-hover, .pinit-overlay,
.pinit-hover-button, .pinit-btn-wrapper,
.pinterest-button, .share-pinterest,
a[href*="pinterest.com/pin/create/"],
iframe[src*="assets.pinterest.com"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

input[type="email"] {
  color: #000000 !important;       /* texte noir */
  font-weight: 600 !important;     /* texte plus épais */
}

button, .wp-block-button__link {
  background-color: #000000 !important;  /* bouton noir */
  color: #ffffff !important;             /* texte blanc */
  font-weight: 700 !important;           /* texte bien gras */
  border: none !important;
}

button:hover, .wp-block-button__link:hover {
  background-color: #333333 !important;  /* bouton légèrement plus clair au survol */
}

/* Supprime toutes les lignes ou ombres dans le haut du site */
.top-bar,
.site-header,
.site-header::before,
.site-header::after {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* Ajoute une seule ligne noire fine sous le menu principal */
.main-navigation::after {
  content: "";
  display: block;
  width: 90%;              /* ajuste à 100% si tu veux toute la largeur */
  margin: 0 auto;
  height: 1px;
  background-color: #000000;
  opacity: 1;
}

/* Bordures des champs (newsletter, recherche) plus visibles */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  border: 1px solid #000 !important;
}

/* Rend toutes les lignes existantes du corps de page plus foncées */
hr,
.wp-block-separator,
.entry-content hr,
.site-main hr,
.site-content hr {
  border: 0 !important;
  height: 1px !important;
  background-color: #000000 !important;
  opacity: 1 !important;
}

/* Si le thème utilise des bordures fines comme séparateurs */
.entry-content,
.post,
.article,
.section,
.site-content {
  border-color: #000000 !important;
}

/* Masquer le logo "Authentic." dans le menu burger mobile */
.offcanvas-header .site-branding,
.offcanvas-header .branding,
.offcanvas-header .site-logo,
.offcanvas-header .logo,
.offcanvas-header .site-title,
.off-canvas-header .site-branding,
.off-canvas-header .site-title,
.off-canvas .site-branding,
.cs-offcanvas .site-branding,
.drawer .site-branding,
.drawer .site-title {
  display: none !important;
}

/* Par défaut : le bloc mobile est masqué si tu le crées ensuite */
.mobile-only { display: none !important; }

/* Cacher VRAIMENT le bloc "desktop-only" sur mobile */
@media (max-width: 900px){
  .desktop-only { 
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Au cas où le thème force un wrapper autour du bloc */
  .site-header .desktop-only,
  .site-header .wp-block-group.desktop-only,
  .site-header .wp-block-column.desktop-only,
  .site-header .widget.desktop-only {
    display: none !important;
  }
}

@media (max-width: 900px){
  .mobile-only form{ display:flex; flex-wrap:wrap; gap:12px; }
  .mobile-only input[type="email"]{ width:100%; margin:0 0 12px 0; box-sizing:border-box; }
  .mobile-only [type="submit"], .mobile-only .wp-block-button__link{ width:100%; box-sizing:border-box; }
}

/* Par défaut : on cache le bloc mobile et on montre le desktop */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

/* --- VUE MOBILE --- */
@media (max-width: 900px){

  /* Afficher le bloc mobile, au-dessus de tout et cliquable */
  .mobile-only,
  .wp-block-group.mobile-only,
  .wp-block-column.mobile-only {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 99999 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobile-only * { pointer-events: auto !important; }

  /* Cacher VRAIMENT le bloc desktop dans le header */
  .desktop-only,
  .site-header .desktop-only,
  .site-header .wp-block-group.desktop-only,
  .site-header .wp-block-column.desktop-only {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Mise en pile propre du formulaire mobile */
  .mobile-only form { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; }
  .mobile-only input[type="email"]{ width:100% !important; margin:0 0 12px 0 !important; box-sizing:border-box !important; }
  .mobile-only [type="submit"], .mobile-only .wp-block-button__link{ width:100% !important; box-sizing:border-box !important; margin:0 !important; }
}

/* Si un overlay de bloc Couverture mange les clics sur la page d'accueil */
.home .wp-block-cover__link { pointer-events: none !important; }

@media (max-width: 900px){
  .mobile-only .wp-block-button__link {
    white-space: nowrap !important;
    font-size: 16px !important;
  }
}
