/* Structure responsive SLC. Palette et polices locales dans theme.css. */
@import url("./theme.css");
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:1.5rem}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-body);line-height:1.6;font-size:1rem}
button,input,textarea,select{font:inherit;color:inherit}
button,a,input,textarea,summary{ -webkit-tap-highlight-color:transparent }
button{cursor:pointer}button:disabled{cursor:default;opacity:.5}
a{color:inherit;text-underline-offset:.18em}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
button,input,textarea,select{border-radius:var(--radius-control)}
input,textarea,select{width:100%;padding:.85rem 1rem;border:1px solid var(--line);background:var(--surface);min-height:48px}
textarea{min-height:105px;resize:vertical;line-height:1.6}
input::placeholder,textarea::placeholder{color:var(--muted)}
h1,h2,h3,p{margin-top:0}h1,h2,h3{color:var(--heading);line-height:1.2;letter-spacing:-.025em;font-family:var(--font-heading);font-weight:500}
h1{font-size:2.3rem;max-width:20ch;margin-bottom:1.1rem}h2{font-size:1.55rem;margin-bottom:1rem}h3{font-size:1.22rem}
p{max-width:70ch}p:last-child{margin-bottom:0}
.app-shell{max-width:1160px;margin:0 auto;padding:0 3rem 3rem}
.app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:114px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:.8rem;text-decoration:none;font-weight:600;font-size:.93rem;line-height:1.3;letter-spacing:.015em}
.brand-mark{display:grid;place-items:center;width:44px;height:44px;color:var(--heading)}
.brand-mark svg{display:block;width:38px;height:38px}
.header-actions{display:flex;align-items:center;gap:.75rem}
.app-nav{display:flex;gap:1.8rem;padding:1.3rem 0;border-bottom:1px solid var(--line);margin-bottom:2.8rem}
.app-nav button{background:none;border:0;padding:.65rem .1rem;color:var(--muted);font-size:.92rem;font-weight:600;min-height:46px;border-radius:0;border-bottom:2px solid transparent}
.app-nav button[aria-current="page"]{color:var(--heading);border-bottom-color:var(--accent)}
main{min-height:64vh}.screen{animation:arrive .18s ease-out}.screen-heading{margin-bottom:2.2rem;max-width:760px}.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);margin-bottom:1rem}.lede{font-size:1.12rem;color:var(--muted);max-width:55ch}
.stack{display:grid;gap:1.5rem}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.card{padding:1.65rem 0;border-top:1px solid var(--line)}.card-grid .card{margin:0}.card>h2:first-child,.card>h3:first-child{margin-top:0}
.field{display:block;margin:1.2rem 0}.field>label,.field>span:first-child,label.field{font-weight:600}.field textarea,.field input,.field select{margin-top:.5rem;font-weight:400}.field-help{font-size:.86rem;color:var(--muted);font-weight:400;margin-top:.4rem}
.button{display:inline-flex;justify-content:center;align-items:center;gap:.5rem;min-height:48px;padding:.7rem 1.1rem;border:1px solid var(--line);background:var(--surface);text-decoration:none;font-weight:600;font-size:.94rem;transition:background .15s ease-out,transform .15s ease-out}
.button:hover{background:var(--subtle)}.button:active{transform:translateY(1px)}.button.primary{background:var(--heading);color:var(--on-strong);border-color:var(--heading)}.button.primary:hover{filter:brightness(.92)}.button.secondary{background:var(--subtle)}.button.quiet{background:transparent}.button.danger{color:var(--danger);border-color:currentColor;background:transparent}
.quote{font-family:var(--font-heading);font-size:1.36rem;line-height:1.5;color:var(--heading);margin:1.8rem 0;padding:1.4rem 1.5rem;background:var(--subtle);border-radius:var(--radius-panel)}
.muted,.privacy{color:var(--muted)}.privacy{font-size:.84rem;max-width:65ch;margin:1.5rem 0}.pill{display:inline-flex;align-items:center;padding:.3rem .65rem;background:var(--subtle);color:var(--heading);border-radius:99px;font-size:.8rem}
.situation-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;list-style:none;padding:0;margin:0 0 2rem}
.situation-button{text-align:left;width:100%;min-height:76px;background:var(--surface);border:1px solid var(--line);padding:1rem 1.2rem;border-radius:var(--radius-panel);font-weight:600;line-height:1.4}.situation-button:hover,.situation-button[aria-pressed="true"]{background:var(--subtle);border-color:var(--heading)}
.situation-detail{padding:1.9rem;border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--surface)}.situation-detail .quote{margin:1.1rem 0}.situation-detail .button{margin:.25rem .5rem .25rem 0}
.step-list{display:flex;gap:.7rem;list-style:none;padding:0;margin:0 0 1.5rem}.step-list>*{flex:1}.step-button{width:100%;min-height:60px;border:1px solid var(--line);background:var(--surface);font-weight:700;font-size:1.15rem}.step-button[aria-current="step"]{background:var(--heading);border-color:var(--heading);color:var(--on-strong)}
.stop-card{padding:2.3rem;background:var(--subtle);border-radius:var(--radius-panel);min-height:260px}.step-letter{font-family:var(--font-heading);font-size:4.4rem;line-height:1;color:var(--heading)}.breath-count{font-size:1.15rem;font-weight:600;margin:1rem 0}.stop-card .button{margin-top:1rem}
.note-list{display:grid;gap:0}.note-card{padding:1.6rem 0;border-bottom:1px solid var(--line)}.note-card p{white-space:pre-wrap;overflow-wrap:anywhere}.note-meta{font-size:.82rem;color:var(--muted)}.note-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1rem}.note-actions .button{min-height:44px;padding:.5rem .85rem}
.inline-confirm{border:1px solid var(--danger);border-radius:var(--radius-panel);padding:1.2rem;margin:1rem 0}.inline-confirm button{margin:.4rem .6rem .2rem 0}
.status{font-size:.83rem;color:var(--muted);margin:.7rem 0;min-height:1.3rem;overflow-wrap:anywhere}.status[data-kind="error"]{color:var(--danger)}
details{border-top:1px solid var(--line);padding:1rem 0}summary{cursor:pointer;font-weight:600;min-height:44px;line-height:1.5;display:list-item;padding:.45rem 0}details[open]>summary{margin-bottom:1rem}.full-text{max-width:70ch}.full-text h2,.full-text h3{margin-top:2rem}.full-text p{white-space:pre-line}
ul,ol{padding-left:1.3rem}li{padding:.18rem 0}.app-footer{margin-top:3rem;border-top:1px solid var(--line);padding-top:1rem;color:var(--muted);font-size:.78rem}.skip-link{position:absolute;left:1rem;top:-100px;z-index:20;padding:.8rem;background:var(--surface)}.skip-link:focus{top:1rem}
@keyframes arrive{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:900px){.screen{max-width:850px;margin:0 auto}.screen-heading{padding-top:.5rem}.quote{max-width:70ch}}
@media(max-width:650px){.app-shell{padding:0 1.2rem calc(6rem + env(safe-area-inset-bottom))}.app-header{min-height:86px}.brand{max-width:190px;font-size:.85rem}.brand-mark{width:30px;height:30px}.brand-mark svg{width:29px;height:29px}.header-actions .button{padding:.5rem .8rem;font-size:.84rem;min-height:42px}.app-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;padding:.45rem .4rem calc(.45rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-bottom:0;background:var(--paper)}.app-nav button{font-size:.7rem;padding:.55rem .15rem;line-height:1.25;min-height:51px;word-break:normal}.screen-heading{margin:1.8rem 0 1.6rem}h1{font-size:2rem}h2{font-size:1.45rem}.lede{font-size:1rem}.eyebrow{margin-bottom:.7rem}.card-grid{grid-template-columns:1fr;gap:.5rem}.situation-list{grid-template-columns:1fr;gap:.6rem}.situation-button{min-height:65px;padding:.9rem 1rem}.situation-detail{padding:1.15rem}.quote{padding:1.2rem;font-size:1.18rem}.stop-card{padding:1.6rem 1.3rem;min-height:270px}.step-button{min-height:52px}.card{padding:1.4rem 0}.stack{gap:1.2rem}.header-actions{gap:.3rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Détails des composants d’exercices. */
.field-help{display:block}.full-text{white-space:pre-wrap;overflow-wrap:anywhere}.step-button span{display:block;font-size:.7rem;font-weight:500;line-height:1.25;margin-top:.2rem}.situation-button[aria-expanded="true"]{background:var(--subtle);border-color:var(--heading)}
/* Finition SLC. Les bordures de saisie restent perceptibles grâce au vert profond. */
body{border-top:2px solid var(--slc-or)}
.app-header{min-height:128px}
.brand{gap:1.6rem;color:var(--heading)}
.slc-logo{display:block;width:176px;height:auto;flex-shrink:0}
.brand-title{border-left:1px solid var(--line);padding-left:1.6rem;font-weight:600;font-size:1rem}
.brand-title small{font-size:inherit;font-weight:400}
.screen-heading{position:relative;padding-bottom:.5rem}
.screen-heading::after{content:"";display:block;width:40px;height:2px;background:var(--slc-or);margin-top:1.5rem}
h1{font-size:2.5rem;line-height:1.15}h2{font-size:1.75rem}h3{font-size:1.4rem}
.lede{color:var(--heading)}
.stack>p,.stack>h2,.stack>h3,.stack>.field,.stack>.quote{margin-top:0;margin-bottom:0}
.stack>.button{justify-self:start}
.field-help{font-size:.94rem}
input,textarea,select{border-color:var(--control-line)}
input:disabled,textarea:disabled{background:var(--subtle);opacity:.75}
.button{border-color:var(--control-line)}
.button.quiet{border-color:transparent;text-decoration:underline;text-underline-offset:.22em}
.app-nav button{padding:.7rem 1rem;border-radius:4px 4px 0 0}
.app-nav button:hover{background:var(--subtle)}
.app-nav button[aria-current="page"]{background:var(--subtle);border-bottom-color:var(--heading)}
.quote{border-top:1px solid var(--slc-or);font-size:1.5rem}
.situation-button{border-color:var(--control-line);display:flex;align-items:center;justify-content:space-between;gap:1rem}
.situation-button::after{content:"›";font-size:1.5rem;line-height:1;color:var(--heading)}
.situation-button[aria-expanded="true"]::after{content:"⌄"}
.step-button{border-color:var(--control-line)}.step-button:hover{background:var(--subtle)}.step-button[aria-current="step"]:hover{background:var(--heading)}
.step-list{gap:.5rem}.step-button span{font-size:.8rem}
.card.stop-card{border-top:2px solid var(--slc-or)}
.situation-detail .quote{padding:1rem 0;background:transparent;border-radius:0;border-top:0}
.privacy{font-size:.95rem;max-width:70ch}.status,.note-meta,.app-footer{font-size:.9rem}
@media(max-width:650px){
.app-shell{padding-left:1.1rem;padding-right:1.1rem}
.app-header{min-height:103px;gap:.75rem}.brand{gap:0;max-width:none}.brand-title{display:none}.slc-logo{width:145px}
.header-actions .button{min-height:46px;font-size:.875rem;padding:.55rem .7rem;white-space:nowrap}
.app-nav{background:var(--paper);box-shadow:0 -4px 20px color-mix(in oklch,var(--slc-vert) 6%,transparent)}
.app-nav button{font-size:.84rem;padding:.6rem .15rem;min-height:52px}
h1{font-size:2rem}h2{font-size:1.55rem}h3{font-size:1.3rem}
.screen-heading{margin:1.9rem 0 1.8rem}.screen-heading::after{margin-top:1.3rem}.eyebrow{font-size:.72rem;letter-spacing:.11em}
.quote{font-size:1.3rem;padding:1.1rem}.card.situation-detail{padding:1.2rem}.card.stop-card{padding:1.5rem 1.2rem}
.step-button{min-height:76px;padding:.5rem .2rem}.step-button span{font-size:.72rem;min-height:1.8rem}.stack>.button{justify-self:stretch}
}
@media(max-width:360px){.slc-logo{width:126px}.header-actions .button{font-size:.8rem;padding:.5rem .6rem}}

/* Accès pendant le travail et pause respiratoire, sans animation de rythme. */
.work-actions,.pause-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.work-actions .button{flex:1;min-width:220px;min-height:56px}
.work-permission{margin:1rem 0;color:var(--muted)}
.morning-heading{margin:3rem 0 1rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.morning-heading h2{margin-bottom:.6rem}
#pause-situation{margin-bottom:1.5rem}
.pause-context{border-left:2px solid var(--slc-or);padding:.5rem 0 .5rem 1rem;margin:1rem 0 0;color:var(--heading)}
.pause-decisions{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--line)}
.stop-card .pause-actions .button{margin-top:0}
.response-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1.25rem}
.response-choices .button{margin:0;text-align:left;justify-content:flex-start}
.response-choices .button[aria-pressed="true"]{background:var(--heading);color:var(--on-strong);border-color:var(--heading)}
.response-detail,.postpone-panel{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.response-detail .quote,.postpone-panel .quote{padding:1.1rem 0;background:transparent;border-top:0}
.pause-return{margin-top:1.2rem}
.pause-return .button{margin-top:0}
@media(max-width:650px){
  .work-actions{display:grid;grid-template-columns:1fr}
  .work-actions .button{min-width:0;width:100%}
  .pause-actions{display:grid;grid-template-columns:1fr}
  .pause-actions .button{width:100%;min-width:0;white-space:normal}
  .response-choices{grid-template-columns:1fr}
  .morning-heading{margin-top:2.3rem}
}
