/* Page d'accueil : un écran de connexion sur la scène des lunettes. Couleurs et polices : app.css. */
html.calme body::before, html.calme body::after, html.calme #app::before { animation-play-state: paused; }
.ac { --g: clamp(20px, 5.5vw, 80px); position: relative; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; overflow: hidden; isolation: isolate; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ac.drag { cursor: grabbing; } .ac.drag .ac-in { pointer-events: none; } .ac.flat { cursor: default; }
.ac canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity .9s var(--ease); } .ac canvas.on { opacity: 1; } .ac.flat canvas, .ac.flat .ac-dots { display: none; }
.ac-top { display: flex; align-items: center; gap: 18px; padding: 22px var(--g); } .ac-top .brand-logo { height: 30px; } .ac-top img { -webkit-user-drag: none; } .ac-salon { display: flex; align-items: center; gap: 12px; padding-left: 18px; border-left: 1px solid var(--line2); font-weight: 500; font-size: 14.5px; color: var(--ink2); } .ac-salon .silmo-logo { height: 64px; }
.ac-in { align-self: center; justify-self: start; width: 520px; max-width: 100%; margin: 0 var(--g) 60px; display: grid; gap: 16px; cursor: auto; }
.ac-in h1 { font-size: clamp(52px, 5.4vw, 80px); line-height: .98; letter-spacing: -.022em; text-wrap: balance; margin-bottom: 22px; animation: ac-net 1.3s .1s var(--ease) both; }
@keyframes ac-net { from { filter: blur(14px); opacity: .35; } to { filter: none; opacity: 1; } }
#ac-q { font-weight: 550; font-size: 16px; color: var(--ink2); }
.ac-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ac-roles button { display: grid; gap: 16px; justify-items: start; align-content: space-between; min-height: 124px; padding: 18px; border-radius: 24px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: var(--sh2); text-align: left; transition: transform .3s var(--spring), background .2s, color .2s, box-shadow .2s; }
.ac-roles svg { width: 28px; height: 28px; color: var(--accent); transition: color .2s; } .ac-roles b { font-size: 17px; letter-spacing: -.01em; }
.ac-roles button:hover { transform: translateY(-4px); background: var(--accent); color: #fff; box-shadow: var(--sh3); } .ac-roles button:hover svg { color: var(--a2); } .ac-roles button:active { transform: scale(.97); } .ac-roles button.busy { opacity: .55; pointer-events: none; }
.ac-acc { display: flex; gap: 26px; } .ac-acc button { min-height: 44px; padding: 0; font-weight: 500; font-size: 15.5px; color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 5px; } .ac-acc button:hover { color: var(--ink); text-decoration-color: currentColor; }
.ac-dots { position: absolute; display: flex; transform: translateX(-50%); cursor: auto; }
.ac-dots button { width: 26px; height: 44px; display: grid; place-items: center; } .ac-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--ink); opacity: calc(.22 + .78 * var(--on, 0)); transform: scaleX(calc(1 + 1.3 * var(--on, 0))); }

.ac-auth { width: min(440px, 100%); } .auth-in { display: grid; gap: 18px; } .auth-in h3 { font: 400 32px/1.1 var(--serif); padding-right: 40px; } .auth-in form { display: grid; gap: 14px; } .ac-swap { justify-self: center; min-height: 44px; font-weight: 550; color: var(--accent); }

@media (max-width: 900px) and (max-aspect-ratio: 3/2) {
  .ac { min-height: 100svh; }
  .ac-top { justify-content: space-between; padding: 14px 20px; } .ac-top .brand-logo { height: 24px; } .ac-salon { border: 0; padding: 0; gap: 8px; font-size: 14px; } .ac-salon .silmo-logo { height: 50px; }
  .ac-in { align-self: end; justify-self: center; width: min(560px, calc(100% - 40px)); margin: 0 20px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); gap: 12px; }
  .ac-in h1 { font-size: clamp(36px, 10.6vw, 60px); margin-bottom: 8px; text-align: center; }
  #ac-q { text-align: center; } .ac-roles { gap: 8px; } .ac-roles button { justify-items: center; min-height: 102px; padding: 16px 2px 14px; gap: 10px; border-radius: 22px; text-align: center; } .ac-roles b { font-size: clamp(13.5px, 3.9vw, 16px); }
  .ac-acc { justify-content: center; }
}
@media (max-width: 900px) and (max-aspect-ratio: 3/2) and (max-height: 620px) { .ac-in h1 { font-size: 32px; } .ac-roles button { min-height: 84px; padding: 12px 4px; } }
@media (max-height: 520px) and (min-aspect-ratio: 3/2) {
  .ac { --g: 24px; min-height: 100svh; } .ac-top { padding: 10px var(--g); } .ac-top .brand-logo { height: 20px; } .ac-salon { font-size: 13.5px; } .ac-salon .silmo-logo { height: 40px; }
  .ac-in { width: min(400px, 52vw); margin-bottom: 10px; gap: 8px; } .ac-in h1 { font-size: 34px; margin-bottom: 4px; } .ac-roles { gap: 8px; } .ac-roles button { min-height: 84px; padding: 12px; border-radius: 18px; gap: 8px; } .ac-roles svg { width: 24px; height: 24px; } .ac-roles b { font-size: 14px; }
}

/* La porte Comexposium (portail.js) : une carte par salon. Retour depuis la page du salon : le logo Comexposium. */
.ac-back { padding: 0; border: 0; background: none; cursor: pointer; }
.pt { --g: clamp(20px, 5.5vw, 80px); min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.pt-in { align-self: center; justify-self: center; width: min(1080px, calc(100% - 40px)); display: grid; gap: 14px; padding-bottom: 60px; }
.pt-in h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.02em; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 16px; margin-top: 18px; }
.pt-card { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.94); box-shadow: var(--sh2); text-align: left; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.pt-card:hover, .pt-card:focus-visible { transform: translateY(-4px); box-shadow: var(--sh3); outline: 0; }
.pt-logo img { width: 88px; height: 88px; display: block; } .pt-txt { display: grid; gap: 4px; padding-right: 64px; } .pt-txt b { font-size: 19px; letter-spacing: -.01em; } .pt-txt small { color: var(--mut); } .pt-txt span { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.pt-j { position: absolute; top: 16px; right: 18px; padding: 6px 12px; border-radius: 99px; background: var(--a2); color: var(--ink); font: 600 13px/1 var(--mono, monospace); }
.pt-go { position: absolute; right: 18px; bottom: 18px; color: var(--accent); } .pt-go svg { width: 20px; height: 20px; }
.ac-ou { text-align: center; color: var(--mut); font-size: 13.500px; }
