/* La pub catho — feuille de style unique (site public + espaces connectés) */
:root {
  --navy: #001c3f; --navy-2: #0b2a55; --navy-3: #16386b; --gold: #dd9a02; --gold-2: #f2b31c; --gold-soft: #fff4d6;
  --ink: #1d2735; --ink-2: #4a5567; --muted: #7a8594; --line: #e3e7ee; --line-2: #eef1f5; --bg: #f4f5f8; --card: #ffffff;
  --success: #1f8a4c; --success-bg: #e6f6ec; --danger: #c0392b; --danger-bg: #fdecea; --warning: #b45f06; --warning-bg: #fff3dd; --info: #1d5fa8; --info-bg: #e7f0fb;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 6px 24px rgba(0, 28, 63, .07); --shadow-sm: 0 2px 8px rgba(0, 28, 63, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.danger-text { color: var(--danger) !important; }
.warning-text { color: var(--warning); font-weight: 600; }
.success-text { color: var(--success); font-weight: 600; }
.inline { display: inline; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 4px 14px rgba(221, 154, 2, .28); }
.btn-primary:hover { background: var(--gold-2); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #c9d1dd; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-3); }
.btn-ghost:hover { background: rgba(0, 28, 63, .06); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.sidebar .btn-ghost { color: rgba(255, 255, 255, .8); }
.sidebar .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Formulaires ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], input[type="month"], input[type="search"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d5dbe5; border-radius: 10px; background: #fff; font: 400 15px/1.4 var(--font); color: var(--ink); transition: border-color .12s ease, box-shadow .12s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(22, 56, 107, .12); }
input[type="file"] { width: 100%; font-size: 14px; }
textarea { resize: vertical; min-height: 60px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237a8594' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; padding-right: 34px; }
label.field, .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child, .field > label > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.field-full { grid-column: 1 / -1; }
.field-inline { flex-direction: row; gap: 12px; }
.field-inline label { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.field-inline label span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-compact input { padding: 7px 10px; font-size: 13px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--navy-3); }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.actions-col { display: flex; flex-direction: column; gap: 8px; }
.actions-col .btn { justify-content: center; }
.danger-zone { margin-top: 18px; padding: 16px 20px; border: 1px dashed #e4b7b2; border-radius: var(--radius); background: #fff8f7; }

/* ---------- Composants ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px; min-width: 0; }
.card > h2:first-child { margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-highlight { border: 1px solid var(--gold); background: linear-gradient(180deg, #fffdf6, #fff); }
.stack { min-width: 0; }
.stack > .card:last-child { margin-bottom: 0; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 > .card, .grid-3 > .card, .grid-4 > .card { margin-bottom: 0; }
.kpis { margin-bottom: 20px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-unit { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.kpi-accent { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; }
.kpi-accent .kpi-label, .kpi-accent .kpi-sub, .kpi-accent .kpi-unit { color: rgba(255, 255, 255, .78); }
.kpi-accent .kpi-value { color: #fff; }
.kpi-accent a { color: var(--gold-2); }
.kpi .progress { margin-top: 10px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; vertical-align: middle; }
.badge-neutral { background: #eceff4; color: var(--ink-2); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-gold { background: var(--gold-soft); color: #8a5f00; }
.badge-navy { background: var(--navy); color: #fff; }
.progress { height: 7px; background: #e9edf3; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress-fill { display: block; height: 100%; border-radius: 999px; background: var(--gold); transition: width .3s ease; }
.progress-danger { background: var(--danger); }
.progress-light { background: var(--gold-2); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bfe6cd; }
.alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger); border-color: #f3c4bf; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #f2d8a8; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #bfd4f0; }
.alert-link { display: block; text-decoration: none; font-weight: 600; }
.alert-link:hover { filter: brightness(.97); text-decoration: none; }
.alerts { margin-bottom: 8px; }
.alerts .alert { margin-bottom: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tbody tr:hover td { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th { border-top: 2px solid var(--line); text-transform: none; font-size: 14px; color: var(--navy); }
.table-compact th, .table-compact td { padding: 8px 8px; }
.table tr.is-selected td { background: var(--gold-soft); }
.mini-bar { height: 4px; background: #eef1f5; border-radius: 4px; margin-top: 5px; max-width: 220px; }
.mini-bar span { display: block; height: 100%; background: var(--navy-3); border-radius: 4px; }
.empty { padding: 26px 10px; text-align: center; color: var(--muted); }
.empty p { margin-bottom: 12px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 14px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); font-weight: 600; font-size: 13px; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dl-grid dd { font-weight: 700; color: var(--navy); font-size: 16px; }
.code-inline { background: #f1f3f7; padding: 2px 7px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }
.snippet { position: relative; margin: 8px 0 16px; }
.snippet pre { margin: 0; background: #0f1f3d; color: #e7ecf5; padding: 14px 16px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.snippet .btn { position: absolute; top: 8px; right: 8px; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none !important; }
.pill b { background: var(--line-2); padding: 0 7px; border-radius: 999px; font-size: 12px; }
.pill.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill.is-active b { background: rgba(255, 255, 255, .2); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar select { width: auto; min-width: 180px; padding: 7px 34px 7px 10px; font-size: 13px; }
.search { display: flex; gap: 8px; }
.search input { min-width: 260px; padding: 7px 12px; font-size: 14px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.pagination .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.chart { width: 100%; height: auto; display: block; }
.chart-bar { fill: var(--navy-3); }
.chart-bar:hover { fill: var(--gold); }
.chart-label { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.media-logo { max-height: 56px; width: auto; margin-bottom: 12px; border-radius: 8px; }
.steps-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.steps-bar .step { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.steps-bar .step span { width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.steps-bar .step.is-active { border-color: var(--gold); color: var(--navy); }
.steps-bar .step.is-active span { background: var(--gold); color: var(--navy); }
.steps-list { padding-left: 20px; margin: 0; }
.steps-list li { margin-bottom: 8px; }

/* Visuels */
.creative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.creative { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.creative.is-inactive { opacity: .55; }
.creative-thumb { display: block; background: repeating-conic-gradient(#f1f3f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 8px; padding: 8px; text-align: center; margin-bottom: 8px; }
.creative-thumb img { max-height: 160px; width: auto; max-width: 100%; }
.creative-meta { font-size: 13px; margin-bottom: 6px; }
.upload-form { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.upload-form .btn { margin-top: 12px; }

/* Réservation */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.booking-side { position: sticky; top: 20px; }
.quote-box h2 { margin-bottom: 10px; }
.quote-lines { margin: 0 0 10px; font-size: 13px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.quote-lines dt { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 15px; }
.quote-total strong { font-size: 24px; color: var(--navy); }
.quote-box .btn-block { margin-top: 10px; }
.catalog-group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.catalog-group-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.catalog-group-head > div { flex: 1; min-width: 0; }
.catalog-group-head h3 { margin: 0; }
.catalog-logo { height: 40px; width: auto; max-width: 90px; border-radius: 6px; object-fit: contain; }
.placement-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 110px 170px; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s ease; }
.placement-row:last-child { border-bottom: 0; }
.placement-row:hover { background: #fbfcfe; }
.placement-row.is-checked { background: var(--gold-soft); }
.placement-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy-3); margin: 0; }
.placement-name { font-weight: 600; }
.placement-cpm { font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }
.placement-volume { display: flex; align-items: center; gap: 6px; }
.placement-volume input { padding: 7px 10px; font-size: 14px; text-align: right; }
.placement-volume input:disabled { background: #f4f5f8; color: var(--muted); }

/* ---------- Espace connecté ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-logo img { width: 214px; display: block; margin: 2px 2px 0; }
.sidebar-role { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-2); font-weight: 700; margin: -10px 6px 0; }
.nav { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.nav-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); font-weight: 700; padding: 0 10px; margin-bottom: 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: rgba(255, 255, 255, .82); font-size: 14px; font-weight: 500; text-decoration: none !important; transition: background .12s ease; }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link.is-active { background: rgba(221, 154, 2, .18); color: #fff; font-weight: 600; }
.nav-link.is-active .nav-icon { color: var(--gold-2); }
.nav-icon { width: 18px; height: 18px; flex: none; opacity: .9; }
.sidebar-user { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; font-size: 13px; }
.sidebar-user-name { font-weight: 600; }
.sidebar-user-mail { color: rgba(255, 255, 255, .6); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px 6px; }
.topbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 24px; }
.topbar-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.topbar-back { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy); flex: none; box-shadow: var(--shadow-sm); }
.topbar-back svg { width: 18px; height: 18px; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; }
.content { padding: 16px 32px 32px; max-width: 1180px; width: 100%; }
.content-wide { max-width: 1440px; }
.footer { margin-top: auto; padding: 14px 32px 20px; font-size: 12px; color: var(--muted); }
.campaign-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.campaign-status { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Site public ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 96px; }
.site-logo img { height: 68px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14px; }
.site-nav a { color: var(--navy); }
.site-main { min-height: 60vh; }
.hero { background: radial-gradient(120% 140% at 100% 0%, #16386b 0%, var(--navy) 55%); color: #fff; padding: 72px 0 80px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--gold-2); margin-bottom: 12px; }
.hero h1 { color: #fff; font-size: 44px; line-height: 1.12; margin-bottom: 18px; }
.hero h1 span { color: var(--gold-2); }
.lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .85); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn-outline:hover { background: #fff; color: var(--navy); }
.hero-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 26px 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hero-card-title { font-weight: 800; color: var(--navy); font-size: 17px; margin-bottom: 12px; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h1, .section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); font-size: 16px; }
.media-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.media-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.media-card-logo { height: 48px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 12px; }
.media-card-initial { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--gold-2); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.media-card p { color: var(--ink-2); font-size: 14px; }
.media-card-meta { font-size: 13px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: #8a5f00; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.feature p { color: var(--ink-2); }
.page-hero { background: var(--navy); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; font-size: 38px; }
.page-hero .lead { margin-bottom: 22px; }
.catalog-public { margin-bottom: 18px; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 34px 36px; width: 100%; max-width: 460px; }
.auth-card-lg { max-width: 640px; }
.auth-card h1 { font-size: 24px; }
.auth-links { margin: 18px 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin: 0 auto 26px; }
.choice-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow); text-decoration: none !important; color: var(--ink); border: 2px solid transparent; transition: border-color .12s ease, transform .12s ease; }
.choice-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.choice-icon { font-size: 34px; }
.choice-card p { color: var(--ink-2); flex: 1; }
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 36px 0; font-size: 14px; }
.site-footer a { color: var(--gold-2); }
.site-footer-inner { display: flex; align-items: center; gap: 28px; }
.site-footer-logo { width: 140px; }
.site-footer p { margin: 0; }

/* ---------- Document imprimable ---------- */
.print-doc { background: #fff; }
.doc { max-width: 860px; margin: 0 auto; padding: 40px 32px; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.doc-logo { width: 200px; }
.doc-meta { text-align: right; font-size: 14px; color: var(--ink-2); }
.doc-meta h1 { font-size: 22px; margin-bottom: 4px; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 26px; font-size: 14px; }
.doc-parties h3 { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); }
.doc-table { margin: 18px 0; }
.doc-print { margin-top: 26px; }
@media print { .doc-print { display: none; } .doc { padding: 0; } body { font-size: 12.5px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-wide { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; }
  .booking-side { position: static; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; height: 100vh; }
  .sidebar.is-open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .burger { display: flex; }
  .topbar { padding: 16px 18px 4px; flex-wrap: wrap; }
  .topbar-title h1 { font-size: 20px; }
  .content, .footer { padding-left: 18px; padding-right: 18px; }
  .hero-inner, .features, .choice-grid, .doc-parties { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 32px; }
  .site-nav { gap: 12px; font-size: 13px; }
  .site-header-inner { height: 76px; }
  .site-logo img { height: 52px; }
  .site-nav a:not(.btn) { display: none; }
  .placement-row { grid-template-columns: 22px minmax(0, 1fr); }
  .placement-cpm { text-align: left; grid-column: 2; }
  .placement-volume { grid-column: 2; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 24px; }
  .card { padding: 18px 16px; }
  .auth-card { padding: 26px 20px; }
  .section { padding: 40px 0; }
  .site-footer-inner { flex-direction: column; text-align: center; }
  .search input { min-width: 0; }
  .toolbar { align-items: stretch; }
}
