/* Back-office du Lugdunum Roller Contest — même identité que le site, version outil */
@import url(site.css);

body.adm { background: #EEF0F6; font-size: 1rem; }
.adm-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.adm-side { flex: 1 1 240px; max-width: 280px; background: var(--navy); color: #fff; padding: 20px 16px; display: flex; flex-direction: column; gap: 18px; }
.adm-side .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; }
.adm-side .brand img { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 4px; }
.adm-side nav { display: flex; flex-direction: column; gap: 2px; }
.adm-side nav .grp { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); margin: 14px 10px 4px; }
.adm-side nav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.adm-side nav a:hover { background: var(--navy-2); color: #fff; }
.adm-side nav a[aria-current="page"] { background: var(--coral); color: var(--navy); }
.adm-side .who { margin-top: auto; font-size: .9rem; color: var(--muted-on-dark); display: grid; gap: 8px; }
.adm-side .who button { background: none; border: 1px solid var(--navy-3); color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; }
.badge { background: var(--coral); color: var(--navy); border-radius: 999px; font-size: .8rem; padding: 1px 8px; font-weight: 800; }
.adm-main { flex: 999 1 600px; min-width: 0; padding: 28px clamp(16px, 3vw, 40px) 64px; display: flex; flex-direction: column; gap: 22px; }
.adm-main h1 { font-family: var(--font-display); font-stretch: 82%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.adm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.panel { background: #fff; border-radius: 18px; padding: 22px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: #fff; border-radius: 16px; padding: 18px; text-decoration: none; }
.kpi strong { display: block; font-family: var(--font-display); font-stretch: 82%; font-size: 2rem; }
.adm table { min-width: 560px; background: #fff; }
.adm td .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm .table-wrap { border-radius: 16px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-danger { background: #B42318; color: #fff; }
.btn-danger:hover { background: #912018; color: #fff; }
.inline { display: inline; }
.form-grid { display: grid; gap: 18px; }
.field small { color: var(--muted); }
.field input[type=file] { border-style: dashed; }
.field input[type=color] { padding: 4px; width: 80px; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }
.thumb { max-width: 220px; max-height: 140px; object-fit: cover; border-radius: 12px; }
.errors { background: #FFE1DE; border-radius: 14px; padding: 14px 18px; }
.errors ul { margin: 0; padding-left: 1.2em; }
.flash { border-radius: 14px; padding: 14px 18px; font-weight: 600; background: #DDF5EA; }
.flash.err { background: #FFE1DE; }
.help { background: #F3F4F8; border-radius: 14px; padding: 14px 18px; font-size: .95rem; color: var(--muted); }
.help code { background: #fff; padding: 1px 6px; border-radius: 6px; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.unread td { font-weight: 700; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); }
.login .panel { width: min(420px, 100%); display: grid; gap: 18px; }
.login img { height: 80px; width: auto; justify-self: center; }
.msg-body { white-space: pre-wrap; background: #F3F4F8; border-radius: 14px; padding: 18px; }
@media (max-width: 720px) {
  .adm-side { max-width: none; flex-basis: 100%; }
  .adm-side nav { flex-direction: row; flex-wrap: wrap; }
  .adm-side nav .grp { width: 100%; }
}
.adm .rows { display: grid; gap: 18px; }
.adm .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.adm .form-grid .field, .adm .form .field { display: flex; flex-direction: column; gap: 6px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick label > span:first-of-type { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--navy); border: 3px solid transparent; }
.icon-pick input:checked + span { border-color: var(--navy); box-shadow: 0 0 0 3px #fff inset; }
.icon-pick input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.adm-side .nav-form { margin: 6px 0 0; }
.adm-side .nav-form button { width: 100%; text-align: left; background: var(--coral); color: var(--navy); border: 0; border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.adm-side .nav-form button:hover { filter: brightness(1.05); }
.adm-side .nav-form button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.retour-site { margin: 0 0 16px; }
.retour-site a { font-weight: 700; }
.doc-new label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.tarifs-edit td, .docs-edit td { vertical-align: middle; }
.tarifs-panel h2 .status-dot { margin-right: 8px; }
.login .back-site { align-self: flex-start; font-weight: 700; text-decoration: none; }
.login .back-site:hover { text-decoration: underline; }
.tarifs-edit td input, .docs-edit td input:not([type=checkbox]):not([type=file]) {
  font: inherit; border: 2px solid var(--line, #D7D9E6); border-radius: 10px; padding: 8px 10px; background: #fff; min-height: 40px; box-sizing: border-box;
}
.tarifs-edit td input:focus, .docs-edit td input:focus { outline: none; border-color: var(--coral); }
.docs-edit td input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--navy); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 52px; box-sizing: border-box; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 8px; color: var(--navy, #161A45); cursor: pointer; }
.pw-toggle:hover { background: rgba(22, 26, 69, .08); }
.pw-toggle:focus-visible { outline: 3px solid var(--coral, #FF5A4F); outline-offset: 1px; }
.pw-toggle[aria-pressed="true"] { color: var(--coral, #FF5A4F); }
.login { gap: 18px; align-content: center; }
.login .deblocage { border-top: 6px solid var(--coral, #FF5A4F); }
.badge-lock { background: #B42318; color: #fff; }
.login details.deblocage { width: min(420px, 100%); box-sizing: border-box; }
.login details.deblocage summary { cursor: pointer; font-weight: 700; list-style-position: inside; }
.login details.deblocage[open] summary { margin-bottom: 14px; }
.login details.deblocage form { display: grid; gap: 14px; }
[hidden] { display: none !important; }

/* ---- Lugdunum Roller Contest ---- */
.adm-side .brand img { background: none; padding: 0; height: 40px; }
.kpi-fort { background: var(--navy); color: #fff; }
.kpi-fort strong { color: var(--vif, #C6F432); }
.kpi-fort:hover { color: #fff; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist li > span:first-child { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.checklist .ok > span:first-child { background: #DDF5EA; color: #0B6B3A; }
.checklist .ko > span:first-child { background: #FFE1DE; color: #B42318; }
.checklist .ok a { color: var(--muted); }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.photos-grid figure { margin: 0; padding: 10px; display: grid; gap: 8px; }
.photos-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.photos-grid figcaption { font-size: .85rem; color: var(--muted); }
.photos-grid .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.adm .field input:not([type=checkbox]):not([type=radio]):not([type=color]), .adm .field select, .adm .field textarea { min-height: 46px; }
.adm h2 .badge { vertical-align: middle; font-size: .75rem; }
