/* Atelier Traduction · passage du riad */
.att-stage{--or:#dfb462;--creme:#fff0ce;box-sizing:border-box;position:relative;isolation:isolate;overflow:hidden;container-type:inline-size;width:min(100%,740px);margin:0 auto 1.2rem;border:1px solid #78673c;border-radius:clamp(14px,3vw,25px);background:radial-gradient(ellipse at 48% 62%,#07503c 0,#04392c 46%,#02291f 90%);color:var(--creme);box-shadow:0 12px 32px #132d1c2b;text-align:center;font-family:Georgia,'Times New Roman',serif;direction:ltr}
.att-stage *{box-sizing:border-box}.att-stage button{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.att-stage button:focus-visible{outline:3px solid white;outline-offset:3px}
.att-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:clamp(9px,2.3cqw,15px) 4%;background:linear-gradient(110deg,#0b3b2b,#04291e);color:#f3d79b;border-bottom:1px solid #ab8546;min-height:45px}.att-brand,.att-progress{display:flex;align-items:center;gap:7px}.att-brand{font-size:clamp(14px,4cqw,22px);letter-spacing:.045em}.att-brand:before,.att-progress:after,.att-plaque:before,.att-plaque:after,.att-foot:before{content:'';display:inline-block;flex:none;width:20px;height:20px;background:url('traduction-rosace-d15662492de9.svg') center/contain no-repeat}.att-progress{font-size:clamp(11px,3cqw,15px);font-variant-numeric:tabular-nums}.att-progress:after{width:16px;height:16px}
.att-hero{width:100%;height:clamp(130px,49cqw,250px);background:#bc8d5b url('traduction-passage-riad-49c4314c1278.webp') center 53%/cover no-repeat;border-radius:14px 14px 0 0;box-shadow:inset 0 -10px 16px -12px #49301c}
.att-plaque{display:flex;position:relative;align-items:center;justify-content:space-between;gap:4px;width:89%;min-height:clamp(60px,18cqw,94px);padding:10px 7%;margin:clamp(-47px,-8cqw,-25px) auto 0;background:url('traduction-plaque-211f9429789f.svg') center/100% 100% no-repeat;filter:drop-shadow(0 4px 2px #001d16aa);color:#fff4df}.att-plaque:before,.att-plaque:after{width:clamp(14px,5cqw,24px);height:clamp(14px,5cqw,24px)}.att-ar{flex:1;min-width:0;font:500 clamp(26px,8.4cqw,49px)/1.5 'Naskh','Amiri','Noto Naskh Arabic',serif;direction:rtl;overflow-wrap:anywhere;color:#fff4df;margin:0;text-shadow:0 2px 2px #08271b}
.att-hint{color:#fff0d4;margin:6px auto 3px;width:94%;font:500 clamp(13px,3.4cqw,19px)/1.4 Georgia,serif}.att-hint:after,.att-foot:after{content:'';display:block;width:47%;height:9px;margin:1px auto 0;background:radial-gradient(closest-side,#e6bf71 80%,transparent 90%) center/5px 5px no-repeat,linear-gradient(90deg,transparent,#c49a52 46%,transparent 47% 53%,#c49a52 54%,transparent) center/100% 1px no-repeat}
.att-deck{position:relative;perspective:900px;isolation:isolate;width:100%;height:clamp(135px,45cqw,224px);margin:4px auto 0;touch-action:pan-y}:is(#corps #ex-zone.att-stage,.att-stage) .att-card{--turn:0deg;--tilt:0deg;--shift:0%;--scale:1;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;position:absolute;left:50%;top:50%;width:43%!important;max-width:260px;height:96%!important;padding:12px 8px!important;border:2px solid #d9a44e!important;border-radius:clamp(12px,3.8cqw,22px)!important;background:radial-gradient(ellipse at 30% 7%,#fffbef,transparent 57%),linear-gradient(145deg,#ead7ac,#fff5dc 49%,#e7cd9e)!important;box-shadow:inset 1px 2px 1px #fffef4,inset -2px -3px 3px #bd965a,0 3px 0 #7d5a31,0 8px 12px #001e17aa!important;color:#153b2f!important;transform:translate(-50%,-50%) translateX(var(--shift)) rotateY(var(--turn)) rotateZ(var(--tilt)) scale(var(--scale));transition:transform .38s cubic-bezier(.2,.74,.18,1),filter .28s,opacity .24s;z-index:3;overflow:hidden;line-height:1.15!important;isolation:isolate}
.att-card:before,.att-card:after{content:'';position:absolute;pointer-events:none}.att-card:before{inset:5px;border:1px solid #bd965a85;border-radius:inherit;background:repeating-conic-gradient(from 45deg,#a9803c0c 0 25%,transparent 0 50%) center/9px 9px;mask-image:linear-gradient(130deg,black,transparent 40%,transparent 65%,black)}.att-card:after{inset:12% 15%;background:linear-gradient(90deg,transparent,#b99150a6,transparent) center top/40% 1px no-repeat,linear-gradient(90deg,transparent,#b99150a6,transparent) center bottom/40% 1px no-repeat}.att-label{position:relative;z-index:1;overflow-wrap:anywhere;text-wrap:balance;font:600 clamp(15px,4.8cqw,28px)/1.16 Georgia,serif;color:inherit}:is(#corps #ex-zone.att-stage,.att-stage) .att-card[data-position=left],:is(#corps #ex-zone.att-stage,.att-stage) .att-card[data-position=right]{--shift:-69%;--scale:.82;--turn:24deg;--tilt:3deg;z-index:1;filter:brightness(.88)}:is(#corps #ex-zone.att-stage,.att-stage) .att-card[data-position=right]{--shift:69%;--turn:-24deg;--tilt:-3deg}:is(#corps #ex-zone.att-stage,.att-stage) .att-card[data-position=hidden]{opacity:0;pointer-events:none;z-index:0;visibility:hidden}:is(#corps #ex-zone.att-stage,.att-stage) .att-card[data-position=left] .att-label{margin-right:10%}:is(#corps #ex-zone.att-stage,.att-stage) .att-card[data-position=right] .att-label{margin-left:10%}:is(#corps #ex-zone.att-stage,.att-stage) .att-card[aria-pressed=true]{border-color:#ffdd83!important;box-shadow:inset 0 0 0 3px #b88638,inset 0 0 22px #dbb77877,0 4px 0 #8b632e,0 0 12px #e8c47780!important}.att-stage .att-card[data-state=correct]{outline:3px solid #93eab2!important}.att-stage .att-card[data-state=incorrect]{outline:3px solid #ee9a86!important}
.att-nav{display:flex;align-items:center;justify-content:space-between;width:84%;max-width:480px;margin:5px auto 0}.att-prev,.att-next{display:grid;place-items:center;min-width:38px;min-height:38px;border:2px solid #dbad62;border-radius:50%;background:linear-gradient(#0e513b,#02271e);color:#f5ca73;font-size:24px;line-height:1;box-shadow:0 4px 5px #001c16aa}.att-dots{display:flex;align-items:center;justify-content:center;gap:3px}.att-dots>*{border:0;background:none;padding:7px 2px;line-height:0;font-size:0;color:transparent}.att-dots>*:before{content:'';display:block;width:9px;height:9px;border-radius:100%;background:#648477}.att-dots>[aria-current=true]:before{background:linear-gradient(#ffdfa0,#cb944b)}
.att-submit{display:block;margin:clamp(10px,3.7cqw,20px) auto 0;padding:11px 7%;border:2px solid #e9c17c;border-radius:99px;background:linear-gradient(175deg,#ffdc90,#e8b864 51%,#ce9547);color:#182e21;font:700 clamp(16px,4cqw,22px)/1.22 Georgia,serif;box-shadow:inset 0 1px #fff3ce,inset 0 -2px 2px #9d733e,0 5px 8px #001f16bb}.att-stage button:active:not(:disabled){filter:brightness(.94)}.att-submit:disabled{opacity:.7;cursor:default}.att-foot{position:relative;display:grid;place-items:center;height:clamp(33px,8cqw,50px);margin:8px auto 0}.att-foot:before{width:19px;height:19px}.att-foot:after{position:absolute;width:74%;height:1px;top:50%;left:13%;margin:0;background:linear-gradient(90deg,transparent,#c49a52 45%,transparent 46% 54%,#c49a52 55%,transparent)}
@media(prefers-reduced-motion:reduce){.att-card{transition:none}}
.att-stage [hidden]{display:none!important}:is(#corps #ex-zone.att-stage,.att-stage) > article.exercice.att-question{background:none!important;border:none!important;margin:0!important;padding:0!important;box-shadow:none!important;text-align:center}.att-stage .att-plaque{border:0!important}.att-stage .att-gesture{font:500 clamp(12px,3.4cqw,17px)/1.3 Georgia,serif;color:#f3e9cb;margin:2px auto 5px;max-width:95%}.att-stage .att-hint:has(+.att-gesture):after{display:none}.att-stage .att-gesture:after{content:'◆';display:block;width:48%;margin:1px auto;color:#e2b05a;font-size:8px;background:linear-gradient(90deg,transparent,#c6a559 44%,transparent 45% 55%,#c6a559 56%,transparent) center/100% 1px no-repeat}.att-carousel,.att-stage .att-card{touch-action:pan-y}.att-stage .att-card{border-image:none!important;text-align:center!important}.att-stage .att-card:disabled{opacity:1}.att-stage .att-question-nav{margin:12px auto 0;display:flex;justify-content:center;gap:10px;align-items:center;color:#f4e5be;font-size:13px}.att-stage :is(.att-prev-question,.att-next-question,.att-foot button){border:1px solid #a88c51;border-radius:20px;background:#0a3b2f;color:#f0deaf;padding:6px 10px;font:500 12px/1.2 Georgia,serif}.att-stage .att-question-nav button:disabled{opacity:.5}.att-stage .att-foot:has(>button),.att-stage .att-foot:has(.btn){display:flex;justify-content:center;align-items:center;gap:10px;height:auto;padding:8px 12px 15px}.att-stage .att-foot:has(>button):after,.att-stage .att-foot:has(.btn):after{display:none}.att-stage .q-pied{justify-content:center;color:var(--creme)}.att-stage .q-pied:empty{display:none}
.att-stage.atj{padding:0;display:block}.att-stage .att-head{line-height:1.18}.att-stage .att-brand{font-weight:600;font-variant:small-caps;white-space:nowrap;letter-spacing:.015em}.att-stage .att-progress{white-space:nowrap}.att-stage .att-card:after{background:radial-gradient(closest-side,#c5a067 70%,transparent) center 4px/4px 4px no-repeat,radial-gradient(closest-side,#c5a067 70%,transparent) center calc(100% - 4px)/4px 4px no-repeat,linear-gradient(90deg,transparent,#b99150a6,transparent) center top/50% 1px no-repeat,linear-gradient(90deg,transparent,#b99150a6,transparent) center bottom/50% 1px no-repeat}.att-stage:before,.att-stage:after{content:'';position:absolute;bottom:0;width:clamp(52px,12%,84px);aspect-ratio:1;pointer-events:none;z-index:-1;opacity:.19;background:repeating-conic-gradient(from 22.5deg,#d6ac60 0deg 2deg,transparent 2deg 45deg) center/16px 16px;mask-image:linear-gradient(45deg,black,transparent 56%)}.att-stage:before{left:0}.att-stage:after{right:0;transform:scaleX(-1)}

.att-stage .att-nav :is(.att-prev,.att-next){width:42px;height:42px;min-width:42px;min-height:42px;padding:0;border-radius:50%;line-height:1}.att-stage .att-submit{font-family:Georgia,serif;font-weight:700}
.att-stage .q-pied{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;margin:9px auto 0;padding:0 12px;gap:5px 12px}.att-stage .q-pied .resultat{color:#ffdc95}.att-stage .q-pied .resultat.ok{color:#b6edb6}.att-stage .q-pied .resultat.non{color:#ffd2ae}:is(#corps #ex-zone.att-stage,.att-stage) .q-pied .voir{border:0!important;background:none!important;color:#e8d9b7!important;font:500 14px/1.4 Georgia,serif!important;text-decoration:underline;text-underline-offset:3px;padding:8px!important;box-shadow:none!important;min-height:36px!important}.att-stage .att-foot:has(.ex-entete),.att-stage .att-foot:has(.lots-exercices){height:auto;display:grid;justify-items:center;gap:8px;padding:8px 14px 14px}.att-stage .att-foot :is(.ex-entete,.lots-exercices,.refaire){display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:0;max-width:100%;color:#e9dbb8;font-size:12px}.att-stage .att-foot .muted{color:#e9dbb8}.att-stage .att-foot .compteur:empty{display:none}.att-stage .att-foot .fin-partie{padding:8px 15px;border-radius:10px;background:#f1e2c3;color:#193c2d}.att-stage .att-foot:has(.ex-entete):after{display:none}.att-stage .att-hint.ex-consigne{color:var(--creme);font-weight:500}.att-stage .att-foot .btn{font:500 12px/1.2 Georgia,serif!important;border-radius:20px!important;min-height:32px!important;padding:6px 10px!important;background:#123d32!important;color:#f0deaf!important;box-shadow:none!important}
:is(#corps #ex-zone.att-stage,.att-stage) .att-card:is([data-position=left],[data-position=right]) .att-label{width:74%;max-width:160px;margin:0;font-size:clamp(14px,4.4cqw,24px)}
:is(#corps #ex-zone.att-stage,.att-stage) .att-card[data-position=left] .att-label{justify-self:start}:is(#corps #ex-zone.att-stage,.att-stage) .att-card[data-position=right] .att-label{justify-self:end}

/* Les commandes de série sont intégrées aux flèches de question. */
.att-stage .att-foot :is(.lots-exercices,.compteur){display:none!important}.att-stage .att-foot .ex-entete:empty,.att-stage .att-foot .ex-entete:not(:has(.refaire,.muted)){display:none!important}.att-stage .att-position{white-space:nowrap}.att-stage .att-foot:is(:has(.lots-exercices),:has(.ex-entete)){height:auto}
