:root { color-scheme: light; font: 16px/1.5 "Segoe UI", system-ui, sans-serif; color: #173d31; background: #eff2e9; }
#mise-a-jour:not([hidden]) {position:fixed;left:50%;bottom:calc(76px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:45;width:min(570px,calc(100% - 24px));display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:14px 16px;background:rgba(29,54,43,.96);color:#fff;border:1px solid #9eb9a5;border-radius:18px;box-shadow:0 6px 24px #08170f52;backdrop-filter:blur(14px)}
#mise-a-jour p {font-size:14px;line-height:1.35;margin:2px 0 0}
#mise-a-jour #version-aide {color:#ffdda9}
#mise-a-jour .version-actions {display:flex;align-items:center;gap:6px;margin-left:auto}
#mise-a-jour button {width:auto;min-height:44px;margin:0;padding:8px 12px;border-radius:10px;background:#e8fac2;color:#163b2c;font-size:14px}
#mise-a-jour #version-plus-tard {background:transparent;color:white}
#mise-a-jour button:disabled {background:#ffa44d;color:#182019}
@media(min-width:800px){#mise-a-jour:not([hidden]){bottom:20px}}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; padding: max(22px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); display: grid; place-items: center; }
.card { width: min(100%,440px); background: #fffef9; overflow: hidden; border-radius: 28px; border: 1px solid #d6ddcd; box-shadow: 0 18px 58px #173d3112; }
.cover { color: #effbbc; background: radial-gradient(ellipse at 98% 4%,#316c49,transparent 70%), #173d31; padding: 36px 30px; }
.cover-inner { display: flex; gap: 18px; align-items: center; }
.app-icon { border-radius: 22px; box-shadow: 0 3px 16px #0b211b42; }
.wordmark h1 { margin: 0; font-size: clamp(45px,12vw,61px); line-height: .99; letter-spacing: -.07em; }
.wordmark p { color: #dfebd4; margin: 6px 0 0; font-size: 16px; }
.content { padding: 28px 30px 14px; }
h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; letter-spacing: -.045em; }
p { margin: 0; }
#intro, #guide, #desktop-qr p { color: #40564c; }
button { display: block; width: 100%; min-height: 52px; margin: 22px 0 0; border: 0; border-radius: 14px; padding: 11px 18px; color: #f1fcc2; background: #214c39; font: inherit; font-weight: 700; cursor: pointer; }
button:focus-visible, #guide:focus-visible { outline: 3px solid #527a0a; outline-offset: 3px; }
button:disabled { opacity: .72; cursor: wait; }
#guide { margin-top: 16px; padding: 14px 16px; background: #eff4e8; border-radius: 12px; }
#guide h3 { font-size: 16px; margin: 0 0 5px; }
ol { margin: 0; padding-left: 21px; }
li + li { margin-top: 5px; }
#desktop-qr { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e2e8da; margin-top: 22px; padding-top: 16px; }
#desktop-qr img { width: 116px; height: 116px; flex: none; }
#desktop-qr p { font-size: 15px; }
#status:not(:empty) { margin-top: 12px; color: #365140; }
footer { font-size: 10px; font-weight: 800; letter-spacing: .17em; color: #567062; padding: 8px 30px 22px; }
[hidden] { display: none !important; }
@media (max-width: 350px) { .cover, .content { padding-left: 20px; padding-right: 20px; } .app-icon { width: 70px; height: 70px; } }

body:has(#espace:not(:empty)) { align-items: start; }
body[data-connecte="oui"] .card { width: min(100%, 760px); }
body[data-connecte="oui"] .cover { padding: 14px 24px; }
body[data-connecte="oui"] .app-icon { width: 48px; height: 48px; border-radius: 12px; }
body[data-connecte="oui"] .wordmark h1 { font-size: 30px; }
body[data-connecte="oui"] .wordmark p { font-size: 12px; margin-top: 2px; }
#espace:empty { display:none; }
#espace h3 { margin: 10px 0 4px; }
#espace button { width: auto; margin: 6px 0; font-size: 14px; min-height: 42px; }
#espace .secondary { background:#eef3e7;color:#264635; }
#espace .primary { background:#214c39;color:#f1fcc2; }
#espace .signal:not(:empty) { padding:10px; margin-bottom:10px; background:#faf2d5; color:#59401c; border-radius:8px; }
#espace textarea,#espace select,#espace input { max-width:100%; padding:10px; font:inherit; color:#173d31; background:white; border:1px solid #a2b6a7; border-radius:8px; }
#espace textarea { display:block; width:100%; margin:12px 0; }
.aux,.tools,.tabs,.itemhead,.person-row { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.tabs { margin:12px 0; }.tabs button[aria-pressed="true"] { background:#214c39!important; color:white!important; }
.itemhead { justify-content:space-between; }.person { background:#e4edce; padding:3px 9px; border-radius:12px; }
.item { padding:14px 0; border-top:1px solid #d6dfd2; }.item p,.replies p {white-space:pre-wrap; overflow-wrap:anywhere; margin:7px 0;}
.item a,.item small,.replies small,.person-row small { display:block; }.item small,.person-row small {color:#4c6156;}
.replies { padding-left:14px; border-left:3px solid #c6d8af; }.replies article { padding:5px 0; }
.person-row { border-top:1px solid #d6dfd2; padding:7px 0; }.person-row div { flex:1; min-width:110px; }
.qr-panel { padding:14px 0; text-align:center; }.qr-panel img { display:block; width:min(100%,280px); height:auto; margin:0 auto; image-rendering:pixelated; }
.qr-panel button { margin:7px 4px!important; }.reference { display:block; overflow-wrap:anywhere; padding:12px; font-size:17px; }.tools { margin-bottom:10px; }
@media(max-width:480px){body {padding:0;}.card,body[data-connecte="oui"] .card{min-height:100svh;width:100%;border:0;border-radius:0;}.content{padding:18px 16px;}}
