/* ==========================================================================
   KgTech — page d'accueil Elementor (classes posées dans le template JSON).
   Elementor gratuit n'applique pas le CSS par widget : tout est ici.
   ========================================================================== */

.kg-p0 p { margin: 0; }
.kg-maxw p { max-width: 460px; }
.kg-hidden { display: none !important; }
.kg-mt22 { margin-top: 22px; }

/* Les conteneurs Elementor ont width:100% par défaut : on impose nos grilles. */
.e-con.kg-sec { --content-width: 1240px; }
.e-con.kg-sec > .e-con-inner { max-width: 1240px; }

/* Sur-titres (variantes) */
.kg-eyebrow--light { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.kg-eyebrow--light::before { background: var(--kg-green) !important; }
.kg-eyebrow--amber { background: rgba(239, 209, 9, .28) !important; color: #6B5A00 !important; }
.kg-eyebrow--amber::before { background: var(--kg-yellow) !important; }
.kg-eyebrow--wa { background: rgba(18, 140, 126, .12) !important; color: #0B6B60 !important; }
.kg-eyebrow--wa::before { background: #128C7E !important; }
.kg-em { color: var(--kg-yellow); }

/* Boutons Elementor : icône dans une pastille */
.kg-btn-el .elementor-button { transition: transform .5s var(--kg-ease), background .5s var(--kg-ease), box-shadow .5s var(--kg-ease); }
.kg-btn-el .elementor-button-content-wrapper { display: flex; align-items: center; gap: 12px; }
.kg-btn-el .elementor-button-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); transition: transform .5s var(--kg-ease); }
.kg-btn-el .elementor-button-icon svg, .kg-btn-el .elementor-button-icon i { font-size: 16px; width: 16px; height: 16px; fill: currentColor; }
.kg-btn-el .elementor-button:hover .elementor-button-icon { transform: translate(3px, -1px) scale(1.05); }
.kg-btn-el .elementor-button:active { transform: scale(.98); }
.kg-btn-el--glow .elementor-button { box-shadow: 0 14px 30px -12px rgba(224, 29, 91, .6); }
.kg-btn-el--ghost .elementor-button { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.kg-btn-el--ghost .elementor-button-icon { background: rgba(255, 255, 255, .12); }
.kg-link-more .elementor-button-content-wrapper { display: flex; align-items: center; gap: 10px; }
.kg-link-more .elementor-button-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--kg-ink); color: #fff; display: grid; place-items: center; transition: transform .5s var(--kg-ease); }
.kg-link-more .elementor-button-icon svg { fill: #fff; width: 14px; height: 14px; }
.kg-link-more .elementor-button:hover .elementor-button-icon { transform: translate(3px, -1px); }

/* Icônes carrées */
.kg-ico .elementor-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; padding: 0; }
.kg-ico .elementor-icon svg, .kg-ico .elementor-icon i { width: 22px; height: 22px; font-size: 22px; }
.kg-ico--lg .elementor-icon { width: 54px; height: 54px; border-radius: 18px; transition: background .5s var(--kg-ease), color .5s var(--kg-ease); }
.kg-ico--lg .elementor-icon svg, .kg-ico--lg .elementor-icon i { width: 24px; height: 24px; font-size: 24px; }

/* Tête de section */
.e-con.kg-sec-head { align-items: flex-end; }
.kg-sec-head .kg-link-more { width: auto; }
@media (max-width: 767px) { .e-con.kg-sec-head { align-items: flex-start; } }

/* --------------------------------------------------------------------------
   Hero bento
   -------------------------------------------------------------------------- */
.e-con.kg-bento { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.e-con.kg-bento > .e-con { width: 100%; }
.e-con.kg-bento-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.e-con.kg-shell { padding: 6px; }
.e-con.kg-shell > .e-con { flex: 1 1 auto; height: 100%; }
.e-con.kg-hero-core { position: relative; overflow: hidden; min-height: 440px; color: #fff; }
.e-con.kg-hero-core::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(600px 400px at 85% 20%, rgba(43, 177, 235, .35), transparent 60%), radial-gradient(420px 320px at 100% 100%, rgba(224, 29, 91, .30), transparent 60%); }
.e-con.kg-hero-core::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 50%, #000 30%, transparent 75%); }
.e-con.kg-hero-core > * { position: relative; z-index: 2; }
.e-con.kg-hero-txt { max-width: 520px; width: 100%; }
.kg-hero-p p { max-width: 400px; }
.e-con.kg-ctas { width: auto; }
.e-con.kg-ctas > .elementor-widget { width: auto; }
.kg-hero-art { position: absolute !important; right: 34px; bottom: -26px; width: 280px !important; z-index: 1 !important; pointer-events: none; }
.kg-hero-art img { width: 280px; height: 280px; object-fit: cover; background: #fff; padding: 14px; border-radius: 26px; box-shadow: 0 40px 80px rgba(0, 0, 0, .55); transform: rotate(-6deg); }
.kg-hero-tag { position: absolute !important; right: 80px; bottom: 56px; width: auto !important; z-index: 3 !important; }
.kg-hero-tag .kg-tag { display: block; background: #fff; color: var(--kg-ink); border-radius: 14px; padding: 10px 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); font-weight: 700; }
.kg-hero-tag .kg-tag small { display: block; font-size: 10px; color: var(--kg-rose); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.e-con.kg-side-core { position: relative; overflow: hidden; min-height: 212px; }
.e-con.kg-side-txt { width: 62%; }
.kg-side-price p { font-family: var(--kg-head); font-weight: 700; }
.kg-side-price s { font-size: 14px; color: var(--kg-muted); margin-left: 8px; font-weight: 500; font-family: var(--kg-body); }
.kg-side-img { position: absolute !important; right: 14px; bottom: 14px; width: 124px !important; z-index: 1; }
.kg-side-img img { width: 124px; height: 124px; object-fit: cover; background: #fff; padding: 8px; border-radius: 18px; box-shadow: 0 18px 36px -12px rgba(72, 28, 75, .28); transform: rotate(4deg); }

@media (max-width: 1024px) {
  .e-con.kg-bento { grid-template-columns: 1fr; }
  .e-con.kg-bento-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .kg-hero-art, .kg-hero-tag { display: none !important; }
}
@media (max-width: 767px) {
  .e-con.kg-bento-side { grid-template-columns: 1fr; }
  .e-con.kg-hero-core { min-height: 380px; }
}

/* --------------------------------------------------------------------------
   Réassurance
   -------------------------------------------------------------------------- */
.e-con.kg-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.e-con.kg-trust-item { width: 100%; border-right: 1px solid var(--kg-line); }
.e-con.kg-trust-item:last-child { border-right: 0; }
.e-con.kg-trust-item > .e-con { width: auto; flex: 1; }
.e-con.kg-trust-item > .elementor-widget-icon { width: auto; }
@media (max-width: 1024px) {
  .e-con.kg-trust-grid { grid-template-columns: 1fr 1fr; }
  .e-con.kg-trust-item:nth-child(2) { border-right: 0; }
  .e-con.kg-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--kg-line); }
}
@media (max-width: 767px) {
  .e-con.kg-trust-grid { grid-template-columns: 1fr; }
  .e-con.kg-trust-item { border-right: 0; border-bottom: 1px solid var(--kg-line); }
  .e-con.kg-trust-item:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Catégories
   -------------------------------------------------------------------------- */
.e-con.kg-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.e-con.kg-cat { width: 100%; position: relative; overflow: hidden; transition: transform .6s var(--kg-ease), box-shadow .6s var(--kg-ease); }
.e-con.kg-cat:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(72, 28, 75, .25); }
.e-con.kg-cat:hover .elementor-icon { background-color: var(--kg-ink) !important; color: #fff !important; }
.e-con.kg-cat:hover .elementor-icon svg { fill: #fff; }
.e-con.kg-cat::after { content: "↗"; position: absolute; right: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--kg-bg); display: grid; place-items: center; font-size: 14px; color: var(--kg-ink); opacity: 0; transform: translate(-6px, 6px); transition: all .5s var(--kg-ease); }
.e-con.kg-cat:hover::after { opacity: 1; transform: none; }
@media (max-width: 1024px) { .e-con.kg-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .e-con.kg-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Promo kit
   -------------------------------------------------------------------------- */
.e-con.kg-promo-core { display: grid; grid-template-columns: 1.1fr .9fr; position: relative; overflow: hidden; min-height: 360px; color: #fff; }
.e-con.kg-promo-core::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px 360px at 20% 100%, rgba(239, 209, 9, .22), transparent 60%), radial-gradient(400px 300px at 90% 0%, rgba(43, 177, 235, .32), transparent 60%); }
.e-con.kg-promo-core > * { position: relative; z-index: 2; width: 100%; }
.e-con.kg-promo-art { position: relative; }
.kg-promo-img img { width: 72%; background: #fff; padding: 14px; border-radius: 26px; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); transform: rotate(6deg); transition: transform 1s var(--kg-ease); }
.e-con.kg-promo-core:hover .kg-promo-img img { transform: rotate(3deg) scale(1.03); }
.kg-chip-a, .kg-chip-b { position: absolute !important; width: auto !important; z-index: 3 !important; }
.kg-chip-a { left: 24px; top: 40px; }
.kg-chip-b { right: 24px; bottom: 40px; }
.kg-chip { display: block; background: #fff; color: var(--kg-ink); border-radius: 16px; padding: 12px 16px; box-shadow: 0 30px 50px rgba(0, 0, 0, .4); }
.kg-chip small { display: block; font-size: 10.5px; color: var(--kg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.kg-chip b { font-family: var(--kg-head); font-size: 24px; font-weight: 700; }
.kg-promo-txt .elementor-icon-list-icon svg { fill: var(--kg-green); }
@media (max-width: 1024px) { .e-con.kg-promo-core { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .kg-chip-a, .kg-chip-b { display: none !important; } }

/* --------------------------------------------------------------------------
   Aide, zones, avis
   -------------------------------------------------------------------------- */
.e-con.kg-help { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.e-con.kg-help > .e-con, .e-con.kg-reviews > .e-con { width: 100%; }
.e-con.kg-help-core { min-height: 240px; }
.kg-zones p { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-zone { padding: 6px 11px; border-radius: 999px; background: var(--kg-bg); }
.kg-zone--more { background: var(--kg-ink); color: #fff; }
.e-con.kg-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kg-stars p { letter-spacing: 1px; }
.kg-av-wrap { width: auto !important; }
.kg-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--kg-blue-soft); }
@media (max-width: 1024px) { .e-con.kg-help, .e-con.kg-reviews { grid-template-columns: 1fr; } }

/* Grille produits du shortcode : largeur pleine */
.kg-products-wrap .woocommerce { width: 100%; }

/* --------------------------------------------------------------------------
   Sécurité : si Elementor enveloppe un conteneur dans .e-con-inner (largeur
   "boxed"), la grille doit s'appliquer à ce wrapper et non au conteneur.
   -------------------------------------------------------------------------- */
.e-con.kg-bento:has(> .e-con-inner), .e-con.kg-bento-side:has(> .e-con-inner), .e-con.kg-trust-grid:has(> .e-con-inner),
.e-con.kg-cats:has(> .e-con-inner), .e-con.kg-promo-core:has(> .e-con-inner), .e-con.kg-help:has(> .e-con-inner),
.e-con.kg-reviews:has(> .e-con-inner) { display: flex; }
.e-con.kg-bento > .e-con-inner, .e-con.kg-bento-side > .e-con-inner, .e-con.kg-trust-grid > .e-con-inner, .e-con.kg-cats > .e-con-inner,
.e-con.kg-promo-core > .e-con-inner, .e-con.kg-help > .e-con-inner, .e-con.kg-reviews > .e-con-inner { display: grid; width: 100%; max-width: none; gap: 16px; }
.e-con.kg-bento > .e-con-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.e-con.kg-bento-side > .e-con-inner { grid-template-rows: 1fr 1fr; }
.e-con.kg-trust-grid > .e-con-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.e-con.kg-cats > .e-con-inner { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.e-con.kg-promo-core > .e-con-inner { grid-template-columns: 1.1fr .9fr; gap: 0; }
.e-con.kg-help > .e-con-inner { grid-template-columns: 1fr 1fr; }
.e-con.kg-reviews > .e-con-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e-con.kg-shell > .e-con-inner, .e-con.kg-core > .e-con-inner, .e-con.kg-sec-head > .e-con-inner { width: 100%; max-width: none; }
.e-con.kg-sec-head:has(> .e-con-inner) > .e-con-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
@media (max-width: 1024px) {
  .e-con.kg-bento > .e-con-inner, .e-con.kg-promo-core > .e-con-inner, .e-con.kg-help > .e-con-inner, .e-con.kg-reviews > .e-con-inner { grid-template-columns: 1fr; }
  .e-con.kg-bento-side > .e-con-inner { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .e-con.kg-trust-grid > .e-con-inner { grid-template-columns: 1fr 1fr; }
  .e-con.kg-cats > .e-con-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .e-con.kg-bento-side > .e-con-inner, .e-con.kg-trust-grid > .e-con-inner { grid-template-columns: 1fr; }
  .e-con.kg-cats > .e-con-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
