/* ─── BASE ─── */
.chewmeter-wrapper { width: 1100px; max-width: 100%; margin: auto; font-family: sans-serif; }
.chewmeter-wrapper h2 { text-align: left; margin-bottom: 20px; }
.top-progress { height: 3px; background: none; border-top: 3px dotted #c41319; position: relative; margin-bottom: 30px; }
.top-progress span { width: 12px; height: 12px; background: #c41319; border-radius: 50%; position: absolute; top: -7px; transition: background 0.3s; }
.top-progress span.active { background: #c41319; }
.top-progress span:not(.active) { background: #c41319; }
.top-progress span:nth-child(1) { left: 0; }
.top-progress span:nth-child(2) { left: 50%; transform: translateX(-50%); }
.top-progress span:nth-child(3) { right: 0; }
.chewmeter-wrapper .options { text-align: left; margin-bottom: 20px; }
.chewmeter-wrapper .options label { display: block; margin: 8px 0; cursor: pointer; font-size: 16px; position: relative; }
.chewmeter-wrapper .options input[type=radio] { margin-right: 8px; }
.chewmeter-wrapper .chewmeter-cta { background: #f9ab2a !important; border: none !important; padding: 12px 30px !important; border-radius: 25px !important; font-weight: 900 !important; margin: 20px 0 40px !important; cursor: pointer !important; font-size: 14px !important; font-family: 'Lato', sans-serif !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; color: #000 !important; display: inline-block !important; line-height: 1 !important; }
.chewmeter-wrapper .chewmeter-cta:hover { background: #d9921a !important; }
.step-screen { display: none; }
.step-screen.active { display: block; }
.chewmeter-wrapper .back-btn { background: transparent !important; border: none !important; box-shadow: none !important; padding: 8px 4px !important; cursor: pointer !important; font-size: 13px !important; margin-right: 16px !important; font-weight: 700 !important; text-decoration: underline !important; color: #222 !important; font-family: 'Lato', sans-serif !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; border-radius: 0 !important; display: inline-block !important; line-height: 1 !important; }
.chewmeter-wrapper .back-btn:hover { color: #f9ab2a !important; background: transparent !important; }

/* ─── CHEWER OPTION TOOLTIPS ─── */
.chewer-tooltip {
  display: none;
  position: absolute;
  left: 160px;
  top: 50%;
  transform: translateY(-70%);
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 100;
  pointer-events: none;
  box-sizing: border-box;
  overflow: visible;
}
.chewer-tooltip::before {
  content: '';
  position: absolute;
  left: -10px;
  bottom: 20%;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #333;
}
.chewer-tooltip .ct-header {
  position: relative;
  border-radius: 16px 16px 0 0;
  height: 44px;
  overflow: visible;
}
.chewer-tooltip .ct-img {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-62%);
  bottom: auto;
  left: auto;
  width: 55%;
  height: 210px;
  object-fit: contain;
  object-position: center right;
  z-index: 10;
}
.chewer-tooltip .ct-img[alt="Macheur Modéré"] {
  width: 70%;
  height: 200px;
  right: -20px;
  transform: translateY(-58%);
}
.chewer-tooltip .ct-title {
  font-size: 15px;
  font-weight: 700;
  color: #9f0b10;
  display: block;
  padding: 10px 14px 6px;
  max-width: 52%;
  line-height: 1.2;
}
.chewer-tooltip .ct-desc {
  font-size: 12px;
  color: #333;
  line-height: 1.7;
  margin: 0;
  padding: 0 14px 16px;
}
.chewmeter-wrapper .options label:hover .chewer-tooltip { display: block; }

/* ─── SELECTION PILLS ─── */
.selection-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.sel-pill { padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 0.2px; }
.sel-pill.chewer { background: #c41319; }
.sel-pill.age    { background: #f9ab2a; }
.sel-pill.cat    { background: #c41319; }

/* ─── CHEWMETER ─── */
.chewmeter-block { position: relative; margin-top: 20px; }
.chewmeter-images { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; margin-bottom: 15px; }
.chewmeter-images img { width: 100%; height: 100px; object-fit: contain; transition: transform 0.2s ease; transform-origin: center bottom; position: relative; z-index: 1; }
.chewmeter-images img:hover { transform: scale(1.5); z-index: 5; }

/* ─── SCALE ─── */
.scale-wrap { position: relative; }
.scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: center;
}
.scale-line-bg {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 4px;
  background: #d9d9d9;
  z-index: 0;
  transform: translateY(-50%);
}
.scale-line-orange {
  position: absolute;
  top: 50%;
  height: 4px;
  background: #f9ab2a;
  z-index: 1;
  transform: translateY(-50%);
  transition: left 0.3s, width 0.3s;
}
.chew-step {
  width: 40px; height: 40px;
  border-radius: 50%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 15px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.chew-step:nth-child(1)  { background: #92c83e; }
.chew-step:nth-child(2)  { background: #11702a; }
.chew-step:nth-child(3)  { background: #00521b; }
.chew-step:nth-child(4)  { background: #f1c701; }
.chew-step:nth-child(5)  { background: #e2a911; }
.chew-step:nth-child(6)  { background: #cb7b16; }
.chew-step:nth-child(7)  { background: #b65514; }
.chew-step:nth-child(8)  { background: #e81b23; }
.chew-step:nth-child(9)  { background: #c7171e; }
.chew-step:nth-child(10) { background: #8a0005; }
.chew-step.grey:hover   { background: #bfbfbf !important; }
.chew-step.orange:hover { background: #f9ab2a !important; }

/* ─── HOVER CARD ─── */
.chew-card {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: white;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: none;
  z-index: 100;
}
.chew-step:hover .chew-card { display: block; }
.chew-card.bad  { border-left: 5px solid #bfbfbf; }
.chew-card.good { border-left: 5px solid #f9ab2a; }
.chew-card h4 { display: none; }
.cat-group { margin-bottom: 8px; }
.cat-group .cat-title { font-size: 10px; font-weight: bold; text-transform: uppercase; margin-bottom: 3px; }
.cat-group ul { margin: 0; padding-left: 14px; font-size: 11px; color: #333; }
.cat-group ul li { margin: 2px 0; line-height: 1.3; }
.no-product-label { font-size: 11px; color: #aaa; font-style: italic; margin: 4px 0 0; }
.no-products-msg { display: none; background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 12px 16px; font-size: 14px; font-weight: bold; color: #856404; margin-bottom: 20px; }

/* ─── BUTTONS ROW ─── */
.result-btns { margin-top: 32px; display: flex; align-items: center; width: 100%; flex-wrap: nowrap; }
.result-btns .chewmeter-cta { margin: 0 !important; }
.result-btns .back-btn { margin: 0 16px 0 0 !important; }
.chew-legend-row { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-top: 0; }
.download-link { font-size: 13px; color: #333; text-decoration: underline; text-underline-offset: 3px; background: none; border: none; cursor: pointer; font-family: sans-serif; }
.download-link:hover { color: #9f0b10; }
.chew-legend { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: #222; font-family: sans-serif; }
.legend-left, .legend-right { text-align: center; line-height: 1.3; }
.legend-left strong, .legend-right strong { font-size: 14px; font-weight: 900; }
.legend-arrow { font-size: 18px; font-weight: 700; margin-top: 1px; }

/* ─── BENEFITS CARD ─── */
.benefits-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.09);
  margin-top: 48px;
  margin-bottom: 140px;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  padding: 32px 40px 0 0;
  gap: 0;
  position: relative;
}
.benefits-left {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 280px;
  padding: 32px 0 0 32px;
}
.benefits-title { font-size: 18px; font-weight: 700; color: #111; margin: 0 0 40px 0; position: relative; z-index: 2; }
.benefits-arrow { position: absolute; left: 32px; top: 80px; width: 90px; height: 110px; pointer-events: none; z-index: 2; }
.benefits-dog { position: absolute; bottom: -120px; left: -20px; width: 340px; z-index: 3; }
.benefits-dog img { width: 100%; display: block; }
.benefits-right { flex: 1; padding: 32px 0 32px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 10px; }
.benefit-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.benefit-circle { width: 64px; height: 64px; border-radius: 50%; background: #f9ab2a; display: flex; align-items: center; justify-content: center; }
.benefit-circle img { width: 34px; height: 34px; object-fit: contain; }

@keyframes bounceUp {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-10px); }
  65%  { transform: translateY(-4px); }
  80%  { transform: translateY(-8px); }
  100% { transform: translateY(-6px); }
}
.benefit-cell:hover .benefit-circle { animation: bounceUp 0.7s ease forwards; background: #7B2FBE !important; }

/* ── BENEFIT TOOLTIP CARD ── */
.benefit-tooltip {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  background: #fff;
  border-radius: 14px;
  padding: 32px 12px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  text-align: center;
  z-index: 50;
  pointer-events: none;
}
.benefit-tooltip .tt-icon {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #7B2FBE;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-tooltip::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 16px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 0px solid transparent;
  border-top: 12px solid #333;
}
.benefit-tooltip .tt-icon img { width: 26px; height: 26px; object-fit: contain; }
.benefit-tooltip .tt-label { font-size: 9px; font-weight: 700; text-transform: uppercase; color: #888; letter-spacing: 0.5px; margin-bottom: 6px; display: block; text-align: center; }
.benefit-tooltip .tt-desc { font-size: 12px; color: #333; line-height: 1.45; margin: 0; text-align: center; font-weight: 500; }
.benefit-cell:hover .benefit-tooltip { display: block; }
.benefit-label { font-size: 9px; font-weight: 700; text-transform: uppercase; text-align: center; color: #333; line-height: 1.35; letter-spacing: 0.5px; }

/* ─── RECO SECTION ─── */
.reco-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 180px; text-align: left; }
.reco-col h3 { font-size: 16px; font-weight: 400; margin: 0 0 24px; color: #111; }
.reco-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.reco-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; padding: 22px 12px 12px; position: relative; font-size: 13px; color: #444; line-height: 1.4; min-height: 90px; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; cursor: default; }
.reco-card .badge { position: absolute; top: -14px; left: 14px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #fff; z-index: 2; transition: background 0.2s ease; }
.yes-card .badge { background: #669744; }
.no-card  .badge { background: #c41319; }
.reco-card .card-title { font-weight: 700; display: block; margin-bottom: 3px; transition: color 0.2s; }
.yes-card .card-title, .yes-card.highlight .card-title,
.no-card  .card-title, .no-card.highlight  .card-title { color: #c41319 !important; }
.reco-card.highlight { background: #fff !important; border: 1px solid #e8e8e8 !important; color: #444 !important; }
.reco-card.highlight::after { display: none !important; }
.reco-card.yes-card:hover, .reco-card.no-card:hover { padding-top: 12px !important; }
.reco-card.yes-card:hover { background: #669744 !important; border-color: #669744 !important; color: #fff !important; }
.reco-card.no-card:hover  { background: #c41319 !important; border-color: #c41319 !important; color: #fff !important; }
.reco-card.yes-card:hover .badge, .reco-card.no-card:hover .badge { position: relative !important; top: auto !important; left: auto !important; width: auto !important; height: auto !important; border-radius: 0 !important; background: transparent !important; font-size: 36px !important; font-weight: 900 !important; display: block !important; margin-bottom: 8px !important; line-height: 1 !important; }
.reco-card.yes-card:hover .badge, .reco-card.no-card:hover .badge { color: #fff !important; }
.reco-card.yes-card:hover .card-title, .reco-card.no-card:hover .card-title { color: #fff !important; }

/* ─── DISCLAIMER ─── */
.disclaimer { margin-top: 48px; padding-bottom: 20px; }
.disclaimer-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.disclaimer-header .warn-icon { color: #c41319; font-size: 22px; line-height: 1; }
.disclaimer-header h4 { font-size: 18px; font-weight: 700; color: #c41319; margin: 0; }
.disclaimer-line { border: none; border-top: 2px dashed #c41319; margin: 0 0 20px 0; opacity: 0.4; }
.disclaimer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.disclaimer-cols p { font-size: 13px; color: #444; line-height: 1.7; margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  .benefits-section { flex-direction: column; padding: 24px 16px 16px; min-height: auto; overflow: hidden; margin-bottom: 20px; }
  .benefits-left { flex: none; width: 100%; position: relative; min-height: 180px; padding: 16px 0 0 16px; display: flex; flex-direction: column; }
  .benefits-title { font-size: 15px !important; max-width: 52%; z-index: 2; position: relative; }
  .benefits-arrow { left: 16px; top: 72px; width: 55px; height: 70px; z-index: 2; }
  .benefits-dog { position: absolute !important; bottom: 0 !important; right: -8px !important; left: auto !important; top: auto !important; width: 52% !important; z-index: 1; }
  .benefits-right { padding: 16px 0 8px; width: 100%; }
  .benefits-grid { grid-template-columns: repeat(5, 1fr); gap: 10px 4px; }
  .benefit-circle { width: 44px; height: 44px; }
  .benefit-circle img { width: 22px; height: 22px; }
  .benefit-label { font-size: 7px; }
  .reco-section { grid-template-columns: 1fr; gap: 20px; }
  .reco-cards { grid-template-columns: repeat(2, 1fr); }
  .disclaimer-cols { grid-template-columns: 1fr; }
  .chewmeter-images img { height: 50px; }
  .chew-step { width: 26px; height: 26px; font-size: 11px; }
  .scale > .chew-step:nth-child(2) .chew-card,
  .scale > .chew-step:nth-child(3) .chew-card { left: 0; transform: none; }
  .scale > .chew-step:nth-child(9) .chew-card,
  .scale > .chew-step:nth-child(10) .chew-card { left: auto; right: 0; transform: none; }
}
