/* SIAE — Plateforme de contenus · feuille de style back-office */
:root {
  --navy: #10264C; --navy-2: #0B1D3D; --blue: #0A3FA8; --blue-2: #1D5FB8; --blue-soft: #E8EFFB;
  --red: #D90A16; --bg: #F8F7F4; --card: #FFFFFF; --line: #E7E3DA; --line-2: #D7D2C6;
  --beige: #F3F1EA; --text: #121212; --muted: #8C8A85; --muted-2: #5E5C57;
  --draft-bg: #FBEBD6; --draft: #7A4A10; --ok-bg: #E4F1DA; --ok: #3B7A1D; --pend-bg: #E3ECFB; --pend: #1D4FA8;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,38,76,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header / sidebar / footer ---------- */
.topbar { background: var(--navy); height: 100px; display: flex; align-items: center; padding: 0 64px 0 76px; gap: 26px; position: relative; z-index: 5; }
.pill-logo { background: #fff; border-radius: 40px; height: 48px; padding: 0 22px; display: inline-flex; align-items: center; }
.pill-logo img { height: 30px; display: block; }
.pill-date { border: 1.5px solid rgba(255,255,255,.8); color: #fff; border-radius: 40px; height: 48px; padding: 0 20px; display: inline-flex; align-items: center; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.pill-date b { font-weight: 700; }
.topbar .spacer { flex: 1; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 10px; border-radius: 30px; }
.user-btn:hover { background: rgba(255,255,255,.07); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 500; flex: none; }
.user-btn .who { text-align: left; line-height: 1.2; font-size: 14.5px; }
.user-btn .who small { display: block; opacity: .65; font-size: 12px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.18); min-width: 230px; padding: 6px; display: none; }
.dropdown.open { display: block; }
.dropdown button, .dropdown a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--text); text-decoration: none; font-size: 14px; }
.dropdown button:hover, .dropdown a:hover { background: var(--beige); }

.shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 100px); }
.sidebar { background: var(--navy); color: #fff; padding: 36px 20px 40px 32px; }
.sidebar h6 { font-size: 11.5px; font-weight: 500; letter-spacing: .04em; margin: 0 0 12px; opacity: .95; text-transform: uppercase; }
.sidebar nav { margin-bottom: 30px; }
.sidebar a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 8px 10px; margin: 0 -10px 2px; border-radius: 9px; font-size: 15px; }
.sidebar a:hover { background: rgba(255,255,255,.07); }
.sidebar a.active { background: rgba(255,255,255,.12); }
.sidebar a svg { width: 22px; height: 22px; flex: none; }
.sidebar .count { background: var(--blue-2); border-radius: 20px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 13px; padding: 0 7px; margin-left: auto; }
.main { padding: 40px 64px 80px; min-width: 0; }
.main-inner { max-width: 1160px; }

.footer { background: var(--navy); color: #fff; padding: 44px 76px 40px; display: grid; grid-template-columns: 170px 1fr auto; align-items: end; gap: 30px; }
.footer .siaefr { height: 92px; }
.footer .gifas { height: 56px; }
.footer .legal { border-top: 1.5px solid #1C5E9E; padding-top: 26px; font-size: 13px; margin-bottom: 18px; }
.footer .legal a { color: #fff; text-decoration: none; }

/* ---------- Typo & blocs ---------- */
.crumbs { font-size: 20px; margin: 0 0 30px; }
.crumbs a { text-decoration: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 31px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.page-head p { margin: 0; font-size: 19px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-title { font-size: 20px; font-weight: 400; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.card + .card { margin-top: 22px; }
.card h2 { font-size: 21px; font-weight: 500; margin: 0 0 18px; }
.card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1.5px solid #9A9790; margin-bottom: 28px; }
.card-head .num { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.card-head h2 { margin: 0; font-size: 25px; font-weight: 300; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 8px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--line-2); background: #FCFBF8; }
.btn:active { transform: translateY(1px); }
.btn.beige { background: var(--beige); border-color: #E9E5DA; } .btn.beige:hover { background: #ECE8DD; }
.btn.navy { background: var(--navy); color: #fff; border-color: var(--navy); } .btn.navy:hover { background: #1A3563; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); } .btn.primary:hover { background: #0C4BC4; }
.btn.danger { color: var(--red); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.btn.xs { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; cursor: pointer; display: inline-grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--beige); }
.icon-btn:disabled { opacity: .2; cursor: default; background: none; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field > label, .label { font-size: 19px; font-weight: 500; padding-left: 10px; }
.req { color: var(--red); }
.input, select.input, textarea.input { height: 62px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 20px; font-size: 19px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: 200px; padding: 18px 20px; resize: vertical; line-height: 1.4; }
.input::placeholder { color: #BDBAB3; }
.input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(29,95,184,.12); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='22' fill='none' stroke='%23111' stroke-width='1.8'%3E%3Cpath d='M3 8l4-4 4 4M3 14l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; padding-right: 50px; cursor: pointer; }
.input.sm { height: 42px; font-size: 15px; padding: 0 12px; border-radius: 8px; }
select.input.sm { background-position: right 10px center; padding-right: 32px; }
.field.error .input, .field.error .dropzone, .input.error { border-color: var(--red); }
.err-msg { color: var(--red); font-size: 13.5px; padding-left: 10px; }
.counter { text-align: right; color: #A8A59E; font-size: 15px; }
.counter.over { color: var(--red); }
.row-time { display: grid; grid-template-columns: 212px 212px 40px 212px; gap: 0 48px; align-items: end; }
.row-time .arrow { font-size: 22px; padding-bottom: 18px; text-align: center; margin: 0 -30px; }

.chips { display: flex; flex-wrap: wrap; gap: 24px; }
.chip { height: 70px; padding: 0 21px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 21px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: all .15s; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.chip.on .dot { box-shadow: 0 0 0 2px #fff; }
.chips.sm { gap: 12px; } .chips.sm .chip { height: 50px; font-size: 17px; padding: 0 17px; }

.live-box { background: #F4F2EC; border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; display: grid; grid-template-columns: 96px 1fr; gap: 18px 22px; align-items: start; }
.live-box h4 { margin: 4px 0 0; font-size: 21px; font-weight: 500; line-height: 1.2; }
.toggle { width: 78px; height: 42px; border-radius: 30px; background: #BCB9B2; position: relative; border: 0; cursor: pointer; transition: background .2s; flex: none; }
.toggle::after { content: ''; position: absolute; left: 5px; top: 5px; width: 32px; height: 32px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: var(--blue); } .toggle.on::after { transform: translateX(36px); }
.toggle.sm { width: 44px; height: 24px; } .toggle.sm::after { width: 18px; height: 18px; left: 3px; top: 3px; } .toggle.sm.on::after { transform: translateX(20px); }
.live-box .input { height: 44px; font-size: 19px; border-radius: 12px; }

/* Stepper */
.progress { height: 6px; background: #DDDAD3; border-radius: 6px; margin: 6px 0 34px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--blue); border-radius: 6px; transition: width .35s; }
.stepper { display: flex; justify-content: center; gap: 110px; margin-bottom: 44px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #B2AFA8; background: none; border: 0; cursor: pointer; font-size: 20px; text-align: center; max-width: 160px; line-height: 1.2; }
.step .n { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid #B2AFA8; display: grid; place-items: center; font-size: 22px; font-weight: 600; background: #fff; }
.step.current { color: var(--blue); } .step.current .n { border-color: var(--blue); color: var(--blue); }
.step.done { color: var(--blue); font-weight: 700; } .step.done .n { background: var(--blue); color: #fff; border-color: var(--blue); }
.step.current.first .n { background: var(--blue); color: #fff; }
.step.current.first { font-weight: 700; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions .btn { height: 70px; font-size: 21px; padding: 0 34px; }
.form-actions .btn.navy { min-width: 186px; letter-spacing: .02em; }

.speaker { background: #F4F2EC; border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px 18px; margin-bottom: 22px; }
.speaker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.speaker-head b { font-size: 19px; font-weight: 500; padding-left: 2px; }
.speaker .input { height: 56px; font-size: 18px; }
.speaker .field > label { font-size: 18px; }
.speaker .grid { gap: 22px 36px; }
.dropzone { border: 1.5px dashed #444; border-radius: 12px; padding: 38px 20px; text-align: center; cursor: pointer; background: transparent; font-size: 18px; font-weight: 500; transition: background .15s; }
.dropzone:hover, .dropzone.drag { background: rgba(10,63,168,.04); border-color: var(--blue); }
.dropzone small { display: block; color: #A8A59E; font-weight: 400; font-size: 17px; }
.file-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 24px; display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.file-row img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.file-row span { flex: 1; color: #A8A59E; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-speaker { width: 100%; height: 58px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 19px; font-weight: 500; cursor: pointer; }
.add-speaker:hover { background: #FCFBF8; }

/* ---------- Badges & tableaux ---------- */
.badge { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; border-radius: 20px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.badge.draft { background: var(--draft-bg); color: var(--draft); }
.badge.pending { background: var(--pend-bg); color: var(--pend); }
.badge.validated { background: var(--ok-bg); color: var(--ok); }
.badge.big { height: 50px; padding: 0 44px; font-size: 21px; border-radius: 8px; }
.status-select { border: 0; border-radius: 20px; height: 30px; padding: 0 26px 0 14px; font-size: 13.5px; font-weight: 500; cursor: pointer; appearance: none; background-repeat: no-repeat; background-position: right 9px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23555' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); }
.status-select.draft { background-color: var(--draft-bg); color: var(--draft); }
.status-select.pending { background-color: var(--pend-bg); color: var(--pend); }
.status-select.validated { background-color: var(--ok-bg); color: var(--ok); }

.table-card { padding: 0; overflow: hidden; }
.table-card > h2 { padding: 26px 30px 0; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { background: #F0F2F5; font-weight: 500; text-align: left; padding: 13px 12px; white-space: nowrap; font-size: 13.5px; }
table.data td { padding: 15px 12px; color: #55534E; vertical-align: top; }
table.data tbody tr:hover td { background: #F5F8FD; }
table.data td.title { color: #3C3A36; font-weight: 500; max-width: 320px; }
table.data td.title a { color: inherit; text-decoration: none; }
table.data td.title a:hover { color: var(--blue); }
table.data td.title small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
table.data th:first-child, table.data td:first-child { padding-left: 30px; }
table.data th:last-child, table.data td:last-child { padding-right: 24px; }
.pub { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; white-space: nowrap; }
.pub i { width: 7px; height: 7px; border-radius: 50%; }
.pager { display: flex; justify-content: center; gap: 6px; padding: 20px 0 24px; }
.pager button { min-width: 26px; height: 26px; border-radius: 6px; border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 600; }
.pager button.on { background: var(--blue); color: #fff; }
.pager button:disabled { opacity: .3; cursor: default; }
.src-tag { font-size: 11px; background: var(--beige); color: var(--muted-2); padding: 2px 7px; border-radius: 5px; margin-left: 6px; font-weight: 500; vertical-align: 1px; }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px; display: flex; gap: 22px; align-items: center; }
.kpi .ic { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi .ic svg { width: 26px; height: 26px; }
.kpi b { font-size: 34px; font-weight: 500; display: block; line-height: 1; margin-bottom: 6px; }
.kpi span { font-size: 16px; line-height: 1.2; display: block; }
.kpi.total .ic { background: #E6EEF9; color: var(--blue-2); } .kpi.total b { color: var(--blue-2); }
.kpi.ok .ic { background: var(--ok-bg); color: var(--ok); } .kpi.ok b { color: var(--ok); }
.kpi.pend .ic { background: var(--pend-bg); color: var(--pend); } .kpi.pend b { color: var(--pend); }
.kpi.draft .ic { background: #EEEAE2; color: #222; }
.kpi.clickable { cursor: pointer; transition: border-color .15s; } .kpi.clickable:hover { border-color: var(--line-2); }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars .bar b { color: var(--blue-2); font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.bars .bar i { width: 100%; max-width: 76px; background: #1C62AC; border-radius: 10px; min-height: 18px; transition: height .5s; }
.bars .bar span { font-size: 12.5px; overflow-wrap: anywhere; padding: 0 2px; margin-top: 10px; text-align: center; color: #333; height: 34px; line-height: 1.2; }
.hbar { margin-bottom: 18px; }
.hbar .top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.hbar .top b { font-size: 19px; font-weight: 500; }
.hbar .track { height: 10px; border-radius: 10px; background: #F4F2EE; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 10px; transition: width .5s; }

.hello { background: var(--navy); color: #fff; border-radius: 18px; padding: 28px 30px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hello small { text-transform: uppercase; opacity: .6; font-size: 17px; letter-spacing: .02em; }
.hello h1 { margin: 2px 0; font-size: 26px; font-weight: 500; }
.hello p { margin: 0; opacity: .6; font-size: 17px; }
.alert { background: #FBEBD6; border: 1px solid #EFCB98; color: #6E4210; border-radius: 16px; padding: 22px 28px; display: flex; gap: 14px; font-size: 18px; margin-bottom: 40px; align-items: flex-start; }
.alert svg { flex: none; width: 26px; height: 26px; margin-top: 1px; }
.alert.danger { background: #FDE7E7; border-color: #F2B9B9; color: #8A1111; }
.alert.info { background: var(--blue-soft); border-color: #C5D6F3; color: #173F80; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters .input { width: auto; min-width: 160px; }
.filters .search { flex: 1; min-width: 220px; }
.bulk { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 16px; margin-bottom: 14px; }
.bulk .spacer { flex: 1; }
.bulk .btn { height: 36px; font-size: 14px; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 12px 16px; font-size: 16px; cursor: pointer; color: var(--muted-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.tabs button .n { background: var(--beige); color: var(--muted-2); border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }

.list-table td { vertical-align: middle !important; }
.list-table .input.sm { min-width: 150px; }
.color-in { width: 42px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; cursor: pointer; background: #fff; }
.logo-cell { display: flex; align-items: center; gap: 8px; }
.logo-cell img { height: 34px; max-width: 70px; object-fit: contain; border-radius: 4px; background: #fff; border: 1px solid var(--line); }
.inactive td { opacity: .5; }
.dirty-bar { position: sticky; bottom: 16px; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; margin-top: 18px; box-shadow: 0 10px 30px rgba(16,38,76,.25); }
.dirty-bar .spacer { flex: 1; }

/* Import */
.steps-import { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.steps-import .card { margin: 0; }
.steps-import .n { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; margin-bottom: 14px; }
.steps-import h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.steps-import p { margin: 0 0 16px; color: var(--muted-2); font-size: 14.5px; line-height: 1.45; }
.row-ok { color: var(--ok); font-weight: 600; } .row-ko { color: var(--red); font-weight: 600; }
.issues { margin: 0; padding-left: 16px; font-size: 13px; }
.issues li.e { color: var(--red); } .issues li.w { color: #9A6512; }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(11,29,61,.55); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow: auto; padding: 28px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal h3 { margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.modal .field > label { font-size: 15px; padding-left: 2px; }
.modal .input { height: 46px; font-size: 16px; padding: 0 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toast-wrap { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast { background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 420px; font-size: 15px; animation: up .2s; }
.toast.error { background: #A30E16; } .toast.ok { background: #245A12; }
@keyframes fade { from { opacity: 0 } } @keyframes up { from { transform: translateY(10px); opacity: 0 } }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-hero { flex: 1; background: #06102A url('/assets/bg-login.jpg') center 38% / cover no-repeat; position: relative; min-height: 780px; }
.login-hero .brand { position: absolute; left: 102px; top: 53px; display: flex; gap: 32px; }
.login-hero .pill-logo { height: 58px; padding: 0 26px; } .login-hero .pill-logo img { height: 36px; }
.login-hero .pill-date { height: 58px; padding: 0 20px; font-size: 16px; }
.login-card { position: absolute; right: 196px; top: 260px; width: 386px; background: #fff; border-radius: 10px; padding: 24px 28px 26px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.login-card .inner { background: transparent; }
.login-card.verify { padding: 16px; }
.login-card.verify .inner { background: #F4F2EC; border-radius: 10px; padding: 18px 12px 0; }
.login-card .logo { display: block; margin: 0 auto 6px; height: 40px; }
.login-card h1 { text-align: center; font-size: 21px; font-weight: 500; margin: 0; color: #333; }
.login-card .sub { text-align: center; font-size: 12.5px; margin: 4px 0 26px; color: #222; line-height: 1.35; }
.login-card label { display: block; font-size: 12.5px; margin: 0 0 6px; }
.login-card .lin { width: 100%; height: 43px; border-radius: 8px; border: 1px solid #E3E0D6; background: #F4F2EC; padding: 0 10px; font-size: 13px; outline: none; margin-bottom: 14px; }
.login-card .lin:focus { border-color: var(--blue-2); background: #fff; }
.login-card .lnote { font-size: 12.5px; margin: -6px 0 12px; }
.login-card .lbtn { width: 100%; height: 39px; border-radius: 7px; border: 0; background: var(--blue); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; margin-top: 16px; }
.login-card .lbtn:hover { background: #0C4BC4; }
.login-card .lbtn:disabled { opacity: .6; }
.login-card .link { font-size: 12.5px; }
.login-card .lerr { background: #FDE7E7; color: #8A1111; font-size: 12.5px; border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.otp { display: flex; justify-content: center; gap: 13px; margin: 26px 0 22px; }
.otp input { width: 44px; height: 44px; border-radius: 8px; border: 1px solid #E3E0D6; background: #fff; text-align: center; font-size: 20px; font-weight: 600; outline: none; }
.otp input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(29,95,184,.14); }
.otp.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }
.ring { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; }
.ring b { color: var(--blue); font-weight: 500; }
.ms-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; background: #fff; border: 1px solid #E3E0D6; border-radius: 20px; padding: 5px 10px 5px 6px; margin: 0 auto 10px; }
.ms-logo { width: 16px; height: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; }
.ms-logo i:nth-child(1) { background: #F25022 } .ms-logo i:nth-child(2) { background: #7FBA00 } .ms-logo i:nth-child(3) { background: #00A4EF } .ms-logo i:nth-child(4) { background: #FFB900 }
.verify-foot { border-top: 1px solid #E3E0D6; margin: 20px -12px 0; padding: 12px 12px 16px; font-size: 11.5px; line-height: 1.4; }
.verify-foot b { display: block; font-size: 12px; }
.enroll ol { margin: 0 0 12px; padding-left: 18px; font-size: 12.5px; line-height: 1.45; }
.enroll ol li { margin-bottom: 4px; }
.qr { background: #fff; border-radius: 10px; padding: 8px; width: 164px; margin: 6px auto 8px; border: 1px solid #E3E0D6; }
.qr img { width: 100%; display: block; }
.secret { text-align: center; font-size: 11.5px; color: #555; line-height: 1.5; }
.secret code { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .06em; color: #10264C; font-weight: 600; }
.demo-note { position: absolute; left: 102px; bottom: 34px; color: rgba(255,255,255,.8); font-size: 12.5px; background: rgba(6,16,42,.55); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 16px; line-height: 1.55; backdrop-filter: blur(6px); max-width: 520px; }
.demo-note b { color: #fff; }
.demo-note code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #fff; }
/* Pied de page de connexion, isole du footer du back-office. */
.footer.login-footer { display: block; padding: 44px 32px 38px; }
.login-footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 108px minmax(0, 1fr) 110px; gap: 44px; align-items: end; }
.login-footer-organiser, .login-footer-site { display: block; }
.login-footer .gifas { display: block; width: 108px; height: auto; }
.login-footer .siaefr { display: block; width: 110px; height: auto; }
.login-footer-content { min-width: 0; border-top: 1px solid #24759A; padding-top: 15px; display: flex; gap: 24px; align-items: end; justify-content: space-between; }
.login-footer .legal { border: 0; padding: 0; margin: 0 0 3px; font-size: 11px; line-height: 1.8; }
.login-footer .legal a { white-space: nowrap; }
.login-footer .legal > span[aria-hidden] { display: inline-block; margin: 0 .4em; }
.login-footer-social { flex: none; color: #35A6D1; text-align: right; }
.login-footer-social p { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.login-footer-social nav { display: flex; gap: 6px; }
.login-footer-social-link { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: inherit; }
.login-footer-social-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.login-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.login-footer a[href]:hover { opacity: .8; }
.login-footer a[aria-disabled="true"] { cursor: default; }
@media (max-width: 1000px) {
  .login-footer-inner { gap: 28px; }
  .login-footer-content { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  .login-footer-social { align-self: flex-end; }
}
@media (max-width: 600px) {
  .footer.login-footer { padding: 32px 20px; }
  .login-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
  .login-footer-organiser { grid-column: 1; grid-row: 1; }
  .login-footer-site { grid-column: 2; grid-row: 1; justify-self: end; }
  .login-footer-content { grid-column: 1 / -1; grid-row: 2; padding-top: 20px; gap: 20px; text-align: center; }
  .login-footer-social { align-self: center; text-align: center; }
  .login-footer-social-link { width: 36px; height: 36px; }
}

@media (max-width: 1200px) {
  .main { padding: 32px 28px 60px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .stepper { gap: 40px; }
  .row-time { grid-template-columns: 1fr 1fr 30px 1fr; gap: 0 16px; }
  .login-card { right: 60px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { padding: 18px 20px; display: flex; gap: 24px; overflow-x: auto; }
  .sidebar nav { margin: 0; display: flex; gap: 6px; align-items: center; }
  .sidebar h6 { display: none; }
  .topbar { padding: 0 20px; height: 76px; }
  .pill-date { display: none; }
  .g2, .g3, .g4, .steps-import { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; padding: 30px 20px; }
  .login-card { position: relative; right: auto; top: auto; margin: 140px auto 40px; width: calc(100% - 32px); }
  .login-hero .brand { left: 16px; top: 20px; }
  .demo-note { position: static; margin: 0 16px 20px; }
}

/* Filtres de colonnes */
tr.col-filters th { background: #F7F8FA; padding: 8px 6px 10px; border-bottom: 1px solid #E4E7EC; font-weight: 400; }
tr.col-filters th:first-child { padding-left: 24px; }
.col-f { width: 100%; min-width: 80px; height: 32px; border: 1px solid #DCDFE5; border-radius: 7px; background: #fff; font-size: 12.5px; padding: 0 8px; outline: none; color: #333; }
select.col-f { padding-right: 4px; cursor: pointer; }
.col-f:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(29,95,184,.12); }
.col-f.on { border-color: var(--blue-2); background: #EEF4FD; color: var(--blue); font-weight: 500; }
input.col-f[data-cf="q"] { min-width: 170px; }
.t-count { font-weight: 400; margin-left: 4px; }
/* Widgets tableau de bord */
.todo { list-style: none; margin: 0 0 10px; padding: 0; }
.todo li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.todo li a { color: var(--text); font-weight: 500; text-decoration: none; } .todo li a:hover { color: var(--blue); }
.todo li small { display: block; color: #9A6512; font-size: 12.5px; margin-top: 2px; }
.todo-ready { background: var(--ok-bg); color: var(--ok); border-radius: 10px; margin-bottom: 14px; font-size: 14.5px; }
.todo-ready summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border-radius: 10px; }
.todo-ready summary::-webkit-details-marker { display: none; }
.todo-ready summary:hover { background: rgba(59,122,29,.08); }
.todo-ready .chev { display: inline-block; transition: transform .2s; }
.todo-ready[open] .chev { transform: rotate(90deg); }
.todo.ready { background: #fff; border-radius: 0 0 10px 10px; margin: 0; padding: 0 14px; border: 1px solid #CFE3C0; border-top: 0; }
.todo.ready li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.todo.ready li small { color: var(--muted); }
.bars.days .stack { width: 100%; max-width: 52px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; min-height: 4px; background: #EEE; }
.bars.days .stack i { display: block; min-height: 0; }
.stack i.v, .legend i.v { background: #1C62AC; } .stack i.b, .legend i.b { background: #E9C58F; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted-2); margin: 14px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Historique */
.timeline { list-style: none; margin: 0 0 12px; padding: 0 0 0 6px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 20px; }
.timeline li.hidden { display: none; }
.h-dot { position: absolute; left: -8px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #9A9790; border: 2px solid #fff; }
.h-dot.create { background: var(--blue-2); } .h-dot.status { background: #3B7A1D; } .h-dot.update { background: #D59A3A; }
.h-head { font-size: 14.5px; } .h-head b { font-weight: 600; }
.h-note { font-size: 13.5px; color: var(--muted-2); margin-top: 2px; }
.h-changes { border-collapse: collapse; margin-top: 8px; font-size: 13px; width: 100%; max-width: 820px; }
.h-changes td { padding: 5px 10px 5px 0; vertical-align: top; border-top: 1px dashed var(--line); }
.h-changes td:first-child { font-weight: 600; white-space: nowrap; width: 1%; padding-right: 16px; }
.h-changes .from { color: #9A3B3B; text-decoration: line-through; text-decoration-color: rgba(154,59,59,.4); }
.h-changes .to { color: #245A12; }
/* Intervenants */
.sidebar .count.warn { background: #D59A3A; }
.spk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.spk-kpi { display: block; background: #F7F6F2; border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.spk-kpi:hover { border-color: var(--line-2); }
.spk-kpi b { display: block; font-size: 28px; font-weight: 500; } .spk-kpi span { font-size: 13.5px; color: var(--muted-2); }
.spk-kpi.warn b { color: #B7741B; } .spk-kpi.danger b { color: var(--red); }
.chip-f { height: 38px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; padding: 0 14px; cursor: pointer; font-size: 14px; }
.chip-f span { background: var(--beige); border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.chip-f.on { background: var(--navy); color: #fff; border-color: var(--navy); } .chip-f.on span { background: rgba(255,255,255,.2); }
.spk-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.spk-ph.none { display: grid; place-items: center; background: #FBEBD6; color: #7A4A10; font-weight: 600; font-size: 14px; border: 1.5px dashed #D59A3A; }
.spk-events { list-style: none; margin: 0; padding: 0; } .spk-events li { margin-bottom: 6px; }
.spk-events a { color: #333; text-decoration: none; font-weight: 500; } .spk-events a:hover { color: var(--blue); }
.spk-events small { display: block; color: var(--muted); font-size: 12px; }
.warn-txt { color: #B7741B; font-weight: 600; }
@media (max-width: 900px) { .spk-kpis { grid-template-columns: 1fr 1fr; } }
.h-changes td.from, .h-changes td.to { width: 45%; }

/* Login en flux : pas de calcul de hauteur ni de position dans JavaScript. */
.login-hero { display: grid; grid-template-columns: 1fr minmax(320px, 440px); align-items: center; gap: 32px; padding: 150px 8% 60px; }
.login-card { position: static; width: 100%; grid-column: 2; margin: 0; }
.login-card.enroll { top: auto; }
.login-card .lerr.info { background: var(--blue-soft); color: #173F80; }
.login-hero .demo-note { position: static; grid-column: 1 / -1; }
.event-flag { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.event-photo { margin-top: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.event-photo img { max-width: 160px; max-height: 120px; object-fit: contain; }
/* Remplace le layout fixe de 473px : compatible avec le formulaire mobile. */
[data-ui][class="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .login-hero { grid-template-columns: 1fr; padding: 130px 16px 32px; }
  .login-card { grid-column: 1; }
  [data-ui][class="grid"] { grid-template-columns: 1fr; }
  .row-time { grid-template-columns: 1fr; gap: 14px; }
  .row-time .arrow { display: none; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { min-width: 0; width: 100%; }
  [data-ui="layout-29"] { display: none; }
  .otp { gap: 8px; }
  .otp input { width: min(44px, 11vw); }
}
