/*
Theme Name: EPLS (Twenty Twenty-Five Child)
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Thème enfant de Twenty Twenty-Five
Author: Les Remarquables
Author URI: https://les-remarquables.com
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
Tags: Les Remarquables
*/

/* ========= PALETTE ========= */
:root {
  --elps-red: #B71318;
  /* rouge exact */
  --elps-orange: #FAAA64;
  /* orange exact */
  --elps-shadow: 0 8px 24px rgba(0, 0, 0, .08), 0 8px 8px rgba(0, 0, 0, .06);
}

/* ========= TOPBAR ========= */
.elps-topbar {
  background: var(--elps-red);
  padding: 16px 0 !important;
}

.elps-topbar .wp-block-group.alignwide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px;
}

.elps-topbar .wp-block-site-title a {
  color: #fff;
  text-decoration: none;
}

/* ========= RECHERCHE (pills) ========= */
/* grosse pill blanche avec ombre douce et angle bien rond */
.elps-topbar .wp-block-search__inside-wrapper {
  background: #fff;
  border-radius: 30px;
  padding: 2px 2px;
  box-shadow: var(--elps-shadow);
  border: 2px solid #fff;
  /* liseré blanc visible comme la maquette */
}

.elps-topbar .wp-block-search__input {
  border: none;
  box-shadow: none;
  /*padding:16px 18px;*/
  font-size: 18px;
}

.elps-topbar .wp-block-search__button {
  background: var(--elps-red);
  /* bouton rond rouge */
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 16px 22px;
  min-width: 64px;
  box-shadow: 0 6px 16px rgba(183, 19, 24, .25);
}

/* ========= ACTIONS DROITE ========= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Compte : 2 lignes blanches à droite, sans pastille orange (comme la maquette) */
.wp-block-woocommerce-customer-account a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.wp-block-woocommerce-customer-account .wc-block-customer-account__account-icon {
  color: #fff;
}

.wp-block-woocommerce-customer-account a .label {
  display: block;
  line-height: 1.1;
  color: #fff;
  opacity: .95;
  font-size: 14px;
}

.wp-block-woocommerce-customer-account a .label::before {
  content: "Mon compte";
  display: block;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 2px;
  color: #fff;
}

/* Panier : gros rond orange + ombre + badge noir */
.wc-block-mini-cart__button {
  background: var(--elps-orange);
  color: #111;
  border: none;
  width: 56px;
  height: 56px;
  /* plus proche du rendu */
  border-radius: 38%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--elps-shadow);
}

.wc-block-mini-cart__icon {
  width: 36px;
  height: 36px;
  color: #fff;
}

.wc-block-mini-cart__quantity-badge {
  position: relative;
}

.wc-block-mini-cart__badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #000;
  color: #fff;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 38%;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

/* ========= NAV (rangée du dessous) ========= */
.elps-nav {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.elps-nav .wp-block-navigation__container {
  gap: 40px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.elps-nav a {
  text-decoration: none;
}

/* “Nos produits” en pastille orange + chevron */

.elps-nav .wp-block-navigation__container>li:first-child>a {
  background: var(--elps-orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px 0 20px 00px;
  box-shadow: var(--elps-shadow);
}

.elps-nav .wp-block-navigation__container>li:first-child>a::after {
  content: "  ▾";
  font-weight: 700;
}

.elps-nav {
  box-shadow: var(--elps-shadow);
  background-color: var(--elps-red);
  background: #fff;
  background: linear-gradient(90deg, var(--elps-red) 0%, var(--elps-red) 50%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 1) 100%);
}

/* ========= STICKY (optionnel) ========= */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 110;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
  .elps-topbar .wp-block-search__input {
    padding: 12px 14px;
  }

  .wc-block-mini-cart__button {
    width: 48px;
    height: 48px;
  }
}

.elps-nav {
  padding-left: 20px;
}

.elps-nav nav {
  background: linear-gradient(90deg, var(--elps-red) 0%, var(--elps-red) 30px, rgba(255, 255, 255, 1) 30px, rgba(255, 255, 255, 1) 100%);
}

/* ========= FIN ========= */


/* ========= FOOTER ========= */

.fondgris {
  background-color: #f5f5f5;
  padding: 20px 0;
}

.fondnoir {
  background-color: #000;
  color: #fff;
}

.logofooter {
  width: 170px;
  margin-bottom: 10px;
  top: -40px;
}

.accroche {
  font-style: italic;
  font-size: 13px;
  text-align: center;
}

.footerlegal {
  background: #fff;
  color: #b0b0b0;
  padding: 18px;
  margin: 0px -59px 0 0;
  border-radius: 30px 0 0;
  font-size: 12px;
}


.groupemenus {
  padding: 20px 0;
}

.wp-block-search__inside-wrapper {
  background: #fff;
  border-radius: 30px;
  padding: 2px 2px;
  box-shadow: var(--elps-shadow);
  border: 2px solid #fff;
  /* liseré blanc visible comme la maquette */
}

.wp-block-search__input {
  border: none;
  box-shadow: none;
  /*padding:16px 18px;*/
  font-size: 12px;
}

/* strates */
.strategrise{
  background-color: #F5F5F5;
  padding: 40px 0;
  margin : 0;
  /*text-align: center;*/
  font-size: 13px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}
.straterouge {
  background-color: #B71318;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.straterouge::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 50%;
  transform: translateY(60%);
  width: 400px;
  height: 400px;
  background-image: url(assets/engrenagesblanc.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;
  /* opacity: 0.7; */
  pointer-events: none;
  z-index: 0;
}

.titrestrate {
  display: flex;
  align-items: flex-start;
  padding : 0 20px;
}

h1 {
  margin-top: 20px !important;
  font-weight: 700;
  position: relative;
  padding-left: 22px;
}
h1::after {
  content: none;
}
h1::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 12px;
  background: #b70000;
  border-radius: 4px;
}
.wc-block-components-product-image img, .wp-block-post-featured-image :where(img)  {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--elps-shadow);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s cubic-bezier(.4,0,.2,1);
}
.wc-block-components-product-image a img,
.wp-block-post-featured-image a :where(img) {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--elps-shadow);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s cubic-bezier(.4,0,.2,1);
}
.wc-block-components-product-image img:hover, .wp-block-post-featured-image :where(img):hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(183,19,24,0.18), 0 8px 8px rgba(0,0,0,0.10);
}
.wc-block-components-product-image a:hover img,
.wp-block-post-featured-image a:hover :where(img) {
  transform: scale(1.06) ;
  box-shadow: 0 12px 32px rgba(183,19,24,0.18), 0 8px 8px rgba(0,0,0,0.10);
}

.straterouge h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.paddingtop {
  padding-top: 50px;
}

.card {

  background: #fff;
  color: #000;
  box-shadow: var(--elps-shadow);
  border-radius: 10px;
  width: 100%;
  padding: 20px;
  text-align: left;
}

.blocprix {
  background-color: #F5F5F5;
  border-radius: 30px;
  padding: 8px;
  font-weight: bold;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
      position: sticky;
    top: 220px;
    z-index: 100;
}

.wp-block-woocommerce-add-to-cart-form .quantity input {
  border-radius: 20px;
  border: 0;
  font-size: 16px;
}

.wp-block-woocommerce-add-to-cart-form button {
  border-radius: 20px;
  border: 0;
  font-size: 16px;
}

.woocommerce div.product form.cart {
  margin-bottom: 0em;
}
.wc-block-components-button{
  border-radius: 20px;
  border: 0;
  font-size: 16px;
  padding: 12px 24px;
}


/* ========= PANIER========= */

/* Bouton "Demander un devis" dans le mini-panier */
.elps-quote-button {
  text-decoration: none !important;
  display: block !important;
  margin-top: 10px;
  padding: 12px 0;
  width: 100%;
  text-align: center;
  font-weight: 600;
  background-color: #b70000;
  color: #fff !important;
  border-radius: 9999px; /* même style que les autres boutons */
  transition: background-color 0.3s ease;
}
.elps-quote-button:hover {
  background-color: #000000;
  color: #fff !important;
}


/* SUPPRESSION DES BOUTON DE COMMANDE DANS LE MINI-PANIER et PANIER COMPLET */
.wc-block-mini-cart__footer-checkout {
  display: none !important; /* Masquer le bouton "Valider la commande" */
}
.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  display: none !important; /* Masquer le bouton "Valider la commande" dans le panier complet */
}

/* ========= FIN SUPPRESSION BOUTON COMMANDE ========= */

/* Styles du formulaire de demande de devis */
.wpcf7 form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.wpcf7-submit {
  background-color: #b70000;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 12px 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
  background-color: #910000;
}

/* Style du résumé du panier */
.cart-summary, .wpcf7 form p:has(#cart_summary) {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #b70000;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 6px;
  color: #222;
}
.cart-summary {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #b70000;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #222;
}

/* les catégories de produits  */
.tags-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  padding: 0;
}

.tags-categories ul li{
  list-style-type: none;
  background-color: #FAA965;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}
.tags-categories ul li a{
  color: #fff;
  text-decoration: none;
}
.tags-categories ul li:hover{
  background-color: #b70000;
}

/* sous menu */
.menunosproduits button{
  display: none;
}

.menunosproduits ul {
    background-color: #FAA965 !important;
    color: #fff !important;
    min-width: 274px !important;
    border: none !important;
}
.menunosproduits ul li:hover,
.menunosproduits ul li:has(a:hover) {
    background-color: #b70000 !important;
}
.menunosproduits ul li a {
    background: transparent !important;
    color: #fff !important;
}

/* produit */
.descriptionlongue{
  background-color: #fff !important;
      padding: 20px !important;
}


/* dans le formulaire


/* === Style visuel du formulaire de demande de devis === */
.wpcf7 form {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.wpcf7-submit {
  background-color: #b70000;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
  background-color: #910000;
}

.cart-summary {
  margin-top: 25px;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 5px solid #b70000;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #222;
}

.cart-summary strong {
  color: #b70000;
}
strong{
  font-weight: 700;
}

/* ========= FIN FORMULAIRE DE DEVIS ========= */



/* ========= GALERIE vs COMPARAISON ========= */
/*
.galerieelps .flex-viewport {
  display: none;
}
  
  */
.woocommerce-product-gallery__trigger{
  display: none;
}
.galerieelps ol{
  border-top: 10px solid #fff;
}

h1{
  margin-top: 20px !important;
  font-weight: 700;
  position: relative;
  padding-left: 22px;
}
h1::after {
  content: none;
}
h1::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 12px;
  background: #b70000;
  border-radius: 4px;
}
h2, h3, h4, h5, h6 {
 font-weight: 700;
}

.wp-block-navigation .wp-block-navigation__submenu-icon {
  display: none;
}
.titrage{
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}
.titrage::after {
  content: "";
  display: block;
  width: 15%;
  height: 7px;
  background: #F9AA64;
  border-radius: 4px;
  margin-top: 7px;
}
#wp--skip-link--target {
    margin-top: 0 !important;
}
/* FORMULAIRE DE CONTACT
/* Style général du select CF7 */
.wpcf7-form-control.wpcf7-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    padding: 12px 16px;
    font-size: 16px;

    background-color: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 8px;

    color: #333;

    cursor: pointer;
    transition: all .25s ease;
    background-image: url("data:image/svg+xml;utf8,<svg width='16' height='16' viewBox='0 0 20 20' fill='%23333' xmlns='http://www.w3.org/2000/svg'><path d='M5 7L10 12L15 7H5Z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

/* Hover */
.wpcf7-form-control.wpcf7-select:hover {
    border-color: #999;
}

/* Focus (accessibilité) */
.wpcf7-form-control.wpcf7-select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    outline: none;
}

/* Option Styles */
.wpcf7-form-control.wpcf7-select option {
    padding: 10px;
}
.bulleinfo{
    color: #666;
    margin-top: -10px;
    margin-bottom: 10px;
    border-radius: 30px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
    padding: 20px;
}
.woocommerce .woocommerce-breadcrumb {
    margin: 1em 0 1em;
}

.wp-playlist {
    border: none;
    padding: 10px;
    margin: 12px 0 18px;
    font-size: 14px;
    line-height: 1.5;

    
    max-width: 480px;

}
.acf-video-wysiwyg{
  display: block;
   margin: 0 auto;
}

/* RESTPONSIVE  */
@media (max-width: 600px) {
  .elps-topbar .wp-block-search__inside-wrapper {
    display: none;
  }
  .groupemenus {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .lignehome{
    display: flex;
    flex-direction: column;
  }

  .elps-nav{
    padding-left: 0px;
    background: var(--elps-red);
    
  }
  .elps-nav nav {
      background: var(--elps-red) !important;
  }
}

