/* Corrections de mise en page. Les composants de règles (.lab, .schema,
   .regle-animation) conservent leurs styles et leur comportement. */
html,body{max-width:100%;}
.page,.contenu,.panneau,.salut,.entete,.entete .liens{min-width:0;}
.table-scroll{width:100%;max-width:100%;overflow:auto;overscroll-behavior-inline:contain;border:1px solid #d4b37b;border-radius:18px;background:#fffdf7;scrollbar-width:thin;}
.table-scroll:focus-visible{outline:3px solid #b47831;outline-offset:3px;}
.table-scroll .tableau{margin:0;min-width:720px;border:0;}
.table-scroll .tableau th{font-size:14px;line-height:1.55;white-space:normal;min-width:105px;max-width:180px;padding:18px 14px;}
.table-scroll .tableau td{padding:18px 14px;}
.page{background-image:none;background-color:#fffaf3;}
.salut{position:relative;isolation:isolate;padding:24px;border:1px solid #dfc79f;background:#fffaf3;border-radius:18px;}
.salut h1,.salut h2{color:#184b43;}
.salut p{color:#58665e;}
.seances-hero h1,.seances-hero h2,.seance-hero h1{color:#fff8df;text-shadow:0 2px 8px #173d35;}
.entete .liens{display:flex;flex-wrap:wrap;overflow:visible;gap:8px;}
.entete .liens a,.entete .liens a[data-riad-art]{flex:1 1 115px;min-width:0!important;min-height:49px!important;padding:10px 15px!important;border:1px solid #c7a264!important;border-radius:14px!important;background:#fff8e9!important;background-image:none!important;color:#234e46!important;font:500 15px/1.35 var(--ui)!important;text-align:center;text-decoration:none;box-shadow:0 2px 0 #d4b78655!important;}
.entete .liens a[data-riad-art]>span{opacity:1;}
.entete .liens a.actif,.entete .liens a[data-riad-art].actif{background:#174e42!important;color:#fff7df!important;outline:0;box-shadow:inset 0 -3px #bc9147!important;}
.entete .compte [data-riad-art]{min-width:0!important;min-height:40px!important;padding:8px 12px!important;background:none!important;color:#714720!important;font:14px var(--ui)!important;}
.page .btn,.offres-public .btn,.apps-public .btn,.barre-lecon .btn,.navigation-parties .btn,.question-prof .btn,#ex-zone .btn,#ex-zone .choix-btn,#ex-zone .jeton,#ex-zone .relier button,.audiowrap .btn,.repeat-box button,.cue-side .repeat,.cue-side .adjust{min-width:0!important;min-height:46px!important;padding:12px 22px!important;border:1px solid #bd9659!important;border-image:none!important;border-radius:14px!important;background:#174e42!important;color:#fff8e7!important;font:500 15px/1.45 var(--ui)!important;box-shadow:0 3px 0 #b68c4f66!important;}
.page .btn.clair,.offres-public .btn.clair,.navigation-parties .btn.clair,.barre-lecon .btn,.cue-side .repeat,.cue-side .adjust,.repeat-box button{background:#fff8e9!important;color:#285348!important;}
#ex-zone .choix-btn,#ex-zone .jeton,#ex-zone .relier button{background:#fffbef!important;color:#174e42!important;font:26px/1.7 var(--ar)!important;}
#ex-zone .choix.fr .choix-btn{font:16px/1.5 var(--ui)!important;}
#ex-zone .choix-btn.juste,#ex-zone .relier button.juste{background:#dceee1!important;border-color:#368153!important;}
#ex-zone .choix-btn.faux,#ex-zone .jeton.faux{background:#f9e4df!important;border-color:#b63b2b!important;}
.page [data-riad-art]>span,.barre-lecon [data-riad-art]>span,.navigation-parties [data-riad-art]>span,#ex-zone [data-riad-art]>span{opacity:1;}
.audiobar .ab-rate,.audiobar .ab-back,.audiobar .ab-suivi,.cue-side .rate{background:#fff3d9!important;border:1px solid #b69355;border-radius:10px;min-width:50px;min-height:42px;padding:8px 12px;color:#264f45;}
.offre{background:#fff8e9;border:1px solid #cba15d;border-radius:22px;box-shadow:inset 0 0 0 5px #fffdf6;padding:30px;}
.barre-lecon{gap:12px;align-items:center;}
.barre-lecon .ou{min-width:0;overflow-wrap:normal;word-break:normal;}
.rail-close{display:none;}
.speech-tools{margin:14px 0 4px;padding:12px;border:1px solid #ddc59a;border-radius:12px;background:#fbf3e3;display:flex;gap:10px;align-items:center;flex-wrap:wrap;font:13px/1.5 var(--ui);}
.speech-tools button{padding:8px 12px;border:1px solid #b89359;border-radius:10px;background:#174e42;color:#fff9e9;cursor:pointer;min-height:42px;}
.speech-tools button:disabled{opacity:.55;cursor:default;}
.speech-tools label{display:flex;align-items:center;gap:5px;}
.speech-tools select{max-width:100%;padding:7px;border:1px solid #ceb583;border-radius:8px;background:#fffaf0;}
.speech-note{flex:1 0 100%;color:#5c655c;}
.cue.speaking{outline:3px solid #bd9659;outline-offset:3px;}
@media(max-width:860px){.entete{position:relative;padding:12px;gap:12px;}.entete .liens{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;}.entete .liens a,.entete .liens a[data-riad-art]{min-height:48px!important;padding:8px 5px!important;font-size:12px!important;}.entete .compte{min-width:0;}.page{padding:16px;margin:12px auto;width:calc(100% - 20px);}.salut{padding:18px;}.rail-close{display:block;position:sticky;top:8px;margin:0 0 14px auto;padding:8px 16px;border:1px solid #dfc186;border-radius:14px;color:#fff8e7;background:#174e42;min-height:44px;z-index:2;}.lecon .rail{padding:12px 18px 28px;}.barre-lecon{display:grid;grid-template-columns:auto minmax(0,1fr);}.barre-lecon .btn{padding:8px 12px!important;font-size:13px!important;}.barre-lecon .ou{font-size:13px;line-height:1.5;}.tete-partie h1{overflow-wrap:normal;word-break:normal;font-size:clamp(24px,7vw,32px);}.table-scroll .tableau{min-width:680px;}.table-scroll .tableau th{padding:12px 10px;}.table-scroll .tableau td{padding:12px 10px;}}
@media(prefers-reduced-motion:reduce){.cue,.btn,.choix-btn{scroll-behavior:auto;transition:none;}}

.page{overflow:clip}.table-scroll{contain:inline-size;position:relative;}
