/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.5.1
	Stable tag: 3.5.1
	Requires at least: 6.0
	Tested up to: 7.0
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/
/* ==========================================================================
   Cartes "Nos produits phares" ([produits_phares])
   A coller dans : Apparence > Personnaliser > CSS additionnel
   ========================================================================== */

.lma-produits-phares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lma-produits-phares.columns-3 { grid-template-columns: repeat(3, 1fr); }
.lma-produits-phares.columns-2 { grid-template-columns: repeat(2, 1fr); }

.lma-product-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.lma-product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #E5E9E9;
}
.lma-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lma-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
}
.lma-tag-location  { background: #12312E; }
.lma-tag-urgence   { background: #E2402F; }
.lma-tag-populaire { background: #1AA8B8; }
.lma-tag-nouveau   { background: #8B5CF6; }

.lma-cat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFFFFF;
  color: #12312E;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 20px;
  text-decoration: none;
  z-index: 2;
}
.lma-cat-badge:hover { background: #F2F5F5; }

.lma-ref-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(18,49,46,0.85);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  z-index: 2;
}

.lma-product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lma-product-cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1AA8B8;
  text-decoration: none;
  margin-bottom: 6px;
}
.lma-product-cat:hover { text-decoration: underline; }

.lma-product-title { text-decoration: none; }
.lma-product-title h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #12312E;
  line-height: 1.3;
}

.lma-product-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: #7C8B89;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.lma-product-divider {
  border: none;
  border-top: 1px solid #ECEFEF;
  margin: 0 0 12px;
}

.lma-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lma-sur-devis {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #9AA9A7;
}
.lma-sur-devis .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1AA8B8;
  margin-right: 6px;
}

.lma-devis-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #12312E;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 20px;
  transition: background .2s ease;
}
.lma-devis-btn:hover { background: #1AA8B8; color: #FFFFFF; }

@media (max-width: 992px) {
  .lma-produits-phares,
  .lma-produits-phares.columns-3,
  .lma-produits-phares.columns-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lma-produits-phares,
  .lma-produits-phares.columns-2,
  .lma-produits-phares.columns-3,
  .lma-produits-phares.columns-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Formulaire de devis sur la fiche produit (voir devis-produit-hook.php)
   ========================================================================== */

.lma-devis-produit {
  background: #F8FAFA;
  border: 1px solid #ECEFEF;
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}
.lma-devis-produit h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #12312E;
}
.lma-devis-produit .lma-devis-souscat {
  margin: 0 0 18px;
  font-size: 13px;
  color: #7C8B89;
}

.lma-devis-produit .devis-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.lma-devis-produit .devis-form-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
}
.lma-devis-produit .devis-form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #12312E;
  margin-bottom: 6px;
}
.lma-devis-produit input[type="text"],
.lma-devis-produit input[type="tel"],
.lma-devis-produit input[type="email"],
.lma-devis-produit input[type="number"] {
  background: #FFFFFF;
  border: 1px solid #E5EAEA;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #12312E;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.lma-devis-produit input:focus {
  outline: none;
  border-color: #1AA8B8;
  box-shadow: 0 0 0 3px rgba(26,168,184,0.15);
}
.lma-devis-produit .devis-form-submit {
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #22C0C8, #159AA6);
  border-radius: 12px;
  padding: 3px;
  margin-top: 4px;
}
.lma-devis-produit input[type="submit"] {
  all: unset;
  display: inline-block;
  width: 100%;
  text-align: center;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 13px 0;
}
.lma-devis-produit .wpcf7-not-valid-tip { color: #E2402F; font-size: 12px; margin-top: 4px; }
.lma-devis-produit .wpcf7-response-output {
  margin-top: 14px;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.lma-devis-produit .wpcf7-form.invalid .wpcf7-response-output { border: 1px solid #E2402F; color: #E2402F; }
.lma-devis-produit .wpcf7-form.sent .wpcf7-response-output { border: 1px solid #1AA8B8; color: #0F7A87; }

@media (max-width: 600px) {
  .lma-devis-produit .devis-form-row { flex-direction: column; gap: 12px; }
}