/*
Theme Name: AMD Starter Theme
Author: AMD Creation
Author URI: https://www.amd-creation.com
Description: Starter theme sur mesure de l'agence AMD Creation
Version: 2.5.0
Template: salient
*/

/* ========================================================================== */
/* 1. BASE / CONFIGURATION (typo, composants globaux, éléments réutilisables)  */
/* ========================================================================== */

/* Sous-titre des sections */
.amd-hashtag-above-title {
  margin-bottom: 10px !important;
  font-size: 14px !important;
  font-family: "Proza Libre", sans-serif !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e28410 !important;
}

/* Breadcrumb */
.amd-breadcrumb {
  font-size: 0.9rem;
}

/* Helper: opacité */
.amd-opacity-60 {
  opacity: 0.6;
}

/* Helper: justify */
.amd-justify-text {
  text-align: justify;
}

/* Lien page contact */
.amd-contact-link {
  color: #1a2830;
}
.amd-contact-link:hover {
  color: #e28410;
}

/* Promo code (petit badge) */
.promo-code {
  background: #fff;
  color: #e67e00;
  padding: 4px 10px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 17px;
  margin: 0 6px;
}

/* Keyword footer */
.amd-footer-keywords {
  font-size: 14px;
  line-height: 22px;
  margin-right: 15%;
}


/* ========================================================================== */
/* 2. FORMULAIRES / WPCF7                                                     */
/* ========================================================================== */

.amd-contact-form-2 input[type="text"],
.amd-contact-form-2 input[type="email"],
.amd-contact-form-2 input[type="tel"],
.amd-contact-form-2 select,
.amd-contact-form-2 textarea {
  background-color: #ffffff !important;
}

.amd-contact-form-2 span.wpcf7-list-item-label,
.amd-contact-form-2 .wpcf7-file {
  color: #ffffff !important;
}

.amd-contact-form-2 input[type="submit"] {
  background-color: #1a2830 !important;
  color: #ffffff !important;
}

.amd-contact-form-2 .wpcf7-response-output {
  color: #1a2830;
}


/* ========================================================================== */
/* 3. THEME / PLUGINS (Salient, WPBakery, WooCommerce, WAPF, CKY, etc.)             */
/* ========================================================================== */

/* Enlever les liens underline par défaut (Salient) */
#search-results .result .title a,
.nectar-ajax-search-results .search-post-item h5,
.nectar-category-grid[data-style="mouse_follow_image"] .nectar-category-grid-item .cat-heading,
.nectar-link-underline a span,
.nectar-link-underline-effect a,
.nectar-underline h1,
.nectar-underline h2,
.nectar-underline h3,
.nectar-underline h4,
.nectar-underline h5,
.pum-theme-salient-page-builder-optimized .pum-container .pum-content + .pum-close span {
  background: none;
}

/* Reset la font-size de base pour les boutons "large" (Salient) */
.nectar-button.large {
  font-size: inherit;
}

/* Remove letter-spacing in Milestones */
body .nectar-milestone .subject {
  letter-spacing: 0 !important;
}

/* Project archive: changer la taille du titre */
body.archive.tax-project-type #portfolio .work-meta .title {
  font-size: 24px;
  line-height: 34px;
}

/* WPBakery gallery: item meta full width */
.wpb_gallery .nectar-flickity .flickity-slider .cell .item-meta {
  max-width: 100% !important;
}

/* Ajuster menu font */
ul.sub-menu .title.inherit-h4 span.menu-title-text {
  font-size: 16px;
  line-height: 1.5;
}

/* Ajuster l'espace bouton navbar (Salient) */
#header-outer:not([data-format="centered-menu-under-logo"]):not([data-format="centered-menu-bottom-bar"])
  #top nav > ul > li[class*="button_"] > a::before {
  top: 40%;
  padding-top: 10px;
}

/* Search sans maj (Salient) */
body.material #search-outer #search input[type="text"] {
  text-transform: inherit;
}

/* Couleur du lien actif bouton sur boutique */
.sf-menu > .current-menu-item.amd-menu-cta > a > span.menu-title-text {
  color: #ffffff;
}

/* WooCommerce: cacher le prix dans le summary */
.woocommerce div.product .summary p.price {
  display: none;
}

/* WooCommerce: titre produit */
h1.product_title {
  margin-bottom: 1rem !important;
}

/* WooCommerce: espace produit -> description */
.woocommerce div.product .woocommerce-tabs[data-tab-style="fullwidth_stacked"] {
  padding-top: 2rem;
}
@media only screen and (min-width: 1000px) {
  .woocommerce div.product .woocommerce-tabs[data-tab-style="fullwidth_stacked"] {
    padding-top: 4rem;
  }
}

/* Bloc avis single product */
.nectar-button.large.nectar-product-reviews-trigger {
  font-size: 16px;
}

.woocommerce-tabs #reviews .woocommerce-Reviews-title .nectar-average-count-wrap .total-num {
  font-size: 16px;
  font-family: "Proza Libre", sans-serif;
  font-weight: 400;
}

/* Enlever description produit dans le panier (Woo blocks) */
.wc-block-cart__main .wc-block-components-product-metadata__description {
  display: none;
}

/* Augmenter taille nom du produit (Panier Woo blocks) */
.wp-block-woocommerce-cart .wc-block-components-product-name {
  font-size: 16px !important;
  font-weight: 500;
}

/* Réduire font size du bouton coupon (Checkout Woo blocks) */
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button {
  font-size: 14px !important;
}

/* WAPF: cacher certains champs de calcul */
.iml-wapf-field--hidden {
  display: none !important;
}

/* Bloc WAPF (section single product) */
.amd-wapf_single-product-section {
  border: 1px solid lightgray;
  padding: 25px;
  border-radius: 5px;
  margin: 0 5px 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.035);
}

.amd-wapf_single-product-section--heading {
  font-size: 22px;
  font-family: "Proza Libre", sans-serif;
  line-height: 1.5;
  font-weight: bold;
}

/* Bloc "USPs" sous galerie produit (single-product.php) */
.amd-usps {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
}

.amd-usps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.amd-usps__item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.amd-usps__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.amd-usps__text {
  font-size: 14px;
  line-height: 1.35;
}

/* Template Conseil: enlever padding top si header-resize=0 */
.conseil-template-default[data-header-resize="0"] .container-wrap {
  padding-top: 0 !important;
}

/* Box shadow et padding CPT Conseils (bloc texte) */
body.conseil-template-default.single
  .vc_row-fluid[data-column-margin="50px"] .row_col_wrap_12 > .wpb_column:nth-child(1) {
  box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
  border-radius: 10px;
  padding-top: 25px;
  padding-bottom: 25px;
}

/* Réduire font size Testimonials */
.nectar_single_testimonial[data-style="small_modern"] span.wrap {
  font-size: 14px;
}

/* Catégorie: réduire font size */
.nectar-post-grid .meta-category a {
  font-size: 14px;
}

/* Home loop: on cache le titre standard */
.home-products-loop h3.post-heading {
  display: none !important;
}

/* Home loop: custom field short_title en "titre" */
.home-products-loop .nectar-post-grid-item__custom-fields {
  margin-top: 0 !important;
}

.home-products-loop .nectar-post-grid-item__custom-field[data-key="short_title"] {
  display: block;
  margin: 0 !important;
  font-family: "Proza Libre", sans-serif;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

/* Pastille "Populaire" */
body.home .nectar-post-grid-item[data-post-id="6215"] .inner {
  position: relative;
}

body.home .nectar-post-grid-item[data-post-id="6215"] .inner::after {
  content: "Le plus choisi";
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #e21b10;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* Changement de couleur de la bannière CookieYes */
.cky-notice .cky-btn.cky-btn-customize,
.cky-notice .cky-btn.cky-btn-reject,
.cky-footer-wrapper .cky-btn.cky-btn-reject,
.cky-footer-wrapper .cky-btn.cky-btn-preferences {
    color: #e28410 !important;
    border-color: #e28410 !important;
}

.cky-notice .cky-btn.cky-btn-accept,
.cky-footer-wrapper .cky-btn.cky-btn-accept {
    color: #fff !important;
    background-color: #e28410 !important;
    border-color: #e28410 !important;
}

.cky-preference-content-wrapper .cky-show-desc-btn {
    color: #e28410 !important;
}

.cky-btn-revisit-wrapper.cky-revisit-bottom-left {
    background-color: #e28410 !important;  
}

/* ========================================================================== */
/* 4. RESPONSIVE (media queries)                                              */
/* ========================================================================== */

/* Centrer les éléments du footer sur mobile */
@media only screen and (max-width: 690px) {
  #footer-outer > #footer-widgets > .container,
  #footer-outer > #copyright > .container {
    text-align: center;
  }

  #footer-outer > #copyright .social {
    float: none !important;
    display: flex;
    justify-content: center;
  }
}

/* Remove button margin right on mobile */
@media only screen and (max-width: 677px) {
  .amd-button-margin-right {
    margin-right: 0 !important;
  }
}

/* Ajuster la column margin (50px / 80px) sur tablette/mobile */
@media only screen and (max-width: 999px) {
  .vc_row-fluid[data-column-margin="50px"] .wpb_column:not([class*="vc_col-xs-"]):not(.child_column):not(:last-child),
  .vc_row-fluid[data-column-margin="80px"] .wpb_column:not([class*="vc_col-xs-"]):not(.child_column):not(:last-child) {
    margin-bottom: 2rem;
  }

  .inner_row[data-column-margin="50px"] .child_column:not([class*="vc_col-xs-"]):not(:last-child),
  .inner_row[data-column-margin="80px"] .child_column:not([class*="vc_col-xs-"]):not(:last-child) {
    margin-bottom: 2rem;
  }
}

/* Réduire espace footer */
#footer-outer #block-17.widget {
  margin-bottom: 11px;
}
#footer-outer #block-14.widget p {
  line-height: 34px;
}

/* Responsive secondary header bar + promo code */
@media only screen and (max-width: 999px) {
  body #header-secondary-outer .nectar-center-text {
    max-width: 100%;
    line-height: 1.4;
    padding-top: 0 !important;
  }

  .promo-code {
    padding: 0 4px;
    margin: 0 3px;
  }
}

/* Responsive keywords footer */
@media only screen and (max-width: 999px) {
  .amd-footer-keywords {
    margin-right: inherit;
  }
}