.activity-body { min-height:100svh; display:flex; flex-direction:column; background:#f8f6ee; color:#28382e; }
.activity-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding:30px 6vw; }
.activity-header > a:last-child,.activity-header button { font:inherit; font-size:.8rem; background:none; border:0; color:inherit; text-decoration:none; cursor:pointer; }
.activity-wordmark { font-size:.85rem; font-weight:800; letter-spacing:.1em; text-decoration:none; }
.activity-wordmark span { display:block; margin-top:6px; font-size:.6rem; letter-spacing:.22em; color:#7a8073; }
.activity-access { width:min(490px,100%); margin:auto; padding:32px 24px; text-align:center; }
.activity-symbol { font-size:58px; line-height:1; color:#9c523e; margin-bottom:26px; }
.activity-access .eyebrow,.construction-main .eyebrow { font-size:.6rem; letter-spacing:.15em; }
.activity-access h1 { font-size:clamp(38px,7vw,58px); margin-bottom:22px; letter-spacing:-.05em; }
.activity-access h1 span,.construction-main h1 span { color:#af5c43; }
.activity-intro { font-size:.95rem; color:#727a6e; margin:0 auto 28px; }
#activity-form label { display:block; font-size:.75rem; margin-bottom:12px; font-weight:700; }
#activity-code { display:block; width:100%; text-align:center; font:600 30px/1.5 monospace; letter-spacing:.5em; padding:15px 0 15px .5em; background:#fff; border:1px solid #d7dccf; border-radius:10px; color:#28382e; }
#activity-code:focus { outline:2px solid #78865f; outline-offset:4px; }
.activity-submit { width:100%; display:flex; justify-content:space-between; align-items:center; margin-top:16px; padding:18px 22px; background:#28382e; color:#f8f6ee; border:0; border-radius:10px; font-size:.85rem; font-weight:700; }
.activity-submit span { color:#e4cc65; font-size:22px; }
.activity-submit:disabled { opacity:.6; cursor:wait; }
#activity-status { min-height:24px; margin:12px 0 0; font-size:.8rem; color:#a04636; }
.activity-footnote { color:#8a8e80; font-size:.7rem; margin-top:16px; }
.activity-footer { background:transparent; color:#8a8e80; border:0; display:flex; flex-direction:row; flex-wrap:wrap; justify-content:center; gap:12px; padding:24px; font-size:.6rem; letter-spacing:.12em; }
.construction-main { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:48px 24px; }
.construction-main h1 { font-size:clamp(42px,8vw,90px); margin-bottom:24px; }
.construction-main > p:not(.eyebrow) { color:#6c7769; font-size:1rem; }
.construction-mark { width:170px; height:170px; display:grid; place-items:center; position:relative; margin-bottom:40px; }
.construction-mark span { font-size:100px; color:#a55e46; }
.construction-mark i { position:absolute; inset:0; border:1px dashed #bdc6af; border-radius:50%; transform:rotate(-16deg) scaleX(1.2); }
.construction-mark i:last-child { transform:rotate(55deg) scaleX(1.2); }
.construction-label { display:flex; align-items:center; gap:10px; font-size:.75rem; background:#e9eddf; border-radius:30px; padding:10px 18px; margin:16px 0 38px; }
.construction-label span { width:7px; height:7px; background:#a77a26; border-radius:50%; }
.activity-back { font-size:.8rem; text-decoration:none; }
a.zone-activity { color:#5e6b54; transition:transform .25s,box-shadow .25s; }
a.zone-activity:hover { box-shadow:0 12px 28px #28382e12; }
@media(max-width:520px) { .activity-header { padding:24px; } .activity-header > a:last-child { font-size:.7rem; } }

/* Saisie du code façon écran de déverrouillage. */
.activity-access:has(.code-keypad) { padding-top:16px; padding-bottom:16px; }
.activity-access:has(.code-keypad) .activity-symbol { font-size:34px; margin-bottom:16px; }
.activity-access:has(.code-keypad) h1 { font-size:clamp(32px,5vw,44px); margin-bottom:16px; }
.activity-access:has(.code-keypad) .activity-intro { margin-bottom:20px; font-size:.85rem; }
#code-label { font-size:.8rem; margin-bottom:18px; }
.code-dots { display:flex; justify-content:center; gap:18px; margin:0 auto 26px; }
.code-dots > span { width:12px; height:12px; border:1.5px solid #6c7769; border-radius:50%; transition:background .12s; }
.code-dots > span.filled { background:#28382e; border-color:#28382e; }
.code-dots.checking { opacity:.5; }
.code-keypad { display:grid; grid-template-columns:repeat(3,78px); gap:16px 26px; justify-content:center; }
.code-key { width:78px; height:78px; border:1px solid #e0e3d7; border-radius:50%; background:#ecefe5; color:#28382e; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:0; touch-action:manipulation; transition:background .12s,transform .12s; }
.code-key > span { font-size:29px; line-height:1.1; font-weight:400; }
.code-key small { font-size:8px; letter-spacing:2px; margin-top:4px; padding-left:2px; }
.code-key:hover { background:#e0e6d5; }
.code-key:active { background:#cdd6bf; transform:scale(.93); }
.code-key:focus-visible,.code-erase:focus-visible { outline:2px solid #a55e46; outline-offset:4px; }
.code-key:disabled { opacity:.5; cursor:wait; }
.code-erase { border:0; background:none; color:#6c7769; font-size:25px; padding:0; touch-action:manipulation; }
.code-erase:disabled { opacity:.5; }
.code-error { animation:code-shake .3s; }
@keyframes code-shake { 25%,75% { transform:translateX(-7px); } 50% { transform:translateX(7px); } }
@media(max-width:380px) { .code-keypad { grid-template-columns:repeat(3,70px); gap:12px 22px; } .code-key { width:70px; height:70px; } }
@media(prefers-reduced-motion:reduce) { .code-error { animation:none; } .code-key,.code-dots > span { transition:none; } }
@media(max-height:850px) {
  .activity-access:has(.code-keypad) .activity-symbol,
  .activity-access:has(.code-keypad) .eyebrow,
  .activity-access:has(.code-keypad) .activity-intro,
  .activity-access:has(.code-keypad) .activity-footnote { display:none; }
  .activity-access:has(.code-keypad) h1 { font-size:32px; margin-bottom:18px; }
  .activity-access:has(.code-keypad) h1 br { display:none; }
  .activity-header { padding-top:20px; padding-bottom:20px; }
  .code-keypad { gap:12px 26px; }
  .code-dots { margin-bottom:22px; }
  .activity-footer { padding:16px; }
}
