/* AnimyJob — Énigmathèque interactive premium. Scope total : #enigmatheque. */
#enigmatheque {
  --ed-ink:#191527;
  --ed-muted:#716a7c;
  --ed-line:rgba(31,24,54,.11);
  --ed-night:#171323;
  --ed-night-2:#25203a;
  --ed-purple:#7555ff;
  --ed-purple-2:#a58cff;
  --ed-coral:#ff715d;
  --ed-orange:#ff934d;
  --ed-amber:#ffc84e;
  --ed-cream:#fff8ed;
  --ed-lilac:#f0ebff;
  --ed-blue:#4f72ff;
  --ed-blue-soft:#eef2ff;
  --ed-red:#d84666;
  --ed-red-soft:#fff0f3;
  --ed-shadow-sm:0 14px 36px rgba(28,21,47,.08);
  --ed-shadow-md:0 26px 72px rgba(28,21,47,.13);
  --ed-shadow-xl:0 38px 110px rgba(12,8,25,.24);
  position:relative;
  overflow-x:hidden;
  color:var(--ed-ink);
  background:
    radial-gradient(circle at 7% 4%,rgba(165,140,255,.13),transparent 23rem),
    radial-gradient(circle at 96% 14%,rgba(255,113,93,.10),transparent 25rem),
    linear-gradient(180deg,#fcfbf9 0,#f7f4f0 38rem,#fbfaf8 100%);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
#enigmatheque::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;background-image:radial-gradient(rgba(47,37,72,.15) .65px,transparent .65px);background-size:22px 22px;mask-image:linear-gradient(to bottom,#000 0,transparent 48rem)}
#enigmatheque *,#enigmatheque *::before,#enigmatheque *::after{box-sizing:border-box}
#enigmatheque img{display:block;max-width:100%;height:auto}
#enigmatheque a{color:inherit}
#enigmatheque button,#enigmatheque input,#enigmatheque select{font:inherit}
#enigmatheque [hidden]{display:none!important}
#enigmatheque .ed-shell{position:relative;z-index:1;width:min(1240px,calc(100% - 38px));margin:0 auto;padding:27px 0 86px}
#enigmatheque .ed-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Utilitaires */
#enigmatheque .ed-kicker{display:inline-block;color:var(--ed-purple);font-size:.72rem;font-weight:950;line-height:1.2;letter-spacing:.15em;text-transform:uppercase}
#enigmatheque .ed-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:13px 20px;border:1px solid transparent;border-radius:999px;background:#fff;color:var(--ed-ink);font-size:.86rem;font-weight:900;line-height:1.15;text-decoration:none;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease}
#enigmatheque .ed-btn:hover:not(:disabled),#enigmatheque .ed-btn:focus-visible:not(:disabled){transform:translateY(-2px)}
#enigmatheque .ed-btn:focus-visible,#enigmatheque button:focus-visible,#enigmatheque a:focus-visible,#enigmatheque input:focus-visible,#enigmatheque select:focus-visible{outline:3px solid rgba(117,85,255,.25);outline-offset:3px}
#enigmatheque .ed-btn:disabled{opacity:.45;cursor:not-allowed}
#enigmatheque .ed-btn-primary{background:linear-gradient(135deg,var(--ed-coral),#ff5669);color:#fff;box-shadow:0 15px 32px rgba(255,99,91,.28)}
#enigmatheque .ed-btn-primary:hover{box-shadow:0 20px 42px rgba(255,99,91,.35)}
#enigmatheque .ed-btn-light{background:#fff;color:#211b30;box-shadow:0 12px 30px rgba(0,0,0,.13)}
#enigmatheque .ed-btn-secondary{border-color:var(--ed-line);background:#fff;color:#332b42}
#enigmatheque .ed-btn-ghost{border-color:rgba(117,85,255,.17);background:rgba(117,85,255,.07);color:#5c42cf}
#enigmatheque .ed-preview{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px;padding:12px 16px;border-radius:14px;background:#fff0cf;color:#715013;box-shadow:var(--ed-shadow-sm);font-size:.84rem}
#enigmatheque .ed-preview strong{font-weight:950}
#enigmatheque .ed-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 20px;color:#81798d;font-size:.79rem;font-weight:750}
#enigmatheque .ed-breadcrumb a{color:#5e566e;text-decoration:none}
#enigmatheque .ed-breadcrumb a:hover{text-decoration:underline}

/* Hero */
#enigmatheque .ed-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.03fr) minmax(360px,.97fr);gap:clamp(34px,5vw,72px);align-items:center;overflow:hidden;min-height:550px;margin:0 0 55px;padding:clamp(38px,6vw,74px);border-radius:36px;background:radial-gradient(circle at 16% 13%,rgba(165,140,255,.32),transparent 32%),radial-gradient(circle at 87% 84%,rgba(255,113,93,.27),transparent 34%),linear-gradient(135deg,#171323 0%,#25203a 57%,#171323 100%);box-shadow:var(--ed-shadow-xl)}
#enigmatheque .ed-hero::before{content:"";position:absolute;width:290px;height:290px;right:-110px;top:-110px;border:1px solid rgba(255,255,255,.13);border-radius:50%;box-shadow:0 0 0 42px rgba(255,255,255,.025),0 0 0 88px rgba(255,255,255,.016)}
#enigmatheque .ed-hero::after{content:"";position:absolute;left:48%;bottom:-95px;width:210px;height:210px;border-radius:64px;background:rgba(255,200,78,.075);transform:rotate(27deg)}
#enigmatheque .ed-hero-copy,#enigmatheque .ed-hero-media,#enigmatheque .ed-hero-stage,#enigmatheque .ed-age-orbit{position:relative;z-index:2}
#enigmatheque .ed-hero .ed-kicker{color:var(--ed-amber)}
#enigmatheque .ed-hero h1{max-width:850px;margin:13px 0 21px;color:#fff;font-size:clamp(2.65rem,5.8vw,5.15rem);font-weight:950;line-height:.95;letter-spacing:-.055em;text-wrap:balance}
#enigmatheque .ed-cluster-hero h1,#enigmatheque .ed-age-hero h1{font-size:clamp(2.55rem,5vw,4.5rem)}
#enigmatheque .ed-play-hero h1{font-size:clamp(2.35rem,4.7vw,4.25rem);line-height:.98;overflow-wrap:anywhere}
#enigmatheque .ed-hero-copy>p,#enigmatheque .ed-play-intro{max-width:730px;margin:0;color:rgba(255,255,255,.75);font-size:clamp(1rem,1.45vw,1.12rem);line-height:1.72}
#enigmatheque .ed-play-intro p{margin:0 0 11px;color:inherit}
#enigmatheque .ed-play-intro p:last-child{margin-bottom:0}
#enigmatheque .ed-hero-actions{display:flex;gap:11px;flex-wrap:wrap;margin-top:30px}
#enigmatheque .ed-hero .ed-btn-ghost{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.075);color:#fff}
#enigmatheque .ed-stat-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:27px}
#enigmatheque .ed-stat-row span{display:inline-flex;align-items:center;gap:5px;min-height:35px;padding:8px 12px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.075);color:rgba(255,255,255,.83);font-size:.76rem;font-weight:820;backdrop-filter:blur(10px)}
#enigmatheque .ed-stat-row strong{color:#fff;font-weight:950}
#enigmatheque .ed-hero-media{margin:0;overflow:visible;transform:rotate(1.1deg)}
#enigmatheque .ed-hero-media::before{content:"";position:absolute;inset:18px -15px -15px 18px;z-index:-1;border-radius:31px;background:linear-gradient(135deg,rgba(165,140,255,.48),rgba(255,113,93,.38))}
#enigmatheque .ed-hero-media img{width:100%;aspect-ratio:3/2;object-fit:cover;border:8px solid rgba(255,255,255,.96);border-radius:29px;box-shadow:0 34px 82px rgba(4,2,15,.42)}

/* Hero abstrait */
#enigmatheque .ed-hero-stage{min-height:390px}
#enigmatheque .ed-stage-core{position:absolute;left:50%;top:50%;display:grid;width:230px;height:230px;place-items:center;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.17),rgba(117,85,255,.15) 48%,rgba(0,0,0,.08));box-shadow:0 28px 70px rgba(0,0,0,.28);transform:translate(-50%,-50%)}
#enigmatheque .ed-stage-core::before,#enigmatheque .ed-stage-core::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%}
#enigmatheque .ed-stage-core::before{inset:-35px}#enigmatheque .ed-stage-core::after{inset:-72px}
#enigmatheque .ed-stage-core svg{width:130px;height:130px;fill:none;stroke:#fff;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 8px 18px rgba(0,0,0,.25))}
#enigmatheque .ed-mystery-card{position:absolute;width:150px;height:105px;padding:15px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(255,255,255,.10);box-shadow:0 18px 44px rgba(0,0,0,.22);backdrop-filter:blur(12px)}
#enigmatheque .ed-mystery-card span{display:grid;width:32px;height:32px;place-items:center;border-radius:11px;background:var(--ed-amber);color:#332410;font-size:.8rem;font-weight:950}
#enigmatheque .ed-mystery-card i,#enigmatheque .ed-mystery-card b{display:block;height:7px;margin-top:12px;border-radius:999px;background:rgba(255,255,255,.28)}
#enigmatheque .ed-mystery-card b{width:65%;margin-top:7px;background:rgba(255,255,255,.14)}
#enigmatheque .ed-mystery-card-a{left:0;top:13%;transform:rotate(-8deg)}#enigmatheque .ed-mystery-card-b{right:0;top:7%;transform:rotate(8deg)}#enigmatheque .ed-mystery-card-c{right:8%;bottom:5%;transform:rotate(-5deg)}
#enigmatheque .ed-age-orbit{display:grid;width:310px;height:310px;place-items:center;justify-self:center;border:1px solid rgba(255,255,255,.13);border-radius:50%;box-shadow:0 0 0 44px rgba(255,255,255,.025),0 0 0 88px rgba(255,255,255,.014)}
#enigmatheque .ed-age-orbit span,#enigmatheque .ed-age-orbit b{display:grid;width:105px;height:105px;place-items:center;border-radius:31px;background:#fff;color:#211b31;font-size:2.25rem;font-weight:950;box-shadow:0 24px 55px rgba(0,0,0,.28)}
#enigmatheque .ed-age-orbit span{transform:translate(-64px,-45px) rotate(-7deg)}#enigmatheque .ed-age-orbit b{position:absolute;right:19px;bottom:25px;background:var(--ed-amber);transform:rotate(6deg)}
#enigmatheque .ed-age-orbit i{position:absolute;width:76px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--ed-purple-2),var(--ed-coral));transform:rotate(-38deg)}

/* Titres de sections */
#enigmatheque .ed-section-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.52fr);gap:28px;align-items:end;margin:0 0 26px}
#enigmatheque .ed-section-heading.compact{grid-template-columns:1fr;margin-bottom:20px}
#enigmatheque .ed-section-heading h2,#enigmatheque .ed-editorial-heading h2{max-width:780px;margin:7px 0 0;color:#1a1628;font-size:clamp(2rem,4vw,3.35rem);font-weight:950;line-height:1;letter-spacing:-.045em;text-wrap:balance}
#enigmatheque .ed-section-heading p{max-width:500px;margin:0;color:var(--ed-muted);font-size:.93rem;line-height:1.68}

/* Âges / filtres */
#enigmatheque .ed-age-strip,#enigmatheque .ed-filter-panel,#enigmatheque .ed-listing-section,#enigmatheque .ed-cluster-section,#enigmatheque .ed-value-section,#enigmatheque .ed-faq-section,#enigmatheque .ed-related-section{margin-top:70px}
#enigmatheque .ed-age-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#enigmatheque .ed-age-grid a{display:flex;min-height:118px;flex-direction:column;justify-content:space-between;padding:18px;border:1px solid var(--ed-line);border-radius:22px;background:#fff;color:#2e283a;text-decoration:none;box-shadow:var(--ed-shadow-sm);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
#enigmatheque .ed-age-grid a:hover{transform:translateY(-5px);box-shadow:var(--ed-shadow-md)}
#enigmatheque .ed-age-grid a:nth-child(2){background:#f0ebff}#enigmatheque .ed-age-grid a:nth-child(3){background:#ffefe8}#enigmatheque .ed-age-grid a:nth-child(4){background:#fff4d1}#enigmatheque .ed-age-grid a:nth-child(5){background:#ffeef3}#enigmatheque .ed-age-family{background:var(--ed-night)!important;color:#fff!important}
#enigmatheque .ed-age-number{font-size:1.05rem;font-weight:950}#enigmatheque .ed-age-grid a>span:last-child{color:var(--ed-muted);font-size:.76rem;font-weight:780}#enigmatheque .ed-age-family>span:last-child{color:rgba(255,255,255,.63)!important}
#enigmatheque .ed-filter-panel{padding:26px 28px;border:1px solid var(--ed-line);border-radius:26px;background:rgba(255,255,255,.76);box-shadow:var(--ed-shadow-sm);backdrop-filter:blur(12px)}
#enigmatheque .ed-pill-row{display:flex;flex-wrap:wrap;gap:9px}
#enigmatheque .ed-pill-row a,#enigmatheque .ed-related-clusters a,#enigmatheque .ed-bottom-nav a{display:inline-flex;align-items:center;min-height:43px;padding:9px 14px;border:1px solid var(--ed-line);border-radius:999px;background:#fff;color:#41394c;font-size:.78rem;font-weight:880;text-decoration:none;box-shadow:0 7px 20px rgba(31,24,52,.045);transition:transform .18s ease,background .18s ease,color .18s ease}
#enigmatheque .ed-pill-row a:hover,#enigmatheque .ed-related-clusters a:hover,#enigmatheque .ed-bottom-nav a:hover{transform:translateY(-2px);background:var(--ed-night);color:#fff}

/* Cartes */
#enigmatheque .ed-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
#enigmatheque .ed-card{min-width:0;overflow:hidden;border:0;border-radius:25px;background:#fff;box-shadow:0 14px 42px rgba(31,24,52,.08);transition:transform .22s ease,box-shadow .22s ease}
#enigmatheque .ed-card:hover{transform:translateY(-7px);box-shadow:0 28px 65px rgba(31,24,52,.15)}
#enigmatheque .ed-card-link{display:flex;height:100%;flex-direction:column;color:inherit;text-decoration:none}
#enigmatheque .ed-card-media{margin:0;overflow:hidden;aspect-ratio:3/2;background:#ebe6f5}
#enigmatheque .ed-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
#enigmatheque .ed-card:hover .ed-card-media img{transform:scale(1.035)}
#enigmatheque .ed-card-abstract{position:relative;overflow:hidden;min-height:155px;background:radial-gradient(circle at 20% 20%,rgba(165,140,255,.5),transparent 29%),radial-gradient(circle at 84% 78%,rgba(255,113,93,.35),transparent 33%),linear-gradient(135deg,#29223e,#181424)}
#enigmatheque .ed-card-abstract span{position:absolute;left:25px;top:25px;width:64px;height:64px;border:1px solid rgba(255,255,255,.24);border-radius:21px;transform:rotate(-9deg)}
#enigmatheque .ed-card-abstract i{position:absolute;right:33px;top:34px;width:42px;height:42px;border-radius:50%;background:var(--ed-amber);box-shadow:0 0 0 15px rgba(255,200,78,.08)}
#enigmatheque .ed-card-abstract b{position:absolute;left:28px;right:28px;bottom:28px;height:7px;border-radius:999px;background:linear-gradient(90deg,rgba(255,255,255,.65),rgba(255,255,255,.08))}
#enigmatheque .ed-card-body{display:flex;flex:1;flex-direction:column;gap:9px;padding:18px 19px 21px}
#enigmatheque .ed-card-meta{display:flex;flex-wrap:wrap;gap:6px}
#enigmatheque .ed-card-meta span{padding:5px 7px;border-radius:999px;background:#f4f0f8;color:#71697d;font-size:.62rem;font-weight:900;line-height:1.1;text-transform:uppercase;letter-spacing:.04em}
#enigmatheque .ed-card h3{margin:0;color:#211b2d;font-size:1.08rem;font-weight:930;line-height:1.27;letter-spacing:-.02em}
#enigmatheque .ed-card p{flex:1;margin:0;color:#746d7e;font-size:.81rem;line-height:1.53}
#enigmatheque .ed-card-cta{display:flex;align-items:center;justify-content:space-between;margin-top:4px;color:#6548da;font-size:.8rem;font-weight:930}
#enigmatheque .ed-card-cta b{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#f1edfb}
#enigmatheque .compact-card .ed-card-body{padding:15px 16px 17px}#enigmatheque .compact-card h3{font-size:.96rem}

/* Panels éditoriaux */
#enigmatheque .ed-premium-panel{margin-top:80px;padding:clamp(30px,5vw,60px);border-radius:34px;background:radial-gradient(circle at 92% 8%,rgba(255,113,93,.2),transparent 27%),radial-gradient(circle at 4% 96%,rgba(165,140,255,.25),transparent 29%),var(--ed-night);color:#fff;box-shadow:var(--ed-shadow-xl)}
#enigmatheque .ed-premium-panel>div:first-child{max-width:760px;margin-bottom:30px}#enigmatheque .ed-premium-panel h2{margin:8px 0 0;font-size:clamp(2rem,4vw,3.4rem);line-height:1;letter-spacing:-.045em}#enigmatheque .ed-premium-panel .ed-kicker{color:var(--ed-amber)}
#enigmatheque .ed-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
#enigmatheque .ed-feature-grid article{min-height:180px;padding:22px;border:1px solid rgba(255,255,255,.09);border-radius:24px;background:rgba(255,255,255,.07);backdrop-filter:blur(8px)}
#enigmatheque .ed-feature-grid article>span{display:grid;width:36px;height:36px;place-items:center;border-radius:12px;background:var(--ed-amber);color:#35270e;font-size:.72rem;font-weight:950}
#enigmatheque .ed-feature-grid h3{margin:17px 0 7px;color:inherit;font-size:1rem}#enigmatheque .ed-feature-grid p{margin:0;color:rgba(255,255,255,.65);font-size:.82rem;line-height:1.55}
#enigmatheque .ed-value-section .ed-feature-grid article{border:0;background:#fff;color:var(--ed-ink);box-shadow:var(--ed-shadow-sm)}
#enigmatheque .ed-value-section .ed-feature-grid article:nth-child(1){background:#f0ebff}#enigmatheque .ed-value-section .ed-feature-grid article:nth-child(2){background:#ffefe8}#enigmatheque .ed-value-section .ed-feature-grid article:nth-child(3){background:#fff4d1}#enigmatheque .ed-value-section .ed-feature-grid article:nth-child(4){background:#ffeef3}
#enigmatheque .ed-value-section .ed-feature-grid p{color:var(--ed-muted)}
#enigmatheque .ed-editorial-section{margin-top:74px}
#enigmatheque .ed-editorial-heading{margin-bottom:19px}
#enigmatheque .ed-editorial-box{position:relative;overflow:hidden;padding:clamp(24px,4vw,42px);border:1px solid rgba(117,85,255,.12);border-radius:28px;background:linear-gradient(135deg,rgba(255,255,255,.97),rgba(249,246,255,.94));box-shadow:var(--ed-shadow-md)}
#enigmatheque .ed-editorial-box::before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(to bottom,var(--ed-purple),var(--ed-coral),var(--ed-amber))}
#enigmatheque .ed-editorial-box::after{content:"";position:absolute;right:-70px;top:-70px;width:190px;height:190px;border-radius:50%;background:rgba(117,85,255,.06)}
#enigmatheque .ed-editorial-box p{position:relative;z-index:1;max-width:980px;margin:0 0 14px;color:#5f5869;font-size:1rem;line-height:1.76}#enigmatheque .ed-editorial-box p:last-child{margin-bottom:0}
#enigmatheque .ed-editorial-mini{padding:17px 19px;border-left:4px solid var(--ed-purple);border-radius:0 16px 16px 0;background:#f5f1ff;color:#686071;font-size:.88rem;line-height:1.6}#enigmatheque .ed-editorial-mini p{margin:0}
#enigmatheque .ed-faq-list{display:grid;gap:10px}
#enigmatheque .ed-faq-list details{overflow:hidden;border:1px solid var(--ed-line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(31,24,52,.045)}
#enigmatheque .ed-faq-list summary{padding:17px 20px;color:#2c2538;font-weight:900;cursor:pointer}#enigmatheque .ed-faq-list p{margin:0;padding:0 20px 19px;color:var(--ed-muted);line-height:1.65}
#enigmatheque .ed-related-clusters{margin-top:64px;padding-top:27px;border-top:1px solid var(--ed-line)}#enigmatheque .ed-related-clusters h2{margin:0 0 14px;font-size:1.15rem}#enigmatheque .ed-related-clusters>div{display:flex;flex-wrap:wrap;gap:8px}

/* Publicités contenues */
#enigmatheque .ed-ad-slot{clear:both;width:100%;max-width:100%;min-height:112px;margin:42px 0 5px;overflow:hidden;contain:layout paint;text-align:center}
#enigmatheque .ed-ad-slot .adsbygoogle,#enigmatheque .ed-ad-slot ins.adsbygoogle{display:block!important;width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
#enigmatheque .ed-ad-slot iframe{max-width:100%!important}#enigmatheque .ed-ad-before-game{margin-top:0;margin-bottom:35px}#enigmatheque .ed-ad-slot-bottom{margin-top:55px}
#enigmatheque .ed-bottom-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:52px;padding-top:25px;border-top:1px solid var(--ed-line)}

/* Jeu */
#enigmatheque .ed-game{margin-top:0;padding:clamp(24px,4.8vw,56px);border:0;border-radius:34px;background:rgba(255,255,255,.88);box-shadow:0 28px 90px rgba(35,28,59,.11);backdrop-filter:blur(14px)}
#enigmatheque .ed-setup-block{margin-top:28px}#enigmatheque .ed-setup-block>h3{margin:0 0 13px;color:#383044;font-size:.88rem;font-weight:930;text-transform:uppercase;letter-spacing:.08em}
#enigmatheque .ed-mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
#enigmatheque .ed-mode{position:relative;appearance:none;display:flex;min-height:205px;flex-direction:column;align-items:flex-start;gap:8px;overflow:hidden;padding:21px;border:1px solid var(--ed-line);border-radius:24px;background:#fff;color:var(--ed-ink);text-align:left;cursor:pointer;box-shadow:0 10px 30px rgba(31,24,52,.055);transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease}
#enigmatheque .ed-mode::before{content:"";position:absolute;right:-60px;top:-62px;width:145px;height:145px;border-radius:50%;background:rgba(117,85,255,.08)}
#enigmatheque .ed-mode:nth-child(2)::before{background:rgba(255,113,93,.09)}#enigmatheque .ed-mode:nth-child(3)::before{background:rgba(255,200,78,.15)}#enigmatheque .ed-mode:nth-child(4)::before{background:rgba(79,114,255,.10)}
#enigmatheque .ed-mode:hover{transform:translateY(-5px);box-shadow:0 23px 50px rgba(31,24,52,.12)}
#enigmatheque .ed-mode.is-selected{border-color:transparent;background:linear-gradient(145deg,#251e39,#171323);color:#fff;box-shadow:0 23px 55px rgba(28,21,48,.23)}
#enigmatheque .ed-mode-icon{position:relative;z-index:1;display:grid;width:55px;height:55px;place-items:center;margin-bottom:9px;border-radius:18px;background:var(--ed-lilac);color:#6548da;font-size:1.5rem;font-weight:950}#enigmatheque .ed-mode:nth-child(2) .ed-mode-icon{background:#ffebe5;color:#d95442}#enigmatheque .ed-mode:nth-child(3) .ed-mode-icon{background:#fff2c2;color:#8a6415}#enigmatheque .ed-mode:nth-child(4) .ed-mode-icon{background:#eaf0ff;color:#3f5fd4}#enigmatheque .ed-mode.is-selected .ed-mode-icon{background:rgba(255,255,255,.11);color:#fff}
#enigmatheque .ed-mode strong,#enigmatheque .ed-mode small{position:relative;z-index:1}#enigmatheque .ed-mode strong{font-size:1.08rem}#enigmatheque .ed-mode small{max-width:205px;color:var(--ed-muted);font-size:.8rem;line-height:1.5}#enigmatheque .ed-mode.is-selected small{color:rgba(255,255,255,.63)}
#enigmatheque .ed-timer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#enigmatheque .ed-timer-choice{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:67px;padding:14px 17px;border:1px solid var(--ed-line);border-radius:18px;background:#fff;color:#3b3448;cursor:pointer;text-align:left}
#enigmatheque .ed-timer-choice small{color:var(--ed-muted)}#enigmatheque .ed-timer-choice.is-selected{border-color:rgba(117,85,255,.34);background:var(--ed-lilac);color:#553bc0;box-shadow:0 0 0 3px rgba(117,85,255,.08)}
#enigmatheque .ed-team-options{margin-top:18px;padding:17px 19px;border-radius:18px;background:#f2edff}#enigmatheque .ed-team-options label{margin-right:12px}#enigmatheque .ed-team-options select{min-height:42px;padding:7px 12px;border:1px solid rgba(117,85,255,.2);border-radius:999px;background:#fff;color:#322b40}
#enigmatheque .ed-setup-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:27px}
#enigmatheque .ed-noscript{margin-top:18px;padding:14px 16px;border-radius:14px;background:#fff0cf;color:#715013}

/* Barre et énigme */
#enigmatheque .ed-gamebar{position:sticky;top:10px;z-index:20;margin:-8px -8px 28px;padding:16px 18px;border-radius:20px;background:rgba(23,19,35,.96);color:#fff;box-shadow:0 18px 44px rgba(23,19,35,.23);backdrop-filter:blur(10px)}
#enigmatheque .ed-gamebar-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px;color:rgba(255,255,255,.7);font-size:.8rem;font-weight:800}#enigmatheque .ed-gamebar-top strong{color:var(--ed-amber)}#enigmatheque #ed-clock{margin-left:auto;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-variant-numeric:tabular-nums}
#enigmatheque .ed-progress{height:7px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.1)}#enigmatheque .ed-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ed-coral),var(--ed-amber));transition:width .25s ease}
#enigmatheque .ed-team-scoreboard{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:11px}
#enigmatheque .ed-team-score{padding:8px;border-radius:10px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.68);font-size:.72rem;text-align:center}#enigmatheque .ed-team-score strong{display:block;color:#fff;font-size:.9rem}#enigmatheque .ed-team-score.is-active{background:var(--ed-amber);color:#5d4311}#enigmatheque .ed-team-score.is-active strong{color:#2b210d}
#enigmatheque .ed-puzzle-card{position:relative;overflow:hidden;padding:clamp(25px,4.8vw,53px);border-radius:30px;background:#fff;box-shadow:0 25px 72px rgba(35,28,59,.10)}
#enigmatheque .ed-puzzle-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(to bottom,var(--ed-purple),var(--ed-coral),var(--ed-amber))}
#enigmatheque .ed-puzzle-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:22px}
#enigmatheque .ed-puzzle-number,#enigmatheque .ed-difficulty,#enigmatheque .ed-bonus{display:inline-flex;padding:6px 9px;border-radius:999px;background:var(--ed-lilac);color:#5c43cb;font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}#enigmatheque .ed-difficulty{background:#f3f1f5;color:#7c7583}#enigmatheque .ed-bonus{background:#fff0bf;color:#755413}
#enigmatheque .ed-puzzle-prompt{max-width:980px;margin:0 0 28px;color:#181423;font-size:clamp(1.65rem,3.7vw,3rem);font-weight:950;line-height:1.07;letter-spacing:-.04em;text-wrap:balance}

/* Rendus de formats */
#enigmatheque .ed-visual-sequence,#enigmatheque .ed-rebus,#enigmatheque .ed-intruder-grid{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:0 0 28px;padding:25px;border-radius:24px;background:linear-gradient(135deg,#f1ecff,#fff0e7);box-shadow:inset 0 0 0 1px rgba(117,85,255,.08)}
#enigmatheque .ed-visual-sequence span,#enigmatheque .ed-rebus span,#enigmatheque .ed-intruder-grid span{display:grid;min-width:64px;min-height:64px;place-items:center;padding:11px;border-radius:18px;background:#fff;color:#2d2639;font-size:1.55rem;font-weight:950;box-shadow:0 10px 26px rgba(31,24,52,.08)}
#enigmatheque .ed-visual-sequence .is-missing{border:2px dashed rgba(117,85,255,.35);background:transparent;color:#7258d8}
#enigmatheque .ed-rebus i{color:#695f73;font-size:1.2rem;font-style:normal;font-weight:950}
#enigmatheque .ed-intruder-grid span{min-width:115px;font-size:.95rem;text-align:center}
#enigmatheque .ed-charade-parts{display:grid;gap:9px;margin:0 0 28px;padding:0;list-style:none;counter-reset:charade}
#enigmatheque .ed-charade-parts li{counter-increment:charade;padding:14px 16px 14px 54px;border:1px solid var(--ed-line);border-radius:16px;background:#faf8fd;color:#51495d;line-height:1.55;position:relative}#enigmatheque .ed-charade-parts li::before{content:counter(charade);position:absolute;left:14px;top:12px;display:grid;width:29px;height:29px;place-items:center;border-radius:10px;background:var(--ed-lilac);color:#5b42c7;font-weight:950}
#enigmatheque .ed-code-panel,#enigmatheque .ed-matchstick{margin:0 0 28px;padding:25px;border-radius:24px;background:#191525;color:#fff;text-align:center;box-shadow:0 20px 45px rgba(23,19,35,.18)}#enigmatheque .ed-code-panel span,#enigmatheque .ed-matchstick span{display:block;margin-bottom:10px;color:var(--ed-amber);font-size:.68rem;font-weight:950;letter-spacing:.16em}#enigmatheque .ed-code-panel strong,#enigmatheque .ed-matchstick strong{font-size:clamp(1.5rem,4vw,2.8rem);letter-spacing:.16em;overflow-wrap:anywhere}
#enigmatheque .ed-case-file{position:relative;margin:0 0 28px;padding:27px;border:1px solid rgba(117,85,255,.13);border-radius:25px;background:#fbf9ff;box-shadow:var(--ed-shadow-sm)}#enigmatheque .ed-case-file>span{color:var(--ed-purple);font-size:.67rem;font-weight:950;letter-spacing:.15em}#enigmatheque .ed-case-file h3{margin:7px 0 12px;font-size:1.35rem}#enigmatheque .ed-case-file p{margin:0 0 14px;color:#655e6d;line-height:1.65}#enigmatheque .ed-case-file strong{display:block;padding-top:13px;border-top:1px solid var(--ed-line);color:#30283c}
#enigmatheque .ed-treasure-mark{position:relative;width:150px;height:105px;margin:0 0 25px;border-radius:22px;background:linear-gradient(145deg,#2b243e,#171323);box-shadow:0 20px 45px rgba(23,19,35,.18)}#enigmatheque .ed-treasure-mark span{position:absolute;left:28px;top:25px;width:35px;height:35px;border:4px solid var(--ed-amber);border-radius:50%}#enigmatheque .ed-treasure-mark i{position:absolute;left:61px;top:57px;width:58px;height:4px;background:var(--ed-coral);transform:rotate(18deg)}#enigmatheque .ed-treasure-mark b{position:absolute;right:20px;bottom:19px;width:20px;height:20px;border-radius:50%;background:var(--ed-purple-2)}

/* Réponses / indices */
#enigmatheque .ed-answer-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#enigmatheque .ed-answer-option{appearance:none;display:flex;align-items:center;gap:12px;min-height:74px;padding:14px 16px;border:1px solid var(--ed-line);border-radius:18px;background:#fcfbfd;color:#2d2738;text-align:left;cursor:pointer;box-shadow:0 6px 20px rgba(31,24,52,.03);transition:transform .18s ease,border-color .18s ease,background .18s ease}
#enigmatheque .ed-answer-option:hover:not(:disabled){transform:translateY(-3px);border-color:rgba(117,85,255,.28);background:#fff}
#enigmatheque .ed-answer-option>span{display:grid;flex:0 0 40px;width:40px;height:40px;place-items:center;border-radius:13px;background:#eee9f7;color:#655c72;font-size:.8rem;font-weight:950}#enigmatheque .ed-answer-option b{font-size:.9rem;line-height:1.4}
#enigmatheque .ed-answer-option.is-correct{border-color:rgba(79,114,255,.4);background:var(--ed-blue-soft);color:#314cae}#enigmatheque .ed-answer-option.is-correct>span{background:var(--ed-blue);color:#fff}
#enigmatheque .ed-answer-option.is-wrong{border-color:rgba(216,70,102,.35);background:var(--ed-red-soft);color:#a52e4b}#enigmatheque .ed-answer-option.is-wrong>span{background:var(--ed-red);color:#fff}
#enigmatheque .ed-answer-option:disabled{cursor:default}
#enigmatheque .ed-free-answer label{display:block;margin-bottom:8px;color:#50485d;font-weight:900}#enigmatheque .ed-free-answer>div{display:flex;gap:9px}#enigmatheque .ed-answer-input{min-width:0;flex:1 1 auto;min-height:50px;padding:11px 14px;border:1.5px solid #d6d0df;border-radius:14px;background:#fff;color:#201a2c}#enigmatheque .ed-answer-input.is-correct{border-color:var(--ed-blue);background:var(--ed-blue-soft)}#enigmatheque .ed-answer-input.is-wrong{border-color:var(--ed-red);background:var(--ed-red-soft)}
#enigmatheque .ed-hint-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:22px}
#enigmatheque .ed-hint-trigger,#enigmatheque .ed-reveal-trigger{appearance:none;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 12px;border:1px solid var(--ed-line);border-radius:999px;background:#fff;color:#4b4357;font-size:.76rem;font-weight:900;cursor:pointer}#enigmatheque .ed-hint-trigger small{color:#9b6a1d}#enigmatheque .ed-hint-trigger.is-used{background:#fff3cf;color:#705010}#enigmatheque .ed-reveal-trigger{margin-left:auto;border-color:transparent;background:transparent;color:#6548d8;text-decoration:underline;text-underline-offset:3px}
#enigmatheque .ed-hints-list{display:grid;gap:8px;margin-top:15px}.ed-hints-list{}
#enigmatheque .ed-hint{padding:14px 16px;border-radius:15px;background:#fff4d4;box-shadow:inset 4px 0 0 var(--ed-amber)}#enigmatheque .ed-hint span{color:#7a5713;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}#enigmatheque .ed-hint p{margin:5px 0 0;color:#665735;line-height:1.55}
#enigmatheque .ed-solution{margin-top:20px;padding:21px 23px;border-radius:20px;background:var(--ed-blue-soft);box-shadow:inset 5px 0 0 var(--ed-blue)}#enigmatheque .ed-solution-status{display:block;margin-bottom:6px;color:#3f59c0;font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em}#enigmatheque .ed-solution h3{margin:0 0 8px;color:#283f9b;font-size:1.2rem}#enigmatheque .ed-solution p{margin:0;color:#57618a;line-height:1.62}
#enigmatheque .ed-host-awards{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px;padding:14px;border:1px dashed #cdc6d7;border-radius:15px;background:#faf8fc}#enigmatheque .ed-host-awards::before{content:"Attribuer les points :";width:100%;color:#655d6f;font-size:.76rem;font-weight:900}#enigmatheque .ed-award-button{appearance:none;padding:8px 11px;border:1px solid var(--ed-line);border-radius:10px;background:#fff;color:#332b40;font-size:.77rem;font-weight:900;cursor:pointer}
#enigmatheque .ed-puzzle-actions{display:flex;justify-content:flex-end;margin-top:20px}#enigmatheque .ed-print-answer{display:none}

/* Résultat */
#enigmatheque .ed-result{padding:clamp(35px,6vw,70px);border-radius:30px;background:radial-gradient(circle at 20% 0,rgba(165,140,255,.23),transparent 30%),var(--ed-night);color:#fff;text-align:center;box-shadow:var(--ed-shadow-xl)}
#enigmatheque .ed-result-mark{display:grid;width:74px;height:74px;place-items:center;margin:0 auto 15px;border-radius:24px;background:var(--ed-amber);color:#30240f;font-size:2rem}#enigmatheque .ed-result .ed-kicker{color:var(--ed-amber)}#enigmatheque .ed-result h2{margin:8px 0;color:#fff;font-size:clamp(2rem,4vw,3.4rem)}#enigmatheque .ed-result-score{margin:8px 0;color:var(--ed-amber);font-size:clamp(1.5rem,3.7vw,2.8rem);font-weight:950}#enigmatheque .ed-result-message{color:rgba(255,255,255,.66)}#enigmatheque .ed-result-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:24px}#enigmatheque .ed-result-ranking{display:grid;gap:8px;width:min(560px,100%);margin:22px auto}#enigmatheque .ed-ranking-row{display:flex;justify-content:space-between;gap:14px;padding:11px 14px;border-radius:12px;background:rgba(255,255,255,.08)}#enigmatheque .ed-ranking-row:first-child{background:var(--ed-amber);color:#2b210e}
#enigmatheque .ed-empty{padding:50px;border:1px dashed #ccc4d5;border-radius:25px;background:#fff;text-align:center}

/* Responsive */
@media (max-width:1100px){
  #enigmatheque .ed-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #enigmatheque .ed-age-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #enigmatheque .ed-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #enigmatheque .ed-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #enigmatheque .ed-team-scoreboard{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:880px){
  #enigmatheque .ed-shell{width:min(100% - 26px,1240px)}
  #enigmatheque .ed-hero{grid-template-columns:1fr;min-height:0;padding:38px 31px}
  #enigmatheque .ed-hero-stage{min-height:330px;max-width:650px;width:100%}
  #enigmatheque .ed-hero-media{width:min(650px,100%);transform:none}
  #enigmatheque .ed-section-heading{grid-template-columns:1fr;gap:12px}
  #enigmatheque .ed-section-heading p{max-width:700px}
  #enigmatheque .ed-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #enigmatheque .ed-age-orbit{margin:15px auto}
}
@media (max-width:620px){
  #enigmatheque{background:#f8f5f1}
  #enigmatheque::before{display:none}
  #enigmatheque .ed-shell{width:calc(100% - 18px);padding-top:12px;padding-bottom:60px}
  #enigmatheque .ed-hero{gap:28px;margin-bottom:36px;padding:28px 21px 26px;border-radius:25px}
  #enigmatheque .ed-hero h1,#enigmatheque .ed-cluster-hero h1,#enigmatheque .ed-age-hero h1,#enigmatheque .ed-play-hero h1{font-size:clamp(2.15rem,11vw,3.15rem);line-height:.98}
  #enigmatheque .ed-hero-actions .ed-btn{width:100%}
  #enigmatheque .ed-stat-row{gap:6px}#enigmatheque .ed-stat-row span{font-size:.68rem;padding:7px 9px}
  #enigmatheque .ed-hero-stage{min-height:250px}#enigmatheque .ed-stage-core{width:155px;height:155px}#enigmatheque .ed-stage-core svg{width:85px;height:85px}#enigmatheque .ed-mystery-card{width:105px;height:77px;padding:10px;border-radius:16px}#enigmatheque .ed-mystery-card span{width:24px;height:24px;border-radius:8px}
  #enigmatheque .ed-age-orbit{width:235px;height:235px}#enigmatheque .ed-age-orbit span,#enigmatheque .ed-age-orbit b{width:83px;height:83px;font-size:1.7rem}
  #enigmatheque .ed-age-strip,#enigmatheque .ed-filter-panel,#enigmatheque .ed-listing-section,#enigmatheque .ed-cluster-section,#enigmatheque .ed-value-section,#enigmatheque .ed-faq-section,#enigmatheque .ed-related-section,#enigmatheque .ed-editorial-section{margin-top:48px}
  #enigmatheque .ed-section-heading h2,#enigmatheque .ed-editorial-heading h2{font-size:2rem}
  #enigmatheque .ed-age-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#enigmatheque .ed-age-grid a{min-height:103px;padding:15px;border-radius:18px}
  #enigmatheque .ed-card-grid,#enigmatheque .ed-mode-grid,#enigmatheque .ed-feature-grid,#enigmatheque .ed-timer-grid{grid-template-columns:1fr}
  #enigmatheque .ed-card{border-radius:21px}#enigmatheque .ed-card-media{aspect-ratio:16/10}#enigmatheque .ed-card-abstract{min-height:135px}
  #enigmatheque .ed-premium-panel{margin-top:54px;padding:27px 20px;border-radius:25px}#enigmatheque .ed-feature-grid article{min-height:0}
  #enigmatheque .ed-editorial-box{padding:25px 20px 25px 25px;border-radius:22px}
  #enigmatheque .ed-game{padding:22px 14px;border-radius:25px}
  #enigmatheque .ed-mode{min-height:165px}
  #enigmatheque .ed-free-answer>div{flex-direction:column}#enigmatheque .ed-free-answer .ed-btn{width:100%}
  #enigmatheque .ed-answer-options{grid-template-columns:1fr}
  #enigmatheque .ed-puzzle-card{padding:27px 18px 25px 23px;border-radius:23px}
  #enigmatheque .ed-puzzle-prompt{font-size:1.75rem}
  #enigmatheque .ed-hint-controls{align-items:stretch}#enigmatheque .ed-hint-trigger{flex:1 1 calc(50% - 6px);justify-content:center}#enigmatheque .ed-reveal-trigger{width:100%;justify-content:center;margin-left:0}
  #enigmatheque .ed-gamebar-top{gap:8px}#enigmatheque #ed-clock{margin-left:0}
  #enigmatheque .ed-team-scoreboard{grid-template-columns:repeat(2,minmax(0,1fr))}
  #enigmatheque .ed-visual-sequence span,#enigmatheque .ed-rebus span{min-width:50px;min-height:50px;font-size:1.2rem}
  #enigmatheque .ed-code-panel strong,#enigmatheque .ed-matchstick strong{font-size:1.35rem;letter-spacing:.09em}
}

/* Impression : aucune interface, uniquement les énigmes et réponses. */
@media print{
  body *{visibility:hidden!important}
  #enigmatheque,#enigmatheque *{visibility:visible!important}
  #enigmatheque{position:absolute;inset:0;width:100%;background:#fff!important;color:#000!important}
  #enigmatheque::before,.ed-breadcrumb,.ed-preview,.ed-hero-actions,.ed-ad-slot,.ed-setup,.ed-gamebar,.ed-answer-options,.ed-free-answer,.ed-hint-controls,.ed-hints-list,.ed-solution,.ed-host-awards,.ed-puzzle-actions,.ed-result,.ed-editorial-section,.ed-related-section,.ed-bottom-nav{display:none!important}
  #enigmatheque .ed-shell{width:100%;padding:0}
  #enigmatheque .ed-hero{display:block;min-height:0;margin:0 0 15px;padding:0 0 12px;border-bottom:2px solid #000;border-radius:0;background:#fff!important;box-shadow:none!important}
  #enigmatheque .ed-hero h1,#enigmatheque .ed-hero-copy>p,#enigmatheque .ed-play-intro{color:#000!important}
  #enigmatheque .ed-hero-media,#enigmatheque .ed-hero-stage,#enigmatheque .ed-stat-row{display:none!important}
  #enigmatheque .ed-game{padding:0;background:#fff!important;box-shadow:none!important}
  #enigmatheque #ed-playing{display:block!important}
  #enigmatheque .ed-puzzle-card,#enigmatheque .ed-puzzle-card[hidden]{display:block!important;page-break-inside:avoid;margin:0 0 14px;padding:12px;border:1px solid #bbb;border-radius:0;box-shadow:none}
  #enigmatheque .ed-puzzle-card::before{display:none}
  #enigmatheque .ed-puzzle-prompt{margin-bottom:7px;color:#000;font-size:16px}
  #enigmatheque .ed-print-answer{display:block!important;margin-top:8px;color:#333;font-size:12px}
  #enigmatheque .ed-visual-sequence,#enigmatheque .ed-rebus,#enigmatheque .ed-intruder-grid,#enigmatheque .ed-code-panel,#enigmatheque .ed-matchstick,#enigmatheque .ed-case-file{padding:8px;background:#fff!important;color:#000!important;box-shadow:none!important}
}
