/* Pages de compte isCINEMA (connexion, profil, paramètres, amis, messages), charte B, 10/11/2026 */
.c-main { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 96px; }
.c-narrow { max-width: 860px; }
.c-h1 { font-size: clamp(56px, 8vw, 112px); line-height: .88; }
.c-lead { margin: 14px 0 0; max-width: 620px; color: var(--ivory-2); font-size: clamp(15px, 1.3vw, 18px); }
.c-card { padding: clamp(18px, 3vw, 32px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(241, 236, 227, .08); }
.c-card + .c-card { margin-top: 18px; }
.c-card h2 { font: 30px/1 var(--display); font-weight: 400; margin: 0 0 18px; }
.c-av { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; overflow: hidden; }
.c-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-2); background: #5C5C63; }
.c-dot.is-on { background: #3DDC84; }
.c-avwrap { position: relative; display: inline-flex; flex: none; }

/* formulaires */
.c-field { display: grid; gap: 6px; margin-top: 16px; }
.c-field > span { font-size: 14px; font-weight: 600; }
.c-field small { font-size: 13px; color: var(--ivory-3); }
.c-field small.is-ok { color: var(--ok); }
.c-field small.is-err { color: var(--red-soft); }
.c-input, .c-field textarea, .c-field select { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(241, 236, 227, .22); background: var(--ink); color: var(--ivory); }
.c-field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
.c-input:focus, .c-field textarea:focus { border-color: var(--ivory-2); outline: none; box-shadow: 0 0 0 3px rgba(255, 107, 112, .35); }
.c-input[aria-invalid="true"] { border-color: var(--red-soft); }
.c-pass { position: relative; }
.c-pass .c-input { padding-right: 52px; }
.c-pass button { position: absolute; right: 4px; top: 4px; width: 44px; height: 42px; border: 0; border-radius: 8px; background: none; color: var(--ivory-2); }
.c-err { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(215, 47, 54, .14); color: #FFC9CB; font-size: 14px; }
.c-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; border-top: 1px solid var(--line); cursor: pointer; }
.c-switch:first-of-type { border-top: 0; }
.c-switch input { appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: #3A3A40; position: relative; cursor: pointer; transition: background .15s; }
.c-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.c-switch input:checked { background: var(--red); }
.c-switch input:checked::after { transform: translateX(18px); }
.c-switch input:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 2px; }
.c-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.s-btn.is-ghost-dark { background: transparent; border: 1px solid rgba(20, 18, 20, .3); color: var(--paper-ink); font-weight: 600; }
.s-btn.is-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.s-btn[disabled], .s-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.c-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(241, 236, 227, .2); background: transparent; color: var(--ivory); }
.c-iconbtn:hover { border-color: var(--ivory-2); }

/* onglets */
.c-tabs { display: flex; gap: 6px; margin: 26px 0 22px; padding: 4px; border-radius: 12px; background: var(--ink-2); width: fit-content; max-width: 100%; overflow-x: auto; }
.c-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 9px; border: 0; background: none; font-weight: 600; white-space: nowrap; color: var(--ivory-2); }
.c-tabs button[aria-selected="true"] { background: var(--ivory); color: var(--ink); }
.c-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }

/* listes de personnes */
.c-list { margin: 0; padding: 0; list-style: none; }
.c-person { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.c-person:first-child { border-top: 0; }
.c-person-txt { flex: 1; min-width: 0; }
.c-person-txt b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-person-txt b a { text-decoration: none; }
.c-person-txt b a:hover { text-decoration: underline; }
.c-person-txt small { display: block; font-size: 13px; color: var(--ivory-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-person-txt small.is-live { color: var(--red-soft); font-weight: 600; }
.c-person .c-row { flex: none; }
.c-empty { padding: 28px 0; color: var(--ivory-2); }
.c-empty p { margin: 0 0 14px; }
.c-pop { position: absolute; right: 0; top: calc(100% - 6px); z-index: 20; min-width: 210px; padding: 6px; border-radius: 12px; background: var(--ivory); color: var(--paper-ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.c-pop button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-weight: 500; color: inherit; }
.c-pop button:hover { background: var(--paper-2); }
.c-pop button.is-danger { color: var(--red-deep); }
.c-h3 { margin: 26px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-3); }
.c-search { position: relative; max-width: 520px; }
.c-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ivory-3); }
.c-search .c-input { padding-left: 44px; }

/* fenêtres */
.c-dialog { width: min(92vw, 460px); padding: 0; border: 0; border-radius: var(--radius); background: var(--ivory); color: var(--paper-ink); }
.c-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.c-dialog form { padding: 24px; }
.c-dialog h2 { font-size: 32px; margin: 0 0 8px; }
.c-dialog-q { margin: 0; font-size: 17px; font-weight: 500; }
.c-dialog-btns { display: flex; gap: 10px; margin-top: 20px; }
.c-dialog-btns .s-btn { flex: 1; }
.c-dialog .c-field textarea { background: #fff; color: var(--paper-ink); border-color: #BDB3A2; }
.c-radios { margin: 12px 0 0; padding: 0; border: 0; display: grid; gap: 4px; }
.c-radios legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.c-radios label { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.c-radios input { width: 18px; height: 18px; accent-color: var(--red); }
.c-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 10px; background: var(--ivory); color: var(--paper-ink); font-weight: 600; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.c-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.c-toast.is-err { background: #FFD9DA; }

/* connexion */
.lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100vh - 66px); }
.lg-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 56px); overflow: hidden; background: #000; }
.lg-art .s-hall { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.lg-art .s-hall > img { object-position: center 40%; }
.lg-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, .2), rgba(13, 13, 15, .92)); }
.lg-art p { position: relative; z-index: 1; margin: 0; font: clamp(48px, 6vw, 96px)/.9 var(--display); }
.lg-art p span { display: block; }
.lg-art p .is-red { color: var(--red); }
.lg-form { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 72px) var(--gutter); }
.lg-box { width: 100%; max-width: 440px; }
.lg-box h1 { font-size: clamp(48px, 6vw, 72px); }
.lg-box .c-tabs { width: 100%; }
.lg-box .c-tabs button { flex: 1; justify-content: center; }
.lg-box .s-btn { width: 100%; margin-top: 22px; min-height: 54px; }
.lg-small { margin: 16px 0 0; font-size: 13px; color: var(--ivory-3); }
.lg-small a { color: var(--ivory-2); }
@media (max-width: 860px) { .lg { grid-template-columns: 1fr; } .lg-art { min-height: 220px; } }

/* profil */
.pf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.pf-head .c-av { box-shadow: 0 0 0 4px var(--ink), 0 0 0 6px rgba(241, 236, 227, .18); }
.pf-id { flex: 1 1 300px; min-width: 0; }
.pf-id h1 { font-size: clamp(48px, 7vw, 88px); line-height: .9; overflow-wrap: anywhere; }
.pf-id p { margin: 6px 0 0; color: var(--ivory-3); }
.pf-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 15px; color: var(--ivory-2); }
.pf-stats b { color: var(--ivory); font-weight: 700; }
.pf-bio { margin: 0; white-space: pre-line; color: var(--ivory-2); font-size: 16px; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 18px; margin-top: 28px; }
.pf-grid .c-card + .c-card { margin-top: 0; }
@media (max-width: 820px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-links { display: grid; gap: 8px; }
.pf-links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-radius: 10px; background: var(--ink); text-decoration: none; font-weight: 600; }
.pf-links a:hover { background: var(--ink-3); }
.pf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(143, 227, 176, .14); color: var(--ok); font-size: 14px; font-weight: 600; }

/* paramètres */
.st-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.st-photo input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.st-save { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--ink) 30%); }
.st-save p { margin: 0; font-size: 14px; color: var(--ivory-3); }

/* messages */
.ms { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); height: calc(100vh - 66px); height: calc(100dvh - 66px); border-top: 1px solid var(--line); }
.ms-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.ms-side-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.ms-side-head h1 { font-size: 44px; }
.ms-threads { flex: 1; overflow-y: auto; margin: 0; padding: 0 8px 12px; list-style: none; }
.ms-thread { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; border-radius: 10px; background: none; text-align: left; }
.ms-thread:hover { background: var(--ink-2); }
.ms-thread[aria-current="true"] { background: var(--ink-3); }
.ms-thread-txt { flex: 1; min-width: 0; }
.ms-thread-txt b { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.ms-thread-txt b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-thread-txt b time { flex: none; font-size: 12px; font-weight: 500; color: var(--ivory-3); }
.ms-thread-txt small { display: block; font-size: 13px; color: var(--ivory-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-thread.is-unread small { color: var(--ivory); font-weight: 600; }
.ms-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ms-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-height: 66px; }
.ms-head a { text-decoration: none; font-weight: 600; }
.ms-head small { display: block; font-size: 12px; color: var(--ivory-3); font-weight: 500; }
.ms-back { display: none; }
.ms-scroll { flex: 1; overflow-y: auto; padding: 18px clamp(14px, 3vw, 32px); display: flex; flex-direction: column; gap: 4px; }
.ms-day { align-self: center; margin: 14px 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--ink-2); font-size: 12px; font-weight: 600; color: var(--ivory-3); }
.ms-msg { max-width: min(78%, 560px); padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--ink-3); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.ms-msg time { display: block; margin-top: 3px; font-size: 11px; opacity: .65; text-align: right; }
.ms-msg.is-me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--red); color: #fff; }
.ms-msg.is-wait { opacity: .6; }
.ms-msg.is-fail { background: #5a1a1d; }
.ms-typing { min-height: 22px; padding: 0 clamp(14px, 3vw, 32px); font-size: 13px; color: var(--ivory-3); }
.ms-form { display: flex; align-items: flex-end; gap: 10px; padding: 10px clamp(12px, 3vw, 24px) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ms-form textarea { flex: 1; min-height: 48px; max-height: 160px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(241, 236, 227, .22); background: var(--ink-2); color: var(--ivory); resize: none; line-height: 1.4; }
.ms-form textarea:focus { outline: none; border-color: var(--ivory-2); }
.ms-form .s-btn { min-height: 48px; }
.ms-none { flex: 1; display: grid; place-items: center; padding: 24px; color: var(--ivory-3); text-align: center; }
.ms-banner { padding: 8px 18px; background: #5a1a1d; font-size: 13px; }
@media (max-width: 760px) {
  .ms { grid-template-columns: 1fr; }
  .ms.is-open .ms-side { display: none; }
  .ms:not(.is-open) .ms-main { display: none; }
  .ms-side { border-right: 0; }
  .ms-back { display: inline-grid; }
}
.lg-art .s-onscreen { display: none !important; }

/* pages d'information (à propos, support, juridique) */
.i-sec { margin-top: clamp(32px, 5vw, 56px); }
.i-sec h2 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 14px; }
.i-sec > p { margin: 0 0 14px; max-width: 70ch; color: var(--ivory-2); font-size: 17px; line-height: 1.65; }
.i-points { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 16px; }
.i-points li { display: flex; gap: 14px; color: var(--ivory-2); }
.i-points li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; background: var(--red); }
.i-points strong { color: var(--ivory); font-weight: 600; }
.i-faq { display: grid; gap: 10px; }
.i-faq details { border-radius: 12px; background: var(--ink-2); border: 1px solid rgba(241, 236, 227, .08); }
.i-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 0 18px; font-weight: 600; cursor: pointer; list-style: none; }
.i-faq summary::-webkit-details-marker { display: none; }
.i-faq summary::after { content: "+"; flex: none; font: 28px/1 var(--display); color: var(--red-soft); transition: transform .2s; }
.i-faq details[open] summary::after { transform: rotate(45deg); }
.i-faq details p { margin: 0; padding: 0 18px 18px; color: var(--ivory-2); line-height: 1.6; max-width: 72ch; }
.i-mail { margin-left: 10px; color: var(--ivory-3); font-size: 14px; }
.i-meta { margin: 14px 0 0; font-size: 14px; color: var(--ivory-3); }
.i-legal { margin-top: 28px; max-width: 72ch; }
.i-legal h2 { margin: 30px 0 8px; font: 600 19px/1.3 var(--text); }
.i-legal p, .i-legal li { color: var(--ivory-2); line-height: 1.65; }
.i-legal a { color: var(--ivory); }
@media (max-width: 600px) {
  .c-person { flex-wrap: wrap; }
  .c-person .c-row { width: 100%; padding-left: 62px; }
  .c-tabs { width: 100%; }
  .c-tabs button { flex: 1; justify-content: center; padding: 0 10px; }
}
