/* ZE Local 2027 — codes couleur du site (noir, orange #ed9a1f), interface modernisée */
:root {
  --orange: #ed9a1f;
  --orange-dark: #c97d0c;
  --orange-soft: #fdf1df;
  --ink: #151515;
  --ink-2: #2a2a2a;
  --paper: #f5f2ec;
  --card: #ffffff;
  --muted: #6d6a65;
  --line: #e4ddd2;
  --ok: #2f8a4c;
  --ok-soft: #e5f4ea;
  --warn: #b26b00;
  --warn-soft: #fff3dc;
  --bad: #c0392b;
  --bad-soft: #fbe7e4;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --title: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--text); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper); }
a { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--title); font-weight: 500; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 34px; text-transform: uppercase; }
h2 { font-size: 22px; text-transform: uppercase; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête public ---------- */
.site-header { background: var(--ink); color: #fff; border-bottom: 3px solid var(--orange); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { font-family: var(--title); font-size: 26px; letter-spacing: .12em; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo img { display: block; height: 54px; width: auto; }
.side .logo img { height: 74px; }
.invoice .logo img, .login .logo img { height: 64px; }
.site-header nav a { color: #eee; text-decoration: none; margin-left: 18px; font-size: 14px; }
.site-header nav a:hover { color: var(--orange); }
.hero { background: linear-gradient(180deg, #151515 0%, #222 100%); color: #fff; padding: 36px 0 28px; }
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero p { color: #cfcfcf; margin: 0; }
main { padding: 28px 0 56px; }
.site-footer { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 0 40px; }

/* ---------- Cartes, boutons, formulaires ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } h1 { font-size: 26px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font: 600 14px var(--text); cursor: pointer; text-decoration: none; transition: .15s; }
.btn:hover { background: #000; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: transparent; color: var(--bad); border-color: #e9b9b2; }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: 15px var(--text); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
textarea { min-height: 80px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 14px; margin: 8px 0; }
.check input { margin-top: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1; min-width: 140px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.flash.ok { background: var(--ok-soft); border-color: #bfe3cb; color: #1d5c32; }
.flash.error { background: var(--bad-soft); border-color: #f1c3bc; color: #8a2a1f; }
.flash.warn { background: var(--warn-soft); border-color: #f1d9a8; color: #7a4a00; }
.devbox { background: #fffbe6; border: 1px dashed #d9b84a; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eee; color: #333; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.orange { background: var(--orange-soft); color: var(--orange-dark); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid #f0ebe3; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* ---------- Réservation publique : étapes ---------- */
.step h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 17px; }
.step h3.sub { font-family: var(--text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.empty-day { background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 14px; font-size: 14px; }

/* Cases (jour, studio, durée, horaire) : un seul style */
.tile { flex: 0 0 auto; text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; text-decoration: none; color: var(--ink); transition: .12s; }
a.tile:hover { border-color: var(--orange); background: var(--orange-soft); }
.tile .dn { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.tile .dd { font-family: var(--title); font-size: 22px; line-height: 1.2; }
.tile.active { background: var(--ink); color: #fff; border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.tile.active .dn, .tile.active .st-meta, .tile.active .st-free { color: var(--orange); }
.tile.closed { opacity: .4; cursor: not-allowed; }
.tile.day { min-width: 74px; }
.studios, .durs, .hours { display: flex; gap: 10px; flex-wrap: wrap; }
.tile.studio { min-width: 150px; padding: 12px 14px; text-align: left; }
.st-name { font-family: var(--title); font-size: 20px; text-transform: uppercase; }
.st-meta { font-size: 12px; color: var(--muted); }
.st-free { font-size: 13px; font-weight: 600; color: var(--ok); margin-top: 4px; }
.tile.studio.closed .st-free { color: var(--bad); }
.tile.dur { min-width: 96px; }
.tile.hour { min-width: 140px; }
.tile.hour .dd { font-size: 19px; }
.tile.hour .dn { font-size: 14px; font-weight: 700; text-transform: none; color: var(--ink); }
.tile.hour.active .dn { color: var(--orange); }
.tile .dn s { color: var(--muted); font-weight: 400; }
.total { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: #fff; border: 2px solid var(--orange); }
.total .amount { font-size: 20px; margin: 2px 0; }
.total .amount b { color: var(--orange); font-family: var(--title); font-size: 28px; font-weight: 500; }
.total .muted { color: #bbb; }

/* Planning public du jour */
.dayplan { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.dp-row { display: grid; grid-template-columns: 150px repeat(var(--hours), minmax(44px, 1fr)); text-decoration: none; color: var(--ink); min-width: calc(150px + var(--hours) * 44px); }
.dp-name small { font-family: var(--text); text-transform: none; font-size: 12px; color: var(--muted); }
.dp-row + .dp-row { border-top: 1px solid var(--line); }
a.dp-row:hover { background: var(--orange-soft); }
.dp-row.selected { background: var(--orange-soft); box-shadow: inset 4px 0 0 var(--orange); }
.dp-head { background: #faf8f4; font-size: 12px; color: var(--muted); }
.dp-head div { padding: 6px; }
.dp-name { padding: 9px 10px; font-family: var(--title); text-transform: uppercase; font-size: 15px; }
.dp-cell { margin: 6px 2px; border-radius: 6px; }
.dp-cell.free { background: #c6ecd3; border: 1px solid #7fc996; }
.dp-cell.booked { background: #f4a19a; border: 1px solid #e98a82; }
.dp-cell.closed, .dp-cell.past { background: repeating-linear-gradient(45deg, #f2eee7, #f2eee7 5px, #e9e3d9 5px, #e9e3d9 10px); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg.free { background: #c6ecd3; border: 1px solid #7fc996; }
.lg.booked { background: #f4a19a; border: 1px solid #e98a82; }
.lg.closed { background: #e9e3d9; }
label.tile { position: relative; cursor: pointer; display: block; transition: none; margin: 0; font-weight: 400; font-size: inherit; }
label.tile input { position: absolute; opacity: 0; pointer-events: none; }
label.tile:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.tile.opt { min-width: 92px; }
.tile.opt.wide { min-width: 190px; text-align: left; padding: 10px 14px; }
.tile.opt .dd { font-size: 19px; }
.tile.opt .dn.price { font-weight: 700; color: var(--ink); text-transform: none; font-size: 14px; margin-top: 4px; }
.tile.opt .dn.price span { font-weight: 400; color: var(--muted); font-size: 12px; }
.tile.opt.active .dn.price, .tile.opt.active .dn.price span { color: var(--orange); }
.tile .st-meta { font-size: 12px; color: var(--muted); }
.free-tag { background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 1px 8px; font-size: 11px; margin-left: 6px; letter-spacing: 0; }
.total button.btn { font-size: 16px; }
@media (max-width: 600px) { .tile.opt { min-width: calc(20% - 8px); padding: 8px 4px; } .tile.opt.wide { min-width: 100%; } .tile.studio { min-width: calc(50% - 5px); } .tile.hour { min-width: calc(50% - 5px); } .tile.dur { min-width: calc(25% - 8px); padding: 8px 4px; } }

/* ---------- Réservation publique ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: 0 0 auto; min-width: 74px; text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 6px; text-decoration: none; color: var(--ink); }
.day .dn { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.day .dd { font-family: var(--title); font-size: 22px; }
.day.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.active .dn { color: var(--orange); }
.day.closed { opacity: .45; }
.durations { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.durations a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.durations a.active { background: var(--orange); }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.room { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.room h3 { font-family: var(--title); font-size: 20px; text-transform: uppercase; margin-bottom: 2px; }
.room .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; text-decoration: none; color: var(--ink); font-weight: 600; transition: .12s; }
.slot:hover { border-color: var(--orange); background: var(--orange-soft); }
.slot .price { font-weight: 700; }
.slot .old { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: 12px; margin-right: 6px; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.recap { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .choice { grid-template-columns: 1fr; } }
.choice .card.highlight { border-top: 4px solid var(--orange); }
.paybox { display: flex; flex-direction: column; gap: 8px; }
.paybox label.opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 500; margin: 0; cursor: pointer; }
.paybox label.opt:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }

/* ---------- Espace équipe ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #ddd; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { font-size: 20px; margin: 4px 8px 22px; }
.side a.nav { display: flex; justify-content: space-between; align-items: center; color: #d8d8d8; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.side a.nav:hover { background: var(--ink-2); color: #fff; }
.side a.nav.active { background: var(--orange); color: var(--ink); font-weight: 600; }
.side .badge { background: var(--orange); color: var(--ink); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.side a.nav.active .badge { background: var(--ink); color: var(--orange); }
.side .sep { border-top: 1px solid #333; margin: 14px 8px; }
.content { padding: 24px 28px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.topbar h1 { margin: 0; font-size: 28px; }
.topbar .row { flex: 0 1 auto; }
.topbar .row > * { flex: 0 0 auto; min-width: 0; }
.plan-cell a.add.early { pointer-events: auto; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } .side { position: static; height: auto; } .content { padding: 18px; } }

/* Planning jour : grille salles × heures */
.plan { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-x: auto; box-shadow: var(--shadow); }
.plan-row { display: grid; grid-template-columns: 120px repeat(var(--hours), minmax(64px, 1fr)); min-width: calc(120px + var(--hours) * 64px); }
.plan-row + .plan-row { border-top: 1px solid var(--line); }
.plan-head { background: #faf8f4; font-size: 12px; color: var(--muted); }
.plan-head div { padding: 8px 6px; border-left: 1px solid #efe9e0; }
.plan-room { padding: 12px 10px; font-family: var(--title); font-size: 16px; text-transform: uppercase; display: flex; flex-direction: column; justify-content: center; }
.plan-room small { font-family: var(--text); text-transform: none; font-size: 11px; color: var(--muted); }
.plan-cells { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(var(--hours), minmax(64px, 1fr)); position: relative; min-height: 64px; }
.plan-cell { border-left: 1px solid #f1ece4; }
.plan-cell.closedh { background: repeating-linear-gradient(45deg, #faf8f4, #faf8f4 6px, #f2eee7 6px, #f2eee7 12px); }
.plan-cell a.add { display: block; height: 100%; text-decoration: none; color: transparent; font-size: 20px; text-align: center; line-height: 64px; }
.plan-cell a.add:hover { color: var(--orange-dark); background: var(--orange-soft); }
.bk { position: relative; margin: 6px 3px; border-radius: 9px; padding: 6px 9px; font-size: 13px; text-decoration: none; color: var(--ink); background: var(--orange-soft); border: 1px solid #f3cf95; border-left: 4px solid var(--orange); overflow: hidden; z-index: 1; }
.bk b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk span { color: var(--muted); font-size: 12px; }
.bk.pending { background: #fff; border-style: dashed; border-color: var(--orange); border-left-style: solid; }
.bk.noshow { background: var(--bad-soft); border-color: #f1c3bc; border-left-color: var(--bad); }
.bk.paid { background: var(--ok-soft); border-color: #bfe3cb; border-left-color: var(--ok); }
.closed-banner { background: repeating-linear-gradient(45deg, #fbe7e4, #fbe7e4 10px, #f8dcd7 10px, #f8dcd7 20px); border: 1px solid #f1c3bc; color: #8a2a1f; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Semaine */
.week { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 10px; overflow-x: auto; }
.wday { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); min-height: 200px; display: flex; flex-direction: column; gap: 6px; }
.wday.off { background: #faf8f4; }
.wday h3 { margin: 0; font-family: var(--title); text-transform: uppercase; font-size: 15px; }
.wday h3 a { color: var(--ink); text-decoration: none; }
.wday .wbk { font-size: 12px; border-left: 3px solid var(--orange); padding: 2px 6px; background: var(--orange-soft); border-radius: 4px; }
.wday .wbk.pending { border-left-color: var(--warn); background: var(--warn-soft); }
.wday form { margin-top: auto; }
.bar { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); }

.stat { font-family: var(--title); font-size: 28px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.split-line { display: grid; grid-template-columns: 110px 1fr 1fr 1fr; gap: 8px; margin-bottom: 6px; }
@media (max-width: 700px) { .split-line { grid-template-columns: 1fr 1fr; } }

/* Facture imprimable */
.invoice { max-width: 800px; margin: 30px auto; background: #fff; padding: 40px; border-top: 6px solid var(--orange); box-shadow: var(--shadow); }
@media print { .noprint { display: none !important; } body { background: #fff; } .invoice { box-shadow: none; margin: 0; } }

/* Récapitulatif de réservation */
.recap-card { background: #fff; border-radius: 14px; overflow: hidden; border: 2px solid var(--orange); margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.recap-card header { background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 3px solid var(--orange); }
.recap-card header h2 { margin: 0; color: #fff; font-size: 22px; }
.recap-card header .tag { background: var(--orange); color: var(--ink); font-weight: 700; white-space: nowrap; }
.recap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px 20px 6px; }
.recap-grid .ri { background: var(--orange-soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.recap-grid .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #a5650a; font-weight: 600; }
.recap-grid b { font-size: 16px; }
.recap-grid small { color: var(--muted); font-size: 12px; }
.recap-lines { padding: 8px 20px 12px; }
.recap-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.recap-lines small { color: var(--muted); }
.recap-lines .note span { color: var(--muted); font-style: italic; }
.recap-card footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--ink); color: #fff; }
.recap-card footer span { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: #ccc; }
.recap-card footer b { font-family: var(--title); font-size: 28px; font-weight: 500; color: var(--orange); }
@media (max-width: 700px) { .recap-grid { grid-template-columns: 1fr 1fr; } .recap-card header h2 { font-size: 18px; } }

/* Espace membre */
.acc-summary { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin: 14px 0 18px; }
.acc-summary > div { background: #fff; border-radius: 14px; padding: 16px 18px; border: 1px solid var(--line); }
.acc-next { background: var(--ink) !important; color: #fff; border: 2px solid var(--orange) !important; }
.acc-next .lbl { color: var(--orange); }
.acc-summary .lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.acc-summary .big { display: block; font-family: var(--title); font-size: 26px; font-weight: 500; line-height: 1.2; }
.acc-next a { color: var(--orange); }
.acc-next .btn.small { background: #fff; color: var(--ink); }
.acc-next .muted { color: #bbb; }
.bk-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.bk-actions form { margin: 0; }
.bk-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bk-row .bk-actions { grid-column: 1 / -1; margin-top: 0; }
.h-order { border-bottom: 1px solid var(--line); }
.h-order summary { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; }
.h-order summary::-webkit-details-marker { display: none; }
.h-order summary::before { content: none; }
.h-order[open] summary { font-weight: 600; }
.h-date { color: var(--muted); font-size: 13px; }
.h-total { font-weight: 700; }
.h-order table { margin: 0 0 10px; background: var(--paper); border-radius: 8px; }
.h-order tr.pay td { color: var(--ok); }
.modif-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--orange-soft); border: 2px solid var(--orange); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.recap-before { padding: 10px 20px 0; color: var(--muted); }
.dp-cell.soon, .lg.soon { background: repeating-linear-gradient(45deg, #fdf0dc, #fdf0dc 5px, #f6dfb8 5px, #f6dfb8 10px); border: 1px solid #ecc98c; }
.dp-cell.mine, .lg.mine { background: var(--orange); border: 1px solid #c97f12; }
@media (max-width: 800px) { .acc-summary { grid-template-columns: 1fr 1fr; } .acc-next { grid-column: 1 / -1; } .h-order summary { grid-template-columns: 1fr auto; } .h-date { grid-column: 1 / -1; } }
.tile.day.soon { opacity: .55; background: repeating-linear-gradient(45deg, #fff, #fff 6px, #fdf0dc 6px, #fdf0dc 12px); }
.complement { margin: 4px 0 6px 26px; padding: 10px 12px; border-left: 3px solid var(--orange); background: var(--orange-soft); border-radius: 0 10px 10px 0; }
.complement .opt { background: #fff; margin: 6px 0; }
.complement select { display: block; width: 100%; }
.weeks { margin-top: 12px; }
.tile.opt.week { min-width: 74px; }

/* Tableaux : lignes cliquables, zébrage léger, titres en bandeau */
table.clickable tr[onclick] { cursor: pointer; transition: background .1s; }
table.clickable tr[onclick]:hover td { background: var(--orange-soft); }
table.clickable tr[onclick]:hover td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
table.zebra tr:nth-child(even) td { background: #faf8f4; }
table.zebra.clickable tr[onclick]:hover td { background: var(--orange-soft); }
.card.banded { padding-top: 0; overflow: hidden; }
.card.banded > h2:first-of-type, .card.banded > form > h2:first-of-type { margin: 0 -20px 14px; padding: 9px 20px; background: var(--orange); color: var(--ink); font-size: 17px; letter-spacing: .04em; }
form.card.banded > h2:first-of-type { margin: 0 -20px 14px; }

/* Statistiques */
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stats-grid > .card { margin-bottom: 0; }
.kpi .evo { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi .evo.up { color: var(--ok); }
.kpi .evo.down { color: var(--bad); }
.pie3d, .bars { margin: 0 0 10px; }
.pie3d figcaption, .bars figcaption { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pie3d svg, .bars svg { width: 100%; height: auto; display: block; }
.pie3d .slice { transition: transform .15s; transform-origin: 220px 108px; }
.pie3d .slice:hover { transform: scale(1.03); }
.pie-pct { font: 700 13px var(--text); fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 3px; pointer-events: none; }
.pie-legend { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.pie-legend li { display: grid; grid-template-columns: 12px 1fr auto 54px; gap: 8px; align-items: center; font-size: 13px; }
.pie-legend i { width: 12px; height: 12px; border-radius: 3px; }
.pie-legend b { font-weight: 600; }
.pie-legend em { font-style: normal; color: var(--muted); text-align: right; font-size: 12px; }
.pie-empty { padding: 40px 10px; text-align: center; color: var(--muted); background: var(--paper); border-radius: 10px; }
.bar-lbl { font: 11px var(--text); fill: #777; }
.bar-val { font: 600 11px var(--text); fill: #151515; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr; } }
.week-nav { flex: 0 1 auto; gap: 8px; align-items: center; flex-wrap: wrap; }
.week-nav input[type=week] { width: auto; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; }
  .topbar .row { flex-wrap: wrap; }
  .week-nav .btn { font-size: 12px; padding: 6px 10px; }
  .content .card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plan { overflow-x: auto; }
}

/* Notifications et messages */
.notif { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.notif-i { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #9a958d; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.notif-i.on { color: var(--ink); border-color: var(--orange); background: var(--orange-soft); }
.notif-i.on.notif-bob { color: #fff; background: var(--ink); border-color: var(--ink); }
.notif-i:hover { border-color: var(--orange); }
.notif-n { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font: 700 11px/19px var(--text); text-align: center; box-shadow: 0 0 0 2px #fff; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.msg-list tr.unread td { font-weight: 600; }
.msg-list tr.unread td .muted { font-weight: 400; }
.src { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.src-mail { background: #e8f0fb; color: #1c5cab; }
.src-bob { background: var(--ink); color: #fff; }
.src-site { background: var(--orange-soft); color: #a5650a; }
.msg-body { white-space: normal; background: var(--paper); border-radius: 10px; padding: 14px 16px; line-height: 1.55; max-height: 520px; overflow: auto; }
.msg-reply { border-left: 3px solid var(--ok); padding: 6px 10px; margin-bottom: 10px; background: var(--ok-soft); border-radius: 0 8px 8px 0; }

/* Camemberts plus compacts */
.pie3d svg { max-width: 300px; margin: 0 auto; }
.pie3d .pie-legend { max-width: 360px; margin: 6px auto 0; }
.bars svg { max-width: 420px; }
.month-total { font-family: var(--title); font-size: 38px; color: var(--ink); line-height: 1.1; margin: 4px 0; }
.cash-week td, .cash-week th { font-size: 13px; padding: 6px 8px; }
.cash-week tr.tot td { border-top: 2px solid var(--ink); background: var(--orange-soft); }
.cash-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cash-nav b { margin: 0 4px; }
.month-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.month-methods div { background: var(--paper); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.month-methods span { font-size: 12px; color: var(--muted); }
.pie-pct { font-size: 18px; }
@media (max-width: 700px) { .topbar form.row { flex: 1 1 100% !important; flex-wrap: wrap; } .topbar form.row > div { flex: 1 1 130px !important; } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Best Band : podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin: 8px 0 22px; }
.podium-place { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.podium-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px 14px; text-align: center; border-top: 5px solid var(--line); transition: transform .15s; }
.podium-place:hover .podium-card { transform: translateY(-3px); }
.podium-place.p1 .podium-card { border-top-color: #eda100; padding-top: 24px; }
.podium-place.p2 .podium-card { border-top-color: #a3abb4; }
.podium-place.p3 .podium-card { border-top-color: #c27c4a; }
.medal { width: 44px; height: 44px; border-radius: 50%; margin: -42px auto 8px; display: grid; place-items: center; font: 600 20px/1 Oswald, sans-serif; color: #fff; border: 3px solid #fff; box-shadow: var(--shadow); }
.p1 .medal { width: 56px; height: 56px; margin-top: -54px; font-size: 26px; }
.medal.or { background: linear-gradient(145deg, #f7c548, #c98a00); }
.medal.argent { background: linear-gradient(145deg, #d3d8de, #8a939c); }
.medal.bronze { background: linear-gradient(145deg, #e0a172, #a35f2d); }
.podium-name { font: 500 20px/1.2 Oswald, sans-serif; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; overflow-wrap: anywhere; }
.p1 .podium-name { font-size: 24px; }
.podium-ca { font-size: 26px; font-weight: 700; color: var(--orange-dark, #c25a14); }
.p1 .podium-ca { font-size: 32px; }
.podium-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; text-align: left; }
.podium-facts > div { background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.podium-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #777); }
.podium-facts dd { margin: 2px 0 0; font-weight: 600; }
.podium-facts dd .small { display: block; font-weight: 400; }
.podium-step { margin-top: 10px; border-radius: 10px 10px 0 0; background: var(--ink); color: #fff; text-align: center; font: 600 28px/1 Oswald, sans-serif; display: grid; place-items: center; }
.p1 .podium-step { height: 96px; background: linear-gradient(180deg, #eda100, #c98a00); }
.p2 .podium-step { height: 64px; background: linear-gradient(180deg, #a3abb4, #6f7881); }
.p3 .podium-step { height: 44px; background: linear-gradient(180deg, #c27c4a, #8f5226); }
.bb-bar { height: 6px; background: var(--paper); border-radius: 3px; margin-bottom: 4px; overflow: hidden; }
.bb-bar span { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
@media (max-width: 760px) {
  .podium { grid-template-columns: 1fr; gap: 26px; }
  .podium-place.p1 { order: -1; }
  .podium-step { display: none; }
}

/* Planning : créneau spécial, heures hors ouverture, semaine en grilles */
.bk.special { background: #efeaf9; border-color: #cfc6f1; border-left-color: #6250d6; }
.plan-head div.offh { color: #b5aea3; }
.plan.compact .plan-row { grid-template-columns: 70px repeat(var(--hours), minmax(52px, 1fr)); min-width: calc(70px + var(--hours) * 52px); }
.plan.compact .plan-cells { grid-template-columns: repeat(var(--hours), minmax(52px, 1fr)); min-height: 44px; }
.plan.compact .plan-room { padding: 6px 10px; font-size: 14px; }
.plan.compact .plan-head div { padding: 5px 6px; }
.plan.compact .plan-cell a.add { line-height: 44px; font-size: 16px; }
.plan.compact .bk { margin: 4px 2px; padding: 3px 7px; font-size: 12px; border-radius: 7px; }
.plan.compact .bk span { font-size: 11px; }
.wplan { margin-bottom: 18px; }
.wplan-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.wplan-head h2 { margin: 0; font-family: var(--title); text-transform: uppercase; font-size: 18px; }
.wplan-head h2 a { color: var(--ink); text-decoration: none; }
.wplan-head h2 a:hover { color: var(--orange-dark); }
.wplan-fill { display: inline-flex; align-items: center; gap: 8px; }
.wplan-fill .bar { width: 120px; }
.special-box { background: #f6f3fd; border: 1px solid #ddd5f6; border-left: 4px solid #6250d6; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }

/* Planning : zones hors horaires plus contrastées */
.plan-cell.closedh { background: repeating-linear-gradient(45deg, #ece6dc, #ece6dc 5px, #ded5c6 5px, #ded5c6 10px); }
.plan-cell.closedh a.add:hover { background: #e4dcf6; color: #6250d6; }
th.sortable a { color: inherit; text-decoration: none; white-space: nowrap; }
th.sortable a:hover { color: var(--orange-dark); }
th.sorted a { color: var(--ink); }

/* Statistiques : comparaison N-1 */
.var { font-weight: 600; white-space: nowrap; color: var(--muted); }
.var.up { color: var(--ok); }
.var.down { color: var(--bad); }
.n1-table td, .n1-table th { vertical-align: top; }
.n1-table tr.sec td { background: var(--paper); font-family: var(--title); text-transform: uppercase; font-size: 13px; letter-spacing: .03em; color: var(--ink-2); padding-top: 10px; }
.n1-table tr.tot td { border-top: 2px solid var(--line); }
.bars-key { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.bars-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.bars-key .k-now { background: #2a78d6; }
.bars-key .k-n1 { background: #c9c2b6; }
.detail-period { margin: 4px 0 10px; }
.detail-nav input[type=date], .detail-nav input[type=month] { width: auto; }
.detail-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-nav > * { flex: 0 0 auto; }
.bars.n1 svg { width: 100%; max-width: none; height: auto; }
.bars.n1 { margin: 6px 0 14px; }
.bar-num { font: 600 11px var(--text); }
.bar-var { font: 700 12px var(--text); }
.n1-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.n1-kpis > div { background: var(--paper); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.n1-kpis span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.n1-kpis b { font-size: 20px; }
.n1-kpis em { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .n1-kpis { grid-template-columns: 1fr 1fr; } }
.n1-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.n1-charts .bars.n1 { margin: 8px 0 6px; }
.n1-charts .bar-num { font-size: 9.5px; }
.n1-charts .bar-var { font-size: 11px; }
.n1-charts .bars-key { display: block; margin: 2px 0 0; }
.n1-charts .bars-key i:first-child { margin-left: 0; }
@media (max-width: 900px) { .n1-charts { grid-template-columns: 1fr; } }
.n1-charts { gap: 12px; margin-top: 4px; }
.n1-charts .bars.n1 { background: var(--paper); border-radius: 10px; padding: 12px 14px 8px; margin: 0; }
.n1-charts .bars.n1 svg { max-width: 480px; margin: 0 auto; }
.fill-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.fill-big { font: 600 34px/1 var(--title); color: var(--orange-dark); white-space: nowrap; flex: 0 0 auto; }
.fill-bar { height: 8px; margin-bottom: 12px; }
.fill-rooms { margin-top: 6px; font-size: 13px; }
.stats-grid > .fill-card { grid-column: 1 / -1; }
.fill-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.fill-cols .fill-rooms { margin: 0; }
.fill-cols .fill-rooms tr.tot td { border-top: 2px solid var(--line); }
@media (max-width: 900px) { .fill-cols { grid-template-columns: 1fr; } }
.acct-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.acct-actions form { margin: 0; }
.acct-actions details summary { list-style: none; cursor: pointer; }
.acct-actions details summary::-webkit-details-marker { display: none; }
.acct-pw { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.acct-pw input { width: 170px; }
.nav-who { margin: 14px 12px 0; padding-top: 10px; border-top: 1px solid #333; color: #bbb; font-size: 13px; }
.nav-who span { display: block; font-size: 11px; color: var(--orange); text-transform: uppercase; letter-spacing: .05em; }
.role-form { margin: 0; }
.role-form select { width: auto; padding: 4px 8px; font-size: 13px; }
.role-choice { display: grid; gap: 6px; margin-bottom: 10px; }

/* Groupes invités */
.tag.guest { background: #e3f3f6; color: #1b6f80; }
.bk.guest { background: #e3f3f6; border-color: #b7dfe7; border-left-color: #1b8aa0; }
.bk .bk-guest { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #1b6f80; background: #fff; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.guest-box { display: flex; gap: 8px; align-items: center; background: #e3f3f6; border: 1px solid #b7dfe7; border-left: 4px solid #1b8aa0; border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; color: #14596a; }
.guest-box:has(input:checked) { background: #cfeaf0; box-shadow: 0 0 0 2px #1b8aa0; }
[hidden] { display: none !important; }
.special-check { display: flex; gap: 8px; align-items: center; margin: 0; }
.fees td.best, table.zebra.fees tr td.best { background: var(--ok-soft) !important; color: var(--ok); font-weight: 600; }
.req-pending { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; }
.req-pending form { margin: 0; }
.cancel-req summary { list-style: none; cursor: pointer; display: inline-block; }
.cancel-req summary::-webkit-details-marker { display: none; }
.cancel-req form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.cancel-req input { flex: 1 1 220px; }
/* Demandes d'annulation / modification */
.req-card { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.req-card.cancel { border-left-color: var(--bad); }
.req-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.req-body { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.req-arrow { font-size: 22px; color: var(--orange-dark); }
.req-msg { margin: 8px 0 0; font-style: italic; color: var(--ink-2); }
.req-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.req-actions input { flex: 1 1 260px; }
.campaign-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.campaign-send { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.campaign-send:last-child { border-bottom: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
/* Debug */
.dbg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.dbg-chip { background: var(--orange-soft, #fdf1df); border: 1px solid var(--orange); color: var(--ink); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: 13px; }
.dbg-chip.zero { background: var(--ok-soft); border-color: var(--ok); opacity: .75; }
.dbg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dbg-f { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.dbg-input { width: 210px; padding: 5px 8px; font-size: 13px; }
.dbg-table td { vertical-align: middle; }
.dbg-cards { display: grid; gap: 4px; margin: 0; }
.dbg-cards .dbg-actions { margin-top: 6px; }
.dbg-expl{display:flex;flex-direction:column;gap:6px;min-width:300px}
.dbg-expl textarea{width:100%;font:inherit;padding:6px 8px;border:1px solid var(--line,#ccc);border-radius:6px}
.dbg-num{width:56px}
.ok-txt{color:#1e7d43;font-weight:600}.warn-txt{color:#b45309;font-weight:600}
.dbg-contacts,.dbg-found{margin-top:4px}.dbg-found{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:4px}.dbg-found form{display:inline}
