/* Styles confinés à .sgj : aucun effet sur le site existant. */
.sgj {
  --sgj-green: #275947;
  --sgj-deep: #153f34;
  --sgj-leaf: #d8edd8;
  --sgj-warm: #fff8ea;
  --sgj-cream: #fffdf7;
  --sgj-text: #24382f;
  --sgj-muted: #56685e;
  --sgj-border: #d9e6d9;
  color: var(--sgj-text);
  font: 400 16px/1.55 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  background: var(--sgj-cream);
  border: 1px solid var(--sgj-border);
  border-radius: 23px;
  box-shadow: 0 10px 38px rgba(26,65,47,.085);
  width: min(1120px, calc(100vw - 32px));
  max-width: none !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 12px 0 30px;
  overflow: hidden;
  box-sizing: border-box;
}
.sgj *, .sgj *::before, .sgj *::after {box-sizing: border-box;}
.sgj button {font: inherit; cursor: pointer;}
.sgj button:disabled {cursor: default;}
.sgj button:focus-visible, .sgj summary:focus-visible {outline: 3px solid #e7a943; outline-offset: 3px;}
.sgj h2, .sgj h3, .sgj p {margin-top: 0;}
.sgj h2 {font-size: clamp(25px, 3vw, 35px); line-height: 1.2; color: var(--sgj-deep); letter-spacing: -.5px; margin-bottom: 12px;}
.sgj h3 {font-size: clamp(18px,2.2vw,23px); line-height: 1.3; color: var(--sgj-deep); margin-bottom: 12px;}
.sgj p {line-height: 1.6;}
.sgj .sgj-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: linear-gradient(115deg,#e7f2dd,#fff7e8); padding: 20px clamp(18px,4vw,38px);
}
.sgj-brand {display:flex;align-items:center;gap:12px;}
.sgj-brand > span {display:grid;place-items:center;font-size:28px;width:48px;height:48px;border-radius:14px;background:white;}
.sgj-brand strong {display:block;font-size:18px;line-height:1.3;color:var(--sgj-deep);}
.sgj-brand div > span {display:block;font-size:13px;color:var(--sgj-muted);}
.sgj-pill {color:#315642; background:#fff;border:1px solid #d4e0ce;border-radius:99px;padding:7px 12px;font-size:12px;font-weight:700;}
.sgj-tabs {display:flex;gap:7px;flex-wrap:wrap;padding:12px clamp(14px,3vw,33px);background:#f7fbf5;border-bottom:1px solid var(--sgj-border);}
.sgj-tab {border:1px solid transparent !important; border-radius:12px;background:transparent !important;color:#426252 !important; padding:9px 13px; font-size:14px !important; line-height:1.3 !important; font-weight:700 !important;}
.sgj-tab:hover {background:#e6f1e5 !important;}
.sgj-tab.is-active {background:white !important;color:var(--sgj-deep) !important;border-color:#b4d4bd !important;box-shadow:0 2px 6px #193a2c11;}
.sgj-body {padding:clamp(18px,4.5vw,42px); min-height:390px;}
.sgj-welcome {text-align:center;max-width:760px;margin:4px auto 32px;}
.sgj-welcome p:not(.sgj-eyebrow) {color:var(--sgj-muted);font-size:17px;}
.sgj-eyebrow {font-size:12px !important;line-height:1.4 !important;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#7a6230;margin-bottom:9px !important;}
.sgj-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;}
.sgj-card {padding:24px 20px 20px;background:#fff;border:1px solid #dfebdc;border-radius:19px;box-shadow:0 5px 14px #193a2c08;display:flex;flex-direction:column;min-width:0;}
.sgj-card-icon {display:grid;place-items:center;font-size:34px;background:#edf6e9;border-radius:16px;width:65px;height:65px;margin-bottom:18px;white-space:nowrap;}
.sgj-card:nth-child(2) .sgj-card-icon {background:#ffeded;}
.sgj-card:nth-child(3) .sgj-card-icon {background:#fff1d9;}
.sgj-card h3 {font-size:21px;margin-bottom:10px;}
.sgj-card p {color:var(--sgj-muted);font-size:14px;flex:1;}
.sgj-card-meta {display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 18px;font-size:12px;color:var(--sgj-muted);}
.sgj-btn {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:45px;border-radius:11px !important;padding:10px 18px !important;text-decoration:none !important;line-height:1.2 !important;font-weight:700 !important;font-size:15px !important;transition:background .15s ease,transform .15s ease;}
.sgj-btn:not(:disabled):hover {transform:translateY(-1px);}
.sgj-btn-main {background:var(--sgj-green) !important;color:white !important;border:1px solid var(--sgj-green) !important;}
.sgj-btn-main:not(:disabled):hover {background:#174333 !important;}
.sgj-btn-main:disabled {opacity:.6;}
.sgj-btn-quiet {background:white !important;color:var(--sgj-deep) !important;border:1px solid #adcdb6 !important;}
.sgj-note {margin-top:24px;background:#f0f6ee;padding:14px 18px;border-radius:13px;color:#456453;font-size:14px;}
.sgj-section-head {display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:21px;}
.sgj-section-head p:not(.sgj-eyebrow) {color:var(--sgj-muted);margin:0;max-width:670px;}
.sgj-counter {white-space:nowrap;font-size:13px;color:#315d43;border:1px solid #cadece;background:#ecf6e8;padding:9px 12px;border-radius:99px;font-weight:800;}
.sgj-progress {height:8px;background:#e4ebe2;border-radius:99px;overflow:hidden;margin:17px 0 23px;}
.sgj-progress span {display:block;height:100%;background:linear-gradient(90deg,#73a96b,#327351);border-radius:inherit;transition:width .2s;}
.sgj-wallets {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 24px;}
.sgj-wallet {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;background:#f5f8f1;border:1px solid #dce8d6;border-radius:13px;padding:12px 8px;text-align:center;}
.sgj-wallet>span:first-child {font-size:20px;}
.sgj-wallet-name {font-size:14px;font-weight:700;}
.sgj-wallet strong {color:var(--sgj-green);font-size:20px;white-space:nowrap;}
.sgj-wallet small {font-size:11px;}
.sgj-challenge,.sgj-quiz-panel {padding:clamp(18px,4vw,32px);border:1px solid #dde9d9;background:#fff;border-radius:19px;}
.sgj-question-icon {font-size:29px;margin-bottom:9px;}
.sgj-challenge h3,.sgj-quiz-panel h3 {max-width:780px;line-height:1.4;margin-bottom:22px;}
.sgj-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.sgj-option {display:flex;flex-direction:column;justify-content:center;gap:5px;text-align:left;background:#fbfdf8 !important;border:1px solid #cfddcf !important;border-radius:12px !important;min-height:75px;padding:13px !important;font-size:14px !important;line-height:1.45 !important;color:var(--sgj-text) !important;}
.sgj-option:hover:not(:disabled) {border-color:#51916a !important;background:#f0f8ef !important;}
.sgj-option-name {font-size:16px;font-weight:800;color:var(--sgj-deep);}
.sgj-option.is-correct {border:2px solid #4b9a6c !important;background:#e9f7ee !important;opacity:1 !important;}
.sgj-option.is-wrong {border:2px solid #b96b57 !important;background:#fff0e8 !important;opacity:1 !important;}
.sgj-option:disabled:not(.is-correct):not(.is-wrong) {opacity:.62;}
.sgj-feedback {border-radius:13px;border:1px solid;margin-top:18px;padding:17px 20px;}
.sgj-feedback strong {font-size:17px;}
.sgj-feedback p {margin:9px 0;}
.sgj-feedback .sgj-btn {margin-top:9px;}
.sgj-feedback-good {background:#ebf8ed;border-color:#bedfca;color:#245037;}
.sgj-feedback-bad {background:#fff7e9;border-color:#ead2ab;color:#6b4b25;}
.sgj-transfer {font-weight:800;color:#265839;}
.sgj-fine {font-size:12px;color:#69786d;margin:15px 0 0;}
.sgj-ledger {margin-top:18px;padding:13px 18px;border:1px solid #d9e7d8;border-radius:12px;background:#fcfdf9;color:#45574e;}
.sgj-ledger summary {cursor:pointer;font-weight:700;}
.sgj-ledger li {font-size:14px;padding:4px 0;}
.sgj-votes {display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:25px;}
.sgj-vote {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:150px;font-size:21px !important;font-weight:800 !important;line-height:1.2 !important;border:3px solid transparent !important;border-radius:16px !important;box-shadow:0 4px 15px #23372a11;}
.sgj-vote span {font-size:44px;}
.sgj-vote small {font-size:12px;letter-spacing:.1em;}
.sgj-green {color:#145439 !important;background:#e3f6e9 !important;border-color:#a3d8b7 !important;}
.sgj-red {color:#8a352e !important;background:#fff0e9 !important;border-color:#e8b3ab !important;}
.sgj-vote:hover:not(:disabled) {filter:brightness(.97);}
.sgj-vote:disabled {opacity:.63;}
.sgj-vote.is-correct:disabled {opacity:1;border-width:4px !important;}
.sgj-result {max-width:730px;margin:10px auto 30px;text-align:center;border-radius:18px;padding:35px 20px;background:linear-gradient(145deg,#e4f1df,#fff6e9);border:1px solid #d3e5cf;}
.sgj-result-emoji {font-size:58px;margin-bottom:14px;}
.sgj-result-number {font-size:clamp(44px,6vw,70px);font-weight:900;color:#2a6c4c;margin:12px 0 !important;line-height:1.1 !important;}
.sgj-result>p:not(.sgj-eyebrow) {max-width:520px;margin:15px auto;}
.sgj-actions {display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:23px;}
.sgj-wheel-layout {display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:clamp(18px,4vw,42px);align-items:start;}
.sgj-wheel-column {display:flex;align-items:center;flex-direction:column;}
.sgj-wheel-wrap {--sgj-wheel-size:300px;position:relative;width:var(--sgj-wheel-size);height:var(--sgj-wheel-size);margin:15px auto 23px;}
.sgj-wheel-disc {position:absolute;inset:0;border-radius:50%;border:9px solid #faf0d7;background:conic-gradient(from -22.5deg,#88bb91 0deg 45deg,#ffe0a4 45deg 90deg,#acd7d1 90deg 135deg,#f8bbae 135deg 180deg,#b6c5ec 180deg 225deg,#e6c7dd 225deg 270deg,#cbdba7 270deg 315deg,#f7d6ad 315deg 360deg);box-shadow:0 9px 26px #1a49341a;}
.sgj-wheel-disc::after {content:"";position:absolute;inset:3px;border:2px solid #fff8;border-radius:50%;pointer-events:none;}
.sgj-wheel-mark {position:absolute;top:50%;left:50%;display:grid;place-items:center;width:42px;height:42px;font-size:27px;line-height:1;background:#fffb;border:1px solid #ffffff9c;border-radius:50%;text-shadow:0 1px white;}
.sgj-wheel-center {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:66px;height:66px;border:6px solid #fff8e5;border-radius:50%;background:#275947;display:grid;place-items:center;font-weight:900;font-size:24px;color:white;box-shadow:0 2px 9px #183e3040;}
.sgj-wheel-pointer {position:absolute;top:-18px;left:50%;transform:translateX(-50%);color:#b55535;font-size:38px;z-index:3;line-height:1;text-shadow:0 1px white;}
.sgj-spin {min-width:220px;}
.sgj-wheel-idle {padding:55px 20px;text-align:center;color:#62746a;}
.sgj-wheel-idle>div {font-size:46px;margin-bottom:15px;}
.sgj-wheel-question {background:#fff;border:1px solid #dbe8d9;border-radius:18px;min-height:340px;padding:clamp(18px,3vw,28px);}
.sgj-wheel-question .sgj-options {grid-template-columns:1fr;gap:9px;}
.sgj-wheel-question .sgj-option {min-height:48px;}
.sgj-skill-name {display:inline-flex;align-items:center;gap:8px;border-radius:14px;background:#eaf4e7;padding:10px 16px;font-size:23px;font-weight:800;color:var(--sgj-deep);margin:6px 0 22px;}
.sgj-footer {display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;gap:8px;border-top:1px solid var(--sgj-border);padding:15px clamp(18px,4vw,38px);background:#f9fbf7;color:#65776b;font-size:12px;}
.sgj-clear {background:none !important;border:none !important;color:#496c59 !important;text-decoration:underline !important;padding:7px !important;font-size:12px !important;}
.sgj-loading {padding:30px;text-align:center;}
@media (max-width:780px) {
  .sgj-cards {grid-template-columns:1fr;}
  .sgj-card {padding:18px;}
  .sgj-card-icon {margin-bottom:9px;}
  .sgj-wallets {grid-template-columns:repeat(2,minmax(0,1fr));}
  .sgj-options {grid-template-columns:1fr;}
  .sgj-wheel-layout {grid-template-columns:1fr;}
  .sgj-wheel-question {min-height:0;}
  .sgj-wheel-idle {padding:20px;}
}
@media (max-width:440px) {
  .sgj-top {padding:15px !important;}
  .sgj-pill {display:none;}
  .sgj-tabs {gap:4px;padding:9px;}
  .sgj-tab {font-size:12px !important;padding:7px !important;flex:1 1 calc(50% - 8px);}
  .sgj-section-head {flex-direction:column;}
  .sgj-votes {gap:8px;}
  .sgj-vote {min-height:132px;font-size:16px !important;}
  .sgj-wheel-wrap {--sgj-wheel-size:260px;}
  .sgj-wheel-mark {width:34px;height:34px;font-size:21px;}
}
@media (prefers-reduced-motion:reduce) { .sgj *, .sgj *::before, .sgj *::after {transition-duration:0s !important;animation:none !important;} }

/* Jeux V1.1 — extensions isolées : aucun style global. */
.sgj .sgj-cards {grid-template-columns:repeat(3,minmax(0,1fr));}
.sgj .sgj-card:nth-child(4) .sgj-card-icon {background:#efeafa;}
.sgj .sgj-card:nth-child(5) .sgj-card-icon {background:#f8ebd9;}
.sgj .sgj-ble-meters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px;}
.sgj .sgj-ble-meter {padding:14px 13px;background:#f5f9f3;border:1px solid #d9e7d8;border-radius:14px;min-width:0;}
.sgj .sgj-ble-meter-label {display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px;margin-bottom:10px;flex-wrap:wrap;}
.sgj .sgj-ble-meter-label strong {font-size:13px;color:#234b36;}
.sgj .sgj-ble-meter-label span {color:#607464;white-space:nowrap;font-variant-numeric:tabular-nums;}
.sgj .sgj-ble-track {height:8px;background:#e1e8e0;border-radius:8px;overflow:hidden;}
.sgj .sgj-ble-track span {display:block;height:100%;background:#55936b;border-radius:8px;transition:width .2s ease;}
.sgj .sgj-ble-options .sgj-option {min-height:115px;}
.sgj .sgj-ble-effect {display:flex;gap:5px 9px;flex-wrap:wrap;align-items:center;font-size:13px;}
.sgj .sgj-ble-effect span {display:inline-block;font-weight:700;white-space:nowrap;}
@media (max-width:780px) {
 .sgj .sgj-cards {grid-template-columns:1fr;}
 .sgj .sgj-ble-meters {grid-template-columns:1fr;gap:7px;}
 .sgj .sgj-ble-meter {padding:9px 12px;}
 .sgj .sgj-ble-meter-label {margin-bottom:6px;}
 .sgj .sgj-ble-options .sgj-option {min-height:58px;}
}


/* V1.2 — Chasse aux talents + aventure coopérative, aucun sélecteur global. */
.sgj .sgj-card:nth-child(6) .sgj-card-icon {background:#e5f2f6;}
.sgj .sgj-card:nth-child(7) .sgj-card-icon {background:#f7e7ec;}
.sgj .sgj-hunt-intro {padding:14px 18px;background:#e9f3e7;border-radius:14px;margin-bottom:17px;}
.sgj .sgj-hunt-intro p {margin:0;}
.sgj .sgj-hunt-map {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;background:linear-gradient(145deg,#e2f2e2,#f5ecda);padding:18px;border-radius:20px;border:1px solid #c6dac5;}
.sgj .sgj-hunt-place {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;min-height:190px;padding:16px 10px!important;background:#fffdf4!important;color:#244c38!important;border:2px solid #c9ddc5!important;border-radius:16px!important;box-shadow:0 5px 0 #abc3ab60;}
.sgj .sgj-hunt-place:hover:not(:disabled) {background:white!important;border-color:#488964!important;transform:translateY(-2px);}
.sgj .sgj-hunt-place.is-found {background:#e7f5e8!important;border-color:#a4c9ab!important;opacity:1!important;}
.sgj .sgj-hunt-place-icon {font-size:32px;line-height:1.25;}
.sgj .sgj-hunt-place strong {font-size:15px;line-height:1.3;}
.sgj .sgj-hunt-place>span:not(.sgj-hunt-place-icon):not(.sgj-hunt-badge) {font-size:12px;line-height:1.35;color:#53685b;min-height:30px;}
.sgj .sgj-hunt-badge {background:#d6ead9;border-radius:20px;padding:5px 9px;font-size:12px;font-weight:800;white-space:nowrap;}
.sgj .sgj-hunt-place.is-found .sgj-hunt-badge {background:#2c7753;color:white;}
.sgj .sgj-village-start {padding:25px;text-align:center;background:linear-gradient(145deg,#e8f2e0,#fff8e8);border:1px solid #dce8d0;border-radius:20px;}
.sgj .sgj-village-start p {max-width:590px;margin:18px auto 0;color:#586b5c;}
.sgj .sgj-team-buttons {display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:15px;}
.sgj .sgj-village-progress-head {display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 7px;color:#2b6048;}
.sgj .sgj-village-progress-head strong {font-size:36px;line-height:1.1;font-variant-numeric:tabular-nums;}
.sgj .sgj-village-progress-head strong small {font-size:18px;color:#687d6b;}
.sgj .sgj-village-progress-head>span {font-size:13px;font-weight:700;}
.sgj .sgj-village-bar {height:13px;margin:7px 0 18px;}
.sgj .sgj-village-steps {display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;margin:5px 0 24px;}
.sgj .sgj-village-step {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;padding:9px 2px;border-radius:12px;background:#f0f2eb;border:1px solid #e0e6db;opacity:.56;}
.sgj .sgj-village-step span {font-size:22px;line-height:1.2;}
.sgj .sgj-village-step small {font-size:11px;font-weight:800;}
.sgj .sgj-village-step.is-played {opacity:1;background:#e6f4e8;border-color:#a6cfaf;}
.sgj .sgj-village-step.is-current {opacity:1;background:#fff1d6;border-color:#d5b975;box-shadow:0 0 0 2px #f4dfb7;}
@media(max-width:780px){
 .sgj .sgj-hunt-map {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px;}
 .sgj .sgj-hunt-place {min-height:165px;}
 .sgj .sgj-village-steps {grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;}
}
@media(max-width:390px){
 .sgj .sgj-hunt-place {min-height:160px;padding:10px 5px!important;}
 .sgj .sgj-hunt-place strong {font-size:13px;}
 .sgj .sgj-village-start {padding:14px;}
}

/* V1.3 — Présentation et mode stand, styles exclusivement locaux. */
.sgj .sgj-stand-controls {display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.sgj .sgj-stand-controls .sgj-btn {font-size:13px!important;min-height:40px;padding:9px 13px!important;}
.sgj .sgj-stand-launch {white-space:nowrap;}
.sgj.sgj-stand,.sgj.sgj-stand:fullscreen {
  position:fixed!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
  transform:none!important;display:flex!important;flex-direction:column!important;
  margin:0!important;border:0!important;border-radius:0!important;width:100vw!important;height:100vh!important;
  height:100dvh!important;max-width:none!important;z-index:2147483000!important;
  background:#fffdf7!important;box-shadow:none!important;overflow-y:auto!important;overscroll-behavior:contain;
}
.sgj.sgj-stand .sgj-top {position:sticky;top:0;z-index:5;min-height:73px;border-bottom:1px solid #d4e5d4;}
.sgj.sgj-stand .sgj-tabs {position:relative;z-index:1;}
.sgj.sgj-stand .sgj-body {flex:1;min-height:0;width:100%;max-width:1400px;margin:0 auto;}
.sgj.sgj-stand .sgj-footer {display:none;}
.sgj.sgj-stand .sgj-btn {min-height:56px;font-size:17px!important;}
.sgj.sgj-stand .sgj-option {min-height:94px;font-size:17px!important;}
.sgj.sgj-stand .sgj-tab {font-size:16px!important;min-height:48px;}
.sgj.sgj-stand .sgj-vote {min-height:185px;font-size:25px!important;}
.sgj .sgj-attract {
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  min-height:calc(100dvh - 126px);padding:clamp(24px,5vw,64px) clamp(16px,4vw,42px);
  border-radius:20px;overflow:hidden;
  background:radial-gradient(circle at 12% 18%,#d4e8cb 0,transparent 34%),radial-gradient(circle at 86% 75%,#f6e1b5 0,transparent 32%),linear-gradient(130deg,#f3fbec,#fff9ed 76%);
}
.sgj.sgj-stand.sgj-attracting .sgj-body {max-width:none;padding:0;}
.sgj.sgj-stand.sgj-attracting .sgj-attract {min-height:calc(100dvh - 73px);border-radius:0;}
.sgj .sgj-attract-label {font-size:clamp(12px,1.55vw,17px);font-weight:900;color:#315b45;letter-spacing:.1em;margin-bottom:13px;}
.sgj .sgj-attract h2 {font-size:clamp(32px,4.4vw,62px);line-height:1.08;max-width:960px;margin:0 auto 14px;z-index:1;}
.sgj .sgj-attract-lead {font-size:clamp(16px,1.9vw,23px);color:#435d4a;max-width:820px;margin:0 auto 28px;z-index:1;}
.sgj .sgj-attract-feature {display:grid;grid-template-columns:minmax(115px,240px) minmax(280px,1fr);align-items:center;gap:clamp(18px,3vw,42px);
  position:relative;z-index:1;max-width:960px;width:100%;min-height:250px;text-align:left;padding:clamp(20px,3vw,36px);
  background:#fffcf5ec;border:2px solid #d5e5ce;box-shadow:0 12px 32px #29543a18;border-radius:24px;}
.sgj .sgj-attract-icon {font-size:clamp(78px,9vw,130px);line-height:1.3;display:grid;place-items:center;background:linear-gradient(150deg,#deefdb,#ffedcd);border-radius:25px;min-height:195px;}
.sgj .sgj-attract-content .sgj-eyebrow {color:#886023;}
.sgj .sgj-attract-content h3 {font-size:clamp(26px,3.5vw,43px);margin-bottom:11px;}
.sgj .sgj-attract-content>p:not(.sgj-eyebrow) {font-size:clamp(17px,1.6vw,20px);margin-bottom:13px;color:#3b5647;}
.sgj .sgj-attract-note {display:inline-block;font-size:14px;font-weight:800;color:#32664b;background:#e8f5e5;border-radius:99px;padding:7px 13px;}
.sgj .sgj-attract-actions {display:flex;justify-content:center;align-items:center;gap:15px;flex-wrap:wrap;margin:25px 0 14px;z-index:1;}
.sgj .sgj-attract-play {background:#276b49!important;font-size:20px!important;min-height:65px!important;padding:15px 35px!important;}
.sgj .sgj-attract-all {min-height:65px!important;padding:15px 35px!important;}
.sgj .sgj-attract-foot {z-index:1;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:22px;margin:9px 0;}
.sgj .sgj-attract-dots {display:flex;gap:10px;align-items:center;justify-content:center;}
.sgj .sgj-attract-dot {border:2px solid #477e59!important;background:#fff!important;width:18px;height:18px;border-radius:50%!important;padding:0!important;min-height:18px!important;}
.sgj .sgj-attract-dot.is-active {background:#2c7350!important;box-shadow:0 0 0 3px #a9d5b0;}
.sgj .sgj-attract-pause {font-size:13px!important;color:#315a47!important;border:0!important;background:transparent!important;text-decoration:underline;padding:8px!important;min-height:37px!important;}
.sgj .sgj-attract-disclaimer {z-index:1;font-size:12px;color:#617665;margin:15px 0 0;}
.sgj .sgj-attract-orb {position:absolute;z-index:0;font-size:60px;opacity:.23;pointer-events:none;}
.sgj .sgj-attract-orb-one {left:5%;top:25%;animation:sgj-float 6s ease-in-out infinite;}
.sgj .sgj-attract-orb-two {right:5%;top:19%;animation:sgj-float 7s ease-in-out -2s infinite;}
.sgj .sgj-attract-orb-three {right:8%;bottom:12%;animation:sgj-float 8s ease-in-out -3s infinite;}
.sgj .sgj-card {animation:sgj-card-in .3s ease-out backwards;}
.sgj .sgj-result-emoji {animation:sgj-pop .5s ease-out both;}
.sgj .sgj-feedback-good {animation:sgj-card-in .25s ease-out both;}
@keyframes sgj-float {0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-18px) rotate(7deg)}}
@keyframes sgj-card-in {from{opacity:.3;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes sgj-pop {0%{transform:scale(.82)}70%{transform:scale(1.09)}100%{transform:scale(1)}}
@media(max-width:780px) {
  .sgj .sgj-attract-feature {grid-template-columns:1fr;gap:15px;text-align:center;max-width:530px;}
  .sgj .sgj-attract-icon {min-height:125px;font-size:73px;}
  .sgj .sgj-attract {min-height:0;}
  .sgj.sgj-stand .sgj-top {padding:12px!important;}
  .sgj.sgj-stand .sgj-stand-controls .sgj-btn {font-size:12px!important;min-height:42px;}
  .sgj.sgj-stand .sgj-attract {min-height:calc(100dvh - 115px);}
}
@media(max-width:500px) {
  .sgj .sgj-stand-controls {width:100%;justify-content:flex-start;}
  .sgj .sgj-attract h2 {font-size:31px;}
  .sgj .sgj-attract-feature {padding:15px;}
  .sgj .sgj-attract-actions {width:100%;gap:8px;}
  .sgj .sgj-attract-actions .sgj-btn {width:100%;min-height:52px!important;font-size:15px!important;}
  .sgj .sgj-attract-orb {font-size:30px;}
  .sgj .sgj-attract-foot {gap:8px;}
  .sgj .sgj-attract-lead {font-size:15px;}
  .sgj.sgj-stand .sgj-option {min-height:70px;}
  .sgj.sgj-stand .sgj-vote {min-height:140px;}
}
@media(prefers-reduced-motion:reduce){
  .sgj .sgj-attract-orb,.sgj .sgj-card,.sgj .sgj-result-emoji,.sgj .sgj-feedback-good {animation:none!important;}
}
/* Stand mobile : le bouton Jouer doit rester facilement atteignable sans défilement. */
@media(max-width:500px) {
 .sgj.sgj-stand .sgj-top {gap:5px;padding:8px 10px!important;}
 .sgj.sgj-stand .sgj-brand > span {width:36px;height:36px;font-size:22px;}
 .sgj.sgj-stand .sgj-brand strong {font-size:15px;}
 .sgj.sgj-stand .sgj-brand div > span {display:none;}
 .sgj.sgj-stand .sgj-stand-controls {flex-wrap:nowrap;justify-content:space-between;gap:3px;}
 .sgj.sgj-stand .sgj-stand-controls .sgj-btn {flex:1;min-width:0;min-height:38px!important;font-size:11px!important;padding:7px 4px!important;line-height:1.15!important;white-space:normal;}
 .sgj.sgj-stand.sgj-attracting .sgj-attract {justify-content:flex-start;padding:17px 13px 14px;}
 .sgj .sgj-attract-label {font-size:10px;letter-spacing:.045em;margin-bottom:6px;}
 .sgj .sgj-attract h2 {font-size:27px;line-height:1.1;margin-bottom:6px;}
 .sgj .sgj-attract-lead {font-size:13px;line-height:1.3;margin-bottom:12px;}
 .sgj .sgj-attract-feature {min-height:0;gap:6px;padding:11px;border-radius:16px;}
 .sgj .sgj-attract-icon {min-height:74px;font-size:51px;border-radius:13px;}
 .sgj .sgj-attract-content .sgj-eyebrow {font-size:10px!important;margin-bottom:4px!important;}
 .sgj .sgj-attract-content h3 {font-size:22px;line-height:1.15;margin-bottom:6px;}
 .sgj .sgj-attract-content>p:not(.sgj-eyebrow) {font-size:13px;line-height:1.35;margin-bottom:8px;}
 .sgj .sgj-attract-note {font-size:11px;padding:5px 10px;}
 .sgj .sgj-attract-actions {margin:11px 0 5px;gap:6px;}
 .sgj .sgj-attract-actions .sgj-btn {min-height:43px!important;font-size:14px!important;padding:8px!important;}
 .sgj .sgj-attract-foot {margin:4px 0;gap:3px;}
 .sgj .sgj-attract-dot {width:15px;height:15px;min-height:15px!important;}
 .sgj .sgj-attract-pause {font-size:11px!important;min-height:29px!important;padding:3px!important;}
 .sgj .sgj-attract-disclaimer {font-size:10px;line-height:1.3;margin:5px 0 0;}
}


/* V1.4 — Grand village animé pour Mission SEL */
.sgj .sgj-mission-scene {display:grid;grid-template-columns:minmax(300px,1.08fr) minmax(260px,.92fr);gap:18px;align-items:stretch;margin-bottom:22px;}
.sgj .sgj-village-board {position:relative;min-height:390px;border:1px solid #d8e8d4;border-radius:22px;overflow:hidden;background:linear-gradient(180deg,#dff2ff 0 42%,#f3f1de 42% 50%,#bfe4b8 50% 100%);box-shadow:inset 0 -12px 0 #a8d29e,inset 0 0 0 1px #ffffff70;}
.sgj .sgj-village-sun {position:absolute;right:20px;top:16px;font-size:30px;animation:sgj-pulse-soft 3.5s ease-in-out infinite;}
.sgj .sgj-village-cloud {position:absolute;font-size:28px;opacity:.72;animation:sgj-cloud 18s linear infinite;}
.sgj .sgj-village-cloud-one {top:14px;left:-60px;animation-duration:18s;}
.sgj .sgj-village-cloud-two {top:64px;left:-110px;animation-duration:23s;animation-delay:-7s;}
.sgj .sgj-village-plaza {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:132px;height:132px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff6d8,#efdfb1 55%,#dcc88a 100%);border:5px solid #fff7de;display:grid;place-items:center;text-align:center;box-shadow:0 8px 20px #5d70480f;z-index:1;}
.sgj .sgj-village-plaza span {font-size:30px;font-weight:900;color:#275947;line-height:1;}
.sgj .sgj-village-plaza small {display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#6f6136;}
.sgj .sgj-village-path {position:absolute;background:#f3e5bb;border-radius:999px;opacity:.85;}
.sgj .sgj-village-path-h {left:16%;right:16%;top:calc(50% - 8px);height:16px;}
.sgj .sgj-village-path-v {top:16%;bottom:16%;left:calc(50% - 8px);width:16px;}
.sgj .sgj-village-route {position:absolute;inset:0;z-index:2;overflow:visible;pointer-events:none;}
.sgj .sgj-village-route line {stroke:#2b7b53;stroke-width:1.8;stroke-linecap:round;stroke-dasharray:4 3;animation:sgj-dash 1s linear infinite;}
.sgj .sgj-village-route circle {fill:#2b7b53;}
.sgj .sgj-village-token {position:absolute;left:calc(var(--x1) - 18px);top:calc(var(--y1) - 18px);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:900;color:#fff;background:linear-gradient(145deg,#2d7a54,#164531);box-shadow:0 8px 20px #1d503866;z-index:3;animation:sgj-token-move 1.8s ease-in-out infinite alternate, sgj-pulse-soft 1.8s ease-in-out infinite;}
.sgj .sgj-village-house {position:absolute;transform:translate(-50%,-50%);width:168px;max-width:38%;background:#fffef8;border:1px solid #d8e7d5;border-radius:18px;padding:16px 12px 12px;text-align:center;box-shadow:0 10px 22px #21483612;z-index:2;animation:sgj-float-house 4.8s ease-in-out infinite;animation-delay:var(--delay);}
.sgj .sgj-village-house::before {content:'';position:absolute;inset:8px;border-radius:14px;background:var(--house-tint);opacity:.7;z-index:-1;}
.sgj .sgj-village-house.is-from,.sgj .sgj-village-house.is-to {border-color:#4b9166;box-shadow:0 0 0 4px #d9f0e0,0 12px 26px #21483618;}
.sgj .sgj-village-house.is-to {transform:translate(-50%,-50%) scale(1.03);}
.sgj .sgj-village-house-roof {position:absolute;left:50%;top:-17px;transform:translateX(-50%);width:0;height:0;border-left:42px solid transparent;border-right:42px solid transparent;border-bottom:26px solid #c95e4f;filter:drop-shadow(0 2px 0 #9b463b);}
.sgj .sgj-village-avatar {font-size:34px;line-height:1;margin-bottom:6px;}
.sgj .sgj-village-label strong {display:block;font-size:17px;color:var(--sgj-deep);}
.sgj .sgj-village-label span {display:block;font-size:12px;color:var(--sgj-muted);margin-bottom:5px;}
.sgj .sgj-village-label small {display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#eff7eb;color:#275947;font-weight:800;font-size:12px;min-width:58px;}
.sgj .sgj-mission-side {padding:20px 20px 18px;border:1px solid #dfe9dc;border-radius:20px;background:linear-gradient(180deg,#fffdfa,#f6fbf1);display:flex;flex-direction:column;justify-content:flex-start;}
.sgj .sgj-mission-side > p:not(.sgj-eyebrow) {color:var(--sgj-muted);}
.sgj .sgj-village-banner {padding:14px 15px;border-radius:16px;background:#f0f5ea;border:1px solid #d8e7d4;color:#355243;margin:10px 0 14px;}
.sgj .sgj-village-banner strong {display:block;font-size:16px;margin-bottom:5px;color:#214936;}
.sgj .sgj-village-banner.is-transfer {background:#e8f6ec;border-color:#bfe0cb;}
.sgj .sgj-mission-legend {list-style:none;padding:0;margin:0;display:grid;gap:9px;}
.sgj .sgj-mission-legend li {display:flex;align-items:center;gap:10px;padding:9px 11px;background:#fff;border:1px solid #e0ebde;border-radius:13px;font-size:14px;color:#456453;}
.sgj .sgj-mission-legend span {display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#eef6ea;font-size:20px;flex:0 0 auto;}
@keyframes sgj-float-house {0%,100% {transform:translate(-50%,-50%) translateY(0);} 50% {transform:translate(-50%,-50%) translateY(-6px);}}
@keyframes sgj-token-move {from {left:calc(var(--x1) - 18px);top:calc(var(--y1) - 18px);} to {left:calc(var(--x2) - 18px);top:calc(var(--y2) - 18px);}}
@keyframes sgj-cloud {from {transform:translateX(0);} to {transform:translateX(calc(100vw + 180px));}}
@keyframes sgj-dash {to {stroke-dashoffset:-14;}}
@keyframes sgj-pulse-soft {0%,100% {transform:scale(1);} 50% {transform:scale(1.08);}}
@media (max-width: 920px) {
  .sgj .sgj-mission-scene {grid-template-columns:1fr;}
  .sgj .sgj-village-board {min-height:360px;}
}
@media (max-width: 640px) {
  .sgj .sgj-village-board {min-height:510px;}
  .sgj .sgj-village-house {max-width:44%; width:146px; padding:15px 10px 10px;}
  .sgj .sgj-village-house-roof {border-left-width:36px;border-right-width:36px;border-bottom-width:22px;top:-15px;}
  .sgj .sgj-village-plaza {width:114px;height:114px;}
  .sgj .sgj-village-path-h {left:10%;right:10%;}
  .sgj .sgj-village-path-v {top:12%;bottom:12%;}
}
@media (prefers-reduced-motion: reduce) {
  .sgj .sgj-village-house,
  .sgj .sgj-village-token,
  .sgj .sgj-village-cloud,
  .sgj .sgj-village-route line,
  .sgj .sgj-village-sun {animation:none !important;}
}

/* V1.5 — Portraits illustrés, mode enfants, sons facultatifs, tableau d'honneur. */
.sgj .sgj-village-token {z-index:2;}
.sgj .sgj-village-house {z-index:3;}
.sgj .sgj-village-avatar {position:relative;display:flex;justify-content:center;align-items:center;width:70px;height:70px;margin:0 auto 6px;}
.sgj .sgj-village-avatar img {display:block;width:66px;height:66px;object-fit:cover;border:3px solid white;border-radius:50%;box-shadow:0 4px 12px #284c3730;}
.sgj .sgj-village-avatar>span {position:absolute;bottom:-4px;right:-4px;background:white;border:1px solid #dbe5d5;border-radius:50%;font-size:19px;padding:2px;}
.sgj .sgj-mode-switch,.sgj .sgj-discover-buttons {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0 20px;}
.sgj .sgj-kid-stars {font-size:30px;letter-spacing:4px;margin:7px 0!important;}
.sgj .sgj-honors-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0 20px;}
.sgj .sgj-honors-summary>div {padding:22px;border-radius:17px;background:linear-gradient(120deg,#fff5db,#edf7e6);border:1px solid #dbe3d4;}
.sgj .sgj-honors-summary span {display:block;color:#475b4c;font-size:14px;}
.sgj .sgj-honors-summary strong {font-size:31px;color:#285a40;}
.sgj .sgj-honors-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.sgj .sgj-honor-row {padding:16px;border:1px solid #dce7d8;background:#fff;border-radius:15px;box-shadow:0 4px 15px #193a2c07;}
.sgj .sgj-honor-header {display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:14px;}
.sgj .sgj-honor-name {font-weight:800;color:#284a39;}
.sgj .sgj-honor-header strong {color:#24523b;white-space:nowrap;}
.sgj .sgj-honor-bar {height:9px;margin:13px 0 9px;background:#e2ebdf;border-radius:999px;overflow:hidden;}
.sgj .sgj-honor-bar>span {display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#95ca7b,#30744c);}
.sgj .sgj-honor-row small {font-size:12px;line-height:1.4;color:#647267;}
.sgj .sgj-honors-list+.sgj-note {margin-top:19px;}
.sgj .sgj-stand-controls [data-action='toggle-sound'] {white-space:nowrap;}
@media(max-width:700px) {
  .sgj .sgj-honors-list {grid-template-columns:1fr;}
  .sgj .sgj-honors-summary {grid-template-columns:1fr;}
  .sgj .sgj-village-avatar {width:58px;height:58px;}
  .sgj .sgj-village-avatar img {width:56px;height:56px;}
  .sgj .sgj-village-avatar>span {font-size:15px;}
}


/* V1.6 — village vivant et passeport du Gentil Séliste. Aucun style global. */
.sgj .sgj-v16-featured {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin:26px 0 12px;padding:22px 24px;border-radius:20px;border:1px solid #cfe4c7;background:linear-gradient(120deg,#e4f3dc,#fff6df);}
.sgj .sgj-v16-featured h3 {font-size:23px;margin:5px 0 9px;}
.sgj .sgj-v16-featured p {margin:0;color:#4b6958;}
.sgj .sgj-v16-featured-actions,.sgj .sgj-attract-more {display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
.sgj .sgj-attract-more {justify-content:center;position:relative;z-index:1;}
.sgj .sgj-passport-hero {display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:28px;margin:12px 0 24px;background:linear-gradient(120deg,#edf5e5,#fff3d8);border:2px solid #d6e5c9;border-radius:24px;}
.sgj .sgj-passport-medal {flex:0 0 auto;display:grid;place-items:center;width:104px;height:104px;font-size:54px;background:#fff9e6;border:3px solid #dbc586;border-radius:50%;box-shadow:0 7px 24px #7d65241d;}
.sgj .sgj-passport-title {flex:1 1 220px;}
.sgj .sgj-passport-title h3 {font-size:clamp(21px,3vw,30px);margin-bottom:6px;}
.sgj .sgj-passport-title p:last-child {margin:0;color:#516958;}
.sgj .sgj-passport-progress {flex:0 0 155px;text-align:center;}
.sgj .sgj-passport-progress-number {font-size:44px;font-weight:900;color:#276148;}
.sgj .sgj-passport-progress-number small {font-size:16px;color:#667966;}
.sgj .sgj-passport-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.sgj .sgj-passport-stamp {display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:12px;padding:17px;background:#f8faf6;border:2px dashed #cad5c6;border-radius:18px;}
.sgj .sgj-passport-stamp.is-earned {background:#f1f9ed;border:2px solid #79b48a;box-shadow:0 4px 15px #41735114;}
.sgj .sgj-stamp-seal {display:grid;place-items:center;width:75px;height:75px;font-size:33px;background:#e5e9e1;border:2px dashed #bdcbbb;border-radius:50%;filter:grayscale(.65);}
.sgj .is-earned .sgj-stamp-seal {background:#def2d8;border:3px double #4b8a59;transform:rotate(-10deg);filter:none;}
.sgj .sgj-passport-stamp h3 {font-size:17px;margin-bottom:2px;}
.sgj .sgj-passport-stamp p {font-size:13px;color:#5b6f61;margin-bottom:4px;}
.sgj .sgj-passport-stamp strong {color:#346549;font-size:13px;}
.sgj .sgj-passport-stamp .sgj-btn {grid-column:2;justify-self:start;font-size:13px!important;padding:8px 12px!important;min-height:37px;}
.sgj .sgj-explore-layout {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:16px;}
.sgj .sgj-explore-map {position:relative;min-height:535px;overflow:hidden;border-radius:24px;border:2px solid #d8e1c7;box-shadow:0 8px 24px #1e432010;background:linear-gradient(#d9efff,#99c487);isolation:isolate;}
.sgj .sgj-explore-art {position:absolute;inset:0;width:100%;height:100%;z-index:-1;}
.sgj .sgj-explore-pin {position:absolute;transform:translate(-50%,-50%);z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:2px solid #fff!important;background:#fffbefef!important;color:#244e34!important;min-width:83px;max-width:130px;padding:8px 9px!important;border-radius:15px!important;box-shadow:0 5px 13px #244c3f2b;font-size:23px!important;line-height:1.1!important;transition:transform .2s ease,box-shadow .2s ease;}
.sgj .sgj-explore-pin-label {font-size:11px;line-height:1.2;font-weight:800;text-align:center;}
.sgj .sgj-explore-pin.is-selected {border-color:#2f8a5c!important;background:#e6f8e7!important;box-shadow:0 0 0 4px #dbf1d4,0 7px 20px #244c3f30;}
.sgj .sgj-explore-pin:hover {transform:translate(-50%,-50%) scale(1.06);}
.sgj .sgj-explore-cloud {position:absolute;top:11%;left:4%;font-size:36px;opacity:.85;z-index:0;animation:sgj-v16-cloud 24s linear infinite;pointer-events:none;}
.sgj .sgj-explore-bird {position:absolute;top:14%;right:25%;font-size:27px;animation:sgj-v16-bird 5s ease-in-out infinite;pointer-events:none;}
.sgj .sgj-explore-walker {position:absolute;bottom:23%;left:37%;font-size:27px;z-index:1;pointer-events:none;animation:sgj-v16-walk 13s ease-in-out infinite alternate;}
.sgj .sgj-explore-walker-two {bottom:15%;left:35%;animation-duration:17s;animation-delay:-6s;}
.sgj .sgj-explore-mapnote {position:absolute;bottom:8px;left:12px;max-width:75%;z-index:3;background:#fffaf0de;color:#3e604d;padding:3px 8px;border-radius:9px;font-size:11px;margin:0;}
.sgj .sgj-explore-details {display:flex;flex-direction:column;align-items:flex-start;gap:11px;border:1px solid #dfe7d2;background:linear-gradient(145deg,#f8fdf3,#fff8e9);border-radius:22px;padding:22px;}
.sgj .sgj-explore-avatar {width:82px;height:82px;border:3px solid #d5e8c8;box-shadow:0 3px 12px #244c3f22;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#fff;}
.sgj .sgj-explore-avatar img {width:100%;height:100%;object-fit:cover;}
.sgj .sgj-explore-big-icon {font-size:42px;}
.sgj .sgj-explore-details h3 {font-size:25px;margin:0;}
.sgj .sgj-explore-details p {margin:0;color:#516a59;}
.sgj .sgj-explore-details .sgj-btn {max-width:100%;white-space:normal;text-align:center;}
.sgj .sgj-explore-places {margin-top:22px;}
.sgj .sgj-explore-places-grid {display:flex;flex-wrap:wrap;gap:7px;}
.sgj .sgj-explore-placebtn {border:1px solid #c9dbc8!important;background:#f5fbf2!important;border-radius:10px!important;color:#315d42!important;padding:9px 12px!important;font-size:13px!important;font-weight:700!important;}
.sgj .sgj-explore-placebtn.is-selected {border-color:#448d62!important;background:#dbefd8!important;}
.sgj .sgj-v16-bell {position:absolute;z-index:0;top:31%;left:calc(50% - 17px);font-size:34px;opacity:.8;}
.sgj .sgj-v16-tree {position:absolute;z-index:0;font-size:27px;}
.sgj .sgj-v16-tree-one {top:52%;left:4%;}.sgj .sgj-v16-tree-two {top:47%;right:5%;}
.sgj .sgj-v16-fountain {position:absolute;z-index:1;top:calc(50% + 25px);left:calc(50% - 15px);font-size:25px;opacity:.86;}
.sgj .sgj-v16-butterfly {position:absolute;z-index:0;top:35%;left:11%;font-size:22px;animation:sgj-v16-bird 6s ease-in-out infinite;}
.sgj .sgj-v16-traveler {position:absolute;z-index:3;top:calc(var(--y1) - 13px);left:calc(var(--x1) - 13px);font-size:27px;pointer-events:none;animation:sgj-token-move 2.4s ease-in-out infinite alternate;}
@keyframes sgj-v16-cloud {0%{transform:translateX(-80px)}100%{transform:translateX(820px)}}
@keyframes sgj-v16-bird {0%,100%{transform:translate(0,0)}50%{transform:translate(20px,-13px)}}
@keyframes sgj-v16-walk {from{transform:translateX(0)}to{transform:translateX(175px)}}
@media(max-width:980px) { .sgj .sgj-explore-layout {grid-template-columns:1fr;} .sgj .sgj-explore-map {min-height:515px;} }
@media(max-width:640px) { .sgj .sgj-passport-grid {grid-template-columns:1fr;} .sgj .sgj-passport-stamp {grid-template-columns:68px minmax(0,1fr);} .sgj .sgj-stamp-seal {width:63px;height:63px;font-size:26px;}
  .sgj .sgj-explore-map {min-height:400px;} .sgj .sgj-explore-pin {min-width:68px;max-width:88px;padding:7px 5px!important;font-size:20px!important;} .sgj .sgj-explore-pin-label {font-size:9px;} .sgj .sgj-explore-details {padding:20px;} .sgj .sgj-explore-places-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));} .sgj .sgj-explore-placebtn {font-size:12px!important;padding:7px!important;} }
@media(max-width:380px) {.sgj .sgj-passport-hero {padding:17px;} .sgj .sgj-explore-pin {max-width:77px;min-width:62px;font-size:18px!important;} .sgj .sgj-explore-pin-label {font-size:8px;} .sgj .sgj-explore-map {min-height:370px;}}
@media(prefers-reduced-motion:reduce) {.sgj .sgj-explore-cloud,.sgj .sgj-explore-bird,.sgj .sgj-explore-walker,.sgj .sgj-v16-butterfly,.sgj .sgj-v16-traveler {animation:none!important;}}

/* V1.6.0 : sur petit écran la salle des rencontres reste visible au-dessus de la légende. */
@media(max-width:640px){.sgj .sgj-explore-pin[data-place="ble"]{top:73% !important;}}


/* V1.6.1 — Mise en page de la page officielle « Jouons avec le SEL » uniquement.
   WordPress centre déjà ses blocs (is-layout-constrained). L'ancien left:50%
   + translateX(-50%) décalait donc le module une deuxième fois. */
body.page-id-529 main .wp-block-post-title {
  display: none !important;
}
body.page-id-529 .wp-block-post-content > .sgj:not(.sgj-stand) {
  left: auto !important;
  transform: none !important;
  margin: 12px auto 30px !important;
  width: min(1120px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

/* V1.7 — choix nuancés et justification après réponse. */
.sgj .sgj-option.is-alternative {border:2px solid #d69a45 !important;background:#fff5df !important;opacity:1 !important;}
.sgj .sgj-situation {color:#395c47;background:#f2f7ee;padding:14px 16px;border-radius:12px;border:1px solid #d9e8d3;margin:15px 0 18px;line-height:1.55;}
.sgj .sgj-justification {padding:11px 13px;border-left:4px solid #b88738;background:#fff8e9;border-radius:4px 9px 9px 4px;color:#604a28;line-height:1.55;}
.sgj .sgj-justification strong {font-size:inherit;}

/* V1.7 : scénarios adultes plus longs, choix présentés en lignes lisibles. */
.sgj .sgj-challenge .sgj-options,.sgj .sgj-wheel-question .sgj-options {grid-template-columns:1fr;}
.sgj .sgj-challenge .sgj-option,.sgj .sgj-wheel-question .sgj-option {min-height:70px;}


/* V1.7.1 : confirmation d'effacement locale, sans fenêtre JavaScript native. */
.sgj .sgj-clear-actions {display:flex;flex-direction:column;align-items:flex-end;gap:5px;}
.sgj .sgj-clear-feedback {font-size:13px;color:#275947;font-weight:800;}
.sgj .sgj-clear-confirm {width:100%;max-width:580px;background:#fffaf2;border:1px solid #d2c5a4;border-radius:15px;padding:16px 18px;box-shadow:0 5px 16px #1d47331a;color:#37483e;}
.sgj .sgj-clear-confirm strong {display:block;font-size:17px;color:#334a3d;}
.sgj .sgj-clear-confirm p {margin:7px 0 14px;font-size:14px;line-height:1.5;}
.sgj .sgj-clear-confirm-actions {display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.sgj .sgj-clear-confirm-actions .sgj-btn {min-height:43px;font-size:14px!important;}
.sgj .sgj-btn-danger {background:#b52620!important;border:1px solid #a31f1a!important;color:#fff!important;}
.sgj .sgj-btn-danger:hover {background:#8d1d19!important;color:#fff!important;}
@media (max-width:540px) {
  .sgj .sgj-clear-actions {align-items:stretch;width:100%;}
  .sgj .sgj-clear-confirm {max-width:none;}
  .sgj .sgj-clear-confirm-actions {flex-direction:column;}
  .sgj .sgj-clear-confirm-actions .sgj-btn {width:100%;}
}

/* V1.7.2 — Panneau de remise à zéro local, évite les confirmations génériques WordPress */
.sgj .sgj-results-tools {display:flex;flex-direction:column;gap:8px;max-width:100%;}
.sgj .sgj-results-details {font-size:14px;max-width:min(530px,100%);}
.sgj .sgj-results-details > summary {cursor:pointer;display:list-item;padding:8px 0;color:#2c614c;font-weight:800;line-height:1.4;}
.sgj .sgj-results-details > summary:hover {text-decoration:underline;}
.sgj .sgj-results-panel {margin-top:10px;padding:17px;border:1px solid #cbdccd;border-radius:13px;background:#f9fdf7;max-width:100%;color:#314e3b;box-shadow:0 3px 8px #2446330e;}
.sgj .sgj-results-panel p {margin:0 0 10px;font-size:14px;line-height:1.5;}
.sgj .sgj-results-consent {display:flex;align-items:flex-start;gap:11px;padding:11px 7px;font-weight:700;font-size:14px;line-height:1.5;cursor:pointer;}
.sgj .sgj-results-consent input {width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#275947;cursor:pointer;}
.sgj .sgj-results-controls {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px;}
.sgj .sgj-results-apply {padding:11px 23px;border-radius:11px;color:white;background:#285d46;border:1px solid #285d46;font-size:15px;font-weight:800;min-height:46px;cursor:pointer;}
.sgj .sgj-results-apply:disabled {opacity:.45;cursor:not-allowed;}
.sgj .sgj-results-help {font-size:12px;color:#52695b;max-width:260px;}
.sgj .sgj-results-apply:focus-visible {outline:3px solid #e7a943;outline-offset:3px;}
.sgj .sgj-clear-feedback {display:block;font-size:13px;color:#26654b;font-weight:800;}


/* V1.7.3 — Cartes de titres responsives en modes site et stand.
   Les h2 sont focalisés par JavaScript pour l'accessibilité (tabindex=-1) :
   leur contour natif produisait un grand rectangle noir. Il ne s'agit pas
   d'un bouton ; l'indication visuelle du focus reste disponible sur les commandes. */
.sgj {
  --sgj-title-bg: linear-gradient(120deg,#e0f1df,#edf7e6);
  --sgj-title-ink: #245b40;
  --sgj-slide-bg: linear-gradient(115deg,#e3f0e1,#f0f7e6);
  --sgj-slide-ink: #285743;
}
.sgj[data-sgj-view="mission"] {--sgj-title-bg:linear-gradient(115deg,#deedfb,#ebf5ff);--sgj-title-ink:#244f73;}
.sgj[data-sgj-view="quiz"]    {--sgj-title-bg:linear-gradient(115deg,#fde6e1,#fff2e9);--sgj-title-ink:#803e36;}
.sgj[data-sgj-view="wheel"]   {--sgj-title-bg:linear-gradient(115deg,#fff0cc,#fff7df);--sgj-title-ink:#73511c;}
.sgj[data-sgj-view="help"]    {--sgj-title-bg:linear-gradient(115deg,#dff3ec,#edf9f3);--sgj-title-ink:#235f50;}
.sgj[data-sgj-view="ble"]     {--sgj-title-bg:linear-gradient(115deg,#ece4f9,#f7f0ff);--sgj-title-ink:#5b427c;}
.sgj[data-sgj-view="hunt"]    {--sgj-title-bg:linear-gradient(115deg,#e2f0fa,#edf7fc);--sgj-title-ink:#2a5273;}
.sgj[data-sgj-view="village"] {--sgj-title-bg:linear-gradient(115deg,#e3f1dd,#f2f8e7);--sgj-title-ink:#2a5f3c;}
.sgj[data-sgj-view="passport"]{--sgj-title-bg:linear-gradient(115deg,#fff0cf,#fff9e8);--sgj-title-ink:#79561e;}
.sgj[data-sgj-view="honors"]  {--sgj-title-bg:linear-gradient(115deg,#fff0d5,#f9f5e5);--sgj-title-ink:#79511c;}
.sgj[data-sgj-view="explore"] {--sgj-title-bg:linear-gradient(115deg,#dceef1,#ebf6f4);--sgj-title-ink:#2a5a5e;}

/* Priorité suffisante face aux tailles/bordures du thème WordPress. */
.sgj .sgj-body h2[tabindex="-1"] {
  display:inline-block !important;
  box-sizing:border-box !important;
  width:auto !important;
  max-width:100% !important;
  margin:0 0 13px !important;
  padding:12px clamp(14px,2.4vw,23px) !important;
  border:0 !important;
  outline:0 !important;
  border-radius:16px !important;
  box-shadow:0 4px 15px rgba(25,68,48,.08) !important;
  background:var(--sgj-title-bg) !important;
  color:var(--sgj-title-ink) !important;
  font:800 clamp(22px,2.45vw,30px)/1.2 system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;
  letter-spacing:-.025em !important;
  text-transform:none !important;
  text-decoration:none !important;
  text-align:left !important;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.sgj .sgj-body h2[tabindex="-1"]:focus,
.sgj .sgj-body h2[tabindex="-1"]:focus-visible {outline:0 !important;}
.sgj .sgj-welcome h2[tabindex="-1"] {text-align:center !important;}

/* Les titres secondaires restent lisibles même si le thème impose ses h3. */
.sgj .sgj-body h3 {
  font-size:clamp(17px,1.9vw,23px) !important;
  line-height:1.3 !important;
  letter-spacing:-.012em !important;
  overflow-wrap:anywhere;
}
.sgj .sgj-card h3 {font-size:19px !important;}
.sgj .sgj-v16-featured h3 {font-size:21px !important;}

/* Présentation plein écran : cartouche d'accueil centré et compact. */
.sgj .sgj-attract > h2[tabindex="-1"] {
  display:block !important;
  width:fit-content !important;
  max-width:min(92%,800px) !important;
  margin:0 auto 16px !important;
  padding:13px clamp(18px,3vw,28px) !important;
  text-align:center !important;
  font-size:clamp(25px,3.25vw,40px) !important;
  line-height:1.2 !important;
  border-radius:21px !important;
}
.sgj .sgj-attract-content h3 {
  display:inline-block !important;
  width:auto !important;
  max-width:100% !important;
  margin:4px 0 12px !important;
  padding:11px 17px !important;
  border:0 !important;
  outline:0 !important;
  border-radius:15px !important;
  background:var(--sgj-slide-bg) !important;
  box-shadow:none !important;
  color:var(--sgj-slide-ink) !important;
  font-size:clamp(20px,2.2vw,28px) !important;
  line-height:1.24 !important;
  font-weight:800 !important;
  text-transform:none !important;
  text-wrap:balance;
}
.sgj[data-sgj-slide="0"] {--sgj-slide-bg:#e2eefd;--sgj-slide-ink:#294f74;}
.sgj[data-sgj-slide="1"] {--sgj-slide-bg:#ffe7e1;--sgj-slide-ink:#813f36;}
.sgj[data-sgj-slide="2"] {--sgj-slide-bg:#fff0d1;--sgj-slide-ink:#79541d;}
.sgj[data-sgj-slide="3"] {--sgj-slide-bg:#e1f3ec;--sgj-slide-ink:#2b634d;}
.sgj[data-sgj-slide="4"] {--sgj-slide-bg:#eee4fa;--sgj-slide-ink:#60477f;}
.sgj[data-sgj-slide="5"] {--sgj-slide-bg:#e1edf9;--sgj-slide-ink:#2b5170;}
.sgj[data-sgj-slide="6"] {--sgj-slide-bg:#e1f1de;--sgj-slide-ink:#2d643f;}

/* Petits écrans : les cartouches s'adaptent sans couper les intitulés longs. */
@media(max-width:600px) {
  .sgj .sgj-body h2[tabindex="-1"] {
    font-size:clamp(20px,5.25vw,25px) !important;
    line-height:1.25 !important;
    padding:10px 13px !important;
    border-radius:13px !important;
  }
  .sgj .sgj-attract > h2[tabindex="-1"] {
    font-size:clamp(22px,5.65vw,29px) !important;
    max-width:100% !important;
    margin:0 auto 10px !important;
    padding:10px 14px !important;
  }
  .sgj .sgj-attract-content h3 {
    font-size:clamp(19px,5vw,23px) !important;
    padding:8px 12px !important;
    margin:3px 0 8px !important;
  }
}
@media(forced-colors:active) {
  .sgj .sgj-body h2[tabindex="-1"],.sgj .sgj-attract-content h3 {
    border:1px solid CanvasText !important;
    box-shadow:none !important;
  }
}
