/* ==========================================================
   LUDORUM — LudoMatch v1.1.8
   ========================================================== */
.ludomatch-app {
  --lm-navy: #061a38;
  --lm-blue: #0b4dbb;
  --lm-blue-2: #1762d0;
  --lm-yellow: #ffc21e;
  --lm-red: #cf0215;
  --lm-text: #102a43;
  --lm-muted: #6b7c92;
  --lm-border: #e3e9f1;
  --lm-soft: #f7f9fc;
  width: 100%;
  margin: 0;
  padding: 24px 18px 70px;
  color: var(--lm-text);
  font-family: inherit;
  box-sizing: border-box;
}
.ludomatch-app *, .ludomatch-app *::before, .ludomatch-app *::after { box-sizing: border-box; }
.ludomatch-shell { width: min(1120px, 100%); margin: 0 auto; }

.ludomatch-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 30px 20px;
  border: 1px solid #e4e9f1;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(255,194,30,.24), transparent 26%),
    radial-gradient(circle at 72% 90%, rgba(11,77,187,.08), transparent 34%),
    #fff;
}
.ludomatch-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg,var(--lm-blue) 0 33.333%,var(--lm-yellow) 33.333% 66.666%,var(--lm-red) 66.666% 100%);
}
.ludomatch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff3c8;
  color: #6b4a00;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.ludomatch-kicker span { color: var(--lm-red); }
.ludomatch-hero h1 { margin: 0; max-width: 760px; color: var(--lm-navy); font-size: clamp(26px,3vw,36px); line-height: 1.03; letter-spacing: -.035em; font-weight: 950; }
.ludomatch-hero > p { max-width: 720px; margin: 8px 0 0; color: var(--lm-muted); font-size: 14px; line-height: 1.5; }
.ludomatch-promises { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.ludomatch-promises span { padding: 5px 9px; border: 1px solid #e1e7ef; border-radius: 999px; background: rgba(255,255,255,.82); color: #38516d; font-size: 11px; font-weight: 800; }

.ludomatch-card {
  position: relative;
  min-height: 500px;
  padding: 24px 38px 34px;
  border: 1px solid var(--lm-border);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
  box-shadow: 0 24px 55px rgba(6,26,56,.09);
}
.ludomatch-progress-wrap { margin-bottom: 28px; }
.ludomatch-progress-meta { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; }
.ludomatch-step-label { color:#6b7c92; font-size:12px; font-weight:700; }
.ludomatch-step-label strong { color:var(--lm-blue); }
.ludomatch-back { appearance:none; border:0; background:transparent; color:var(--lm-blue); font:inherit; font-size:12px; font-weight:900; cursor:pointer; padding:5px 0; }
.ludomatch-back.is-hidden { visibility:hidden; pointer-events:none; }
.ludomatch-progress { height:7px; overflow:hidden; border-radius:999px; background:#edf1f6; }
.ludomatch-progress > span { display:block; width:8%; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--lm-blue),#276de0 58%,var(--lm-yellow)); transition:width .28s ease; }

.ludomatch-question { display:none; animation:lmQuestionIn .22s ease both; }
.ludomatch-question.is-active { display:block; }
@keyframes lmQuestionIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.ludomatch-question-head { max-width:780px; margin:0 auto 24px; text-align:center; }
.ludomatch-eyebrow { color:var(--lm-red); font-size:11px; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
.ludomatch-question h2 { margin:7px 0 8px; color:var(--lm-navy); font-size:clamp(23px,3vw,32px); line-height:1.12; letter-spacing:-.025em; font-weight:950; }
.ludomatch-question-head p { margin:0; color:var(--lm-muted); font-size:14px; line-height:1.55; }

.ludomatch-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; max-width:900px; margin:0 auto; }
.ludomatch-question[data-question="duration"] .ludomatch-options,
.ludomatch-question[data-question="complexity"] .ludomatch-options { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:800px; }
.ludomatch-option {
  position:relative;
  display:flex;
  align-items:center;
  gap:13px;
  width:100%;
  min-height:82px;
  padding:15px 42px 15px 16px;
  border:1px solid var(--lm-border);
  border-radius:17px;
  background:#fff;
  color:var(--lm-text);
  text-align:left;
  font:inherit;
  cursor:pointer;
  box-shadow:0 7px 20px rgba(16,42,67,.035);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.ludomatch-option:hover,.ludomatch-option:focus-visible { transform:translateY(-2px); border-color:rgba(11,77,187,.34); box-shadow:0 11px 24px rgba(11,77,187,.09); outline:none; }
.ludomatch-option.is-selected { border-color:var(--lm-blue); background:#f5f9ff; box-shadow:0 0 0 3px rgba(11,77,187,.09); }
.ludomatch-option-icon { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:12px; background:#f3f6fa; font-size:20px; }
.ludomatch-question[data-question="players"] .ludomatch-option-icon { font-size:18px; line-height:1; white-space:nowrap; }
.ludomatch-option-copy { display:block; min-width:0; }
.ludomatch-option-copy strong { display:block; color:var(--lm-navy); font-size:14px; line-height:1.25; font-weight:900; }
.ludomatch-option-copy small { display:block; margin-top:4px; color:var(--lm-muted); font-size:11.5px; line-height:1.35; font-weight:650; }
.ludomatch-option-check { position:absolute; right:14px; top:50%; display:grid; place-items:center; width:21px; height:21px; border:1px solid #d8e0ea; border-radius:50%; color:transparent; transform:translateY(-50%); font-size:11px; font-weight:900; }
.ludomatch-option.is-selected .ludomatch-option-check { border-color:var(--lm-blue); background:var(--lm-blue); color:#fff; }

.ludomatch-final-action { max-width:720px; margin:58px auto 30px; text-align:center; animation:lmQuestionIn .22s ease both; }
.ludomatch-final-copy { display:flex; align-items:center; justify-content:center; gap:13px; margin-bottom:22px; }
.ludomatch-final-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#e9f8ef; color:#138a43; font-size:20px; font-weight:950; }
.ludomatch-final-copy div { text-align:left; }
.ludomatch-final-copy strong { display:block; color:var(--lm-navy); font-size:18px; }
.ludomatch-final-copy small { display:block; margin-top:3px; color:var(--lm-muted); }
.ludomatch-submit { appearance:none; border:2px solid var(--lm-yellow); border-radius:14px; padding:14px 23px; background:var(--lm-red); color:#fff; font:inherit; font-size:15px; font-weight:950; cursor:pointer; box-shadow:0 10px 22px rgba(207,2,21,.19); transition:transform .15s ease,box-shadow .15s ease; }
.ludomatch-submit:hover { transform:translateY(-1px); box-shadow:0 13px 26px rgba(207,2,21,.25); }
.ludomatch-submit span { margin-left:7px; }
.ludomatch-submit.is-loading,
.ludomatch-submit:disabled {
  cursor:wait;
  opacity:.82;
  transform:none !important;
  box-shadow:0 6px 15px rgba(207,2,21,.14);
}

.ludomatch-error { margin:0 0 18px; padding:11px 14px; border-radius:12px; background:#fff2f3; color:#a80b1b; font-size:13px; font-weight:800; }

.ludomatch-results { margin-top:40px; animation:lmQuestionIn .28s ease both; }
.ludomatch-results-head { max-width:720px; margin:0 auto 24px; text-align:center; }
.ludomatch-results-kicker { color:var(--lm-blue); font-size:11px; font-weight:950; letter-spacing:.09em; }
.ludomatch-results-head h2 { margin:6px 0 8px; color:var(--lm-navy); font-size:clamp(27px,3.4vw,38px); line-height:1.08; font-weight:950; letter-spacing:-.03em; }
.ludomatch-results-head p { margin:0; color:var(--lm-muted); line-height:1.55; }
.ludomatch-result-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:13px; align-items:stretch; }
.ludomatch-product-card { position:relative; display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--lm-border); border-radius:19px; background:#fff; box-shadow:0 12px 28px rgba(6,26,56,.06); }
.ludomatch-rank { position:absolute; z-index:3; top:10px; left:10px; padding:5px 8px; border-radius:999px; background:var(--lm-navy); color:#fff; font-size:10px; font-weight:950; }
.ludomatch-product-image { position:relative; display:block; aspect-ratio:1/1; padding:18px; background:linear-gradient(180deg,#fff,#f8fafc); }
.ludomatch-product-image img { display:block; width:100%; height:100%; object-fit:contain; }
.ludomatch-score { position:absolute; right:9px; bottom:9px; display:flex; flex-direction:column; align-items:center; min-width:58px; padding:7px 8px; border:2px solid #fff; border-radius:13px; background:var(--lm-red); color:#fff; box-shadow:0 6px 14px rgba(207,2,21,.20); }
.ludomatch-score strong { font-size:17px; line-height:1; }
.ludomatch-score small { margin-top:2px; font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.ludomatch-product-body { display:flex; flex:1; flex-direction:column; padding:14px; }
.ludomatch-product-body h3 { margin:0 0 8px; font-size:14px; line-height:1.25; font-weight:900; }
.ludomatch-product-body h3 a { color:#111827; text-decoration:none; }
.ludomatch-product-price { color:var(--lm-blue); font-size:15px; font-weight:950; }
.ludomatch-product-price del { opacity:.55; font-weight:700; }
.ludomatch-product-price ins { color:var(--lm-red); text-decoration:none; }
.ludomatch-stock { margin-top:5px; font-size:10.5px; font-weight:850; }
.ludomatch-stock.is-in-stock { color:#178a43; }
.ludomatch-stock.is-out-stock { color:var(--lm-red); }
.ludomatch-reason { flex:1; margin:11px 0 14px; color:#68798d; font-size:11.5px; line-height:1.45; }
.ludomatch-product-actions { display:grid; gap:7px; }
.ludomatch-view,.ludomatch-add { display:flex!important; align-items:center!important; justify-content:center!important; min-height:38px!important; margin:0!important; padding:8px 10px!important; border-radius:10px!important; font-size:11px!important; font-weight:900!important; line-height:1.2!important; text-align:center!important; text-decoration:none!important; }
.ludomatch-view { border:1px solid #dbe3ed; background:#fff; color:var(--lm-navy); }
.ludomatch-add { border:1px solid var(--lm-blue)!important; background:var(--lm-blue)!important; color:#fff!important; }
.ludomatch-results-footer { display:flex; justify-content:center; margin-top:23px; }
.ludomatch-restart { appearance:none; border:1px solid #dce3eb; border-radius:12px; padding:10px 15px; background:#fff; color:var(--lm-blue); font:inherit; font-size:12px; font-weight:900; cursor:pointer; }

/* ==========================================================
   LUDOMATCH GROUPE — Page tricolore organique v1.1.3
   ========================================================== */
.ludomatch-group-app {
  --lmg-navy:#071a33;
  --lmg-blue:#0b4dbb;
  --lmg-yellow:#ffc21e;
  --lmg-red:#cf0215;
  --lmg-blue-soft:#eef5ff;
  --lmg-yellow-soft:#fff7da;
  --lmg-red-soft:#fff0f2;
  --lmg-text:#172b4d;
  --lmg-muted:#6b7c92;
  --lmg-border:#e5e0ef;
  width:100%;
  margin:0;
  padding:24px 18px 70px;
  color:var(--lmg-text);
  font-family:inherit;
  box-sizing:border-box;
}
.ludomatch-group-app *,
.ludomatch-group-app *::before,
.ludomatch-group-app *::after { box-sizing:border-box; }
.ludomatch-group-shell { width:min(920px,100%); margin:0 auto; }
.ludomatch-group-hero {
  position:relative;
  display:block;
  overflow:hidden;
  min-height:0;
  padding:26px;
  border-radius:22px 22px 0 0;
  background:
    radial-gradient(ellipse 75% 170% at -5% 50%,var(--lmg-blue) 0%,#1b62c7 44%,rgba(11,77,187,0) 72%),
    radial-gradient(ellipse 75% 170% at 105% 50%,var(--lmg-red) 0%,#df1d2d 44%,rgba(207,2,21,0) 72%),
    linear-gradient(120deg,#1b58b4 0%,var(--lmg-yellow) 47%,#f0981d 68%,var(--lmg-red) 100%);
  color:#fff;
  box-shadow:0 22px 48px rgba(7,26,51,.18);
}
.ludomatch-group-hero::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:5px;
  background:linear-gradient(90deg,var(--lmg-blue) 0%,#3b73bd 26%,var(--lmg-yellow) 50%,#ef8f20 73%,var(--lmg-red) 100%);
}
.ludomatch-group-hero-copy {
  position:relative;
  z-index:2;
  width:min(700px,100%);
  margin:0 auto;
  padding:22px 24px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:17px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 25px rgba(7,26,51,.14);
  backdrop-filter:blur(10px);
}
.ludomatch-group-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  padding:6px 11px;
  border:0;
  border-radius:999px;
  background:var(--lmg-navy);
  color:#fff;
  font-size:10px;
  font-weight:950;
  letter-spacing:.08em;
}
.ludomatch-group-kicker span {
  color:transparent;
  background:linear-gradient(90deg,var(--lmg-blue) 0%,#3b73bd 27%,var(--lmg-yellow) 50%,#ef8f20 73%,var(--lmg-red) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  font-size:8px;
  letter-spacing:-1px;
}
.ludomatch-group-hero h1 { max-width:650px; margin:0; color:var(--lmg-navy); font-size:clamp(28px,3.4vw,38px); line-height:1.04; letter-spacing:-.035em; font-weight:950; }
.ludomatch-group-hero p { max-width:660px; margin:11px 0 0; color:var(--lmg-muted); font-size:14px; line-height:1.52; }
.ludomatch-group-promises { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.ludomatch-group-promises span { padding:6px 10px; border:1px solid #dce4ee; border-radius:999px; background:#fff; color:#38516d; font-size:11px; font-weight:850; }
.ludomatch-group-visual { display:none; }
.ludomatch-group-visual::before,
.ludomatch-group-visual::after { content:""; position:absolute; left:50%; top:50%; border-radius:50%; transform:translate(-50%,-50%); }
.ludomatch-group-visual::before { width:188px; height:188px; border:1px solid rgba(255,255,255,.23); }
.ludomatch-group-visual::after { width:132px; height:132px; background:rgba(255,255,255,.12); box-shadow:inset 0 1px 0 rgba(255,255,255,.20); backdrop-filter:blur(8px); }
.ludomatch-group-avatar,
.ludomatch-group-center { position:absolute; z-index:3; display:grid; place-items:center; border-radius:50%; color:#fff; font-weight:950; box-shadow:0 10px 25px rgba(22,8,57,.25); }
.ludomatch-group-avatar { width:58px; height:58px; border:4px solid rgba(255,255,255,.88); font-size:17px; }
.ludomatch-group-avatar.is-blue { top:7px; left:91px; background:var(--lmg-blue); }
.ludomatch-group-avatar.is-yellow { right:5px; bottom:29px; background:var(--lmg-yellow); color:#654800; }
.ludomatch-group-avatar.is-red { bottom:29px; left:5px; background:var(--lmg-red); }
.ludomatch-group-center { top:50%; left:50%; width:74px; height:74px; border:5px solid rgba(255,255,255,.92); background:var(--lmg-navy); font-size:28px; transform:translate(-50%,-50%); }

.ludomatch-group-panel {
  padding:32px 34px 30px;
  border:1px solid var(--lmg-border);
  border-top:0;
  border-radius:0 0 22px 22px;
  background:linear-gradient(180deg,#fff 0%,#fcfbff 100%);
  box-shadow:0 24px 55px rgba(35,20,67,.09);
}
.ludomatch-group-intro { max-width:720px; margin:0 auto 29px; text-align:center; }
.ludomatch-group-eyebrow {
  color:transparent;
  background:linear-gradient(90deg,var(--lmg-blue),var(--lmg-red));
  -webkit-background-clip:text;
  background-clip:text;
  font-size:11px;
  font-weight:950;
  letter-spacing:.09em;
}
.ludomatch-group-intro h2 { margin:7px 0 8px; color:var(--lmg-navy); font-size:clamp(25px,3.2vw,36px); line-height:1.08; letter-spacing:-.03em; font-weight:950; }
.ludomatch-group-intro p { margin:0; color:var(--lmg-muted); font-size:14px; line-height:1.55; }
.ludomatch-group-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.ludomatch-group-step { position:relative; display:flex; align-items:flex-start; gap:14px; overflow:hidden; min-height:145px; padding:21px 19px; border:1px solid var(--lmg-border); border-radius:18px; background:#fff; box-shadow:0 8px 22px rgba(7,26,51,.04); }
.ludomatch-group-step::before { content:""; position:absolute; inset:0 0 auto; height:4px; }
.ludomatch-group-step:nth-child(1)::before { background:var(--lmg-blue); }
.ludomatch-group-step:nth-child(2)::before { background:var(--lmg-yellow); }
.ludomatch-group-step:nth-child(3)::before { background:var(--lmg-red); }
.ludomatch-group-step-number { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border-radius:12px; font-size:15px; font-weight:950; }
.ludomatch-group-step:nth-child(1) .ludomatch-group-step-number { background:var(--lmg-blue-soft); color:var(--lmg-blue); }
.ludomatch-group-step:nth-child(2) .ludomatch-group-step-number { background:var(--lmg-yellow-soft); color:#765400; }
.ludomatch-group-step:nth-child(3) .ludomatch-group-step-number { background:var(--lmg-red-soft); color:var(--lmg-red); }
.ludomatch-group-step h3 { margin:2px 0 7px; color:var(--lmg-navy); font-size:15px; line-height:1.2; font-weight:950; }
.ludomatch-group-step p { margin:0; color:var(--lmg-muted); font-size:12.5px; line-height:1.48; }
.ludomatch-group-launch { position:relative; display:flex; align-items:center; justify-content:space-between; gap:22px; overflow:hidden; margin-top:18px; padding:22px 21px 19px; border:1px solid #dce4ee; border-radius:17px; background:#f8fafc; }
.ludomatch-group-launch::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,var(--lmg-blue) 0%,#3b73bd 27%,var(--lmg-yellow) 50%,#ef8f20 73%,var(--lmg-red) 100%); }
.ludomatch-group-launch strong { display:block; color:var(--lmg-navy); font-size:15px; font-weight:950; }
.ludomatch-group-launch div > span { display:block; margin-top:3px; color:var(--lmg-muted); font-size:12px; }
.ludomatch-group-button { flex:0 0 auto; min-height:46px; padding:11px 18px; border:2px solid var(--lmg-yellow); border-radius:13px; background:var(--lmg-navy); color:#fff; font:inherit; font-size:13px; font-weight:950; box-shadow:0 9px 20px rgba(7,26,51,.18); }
.ludomatch-group-button span { margin-left:7px; }
.ludomatch-group-button:disabled { cursor:not-allowed; opacity:.72; }

/* Page dédiée : retirer les marges/titres génériques les plus fréquents sans toucher au header. */
body.ludomatch-page main.site-main > .page-header,
body.ludomatch-page .entry-header .entry-title,
body.ludomatch-group-page main.site-main > .page-header,
body.ludomatch-group-page .entry-header .entry-title { display:none; }
body.ludomatch-page .site-main,
body.ludomatch-group-page .site-main { overflow:visible; }

@media (max-width: 1024px) {
  .ludomatch-app { padding-inline:14px; }
  .ludomatch-result-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ludomatch-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ludomatch-group-app { padding-inline:14px; }
  .ludomatch-group-hero { padding:24px; }
  .ludomatch-group-visual { display:none; }
  .ludomatch-group-panel { padding:30px 27px 28px; }
}
@media (max-width: 767px) {
  .ludomatch-app { padding:12px 10px 50px; }
  .ludomatch-hero { padding:18px 16px 16px; border-radius:20px 20px 0 0; }
  .ludomatch-hero h1 { font-size:25px; line-height:1.08; }
  .ludomatch-hero > p { font-size:13px; line-height:1.45; }
  .ludomatch-kicker { margin-bottom:6px; padding:4px 8px; font-size:9px; }
  .ludomatch-promises { gap:6px; margin-top:9px; }
  .ludomatch-promises span { padding:4px 7px; font-size:9.5px; }
  .ludomatch-card { min-height:0; padding:18px 14px 26px; border-radius:0 0 20px 20px; }
  .ludomatch-progress-wrap { margin-bottom:22px; }
  .ludomatch-options,
  .ludomatch-question[data-question="duration"] .ludomatch-options,
  .ludomatch-question[data-question="complexity"] .ludomatch-options { grid-template-columns:1fr; }
  .ludomatch-option { min-height:68px; padding:12px 40px 12px 13px; border-radius:14px; }
  .ludomatch-option-icon { flex-basis:34px; width:34px; height:34px; font-size:18px; }
  .ludomatch-final-action { margin-top:35px; }
  .ludomatch-final-copy { align-items:flex-start; }
  .ludomatch-result-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .ludomatch-product-image { padding:12px; }
  .ludomatch-product-body { padding:11px; }
  .ludomatch-reason { font-size:10.5px; }
  .ludomatch-group-app { padding:12px 10px 50px; }
  .ludomatch-group-hero { display:block; min-height:0; padding:17px 12px; border-radius:18px 18px 0 0; }
  .ludomatch-group-hero-copy { padding:22px 19px; border-radius:17px; }
  .ludomatch-group-hero h1 { font-size:30px; }
  .ludomatch-group-hero p { font-size:13px; line-height:1.5; }
  .ludomatch-group-visual { display:none; }
  .ludomatch-group-panel { padding:26px 15px 22px; border-radius:0 0 18px 18px; }
  .ludomatch-group-steps { grid-template-columns:1fr; gap:10px; }
  .ludomatch-group-step { min-height:0; padding:17px 15px; }
  .ludomatch-group-launch { align-items:stretch; flex-direction:column; padding:17px; }
  .ludomatch-group-button { width:100%; }
}
@media (max-width: 420px) {
  .ludomatch-result-grid { grid-template-columns:1fr; }
  .ludomatch-product-card { display:grid; grid-template-columns:130px 1fr; }
  .ludomatch-product-image { aspect-ratio:auto; min-height:170px; }
  .ludomatch-product-body { min-width:0; }
}


/* ==========================================================
   LUDOMATCH v1.0.5 — Vue résultats compacte
   Le questionnaire disparaît une fois les recommandations prêtes.
   ========================================================== */
.ludomatch-app.is-results-view .ludomatch-card {
  display: none !important;
}

.ludomatch-app.is-results-view .ludomatch-hero {
  border-radius: 26px !important;
}

.ludomatch-app.is-results-view .ludomatch-results {
  margin-top: 34px !important;
}

@media (max-width: 767px) {
  .ludomatch-app.is-results-view .ludomatch-hero {
    border-radius: 20px !important;
  }
  .ludomatch-app.is-results-view .ludomatch-results {
    margin-top: 26px !important;
  }
}


/* ==========================================================
   LUDOMATCH v1.0.7 — Correction priorité d'affichage desktop
   Le contenu LudoMatch reste dans la couche de la page et ne
   peut plus recouvrir le sous-menu Max Mega Menu.
   Aucun changement sur mobile/tablette.
   ========================================================== */
@media (min-width: 1025px) {
  body.ludomatch-page .site-main {
    position: relative !important;
    z-index: 0 !important;
    isolation: isolate !important;
  }

  body.ludomatch-page .ludomatch-app {
    position: relative !important;
    z-index: 0 !important;
    isolation: isolate !important;
  }

  body.ludomatch-group-page .site-main,
  body.ludomatch-group-page .ludomatch-group-app {
    position: relative !important;
    z-index: 0 !important;
    isolation: isolate !important;
  }
}


/* ==========================================================
   LUDORUM — LUDOMATCH v1.2.0
   Questionnaire guidé + résultats alignés sur le catalogue
   ========================================================== */

.ludomatch-app {
  padding-top: 20px;
}

.ludomatch-shell {
  width: min(1080px, 100%);
}

.ludomatch-hero {
  padding: 20px 26px 18px;
  border-radius: 18px 18px 0 0;
}

.ludomatch-hero h1 {
  font-size: clamp(27px, 3vw, 35px);
}

.ludomatch-hero > p {
  max-width: 760px;
  font-size: 13px;
}

.ludomatch-card {
  min-height: 0;
  padding: 22px 32px 26px;
  border-radius: 0 0 18px 18px;
}

.ludomatch-progress-wrap {
  margin-bottom: 22px;
}

.ludomatch-progress-caption {
  color: var(--lm-navy);
  font-size: 11px;
  font-weight: 900;
}

.ludomatch-step-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  background: #f8fbff;
  font-size: 10.5px;
}

.ludomatch-progress {
  height: 8px;
}

.ludomatch-question-head {
  margin-bottom: 20px;
}

.ludomatch-question h2 {
  margin-top: 6px;
  font-size: clamp(23px, 2.8vw, 30px);
}

.ludomatch-question-head p {
  font-size: 13px;
}

.ludomatch-options {
  gap: 10px;
  max-width: 880px;
}

.ludomatch-option {
  min-height: 74px;
  padding: 13px 40px 13px 14px;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(16,42,67,.035);
}

.ludomatch-option:hover,
.ludomatch-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(11,77,187,.48);
  box-shadow: 0 8px 19px rgba(11,77,187,.09);
}

.ludomatch-option.is-selected {
  border-color: var(--lm-blue);
  background: linear-gradient(135deg,#f5f9ff,#fff);
  box-shadow: 0 0 0 3px rgba(11,77,187,.09), 0 8px 19px rgba(11,77,187,.07);
}

.ludomatch-option.is-selected .ludomatch-option-copy strong {
  color: var(--lm-blue);
}

.ludomatch-option-icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

.ludomatch-choice-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  margin: 18px auto 8px;
  color: var(--lm-muted);
  font-size: 11px;
}

.ludomatch-choice-summary > span {
  font-weight: 750;
}

.ludomatch-choice-summary > strong {
  color: #7a8797;
  font-weight: 900;
}

.ludomatch-choice-summary.has-choice > strong {
  color: var(--lm-blue);
}

.ludomatch-question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
}

.ludomatch-question-actions[hidden],
.ludomatch-choice-summary[hidden] {
  display: none !important;
}

.ludomatch-back,
.ludomatch-next {
  appearance: none;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ludomatch-back {
  border: 1px solid #dce5f0;
  background: #fff;
  color: var(--lm-blue);
}

.ludomatch-back.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.ludomatch-next {
  min-width: 116px;
  border: 0;
  background: linear-gradient(120deg,#07336f,var(--lm-blue));
  color: #fff;
  box-shadow: 0 6px 14px rgba(11,77,187,.18);
}

.ludomatch-next:disabled {
  cursor: not-allowed;
  opacity: .38;
  box-shadow: none;
}

.ludomatch-next:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11,77,187,.23);
}

.ludomatch-final-action {
  max-width: 780px;
  margin: 28px auto 8px;
}

.ludomatch-final-copy {
  margin-bottom: 15px;
}

.ludomatch-profile-summary,
.ludomatch-results-profile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ludomatch-profile-summary {
  margin: 0 0 18px;
}

.ludomatch-profile-summary span,
.ludomatch-results-profile span {
  padding: 5px 8px;
  border: 1px solid #dce5f0;
  border-radius: 999px;
  background: #f8fbff;
  color: #38516d;
  font-size: 10px;
  font-weight: 800;
}

.ludomatch-submit {
  border: 0;
  border-radius: 11px;
  padding: 13px 20px;
  background: linear-gradient(135deg,var(--lm-red),#e22939);
  box-shadow: 0 8px 18px rgba(207,2,21,.18);
}

.ludomatch-results {
  margin-top: 30px;
}

.ludomatch-results-head {
  max-width: 780px;
  margin-bottom: 20px;
}

.ludomatch-results-head h2 {
  font-size: clamp(27px,3.2vw,36px);
}

.ludomatch-results-profile {
  margin-top: 12px;
}

.ludomatch-result-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}

.ludomatch-product-card {
  border-radius: 14px;
  box-shadow: 0 7px 19px rgba(7,26,51,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.ludomatch-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(7,26,51,.10);
}

.ludomatch-rank {
  top: 8px;
  left: 8px;
  max-width: calc(100% - 52px);
  padding: 5px 8px;
  background: var(--lm-navy);
  font-size: 9px;
}

.ludomatch-product-wishlist {
  position: absolute;
  z-index: 5;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
}

.ludomatch-product-wishlist .tinv-wraper,
.ludomatch-product-wishlist .tinv-wishlist,
.ludomatch-product-wishlist .tinvwl_add_to_wishlist_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #f0c7c4 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.97) !important;
  color: var(--lm-red) !important;
  font-size: 0 !important;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(7,26,51,.07) !important;
}

.ludomatch-product-wishlist .tinvwl_add_to_wishlist_button::before {
  position: static !important;
  margin: 0 !important;
  color: var(--lm-red) !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

.ludomatch-product-wishlist .tinvwl_add_to_wishlist-text,
.ludomatch-product-wishlist .tinvwl-tooltip,
.ludomatch-product-wishlist .tinvwl-product-in-list,
.ludomatch-product-wishlist .tinvwl-product-make-remove {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

.ludomatch-product-image {
  aspect-ratio: auto;
  height: 205px;
  padding: 10px;
  border-bottom: 1px solid #edf1f6;
  background: #f8fafc;
}

.ludomatch-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ludomatch-score {
  right: 8px;
  bottom: 8px;
  min-width: 54px;
  padding: 6px 7px;
  border-radius: 10px;
}

.ludomatch-score strong {
  font-size: 15px;
}

.ludomatch-product-body {
  padding: 10px;
}

.ludomatch-product-body h3 {
  display: -webkit-box;
  min-height: 36px;
  max-height: 36px;
  margin-bottom: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.28;
}

.ludomatch-product-price {
  min-height: 20px;
  font-size: 13.8px;
}

.ludomatch-stock {
  min-height: 18px;
  margin-top: 3px;
  font-size: 10.8px;
}

.ludomatch-reason {
  margin: 8px 0 10px;
  color: #62758a;
  font-size: 10.8px;
  line-height: 1.4;
}

.ludomatch-product-actions {
  grid-template-columns: 1fr;
  gap: 6px;
}

.ludomatch-view,
.ludomatch-add {
  min-height: 38px !important;
  border-radius: 8px !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
}

.ludomatch-view {
  border: 1px solid #dce5f0 !important;
  background: #fff !important;
  color: var(--lm-blue) !important;
}

.ludomatch-add {
  border: 0 !important;
  background: linear-gradient(120deg,#07336f,var(--lm-blue)) !important;
  color: #fff !important;
}

.ludomatch-results-footer {
  margin-top: 22px;
}

@media (max-width: 1024px) {
  .ludomatch-result-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 767px) {
  .ludomatch-app {
    padding: 12px 10px 46px;
  }

  .ludomatch-hero {
    padding: 17px 14px 15px;
    border-radius: 16px 16px 0 0;
  }

  .ludomatch-card {
    padding: 17px 12px 20px;
    border-radius: 0 0 16px 16px;
  }

  .ludomatch-question-head {
    margin-bottom: 15px;
  }

  .ludomatch-options,
  .ludomatch-question[data-question="duration"] .ludomatch-options,
  .ludomatch-question[data-question="complexity"] .ludomatch-options {
    grid-template-columns: 1fr;
  }

  .ludomatch-option {
    min-height: 64px;
    padding: 10px 38px 10px 12px;
  }

  .ludomatch-choice-summary {
    margin-top: 13px;
    font-size: 10px;
  }

  .ludomatch-question-actions {
    padding-top: 8px;
  }

  .ludomatch-back,
  .ludomatch-next {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 11px;
  }

  .ludomatch-result-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }

  .ludomatch-product-image {
    height: 160px;
    padding: 8px;
  }

  .ludomatch-product-body {
    padding: 8px;
  }

  .ludomatch-product-body h3 {
    min-height: 32px;
    max-height: 32px;
    font-size: 12px;
  }

  .ludomatch-product-price {
    font-size: 12px;
  }

  .ludomatch-reason {
    font-size: 9.7px;
  }
}

@media (max-width: 420px) {
  .ludomatch-result-grid {
    grid-template-columns: 1fr;
  }

  .ludomatch-product-card {
    display: block;
  }

  .ludomatch-product-image {
    height: 210px;
  }
}


/* ==========================================================
   LUDORUM — LUDOMATCH v1.2.1
   FINITION VISUELLE
   - sélection premium bleu / jaune
   - CTA Suivant / Terminer renforcés
   - résultats légèrement plus lisibles
   ========================================================== */

/* ----------------------------------------------------------
   RÉPONSES — ÉTAT SÉLECTIONNÉ DÉFINITIF
   Priorité volontairement élevée pour neutraliser d'anciens
   styles globaux de boutons / états actifs.
   ---------------------------------------------------------- */
body .ludomatch-app .ludomatch-question .ludomatch-option.is-selected,
body .ludomatch-app .ludomatch-question .ludomatch-option[aria-pressed="true"] {
  border-color: #0B4DBB !important;
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 72%, #fff 100%) !important;
  color: #102844 !important;
  box-shadow:
    0 0 0 3px rgba(11,77,187,.10),
    0 8px 20px rgba(11,77,187,.08) !important;
}

body .ludomatch-app .ludomatch-question .ludomatch-option.is-selected .ludomatch-option-copy strong,
body .ludomatch-app .ludomatch-question .ludomatch-option[aria-pressed="true"] .ludomatch-option-copy strong {
  color: #0B4DBB !important;
}

body .ludomatch-app .ludomatch-question .ludomatch-option.is-selected .ludomatch-option-copy small,
body .ludomatch-app .ludomatch-question .ludomatch-option[aria-pressed="true"] .ludomatch-option-copy small {
  color: #536a84 !important;
}

/* Rond de validation bleu + cœur jaune Ludorum. */
body .ludomatch-app .ludomatch-question .ludomatch-option.is-selected .ludomatch-option-check,
body .ludomatch-app .ludomatch-question .ludomatch-option[aria-pressed="true"] .ludomatch-option-check {
  border: 2px solid #0B4DBB !important;
  background: #F5C518 !important;
  color: #071A33 !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(11,77,187,.12) !important;
}

/* Icône de la réponse sélectionnée : léger rappel bleu. */
body .ludomatch-app .ludomatch-question .ludomatch-option.is-selected .ludomatch-option-icon,
body .ludomatch-app .ludomatch-question .ludomatch-option[aria-pressed="true"] .ludomatch-option-icon {
  background: #e8f1ff !important;
  box-shadow: inset 0 0 0 1px rgba(11,77,187,.08) !important;
}

/* ----------------------------------------------------------
   CTA SUIVANT / TERMINER
   ---------------------------------------------------------- */
body .ludomatch-app .ludomatch-next:not(:disabled) {
  min-width: 124px !important;
  border: 1px solid rgba(7,26,51,.08) !important;
  background: linear-gradient(120deg, #07336f 0%, #0B4DBB 100%) !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow:
    0 7px 16px rgba(11,77,187,.23),
    0 0 0 2px rgba(245,197,24,.20) !important;
}

body .ludomatch-app .ludomatch-next:not(:disabled):hover,
body .ludomatch-app .ludomatch-next:not(:disabled):focus-visible {
  transform: translateY(-1px) !important;
  filter: brightness(1.035) !important;
  box-shadow:
    0 10px 21px rgba(11,77,187,.28),
    0 0 0 3px rgba(245,197,24,.28) !important;
  outline: none !important;
}

body .ludomatch-app .ludomatch-next:disabled {
  border: 1px solid #dce5f0 !important;
  background: #e8eef6 !important;
  color: #7890ad !important;
  opacity: .78 !important;
  box-shadow: none !important;
}

/* Retour reste secondaire mais plus net. */
body .ludomatch-app .ludomatch-back {
  border-color: #cfdbea !important;
  color: #0B4DBB !important;
  background: #fff !important;
  box-shadow: 0 3px 9px rgba(7,26,51,.04) !important;
}

/* ----------------------------------------------------------
   RÉSULTATS — +5/7 % DE CONFORT VISUEL
   ---------------------------------------------------------- */
body .ludomatch-app .ludomatch-result-grid {
  gap: 15px !important;
}

body .ludomatch-app .ludomatch-product-card {
  border-color: #dfe6ef !important;
  box-shadow: 0 7px 20px rgba(7,26,51,.065) !important;
}

body .ludomatch-app .ludomatch-product-body {
  padding: 11px !important;
}

body .ludomatch-app .ludomatch-product-body h3 {
  min-height: 38px !important;
  max-height: 38px !important;
  margin-bottom: 6px !important;
  font-size: 14.6px !important;
  line-height: 1.28 !important;
}

body .ludomatch-app .ludomatch-product-price {
  min-height: 21px !important;
  font-size: 14.3px !important;
  font-weight: 950 !important;
}

body .ludomatch-app .ludomatch-stock {
  min-height: 19px !important;
  margin-top: 4px !important;
  font-size: 11.3px !important;
  font-weight: 850 !important;
}

body .ludomatch-app .ludomatch-reason {
  min-height: 46px !important;
  margin: 9px 0 11px !important;
  color: #596f88 !important;
  font-size: 11.2px !important;
  line-height: 1.45 !important;
}

body .ludomatch-app .ludomatch-product-actions {
  gap: 7px !important;
}

body .ludomatch-app .ludomatch-view,
body .ludomatch-app .ludomatch-add {
  min-height: 40px !important;
  padding: 8px 9px !important;
  font-size: 11px !important;
}

body .ludomatch-app .ludomatch-add {
  box-shadow: 0 5px 12px rgba(11,77,187,.14) !important;
}

body .ludomatch-app .ludomatch-view:hover {
  border-color: #0B4DBB !important;
  background: #f6f9ff !important;
}

body .ludomatch-app .ludomatch-add:hover {
  filter: brightness(1.035) !important;
  box-shadow: 0 7px 15px rgba(11,77,187,.20) !important;
}

/* Score un peu plus lisible sans agrandir fortement le badge. */
body .ludomatch-app .ludomatch-score strong {
  font-size: 15.7px !important;
}

body .ludomatch-app .ludomatch-score small {
  font-size: 7.7px !important;
}

/* Mobile : mêmes principes sans surdimensionner. */
@media (max-width: 767px) {
  body .ludomatch-app .ludomatch-next:not(:disabled) {
    min-width: 112px !important;
  }

  body .ludomatch-app .ludomatch-result-grid {
    gap: 10px !important;
  }

  body .ludomatch-app .ludomatch-product-body {
    padding: 8px !important;
  }

  body .ludomatch-app .ludomatch-product-body h3 {
    min-height: 33px !important;
    max-height: 33px !important;
    font-size: 12.4px !important;
  }

  body .ludomatch-app .ludomatch-product-price {
    font-size: 12.3px !important;
  }

  body .ludomatch-app .ludomatch-stock {
    font-size: 10px !important;
  }

  body .ludomatch-app .ludomatch-reason {
    min-height: 0 !important;
    font-size: 9.9px !important;
    line-height: 1.4 !important;
  }

  body .ludomatch-app .ludomatch-view,
  body .ludomatch-app .ludomatch-add {
    min-height: 37px !important;
    font-size: 9.8px !important;
  }
}


/* ==========================================================
   LUDORUM — LUDOMATCH v1.2.2
   CORRECTION ESPACEMENT BADGE « Question 1 sur 6 »
   ========================================================== */

body .ludomatch-app .ludomatch-step-label {
  gap: 4px !important;
  white-space: nowrap !important;
}

body .ludomatch-app .ludomatch-step-label > span,
body .ludomatch-app .ludomatch-step-label > strong {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
