/* Fenkra Preuves — version en ligne : connexion, compte, état de la synchronisation */
.cloud-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px 16px; background: var(--creme); color: var(--nuit); overflow-y: auto; }
.cloud-gate[hidden] { display: none; }
.gate-card { width: 100%; max-width: 400px; }
.gate-sym { width: 44px; height: 44px; fill: var(--nuit); }
.gate-sym .bloc { fill: var(--ocre); }
.gate-rep { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ocre-fonce); margin: 18px 0 8px; }
.gate-card h1 { font-family: var(--title); font-stretch: 112%; font-weight: 700; font-size: 28px; line-height: 1.15; margin: 0 0 10px; }
.gate-lead { color: var(--gris); line-height: 1.55; margin: 0 0 22px; font-size: 15px; }
#gateForm { display: flex; flex-direction: column; gap: 14px; }
#gateForm label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gris); }
#gateForm label[hidden] { display: none; }
#gateForm input { font: 16px var(--ui); color: var(--nuit); background: #fff; border: 1px solid var(--border-2); border-radius: 8px; padding: 11px 12px; min-height: 44px; }
#gateForm input:focus { outline: none; border-color: var(--ocre); box-shadow: 0 0 0 3px rgba(194,122,44,.18); }
#gateGo { min-height: 46px; font-size: 15px; justify-content: center; margin-top: 4px; }
#gateGo:disabled { opacity: .6; }
.gate-err { min-height: 1.2em; margin: 0; font-size: 14px; color: #A33A1C; line-height: 1.45; }
.gate-err.info { color: var(--nuit); background: rgba(194,122,44,.10); border-left: 3px solid var(--ocre); padding: 8px 10px; border-radius: 4px; }
.gate-err:empty { display: none; }
.gate-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.gate-links button { border: 0; background: none; padding: 6px 0; font: 600 14px var(--ui); color: var(--ocre-fonce); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gate-links button[hidden] { display: none; }

/* fenêtre « Compte et synchronisation » */
.cloud-modal { position: fixed; inset: 0; z-index: 900; background: rgba(14,26,36,.45); display: grid; place-items: center; padding: 16px; }
.cloud-modal[hidden] { display: none; }
.cm-card { background: var(--surface); color: var(--fg); width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 12px; padding: 22px; box-shadow: 0 12px 40px rgba(14,26,36,.25); }
.cm-card h2 { font-family: var(--title); font-stretch: 112%; font-size: 20px; margin: 0 0 12px; }
.cm-mail { font-weight: 600; margin: 0 0 6px; word-break: break-all; }
.cm-st { color: var(--muted); line-height: 1.5; margin: 0 0 14px; font-size: 14px; }
.cm-st small { font-size: 12.5px; }
.cm-row { margin-bottom: 14px; }
.cm-pw { margin: 4px 0 14px; font-size: 14px; }
.cm-pw summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.cm-pw label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 8px; font-size: 13px; color: var(--muted); }
.cm-pw input { font: 15px var(--ui); padding: 9px 10px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface-2); color: var(--fg); }
.cm-msg { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.cm-card hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.cm-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.btn.danger-l { color: #A33A1C; border-color: rgba(163,58,28,.35); background: transparent; }
.cm-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
