.app{min-height:calc(100vh - 91px)}.login-panel{max-width:600px;margin:8vh auto;text-align:center;padding:45px 30px}.login-panel .restart-mark{margin:0 auto 22px}.login-panel h1{font-size:30px}.login-panel p{margin:18px 0;color:var(--muted)}.login-panel .btn{margin:12px 0}.loading{color:var(--muted)}.empty-state p{margin:12px 0 20px;color:var(--muted)}.home-video-stage video{width:100%;max-height:430px;border-radius:10px;background:#111}.home-video-stage:has(video){padding:0;background:white;min-height:0}.home-video-stage .text-button{margin-top:20px}.admin-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-row[hidden]{display:none}.admin-row h3{margin:8px 0 4px}.admin-row p{font-size:14px;color:var(--muted)}.admin-row .btn{flex-shrink:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check-row{display:flex;align-items:center;gap:10px;font-size:14px}.check-row input,.photo-settings input[type=checkbox]{width:auto!important;accent-color:var(--primary)}.curriculum-topic{display:flex;gap:10px;margin-bottom:12px}.curriculum-level{max-width:760px}.curriculum-level label{font-weight:500}.curriculum-level .check-row{margin-top:20px}.message .text-button{font-size:12px;margin-top:7px}.post p,.bubble p,.history p,.member-card>p{white-space:pre-line}.dm-messages{max-height:45vh;min-height:100px}.dm-messages .message{max-width:96%}.message .avatar{width:32px;height:32px}.chat-messages{min-height:260px}.post-actions{flex-wrap:wrap;gap:15px}.theme-picker{flex-wrap:wrap}.home-category-wrap{min-width:0}button:disabled{opacity:.55;cursor:wait}#main:focus{outline:none}.photo-settings>div{min-width:0}.is-home>main{max-width:1300px;margin:auto}#threadMessages{max-height:45vh;overflow:auto}.header-tools{margin-left:auto}.form-actions{flex-wrap:wrap}.form-actions a{align-self:center}dialog .subtitle{margin-top:12px}#noteScoreValue{color:var(--primary);font-weight:700}.julia-header{background:var(--primary)}@media(max-width:700px){.admin-row{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.login-panel{padding:28px 20px;margin:35px auto}.login-panel h1{font-size:25px}.header-tools{margin-left:0}.theme-picker{max-width:100%}.profile>span:last-child{display:none}.photo-settings{flex-wrap:wrap}.curriculum-topic input{min-width:0}.home-category-grid{padding-top:0}}

.discovery-gate{display:flex;align-items:center;flex-direction:column;text-align:center;padding:38px 28px}.discovery-gate h2{margin-top:15px}.discovery-gate p{max-width:490px;margin:15px 0 24px;color:var(--muted)}.discovery-gate .home-category-icon{margin-bottom:16px}

/* Règle permanente de Raphael : actions à droite de leur encart. */
#main .btn,#right .btn,#modalContent .btn{display:flex;width:fit-content;max-width:100%;margin-left:auto;align-self:flex-end}
:is(.form-actions,.member-actions,.post-actions,.chat-form){justify-content:flex-end}
.member-actions{width:100%}
#main :is(.form-actions,.member-actions,.post-actions) .btn,#modalContent .form-actions .btn{margin-left:0}
:is(#main,#right) .card>.text-button,.step-body>.text-button,.sidebar-bottom>.text-button,#modalContent>.text-button,#modalContent>p>.text-button,.home-video-stage>.text-button,.bubble>.text-button{display:block;width:fit-content;max-width:100%;margin-left:auto;align-self:flex-end}
.home-video-stage>.text-button{margin-right:0}
#main .lessons-path>.btn{margin-left:auto;align-self:center}
#main .admin-row>.member-actions{width:auto;margin-left:auto}
.chat-form input{flex:1}
@media(max-width:700px){#main .lessons-path>.btn{align-self:flex-end}.chat-form input{flex-basis:100%}}

.note-number{max-width:140px;display:block;margin-bottom:8px}#noteChart{margin-top:24px}#noteChart svg{width:100%;height:auto;display:block}#noteChart text{font-size:13px;fill:var(--ink)}

.account-admin{font-size:.8em;font-weight:500;white-space:nowrap}
.studio-live-admin{padding:16px 0 0}.studio-live-admin>p{font-size:14px;color:var(--muted);text-align:right;margin-bottom:12px}.studio-live-admin .form-actions{display:flex;justify-content:flex-end;margin:0;gap:12px}
.home-video-stage[hidden]{display:none!important}.studio-live-host video{width:100%;display:block;background:#000;object-fit:contain}.studio-live-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;flex-wrap:wrap}.studio-live-caption button{margin-left:auto}

.profile-account-section{border-top:1px solid var(--border);margin-top:24px;padding-top:20px}.profile-account-section h3{font-size:18px;margin-bottom:10px}.profile-account-section p{line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.profile-account-section .form-actions{gap:12px;margin-top:14px}.profile-account-section .caption{font-size:14px}

#themes[hidden],.notification-bell[hidden],#notificationCount[hidden]{display:none!important}.notification-bell{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--primary);background:var(--tint)}.notification-bell svg{width:23px;height:23px}#notificationCount{position:absolute;left:auto;right:-3px;top:auto;bottom:-3px;min-width:19px;height:19px;padding:0 4px;border-radius:12px;background:var(--primary);color:white;font-size:11px;display:grid;place-items:center}.notification-list{display:grid;gap:14px;margin-top:20px}.notification-item{border:1px solid var(--border);border-radius:12px;padding:16px}.notification-item.unread{background:var(--tint)}.notification-item h3{font-size:17px;margin-bottom:8px}.notification-item p{font-size:14px;line-height:1.6}.notification-item .form-actions{margin-top:12px}.header-tools{justify-content:flex-end}@media(max-width:700px){header .header-tools{margin-left:auto}}

/* Explications : deux pixels de moins, titres conservés. */
.app.is-home .home-heading p:last-child{font-size:14px}.app.is-home .home-layout .home-category p{font-size:13px}.subtitle{font-size:14px}.lesson-body p,.member-card>p,.step p{font-size:13px}.profile-account-section .caption{font-size:12px}.app.is-home .home-highlights .video-summary,.app.is-home .home-highlights .video-highlights p{font-size:13px}@media(max-width:700px){.app.is-home .home-heading p:last-child{font-size:13px}}

:root body .brand>span:last-child{color:#063373}
.questionnaire-question{margin:20px 0}.questionnaire-question label{display:block;margin-bottom:8px}.questionnaire-question input[type=number]{max-width:140px}.questionnaire-builder-row{display:grid;grid-template-columns:1fr 130px auto;gap:8px;margin:10px 0}@media(max-width:600px){.questionnaire-builder-row{grid-template-columns:1fr}.questionnaire-builder-row button{justify-self:end}}

.header-admin{padding:8px 12px;font-size:13px}header .header-admin[hidden]{display:none}

/* Notifications ancrées à la cloche, sans modal ni voile sur la page. */
.notification-panel[hidden]{display:none!important}.notification-panel{position:fixed;z-index:100;background:var(--surface,#fff);border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 48px #10233d66,0 4px 14px #10233d33;padding:0 18px 18px;overflow:auto;overscroll-behavior:contain;text-align:left}.notification-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;background:var(--surface,#fff);padding:16px 0 12px;border-bottom:1px solid var(--border);z-index:1}.notification-panel-heading h2{font-size:20px}.notification-panel-heading button{font-size:26px;line-height:1;width:36px;height:36px;border-radius:50%;flex-shrink:0}.notification-panel-heading button:hover{background:var(--tint)}.notification-panel .notification-list{margin-top:12px;gap:10px}.notification-panel .notification-item{padding:14px}.notification-panel .notification-item h3{font-size:15px}.notification-panel .notification-item p{font-size:13px}.notification-panel .btn{font-size:13px;padding:8px 12px}.notification-panel .subtitle{margin-top:16px}.notification-bell[aria-expanded=true]{box-shadow:0 0 0 2px var(--primary)}

/* Aide discrète pendant la lecture de la page. */
html.restart-help-compact :is(#hpp-launcher-wrap,#hpp-launcher){--help-size:52px;--help-font:0px;--help-padding:0px;--help-gap:0px;--help-text:none;--help-dot:none}
html.restart-help-compact :is(#hpp-launcher-pill,#hpp-launcher-label){width:var(--help-size);min-height:52px;height:52px;padding:var(--help-padding);font-size:var(--help-font);gap:var(--help-gap);justify-content:center;border-radius:28px}
html.restart-help-compact #hpp-launcher-text{display:var(--help-text)}
html.restart-help-compact :is(#hpp-launcher-wrap,#hpp-launcher) #hpp-live-dot{display:var(--help-dot);position:static}
html.restart-help-compact :is(#hpp-launcher-pill,#hpp-launcher-label) svg{margin-left:0;width:22px!important;height:22px!important}
html.restart-help-compact :is(#hpp-launcher-wrap,#hpp-launcher):focus-within{--help-size:auto;--help-font:14px;--help-padding:12px 20px;--help-gap:8px;--help-text:inline;--help-dot:inline-block}
@media(hover:hover){html.restart-help-compact :is(#hpp-launcher-wrap,#hpp-launcher):hover{--help-size:auto;--help-font:14px;--help-padding:12px 20px;--help-gap:8px;--help-text:inline;--help-dot:inline-block}}

/* Trois cartes : icône et titre réunis sur la ligne d’en-tête. */
.app.is-home .home-layout .home-category{display:flex;flex-direction:column;align-items:flex-start}
.app.is-home .home-layout .home-category-heading{display:flex;align-items:center;gap:12px;width:100%;min-width:0;margin-bottom:4px}
.app.is-home .home-layout .home-category .home-category-heading .home-category-icon{flex-shrink:0;margin:0}
.app.is-home .home-layout .home-category-heading h3{min-width:0;margin:0;text-align:left}
@media(max-width:799px){.app.is-home .home-layout.is-welcome-compact .home-category-heading{gap:6px;align-items:flex-start}.app.is-home .home-layout.is-welcome-compact .home-category .home-category-heading .home-category-icon{width:24px;height:24px;border-radius:7px}.app.is-home .home-layout.is-welcome-compact .home-category-heading .section-icon{width:18px;height:18px}}

/* Informations légales accessibles avant et après connexion. */
.legal-footer{max-width:1640px;margin:0 auto;padding:16px 34px 96px;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}
.legal-footer nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 24px}
.legal-footer a{padding:6px 0;text-decoration:underline;text-underline-offset:3px}
.legal-footer a:hover{color:var(--primary)}
.legal-new-tab{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){.legal-footer{padding:16px 20px 96px}.legal-footer nav{column-gap:18px}}

.lesson-create{border:2px dashed var(--accent);transition:background .15s,border-color .15s}.lesson-create.dragging{background:var(--accent-light)}.lesson-create .form-actions{flex-wrap:wrap;justify-content:flex-end}

/* Notification cards share one action across their whole surface. */
.notification-panel-heading{display:block}.notification-panel-topline{display:flex;align-items:center;justify-content:space-between;gap:16px}.notification-panel-tools{display:flex;justify-content:flex-end}.notification-panel-tools #markNotificationsRead{width:auto;height:auto;border-radius:0;font-size:13px;font-weight:400;line-height:1.5;padding:8px 0 0;background:none}.notification-panel-tools #markNotificationsRead[hidden]{display:none}.notification-panel .notification-item{padding:0;overflow:hidden}.notification-link{display:block;width:100%;padding:14px;border:0;border-radius:11px;background:transparent;color:var(--primary);text-align:left;cursor:pointer;font:inherit}.notification-link:hover{background:var(--accent-light)}.notification-link:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}.notification-title{display:block;font-size:15px;font-weight:700;margin-bottom:8px}.notification-text{display:block;font-size:13px;line-height:1.6;font-weight:400}.notification-date{display:block;margin-top:8px}.notification-action{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;font-size:13px}.notification-action>span:first-child{background:var(--accent-light);text-decoration:underline;text-underline-offset:3px;padding:1px 3px}.notification-action>span:last-child{font-size:20px;font-weight:400}

.messages-bubble{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:50%;color:var(--primary);background:var(--tint)}.messages-bubble[hidden]{display:none!important}.messages-bubble svg{width:23px;height:23px}.messages-bubble:hover{background:var(--accent-light)}.messages-bubble[aria-pressed=true]{box-shadow:0 0 0 2px var(--primary)}.messages-bubble:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

/* Entry preferences: explicit choices remain readable on narrow screens. */
.entry-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin:16px 0 24px}
.entry-choice{display:flex!important;align-items:center;gap:12px;padding:16px;margin:0!important;border:1px solid #e1e3e6;border-radius:14px;background:#fff;cursor:pointer;font-size:14px;line-height:1.5}
.entry-choice:has(input:checked){border-color:#067340;background:#eef7f1;box-shadow:inset 0 0 0 1px #067340}
.entry-choice input{flex:0 0 auto;width:18px!important;height:18px;accent-color:#067340;margin:0!important}
.entry-choice-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#fff0e5;color:#854320;font-size:24px;font-weight:400}
.entry-other-parameters{margin:26px 0;padding:18px;border:1px solid #e1e3e6;border-radius:14px}
.entry-other-parameters summary{cursor:pointer;font-weight:700;color:#063373;text-align:right}
.entry-other-parameters[open] summary{margin-bottom:18px}
.entry-other-parameters fieldset{border:0;padding:0;margin:18px 0}
.entry-other-parameters legend{font-weight:700}

.lesson-discussion{margin-top:28px;border-top:1px solid #e1e3e6;padding-top:22px}.lesson-comment{padding:14px 0;border-bottom:1px solid #e1e3e6}.lesson-comment-reply{margin-left:18px;padding-left:12px;border-left:2px solid #f3b58b}.lesson-comment-body{white-space:pre-wrap;overflow-wrap:anywhere}.lesson-discussion .form-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.lesson-discussion textarea{display:block;width:100%;box-sizing:border-box;margin:10px 0}.lesson-anonymous{display:flex;align-items:center;gap:8px}.lesson-anonymous input{width:auto}.lesson-discussion form{margin-top:20px}

.lesson-discussion [hidden]{display:none!important}

.discovery-end[hidden]{display:none!important}.discovery-end .form-actions{display:flex;justify-content:flex-end}.discovery-end{margin-top:20px}
