.partageos-cubart{--cubart-teal:#2c7583;--cubart-green:#6baa75;--cubart-ink:#18333a;--cubart-face:clamp(64px,10vw,104px);--cubart-depth:clamp(32px,5vw,52px);font-family:inherit;color:var(--cubart-ink);margin:24px auto;max-width:1180px}.cubart-shell{border-radius:24px;overflow:hidden;background:linear-gradient(145deg,#f6faf9,#edf4f4);box-shadow:0 18px 50px rgba(17,46,53,.12);border:1px solid rgba(44,117,131,.12)}.cubart-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px 12px;gap:18px}.cubart-header h2{margin:0;font-size:clamp(28px,5vw,46px);letter-spacing:-.04em;color:#204f59}.cubart-kicker{margin:0 0 2px;font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#5a7a7f;font-weight:700}.cubart-lead{max-width:760px;margin:0 auto 18px;text-align:center;font-size:17px}.cubart-chooser{padding:12px 24px 28px}.cubart-work-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cubart-choice{appearance:none;border:1px solid rgba(44,117,131,.16);background:#fff;border-radius:16px;padding:0;overflow:hidden;text-align:left;display:grid;grid-template-columns:88px 1fr 34px;align-items:center;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;color:inherit}.cubart-choice:hover,.cubart-choice:focus-visible{transform:translateY(-2px);box-shadow:0 10px 24px rgba(24,51,58,.12);border-color:rgba(44,117,131,.45);outline:none}.cubart-choice-image{width:88px;height:78px;background:#e7eeee;overflow:hidden}.cubart-choice-image img{width:100%;height:100%;object-fit:contain}.cubart-choice-copy{padding:10px 12px}.cubart-choice-copy strong,.cubart-choice-copy small{display:block}.cubart-choice-copy strong{font-size:15px}.cubart-choice-copy small{color:#668087;margin-top:4px}.cubart-choice-play{color:var(--cubart-teal);font-size:18px}.cubart-progress-wrap{min-width:220px}.cubart-progress-text{display:block;text-align:right;font-size:13px;font-weight:700;margin-bottom:5px}.cubart-progress{height:7px;background:#d5e4e2;border-radius:999px;overflow:hidden}.cubart-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--cubart-teal),var(--cubart-green));transition:width .35s ease}.cubart-game{padding:0 18px 18px}.cubart-status{text-align:center;min-height:24px;font-weight:700;color:#45656b;padding:3px 0 7px}.cubart-stage{position:relative;min-height:clamp(440px,66vw,700px);border-radius:22px;overflow:hidden;background:radial-gradient(circle at 50% 42%,rgba(107,170,117,.18),transparent 28%),radial-gradient(circle at 50% 50%,#173640 0,#0d252d 46%,#08191f 100%);perspective:900px;isolation:isolate;outline:none}.cubart-stage:focus-visible{box-shadow:inset 0 0 0 3px rgba(107,170,117,.8)}.cubart-stage:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle,#fff 0 1px,transparent 1.5px);background-size:54px 54px;opacity:.15;transform:rotate(8deg) scale(1.2);pointer-events:none}.cubart-space-glow{position:absolute;left:50%;top:50%;width:60%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(107,170,117,.14),rgba(44,117,131,.06) 36%,transparent 70%);filter:blur(18px);pointer-events:none}.cubart-cubes,.cubart-mosaic{position:absolute;inset:7% 8% 9%;display:grid;grid-template-columns:repeat(var(--cubart-grid),1fr);grid-template-rows:repeat(var(--cubart-grid),1fr);align-items:center;justify-items:center;gap:clamp(10px,2vw,28px)}.cubart-mosaic{z-index:1;opacity:.96;transform:translateZ(-220px) scale(.84);filter:saturate(.8)}.cubart-cubes{z-index:3;transform-style:preserve-3d}.cubart-mosaic-cell{width:var(--cubart-face);height:var(--cubart-face);position:relative;overflow:hidden;border-radius:5px;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);opacity:.05;transform:scale(.82);transition:opacity .5s ease,transform .5s ease,box-shadow .5s ease}.cubart-mosaic-cell.is-on{opacity:1;transform:scale(1);box-shadow:0 0 18px rgba(107,170,117,.18)}.cubart-fragment-image{position:absolute;max-width:none!important;object-fit:contain;background:#e9eeee;pointer-events:none;user-select:none}.cubart-cube-wrap{width:var(--cubart-face);height:var(--cubart-face);position:relative;transform-style:preserve-3d;animation:cubart-arrive .82s cubic-bezier(.19,.75,.21,1) both;transition:transform .52s ease,opacity .52s ease,filter .3s ease}.cubart-cube-wrap:not(.is-locked){cursor:crosshair}.cubart-cube-wrap:not(.is-locked):hover{filter:brightness(1.1)}.cubart-cube-wrap.is-locked{transform:translateZ(-240px) scale(.45)!important;opacity:0;pointer-events:none}.cubart-cube{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .42s cubic-bezier(.2,.7,.15,1)}.cubart-face{position:absolute;inset:0;overflow:hidden;border:1px solid rgba(255,255,255,.26);background:#dfe9e8;backface-visibility:hidden;box-shadow:inset 0 0 12px rgba(0,0,0,.12)}.cubart-face[data-face="0"]{transform:translateZ(var(--cubart-depth))}.cubart-face[data-face="1"]{transform:rotateY(90deg) translateZ(var(--cubart-depth))}.cubart-face[data-face="2"]{transform:rotateY(180deg) translateZ(var(--cubart-depth))}.cubart-face[data-face="3"]{transform:rotateY(-90deg) translateZ(var(--cubart-depth))}.cubart-face[data-face="4"]{transform:rotateX(90deg) translateZ(var(--cubart-depth))}.cubart-face[data-face="5"]{transform:rotateX(-90deg) translateZ(var(--cubart-depth))}.cubart-cube[data-visible="0"]{transform:rotateX(0) rotateY(0)}.cubart-cube[data-visible="1"]{transform:rotateX(0) rotateY(-90deg)}.cubart-cube[data-visible="2"]{transform:rotateX(0) rotateY(-180deg)}.cubart-cube[data-visible="3"]{transform:rotateX(0) rotateY(-270deg)}.cubart-cube[data-visible="4"]{transform:rotateX(-90deg) rotateY(-360deg)}.cubart-cube[data-visible="5"]{transform:rotateX(90deg) rotateY(-360deg)}.cubart-reticle{position:absolute;left:50%;top:50%;width:54px;height:54px;border:1px solid rgba(255,255,255,.2);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:5;opacity:.38}.cubart-reticle:before,.cubart-reticle:after{content:"";position:absolute;background:rgba(255,255,255,.45);left:50%;top:50%;transform:translate(-50%,-50%)}.cubart-reticle:before{width:74px;height:1px}.cubart-reticle:after{width:1px;height:74px}.cubart-reticle span{position:absolute;width:5px;height:5px;border-radius:50%;background:#fff;left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 10px #fff}.cubart-memory{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:rgba(8,25,31,.9);transition:opacity .35s ease}.cubart-memory[hidden]{display:none}.cubart-memory img{max-width:82%;max-height:76%;width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.35)}.cubart-memory p{margin:0;color:#fff;font-weight:700;letter-spacing:.02em}.cubart-stage.is-shot .cubart-reticle{animation:cubart-shot .18s ease}.cubart-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 4px 0}.cubart-controls p{margin:0;text-align:center;color:#60777d;font-size:13px}.cubart-controls button,.cubart-result-actions button,.cubart-result-actions a{border:0;border-radius:999px;padding:10px 16px;font-weight:700;cursor:pointer;text-decoration:none}.cubart-change{background:transparent;color:#45666d}.cubart-restart,.cubart-result-restart{background:#dbe9e7;color:#31565e}.cubart-result{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:0;background:#fff}.cubart-result-image{min-height:360px;background:#e8efee;display:flex;align-items:center;justify-content:center;padding:20px}.cubart-result-image img{max-width:100%;max-height:620px;width:auto;height:auto;object-fit:contain}.cubart-result-copy{padding:clamp(28px,6vw,64px);display:flex;flex-direction:column;justify-content:center}.cubart-result-copy h3{font-size:clamp(28px,4vw,44px);margin:4px 0 8px;color:#214f59}.cubart-result-artist{font-size:19px;margin:0 0 10px}.cubart-result-meta,.cubart-result-credit{color:#6c7e82}.cubart-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.cubart-result-change{background:var(--cubart-teal);color:#fff}.cubart-result-link{background:var(--cubart-green);color:#102b26}.cubart-flash{position:absolute;z-index:9;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff,0 0 22px #9be4c1;pointer-events:none;transform:translate(-50%,-50%);animation:cubart-flash .28s ease-out both}@keyframes cubart-arrive{0%{transform:translateZ(-820px) scale(.15) rotateZ(10deg);opacity:0}70%{opacity:1}100%{transform:translateZ(0) scale(1) rotateZ(0);opacity:1}}@keyframes cubart-shot{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(.78);opacity:.85}}@keyframes cubart-flash{0%{transform:translate(-50%,-50%) scale(.2);opacity:1}100%{transform:translate(-50%,-50%) scale(8);opacity:0}}@media(max-width:800px){.partageos-cubart{--cubart-face:clamp(58px,20vw,86px);--cubart-depth:clamp(29px,10vw,43px)}.cubart-work-choices{grid-template-columns:1fr 1fr}.cubart-header{align-items:flex-start}.cubart-progress-wrap{min-width:130px}.cubart-cubes,.cubart-mosaic{inset:8% 4% 10%;gap:8px}.cubart-stage{min-height:520px}.cubart-reticle{display:none}.cubart-result{grid-template-columns:1fr}.cubart-result-image{min-height:260px}.cubart-controls{flex-wrap:wrap}.cubart-controls p{order:-1;width:100%}}@media(max-width:520px){.partageos-cubart{margin:14px 0;--cubart-face:clamp(54px,24vw,76px);--cubart-depth:clamp(27px,12vw,38px)}.cubart-shell{border-radius:18px}.cubart-header{padding:16px 14px 8px}.cubart-chooser{padding:8px 12px 20px}.cubart-work-choices{grid-template-columns:1fr}.cubart-choice{grid-template-columns:72px 1fr 32px}.cubart-choice-image{width:72px;height:66px}.cubart-game{padding:0 8px 10px}.cubart-stage{min-height:460px;border-radius:16px}.cubart-cubes,.cubart-mosaic{inset:8% 2% 10%;gap:6px}.cubart-controls button{font-size:12px;padding:9px 10px}}@media(prefers-reduced-motion:reduce){.cubart-cube-wrap,.cubart-cube,.cubart-mosaic-cell,.cubart-progress span{animation:none!important;transition-duration:.01ms!important}}

/* V0.1.1 — page de jeu en pleine largeur, sans toucher aux autres pages Partageos. */
body.partageos-cubart-page #secondary,
body.partageos-cubart-page .site-content > #secondary,
body.partageos-cubart-page .site-content > aside.widget-area,
body.partageos-cubart-page .content-area + .widget-area,
body.partageos-cubart-page .site-main + .widget-area {
    display:none !important;
}
body.partageos-cubart-page #primary,
body.partageos-cubart-page .site-content > #primary,
body.partageos-cubart-page .content-area,
body.partageos-cubart-page main.site-main {
    width:100% !important;
    max-width:none !important;
    float:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
}
body.partageos-cubart-page .site-content,
body.partageos-cubart-page .site-main,
body.partageos-cubart-page article.page,
body.partageos-cubart-page article.type-page,
body.partageos-cubart-page .entry-content,
body.partageos-cubart-page .wp-block-post-content {
    max-width:none !important;
}
body.partageos-cubart-page .entry-content > .partageos-cubart,
body.partageos-cubart-page .wp-block-post-content > .partageos-cubart,
body.partageos-cubart-page .partageos-cubart {
    width:min(100%, 1440px);
    max-width:1440px;
    margin-left:auto;
    margin-right:auto;
}
body.partageos-cubart-page .cubart-stage {
    min-height:clamp(520px, 58vw, 780px);
}
body.partageos-cubart-page .cubart-result {
    grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
}
body.partageos-cubart-page .cubart-result-image {
    min-height:500px;
    padding:clamp(20px,3vw,42px);
}
body.partageos-cubart-page .cubart-result-image img {
    max-height:700px;
}
.cubart-result-copy h3 {
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
    line-height:1.08;
}
.cubart-result-actions button,
.cubart-result-actions a {
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.15;
    text-align:center;
}
.cubart-result-restart,
.cubart-result-change,
.cubart-result-link {
    padding:11px 18px !important;
}
@media (max-width: 900px) {
    body.partageos-cubart-page .partageos-cubart {
        width:100%;
    }
    body.partageos-cubart-page .cubart-result {
        grid-template-columns:1fr;
    }
    body.partageos-cubart-page .cubart-result-image {
        min-height:320px;
    }
}
@media (max-width: 520px) {
    body.partageos-cubart-page .cubart-result-image {
        min-height:260px;
        padding:14px;
    }
    .cubart-result-copy {
        padding:24px 18px;
    }
    .cubart-result-actions {
        display:grid;
        grid-template-columns:1fr;
    }
    .cubart-result-actions button,
    .cubart-result-actions a {
        width:100%;
    }
}


/* V0.1.2 — pleine largeur robuste, indépendante du balisage exact du thème. */
body.partageos-cubart-page .cubart-layout-sidebar-hidden {
    display:none !important;
}
body.partageos-cubart-page .cubart-layout-expanded {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    flex:1 1 100% !important;
    float:none !important;
    grid-column:1 / -1 !important;
    margin-left:0 !important;
    margin-right:0 !important;
}
body.partageos-cubart-page .cubart-layout-parent {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    grid-template-columns:minmax(0,1fr) !important;
}
body.partageos-cubart-page #content,
body.partageos-cubart-page .site-content,
body.partageos-cubart-page .content-wrapper,
body.partageos-cubart-page .main-content,
body.partageos-cubart-page .container-content {
    grid-template-columns:minmax(0,1fr) !important;
}
body.partageos-cubart-page #primary,
body.partageos-cubart-page .content-area,
body.partageos-cubart-page .main-area,
body.partageos-cubart-page .main-column {
    width:100% !important;
    max-width:none !important;
    flex-basis:100% !important;
}
body.partageos-cubart-page #secondary,
body.partageos-cubart-page #sidebar,
body.partageos-cubart-page .site-content > .widget-area,
body.partageos-cubart-page .content-wrapper > .widget-area,
body.partageos-cubart-page .main-content > .widget-area,
body.partageos-cubart-page .sidebar-primary,
body.partageos-cubart-page .sidebar-secondary,
body.partageos-cubart-page .right-sidebar,
body.partageos-cubart-page .left-sidebar {
    display:none !important;
}
body.partageos-cubart-page .partageos-cubart {
    width:min(100%,1440px) !important;
    max-width:1440px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

/* V0.1.3 — visée réelle + mode jeu plein écran. */
body.cubart-game-active{overflow:hidden!important;overscroll-behavior:none}
.partageos-cubart .cubart-exit-game{display:none;border:1px solid rgba(255,255,255,.28);background:rgba(6,25,31,.72);color:#fff;border-radius:999px;padding:9px 14px;font-weight:700;cursor:pointer;white-space:nowrap}
.partageos-cubart.is-playing{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;margin:0!important;background:#08191f!important}
.partageos-cubart.is-playing .cubart-shell{position:relative;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;background:#08191f;overflow:hidden}
.partageos-cubart.is-playing .cubart-header{position:absolute;z-index:30;top:0;left:0;right:0;padding:14px 22px;color:#fff;background:linear-gradient(180deg,rgba(4,19,24,.92),rgba(4,19,24,.5) 70%,transparent);pointer-events:none}
.partageos-cubart.is-playing .cubart-header>div,.partageos-cubart.is-playing .cubart-exit-game{pointer-events:auto}
.partageos-cubart.is-playing .cubart-header h2{color:#fff;font-size:clamp(28px,4vw,44px)}
.partageos-cubart.is-playing .cubart-kicker{color:#b9d4d8}
.partageos-cubart.is-playing .cubart-progress-wrap{min-width:min(32vw,360px);margin-left:auto;margin-right:12px}
.partageos-cubart.is-playing .cubart-progress-text{color:#fff}
.partageos-cubart.is-playing .cubart-exit-game{display:inline-flex;align-items:center;justify-content:center}
.partageos-cubart.is-playing .cubart-game{display:block!important;position:absolute;inset:0;padding:0}
.partageos-cubart.is-playing .cubart-status{position:absolute;z-index:25;top:74px;left:50%;transform:translateX(-50%);width:min(90vw,760px);padding:8px 14px;color:#e8f5f4;background:rgba(5,25,31,.58);border-radius:999px;backdrop-filter:blur(5px)}
.partageos-cubart.is-playing .cubart-stage{position:absolute;inset:0;min-height:0;width:100%;height:100%;border-radius:0;perspective:1100px;cursor:none}
.partageos-cubart.is-playing .cubart-cubes,.partageos-cubart.is-playing .cubart-mosaic{inset:14% 8% 14%;gap:clamp(12px,3vw,44px)}
.partageos-cubart.is-playing{--cubart-face:clamp(76px,10.5vmin,138px);--cubart-depth:clamp(38px,5.25vmin,69px)}
.partageos-cubart.is-playing .cubart-controls{position:absolute;z-index:25;left:0;right:0;bottom:0;padding:16px 22px 18px;color:#d8e9e8;background:linear-gradient(0deg,rgba(4,19,24,.92),rgba(4,19,24,.55) 72%,transparent)}
.partageos-cubart.is-playing .cubart-controls p{color:#d8e9e8}
.partageos-cubart.is-playing .cubart-change{color:#fff;background:rgba(255,255,255,.1)}
.partageos-cubart.is-playing .cubart-restart{background:rgba(219,233,231,.92)}
.cubart-cube-wrap.is-drifting:not(.is-locked){animation:cubart-drift var(--drift-duration,3.2s) ease-in-out var(--drift-delay,0s) infinite alternate}
.cubart-reticle{transition:left .06s linear,top .06s linear,opacity .15s ease}
.cubart-reticle.is-active{opacity:.82;border-color:rgba(255,255,255,.55);box-shadow:0 0 18px rgba(107,170,117,.18)}
.cubart-stage.is-missed .cubart-reticle{animation:cubart-miss .2s ease}
.cubart-flash.is-miss{background:#ffb9a9;box-shadow:0 0 8px #ffb9a9,0 0 22px rgba(255,120,95,.75)}
@keyframes cubart-drift{0%{transform:translate3d(var(--drift-from-x,-8px),var(--drift-from-y,-6px),0) rotateZ(var(--drift-from-r,-1deg))}100%{transform:translate3d(var(--drift-x,8px),var(--drift-y,6px),0) rotateZ(var(--drift-r,1deg))}}
@keyframes cubart-miss{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.18);border-color:rgba(255,140,120,.9)}}
@media (max-width:800px){
  .partageos-cubart.is-playing{--cubart-face:clamp(58px,18vw,94px);--cubart-depth:clamp(29px,9vw,47px)}
  .partageos-cubart.is-playing .cubart-header{padding:10px 12px}
  .partageos-cubart.is-playing .cubart-header .cubart-kicker{display:none}
  .partageos-cubart.is-playing .cubart-header h2{font-size:26px}
  .partageos-cubart.is-playing .cubart-progress-wrap{min-width:120px}
  .partageos-cubart.is-playing .cubart-status{top:58px;width:calc(100vw - 24px);font-size:13px}
  .partageos-cubart.is-playing .cubart-cubes,.partageos-cubart.is-playing .cubart-mosaic{inset:15% 3% 18%;gap:8px}
  .partageos-cubart.is-playing .cubart-stage{cursor:crosshair}
  .partageos-cubart.is-playing .cubart-reticle{display:none}
  .partageos-cubart.is-playing .cubart-controls{padding:10px 10px 12px}
  .partageos-cubart.is-playing .cubart-controls p{display:none}
}
@media (prefers-reduced-motion:reduce){
  .cubart-cube-wrap.is-drifting:not(.is-locked){animation:none!important}
  .cubart-reticle{transition:none}
}

/* V0.1.4 — intégration catalogue Jeux + repère d’âge / SEO visible. */
.cubart-game-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 10px;margin:-7px auto 18px;color:#527078;font-size:12px;font-weight:700;letter-spacing:.02em}
.cubart-game-meta span{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(44,117,131,.07);border:1px solid rgba(44,117,131,.12)}
.partageos-cubart.is-playing .cubart-game-meta{display:none}
@media(max-width:520px){.cubart-game-meta{gap:6px}.cubart-game-meta span{font-size:11px;padding:5px 8px}}
