/* Oryven Media : menu noir, bleu électrique, fond gris clair, cartes blanches. Anton (titres, chiffres) + Barlow.
   Chaque compte porte ses couleurs par la classe c-<slug> (variables --c1 principale, --c2 accent, --c3 fond sombre). */
:root {
  --ink: #0B0E14; --muted: #4E5666; --ground: #F2F4F8; --card: #FFFFFF; --line: #DDE2EA; --line-soft: #EDF0F5;
  --night: #07090D; --blue: #0838DC; --blue-dark: #062BA8; --glow: #2E63FF;
  --c1: #0838DC; --c2: #2E63FF; --c3: #07090D;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.45 'Barlow', system-ui, sans-serif; }
a { color: var(--blue); } a:hover { color: var(--blue-dark); }
h1, h2, .h2, .big, .brand-name, .compte-name, .banner-title, .card-title { font-family: 'Anton', 'Barlow', sans-serif; font-weight: 400; }
h1 { margin: 4px 0 0; font-size: 40px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
h2, .h2, .card-title { margin: 0 0 12px; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; display: block; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.ico { flex: none; vertical-align: -3px; }

/* Coque */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 232px; background: var(--night); color: #C5CBD8; padding: 24px 16px; display: flex; flex-direction: column; gap: 26px; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 56px; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; }
.brand-name { font-size: 21px; letter-spacing: .045em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.brand-name b { font-weight: 400; color: var(--glow); }
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.nav-title { padding: 0 12px 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8E97A8; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #C5CBD8; text-decoration: none; font-weight: 500; }
.nav-link:hover { background: #151A24; color: #fff; }
.nav-link.on { background: var(--blue); color: #fff; font-weight: 600; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c1); border: 2px solid var(--c2); flex: none; }
.side-foot { margin-top: auto; padding: 0 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; color: #8E97A8; }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; color: #C5CBD8; font: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: #fff; }

/* En-têtes */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.compte-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--c1); border: 3px solid var(--c2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 22px 'Anton', sans-serif; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 26px; }
.avatar.sm { width: 30px; height: 30px; font-size: 14px; border-width: 2px; vertical-align: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--blue); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; font-weight: 600; }

/* Boutons, pastilles, messages */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font: 600 15px 'Barlow', sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn:disabled { background: #8E97A8; border-color: #8E97A8; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: #E6ECFD; color: var(--blue-dark); }
.btn-accent { background: var(--c2); border-color: var(--c2); color: var(--c3); font-weight: 700; }
.btn-accent:hover { background: #fff; border-color: #fff; color: var(--c3); }
.btn-sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--line-soft); color: var(--ink); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: #E8EBF1; color: #3D4553; flex: none; }
.pill-ok { background: #DFF2E9; color: #0B5B41; }
.pill-warn { background: #FBEBC8; color: #6B4100; }
.pill-err { background: #FBE0DC; color: #8C1D10; }
.tag { align-self: flex-start; padding: 2px 8px; border-radius: 4px; background: var(--c1); color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.flash { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 8px; font-weight: 500; }
.flash-ok { background: #DFF2E9; color: #0B5B41; }
.flash-err { background: #FBE0DC; color: #8C1D10; }

/* Cartes et grilles */
.card, .tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.tile { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tiles-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.big { font-size: 40px; line-height: 1.15; }
.big small { font-size: 22px; color: var(--muted); }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cols > .card, .col { flex: 1 1 320px; min-width: 0; }
.cols > .wide { flex: 2 1 420px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 560px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-head a { font-weight: 600; text-decoration: none; }
.card-foot { margin: 0 -20px -20px; padding: 12px 20px; background: #F7F8FB; border-top: 1px solid var(--line-soft); border-radius: 0 0 12px 12px; }
.compte-card { flex: 2 1 460px; min-width: 0; padding: 0 20px 20px; overflow: hidden; }
.compte-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 -20px; padding: 18px 20px; background: var(--c3); color: #fff; }
.compte-name { font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }
.on-dark-muted { color: #C9D2DC; font-size: 14px; }
.card-dashed { flex: 1 1 280px; background: transparent; border: 2px dashed #B4BCCB; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card-title { margin: 0; font-size: 20px; }
.steps, .list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #3D4553; }
.net-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.net-name { flex: 1 1 auto; font-weight: 600; min-width: 0; }
.net-name .muted { font-weight: 400; }
.net-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.todo, .fait { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.todo:last-child, .net-row:last-of-type { border-bottom: 0; }
.todo-title { font-weight: 600; }
.todo-title a { color: inherit; }
.empty { color: var(--muted); padding: 14px 16px; border: 1px dashed #B4BCCB; border-radius: 8px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Bandeau « prochaine publication » */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: var(--c3); color: #fff; border-radius: 12px; padding: 24px 28px; }
.banner-kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--c2); font-weight: 600; margin-bottom: 8px; }
.banner-title { font-size: 30px; line-height: 1.15; letter-spacing: .01em; margin-bottom: 8px; }

/* Tableaux */
/* position: relative : garde dans la zone défilante les libellés masqués (.sr) des colonnes. */
.scroll { overflow-x: auto; position: relative; }
.table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table thead th { color: var(--muted); font-weight: 600; border-bottom-color: var(--line); white-space: nowrap; }
.table tbody th { font-weight: 600; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .ok { color: #0B5B41; font-weight: 600; }
.table td.muted { font-size: 14px; }

/* Graphiques */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--blue); }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .axis { stroke: #8E97A8; stroke-width: 1.5; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .tick { fill: var(--muted); font: 12px 'Barlow', sans-serif; }
.chart-empty { min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.form label, .login label { font-weight: 600; margin-top: 8px; }
input[type=text], input[type=email], input[type=password], input[type=number], select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #8E97A8; border-radius: 8px; background: #fff; color: var(--ink); font: 15px 'Barlow', sans-serif; }
input[type=datetime-local], textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #8E97A8; border-radius: 8px; background: #fff; color: var(--ink); font: 15px/1.45 'Barlow', sans-serif; }
textarea { resize: vertical; }
textarea:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }

/* Commande de production de l'agent */
.sub { margin: 18px 0 4px; font: 700 16px 'Barlow', sans-serif; }
.commande { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.commande:last-child { border-bottom: 0; }

/* Formats courts */
.court { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.court-media { flex: 0 0 200px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.court-video { width: 200px; aspect-ratio: 9 / 16; background: var(--night); border-radius: 10px; object-fit: cover; }
.court-body { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.court-body h2 { font: 700 18px 'Barlow', sans-serif; letter-spacing: 0; text-transform: none; margin: 0; }
.script { width: 100%; }
.script summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--blue); }
.pubs { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.pub { display: flex; align-items: center; gap: 10px; min-height: 32px; font-weight: 600; }
.pub a { font-weight: 600; }
input[type=color] { width: 72px; height: 44px; padding: 2px; border: 1px solid #8E97A8; border-radius: 8px; background: #fff; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.form .btn { margin-top: 14px; }
.help { margin-top: 2px; }
.colors { display: flex; flex-wrap: wrap; gap: 20px; }
.colors div { display: flex; flex-direction: column; gap: 6px; }
.etapes { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.etape { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.etape legend { font-weight: 600; padding: 0 6px; }
.ask-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.ask-row input { flex: 1 1 320px; width: auto; }
.answer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.fait { align-items: flex-start; }
.fait p { padding-top: 2px; }
.fait-rub { flex: 0 0 104px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 4px; overflow-wrap: anywhere; }
.fait-form { margin-top: 12px; }
.decision { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.decision:last-child { border-bottom: 0; }
.note { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
.card > .btn { margin-top: 14px; }
.prose { line-height: 1.55; overflow-wrap: anywhere; }
.prose h3 { margin: 16px 0 6px; font-size: 16px; }
.prose p, .prose ul { margin: 0 0 10px; }
.prose table { border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.day { margin: 18px 0 4px; font-size: 16px; }
.day:first-child { margin-top: 0; }
.time { font-variant-numeric: tabular-nums; flex: none; }

/* Connexion */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--night); padding: 16px; }
.login { width: 100%; max-width: 380px; background: #11151E; color: #fff; border: 1px solid #252B38; border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.login .brand { padding: 0; margin-bottom: 12px; }
.login .brand-name { font-size: 26px; }
.login .btn { margin-top: 18px; }
.login-foot { margin-top: 16px; font-size: 13px; color: #8E97A8; }
.login-foot a { color: #C5CBD8; }

/* Pages publiques (confidentialité, conditions) */
.legal-head { background: var(--night); padding: 16px 24px; }
.legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 56px; display: flex; flex-direction: column; gap: 14px; }
.legal .prose h2 { margin: 24px 0 8px; font: 700 18px 'Barlow', sans-serif; letter-spacing: 0; text-transform: none; }

@media (max-width: 760px) {
  .main { padding: 20px 16px 40px; }
  .side { padding: 14px 12px; gap: 10px; }
  .nav-group { flex-direction: row; flex-wrap: wrap; }
  .nav-title { display: none; }
  .side-foot { flex-direction: row; align-items: center; gap: 12px; margin-top: 0; }
  h1 { font-size: 32px; }
  .banner { padding: 20px; }
  .banner-title { font-size: 24px; }
  .fait { flex-wrap: wrap; }
  .fait-rub { flex-basis: 100%; }
}
