/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

/* =====================================================
   DISTRIBUTEUR CROQUETTE
   ===================================================== */

@media (max-width: 781px) {
  .dc-hero .wp-block-buttons { flex-direction: column; align-items: center; }
  .dc-hero .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
}

@media (max-width: 781px) {
  .dc-args > .wp-block-column {
    flex-basis: calc(50% - 12px) !important;
    min-width: calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
  }
}

@media (max-width: 600px) {
  .wp-block-group p, .wp-block-group li { font-size: 0.95rem !important; line-height: 1.75 !important; }
  .wp-block-group p[style*="letter-spacing"],
  .wp-block-group p[style*="font-size:0.7"],
  .wp-block-group p[style*="font-size:0.8"],
  .wp-block-group p[style*="font-size:8rem"],
  .wp-block-group p[style*="font-size:3rem"],
  .wp-block-group p[style*="font-size:2.2rem"] { font-size: inherit !important; line-height: inherit !important; }
}

/* Shortcode paiement */
.dc-paiements { display:flex !important; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; }
.dc-card { display:inline-flex !important; align-items:center; justify-content:center; height:30px; }
.dc-card svg { height:30px; width:auto; max-width:80px; display:block; border-radius:4px; }

/* Page catégorie + page produit WooCommerce + blog : titre + fil d'ariane alignés à gauche */
body.tax-product_cat .page-header-title,
body.tax-product_cat .site-breadcrumbs,
body.single-product .page-header-title,
body.single-product .site-breadcrumbs,
body.blog .page-header-title,
body.blog .site-breadcrumbs,
body.single-post .site-breadcrumbs {
  text-align: left;
}

/* Page blog : description de la page, entre l'entête et la grille d'articles */
.dc-blog-description {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #4a4a4a;
}

/* Trust badges page produit */
.dc-trust-badges { display:flex; flex-wrap:wrap; gap:16px; margin:20px 0; padding:16px 0; border-top:1px solid #eee; border-bottom:1px solid #eee; }
.dc-trust-badges__item { display:flex; align-items:center; gap:8px; font-family:"Poppins",sans-serif; font-size:13px; color:#4a4a4a; flex:1 1 auto; min-width:150px; }
.dc-trust-badges__item svg { flex-shrink:0; width:26px; height:26px; color:#bf864e; }
@media (max-width:600px){
  .dc-trust-badges { flex-direction:column; gap:12px; }
}

/* Section "Vous aimerez peut-être aussi..." (balise p, pas de h2) */
.related.products > p {
  text-align: center;
  font-size: 25px;
  font-family: "Mouse Memoirs", sans-serif;
  font-weight: 700;
  margin: 0 0 24px;
}

/* Grille produits (home + boucle catégorie) : titres en p (pas de h2), pas de soulignage des liens */
ul.products li.product .woo-product-info li.title a,
ul.products li.product .woo-entry-inner a.add_to_cart_button,
ul.products li.product a {
  text-decoration: none !important;
}

/* Header transparent réservé à la home — blanc opaque partout ailleurs */
body:not(.home) #site-header,
body:not(.home) #site-header.is-sticky,
body:not(.home).is-sticky #site-header {
  background-color: #ffffff !important;
  opacity: 1 !important;
}

/* Formulaire WPForms : les styles de thème (bloc Gutenberg) sont écrasés par la
   règle générique "form input[...]" du thème parent OceanWP (style.min.css).
   On restaure la priorité aux variables CSS définies par WPForms pour chaque formulaire. */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container input[type="number"],
.wpforms-container select,
.wpforms-container textarea {
  border-radius: var(--wpforms-field-border-radius, 3px) !important;
  border-color: var(--wpforms-field-border-color, #ddd) !important;
  border-style: var(--wpforms-field-border-style, solid) !important;
  border-width: var(--wpforms-field-border-size, 1px) !important;
  color: var(--wpforms-field-text-color, inherit) !important;
  background-color: var(--wpforms-field-background-color, #fff) !important;
}

/* Page Informations légales : onglets centrés */
.dc-tabs__radio { position: absolute; opacity: 0; pointer-events: none; }
.dc-tabs__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0;
}
.dc-tabs__label {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #888;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.dc-tabs__label:hover { color: #333; }
#dc-tab-1:checked ~ .dc-tabs__nav label[for="dc-tab-1"],
#dc-tab-2:checked ~ .dc-tabs__nav label[for="dc-tab-2"],
#dc-tab-3:checked ~ .dc-tabs__nav label[for="dc-tab-3"] {
  color: #bf864e;
  border-bottom-color: #bf864e;
}
.dc-tabs__panel { display: none; max-width: 820px; margin: 0 auto; font-family: "Poppins", sans-serif; font-size: 15px; line-height: 1.7; color: #4a4a4a; }
.dc-tabs__panel p:first-child {
  font-family: "Mouse Memoirs", sans-serif;
  font-size: 26px;
  color: #000;
  margin-bottom: 4px;
}
#dc-tab-1:checked ~ .dc-panel-1,
#dc-tab-2:checked ~ .dc-panel-2,
#dc-tab-3:checked ~ .dc-panel-3 {
  display: block;
}
@media (max-width: 600px) {
  .dc-tabs__nav { flex-direction: column; gap: 0; border-bottom: none; }
  .dc-tabs__label { border-bottom: 1px solid #eee; border-radius: 0; }
}
