/* ==========================================================================
   Zyntrol - habillage du configurateur « Crée ta manette » (plugin zyntrol-custom-manette)
   Le plugin garde son HTML et son JS : ce fichier ne fait que le restyler.
   Principe : colonne de choix large et lisible, étapes numérotées, choix « Sans / Avec »
   en cartes avec le prix écrit en clair, récap toujours visible en bas de colonne.
   ========================================================================== */

#zy-tool .zcm-app{
  --zcm-sidebar:440px!important; --zcm-accent:#000!important; --zcm-line:#E4E6EA!important;
  --zcm-surface:#F3F4F6!important; --zcm-muted:#4A505B!important; --zcm-sticky-top:96px!important;
  --zy-sel:#5B4BFF; --zy-sel-soft:#EFEDFF; --zy-ink:#000; --zy-ink2:#4A505B; --zy-ink3:#7C828D; --zy-line:#E4E6EA;
}

/* ── Colonne de droite ────────────────────────────────────────────────── */
#zy-tool .zcm-panel{padding-bottom:0!important}
#zy-tool .zcm-head{padding-bottom:18px!important;margin-bottom:8px!important;border-bottom:1px solid var(--zy-line)!important}
#zy-tool .zcm-head .zcm-kicker{font-size:12px!important;font-weight:600!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--zy-sel)!important;margin:0 0 6px!important}
#zy-tool .zcm-title{font-size:28px!important;line-height:1.1!important;letter-spacing:-.03em!important;margin:0!important}
#zy-tool .zcm-from{font-size:15px!important;color:var(--zy-ink2)!important;margin:8px 0 0!important}

/* ── Étapes ───────────────────────────────────────────────────────────── */
#zy-tool .zcm-step{padding:22px 0!important;border-top:1px solid var(--zy-line)!important;border-bottom:0!important}
#zy-tool .zcm-step:first-child{border-top:0!important}
#zy-tool .zcm-step-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:6px!important}
#zy-tool .zcm-step-head h3{display:flex!important;align-items:center!important;gap:10px!important;font-size:19px!important;font-weight:700!important;letter-spacing:-.01em!important;text-transform:none!important;margin:0!important;color:var(--zy-ink)!important}
#zy-tool .zcm-step-pick{font-size:13px!important;color:var(--zy-ink3)!important;white-space:nowrap}
#zy-tool .zcm-step-pick-name{color:var(--zy-ink)!important;font-weight:600!important}
#zy-tool .zcm-step-desc{font-size:14px!important;line-height:1.5!important;color:var(--zy-ink2)!important;margin:0 0 14px!important}
#zy-tool .zcm-step-desc p{margin:0!important}
#zy-tool .zcm-hint--empty{display:none!important}

/* Numéros des 3 grandes étapes */
#zy-tool .zcm-step[data-step="look"] .zcm-step-head h3::before,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-step-head h3::before,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-step-head h3::before{
  display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--zy-ink);color:#fff;font-size:14px;font-weight:700;text-transform:none
}
#zy-tool .zcm-step[data-step="look"] .zcm-step-head h3::before{content:"1"}
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-step-head h3::before{content:"2"}
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-step-head h3::before{content:"3"}

/* Sous-étapes (elles dépendent d'un choix au-dessus) : en retrait, sans trait de séparation */
#zy-tool .zcm-step:not([data-step="look"]):not([data-step="boutons-digital-face-avant"]):not([data-step="palettes-arriere"]){
  border-top:0!important;padding:2px 0 14px 38px!important
}
#zy-tool .zcm-step:not([data-step="look"]):not([data-step="boutons-digital-face-avant"]):not([data-step="palettes-arriere"]) .zcm-step-head h3{font-size:15px!important;font-weight:600!important;color:var(--zy-ink2)!important}

/* ── Choix « Sans / Avec » et listes : des cartes, prix en clair ──────── */
#zy-tool .zcm-step[data-step="look"] .zcm-swatches,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatches,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatches,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatches,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatches,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatches{
  display:grid!important;grid-template-columns:1fr!important;gap:8px!important
}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch{
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:14px!important;width:100%!important;min-height:60px!important;
  padding:10px 16px!important;border:1.5px solid var(--zy-line)!important;border-radius:14px!important;background:#fff!important;text-align:left!important;cursor:pointer;transition:border-color .15s,background .15s
}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch:hover,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch:hover,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch:hover,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch:hover,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch:hover,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch:hover{border-color:var(--zy-ink)!important}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch.is-selected,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch.is-selected,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch.is-selected,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch.is-selected,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch.is-selected,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch.is-selected{border-color:var(--zy-sel)!important;background:var(--zy-sel-soft)!important}
/* Vignette : petite, à gauche ; les ronds « Sans / Avec » deviennent une case à cocher */
#zy-tool .zcm-step[data-step="look"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch-media{
  position:relative!important;flex:none!important;width:22px!important;height:22px!important;border-radius:50%!important;border:1.5px solid #CDD1D8!important;background:#fff!important;overflow:visible!important
}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch-dot,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch-dot,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch-dot,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch-dot{display:none!important}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch.is-selected .zcm-swatch-media,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch.is-selected .zcm-swatch-media,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch.is-selected .zcm-swatch-media,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch.is-selected .zcm-swatch-media{border:6px solid var(--zy-sel)!important}
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch-media{flex:none!important;width:44px!important;height:44px!important;border-radius:10px!important;overflow:hidden!important;background:#F3F4F6!important}
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch-dot,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch-dot{width:100%!important;height:100%!important;border-radius:0!important;background-size:cover!important}
/* Libellé à gauche, prix à droite, écrits en clair */
#zy-tool .zcm-step[data-step="look"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch-label{flex:1!important;font-size:15px!important;font-weight:600!important;color:var(--zy-ink)!important;margin:0!important;text-align:left!important}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch-badge,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch-badge,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch-badge,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch-badge,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch-badge,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch-badge{
  position:absolute!important;right:16px!important;top:50%!important;left:auto!important;bottom:auto!important;transform:translateY(-50%)!important;
  background:none!important;color:var(--zy-ink)!important;font-size:15px!important;font-weight:700!important;padding:0!important;border:0!important;box-shadow:none!important;white-space:nowrap
}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch{position:relative!important;padding-right:90px!important}
#zy-tool .zcm-swatch-media{position:static}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch-media,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch-media{position:static!important}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch::after,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch::after,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch::after,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch::after,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch::after,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch::after,
#zy-tool .zcm-step[data-step="look"] .zcm-swatch::before,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch::before,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch::before,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch::before,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch::before,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch::before{content:none!important;display:none!important}

/* La coche ronde du plugin fait doublon avec le contour de sélection */
#zy-tool .zcm-swatch-media::after,#zy-tool .zcm-swatch-media::before{content:none!important;display:none!important}

/* ── Pastilles de couleur : les 7 choix sur une ligne, nom dessous ────── */
#zy-tool .zcm-step:not([data-step="look"]):not([data-step="mode-look"]):not([data-step="boutons-digital-face-avant"]):not([data-step="type-de-sensibilitee"]):not([data-step="palettes-arriere"]):not([data-step="position-des-boutons"]) .zcm-swatches{
  display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px!important
}
#zy-tool .zcm-swatch{min-width:0!important;padding:0!important;background:none!important;border:0!important}
#zy-tool .zcm-swatch-dot{width:40px!important;height:40px!important;margin:0 auto!important}
/* « D'origine » / « Sans » : un rond blanc en pointillés au lieu du panneau d'interdiction */
#zy-tool .zcm-step:not([data-step="palettes-arriere"]):not([data-step="position-des-boutons"]) .zcm-swatch-dot--image{
  background:#fff!important;background-image:none!important;border:1.5px dashed #B9BEC7!important;box-sizing:border-box!important;border-radius:50%!important
}
/* Dans les cartes, le libellé est centré verticalement */
#zy-tool .zcm-step .zcm-swatch[data-option] .zcm-swatch-label{line-height:1.25!important}
#zy-tool .zcm-step[data-step="look"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="mode-look"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="boutons-digital-face-avant"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="type-de-sensibilitee"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="palettes-arriere"] .zcm-swatch-label,
#zy-tool .zcm-step[data-step="position-des-boutons"] .zcm-swatch-label{align-self:center!important;margin:0!important;padding:0!important}
#zy-tool .zcm-swatch-label{display:block!important;font-size:11px!important;line-height:1.25!important;color:var(--zy-ink2)!important;margin-top:6px!important;text-align:center!important;overflow-wrap:anywhere}
#zy-tool .zcm-swatch.is-selected .zcm-swatch-label{color:var(--zy-ink)!important;font-weight:600!important}
#zy-tool .zcm-swatch.is-selected .zcm-swatch-dot{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--zy-sel)!important}

/* ── Récap toujours visible en bas de la colonne ──────────────────────── */
@media (min-width:900px){
  #zy-tool .zcm-summary{
    position:sticky!important;bottom:0!important;z-index:5!important;display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;gap:6px 16px!important;
    margin:8px 0 0!important;padding:18px 0 20px!important;background:#fff!important;border-top:1px solid var(--zy-line)!important
  }
  #zy-tool .zcm-summary .zcm-kicker{font-size:12px!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--zy-ink3)!important;margin:0!important}
  #zy-tool .zcm-summary .zcm-total{font-family:var(--display)!important;font-size:30px!important;font-weight:700!important;letter-spacing:-.02em!important;margin:0!important;color:var(--zy-ink)!important}
  #zy-tool .zcm-summary .zcm-cta{min-height:52px!important;padding:0 26px!important;border-radius:999px!important;background:var(--zy-ink)!important;color:#fff!important;font-size:16px!important;font-weight:600!important}
  #zy-tool .zcm-summary .zcm-cta:hover{background:#2A2C31!important}
  #zy-tool .zcm-summary::after{
    content:"TMR anti-drift inclus · Envoi et retour compris · Fabriquée à la commande : 3 à 4 semaines";
    grid-column:1/-1;font-size:13px;line-height:1.45;color:var(--zy-ink3)
  }
  /* Le bouton sous la manette fait doublon avec le récap */
  #zy-tool .zcm-stage-cta{display:none!important}
}

/* ── Sous la manette : ce qui est inclus ──────────────────────────────── */
#zy-tool .zcm-stage-inner::after{
  content:"✓ TMR anti-drift inclus    ✓ Envoi et retour compris    ✓ Garantie";
  display:block;margin-top:14px;text-align:center;white-space:pre;font-size:14px;font-weight:500;color:var(--zy-ink2)
}
#zy-tool .zcm-pricebar .zcm-total{font-family:var(--display)!important;font-weight:700!important;letter-spacing:-.02em!important}

/* ── Téléphone ────────────────────────────────────────────────────────── */
@media (max-width:899px){
  #zy-tool .zcm-step{padding:18px 0!important}
  #zy-tool .zcm-step-head h3{font-size:17px!important}
  #zy-tool .zcm-stage-inner::after{white-space:normal;font-size:12px;padding:0 12px}
  #zy-tool .zcm-step:not([data-step="look"]):not([data-step="boutons-digital-face-avant"]):not([data-step="palettes-arriere"]){padding-left:0!important}
}
