

 

:root {
  --bg: #111111;
  --bg-elev: #181818;
  --bg-soft: #1c1c1c;
  --ink: #f5f5f5;
  --ink-dim: #c8c8c8;
  --muted: #a3a3a3;
  --line: #2a2a2a;
  --red: #c41e3a;
  --red-dk: #8b1024;
  --red-soft: rgba(196, 30, 58, .16);
  --stripe: 6px;
  --font: "Segoe UI", "Liberation Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "DejaVu Sans Mono", "Liberation Mono", ui-monospace, monospace;
  --radius: 2px;
  --max: 1120px;
  --adw: 160px;
  --header-h: 72px;
}

[data-theme="clair"] {
  --bg: #ececee;
  --bg-elev: #f7f7f8;
  --bg-soft: #ffffff;
  --ink: #161616;
  --ink-dim: #333333;
  --muted: #5c5c5c;
  --line: #d2d2d6;
  --red-soft: rgba(196, 30, 58, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .01em;
  padding-left: var(--stripe);
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--stripe);
  background: var(--red);
  z-index: 80;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: .02em; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: .1em .35em; border: 1px solid var(--line); }
::selection { background: var(--red); color: #fff; }

 
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  width: 100%;
  box-sizing: border-box;
  padding-inline: 1.2rem;
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: .8rem; color: inherit; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-kicker {
  color: var(--red); font-size: .62rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
}
.brand-title { font-weight: 700; letter-spacing: .08em; font-size: .95rem; color: var(--ink); }

.nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: nowrap; }
.nav a {
  color: var(--ink-dim); font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
  padding: .3rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

.header-tools { display: flex; align-items: center; gap: .45rem; margin-left: .6rem; }
.icon-btn, .lang-select, .btn {
  font-family: inherit; cursor: pointer; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink);
}
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  padding: 0; border-radius: var(--radius);
}
.icon-btn:hover, .btn:hover { border-color: var(--red); color: var(--ink); }
.lang-select {
  height: 38px; padding: 0 .5rem; font-size: .8rem; border-radius: var(--radius);
  background: var(--bg-elev);
}

 
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dk); color: #fff; }
.btn-ghost { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }

 
.page { flex: 1; padding: 2.2rem 1.2rem 3.5rem; box-sizing: border-box; min-width: 0; }
.page-frame {
  display: grid;
  grid-template-columns: var(--adw, 160px) minmax(0, 1fr) var(--adw, 160px);
  column-gap: .85rem;
  width: 100%;
  flex: 1 0 auto;
  align-items: stretch;
  box-sizing: border-box;
}
.page-frame > .ad-col-left { grid-column: 1; }
.page-frame > .site-column { grid-column: 2; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.page-frame > .ad-col-right { grid-column: 3; }
.ad-col {
  width: var(--adw, 160px);
  min-width: var(--adw, 160px);
  max-width: var(--adw, 160px);
  box-sizing: border-box;
  position: sticky;
  top: .8rem;
  align-self: start;
  padding: .8rem 0 1.2rem;
}
.ad-slot {
  background: var(--bg-elev); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; min-height: 250px;
  width: 100%;
  box-sizing: border-box;
}
.ad-slot img, .ad-slot video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
a.ad-vacant {
  color: inherit;
  text-decoration: none;
  gap: .55rem;
  padding: .85rem .65rem;
  border-style: dashed;
  align-content: center;
  text-align: center;
}
a.ad-vacant:hover {
  border-color: var(--red);
  background: var(--red-soft);
  color: inherit;
}
.ad-vacant-kicker {
  color: var(--red);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ad-vacant-title {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.ad-vacant-cta {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
main.canvas { min-width: 0; flex: 1 0 auto; }

 
.hero {
  position: relative;
  padding: 3.2rem 0 2.6rem;
  background-image: url("../img/hero-grid.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
[data-theme="clair"] .hero { background-image: none; background: var(--bg-elev); }
.hero-kicker {
  color: var(--red); font-size: .75rem; font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-dim); max-width: 40rem; }
.meta-line {
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem;
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  letter-spacing: .06em; margin-top: 1.4rem;
}
.meta-line span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--red); margin-right: .5rem; }

 
@keyframes glitch-shift {
  0%, 90%, 100% { transform: none; text-shadow: none; }
  91% { transform: translate(-2px, 1px); text-shadow: -2px 0 #3af, 2px 0 var(--red); }
  93% { transform: translate(2px, -1px); text-shadow: 2px 0 #3af, -2px 0 var(--red); }
  95% { transform: none; text-shadow: none; }
  97% { transform: translate(1px, 0); text-shadow: -1px 0 var(--red); }
}
body.glitch-on .glitch { animation: glitch-shift 6s steps(2, end) infinite; }
body.glitch-on .glitch:hover { animation-duration: 1.2s; }

 
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.2rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.card:hover { border-color: var(--red); }
.card .num {
  font-family: var(--mono); color: var(--red); font-weight: 700;
  letter-spacing: .14em; font-size: .75rem;
}
.card h3 { margin: .35rem 0 .45rem; font-size: 1.05rem; }
.card p { color: var(--ink-dim); font-size: .92rem; margin: 0; }
.card .foot { margin-top: .8rem; font-size: .75rem; color: var(--muted); font-family: var(--mono); }

.echelon {
  display: grid; grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem; align-items: center;
  border: 1px solid var(--line); background: var(--bg-elev);
  padding: .9rem 1rem; margin: 0 0 .7rem;
}
.echelon .idx {
  font-family: var(--mono); color: var(--red); font-weight: 700; font-size: 1.1rem;
}
.badge {
  display: inline-block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; padding: .2rem .5rem; border: 1px solid var(--line); color: var(--muted);
}
.badge-ok { border-color: var(--red); color: var(--red); }
.badge-lock { opacity: .7; }

 
form.stack { display: grid; gap: .85rem; max-width: 32rem; }
label { display: grid; gap: .35rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink-dim); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="date"], input[type="file"], select, textarea {
  font: inherit; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); padding: .7rem .8rem; width: 100%;
  border-radius: var(--radius);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus, .icon-btn:focus-visible, .btn:focus-visible,
.nav a:focus-visible, .btn-link:focus-visible, .emoji-btn:focus-visible, .lang-select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-color: var(--red);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--red);
  border-color: var(--red);
}
.help { font-size: .85rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.captcha-svg { border: 1px solid var(--line); }

.flash { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--bg-elev); }
.flash-ok { border-left: 3px solid #3a8a4a; }
.flash-erreur { border-left: 3px solid var(--red); }
.flash-info { border-left: 3px solid #4a6a8a; }

.callout, .box {
  border: 1px solid var(--line); background: var(--bg-elev);
  padding: 1rem 1.1rem; margin: 1rem 0;
}
.callout-red { border-color: var(--red); background: var(--red-soft); }

 
.lecteur {
  background: #0a0a0a; border: 1px solid var(--line);
  min-height: 70vh; position: relative;
}
[data-theme="clair"] .lecteur { background: #f0f0f0; }
.lecteur iframe, .lecteur embed { width: 100%; height: 75vh; border: 0; }
.lecteur-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .6rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-elev);
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
}
.qr-card { max-width: 44rem; }
.chances { font-family: var(--mono); color: var(--red); letter-spacing: .08em; }
.historique { pointer-events: auto; }
.historique textarea, .historique input { pointer-events: none; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .55rem .4rem; text-align: left; vertical-align: top; }
.table th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

 
.toggle-list { display: grid; gap: .4rem; }
.toggle {
  display: grid; grid-template-columns: 3rem 1fr; gap: .8rem; align-items: center;
  border: 1px solid var(--line); background: var(--bg-elev); padding: .7rem .9rem;
}
.toggle input { width: 1.2rem; height: 1.2rem; accent-color: var(--red); }
.toggle.on { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); }

 
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(196,30,58,.07)),
    url("../img/noise.png") repeat,
    var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.footer-line {
  height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent);
  background-size: 40% 100%;
  animation: footer-scan 4.5s linear infinite;
}
@keyframes footer-scan {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}
body.footer-static .footer-line { animation: none; background-position: 50% 0; }

.ticker {
  overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); padding: .45rem 0;
}
.ticker-track {
  display: inline-block;
  animation: ticker 36s linear infinite;
  padding-left: 100%;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
body.footer-static .ticker-track { animation: none; padding-left: 0; transform: none; }

.footer-inner {
  display: grid; grid-template-columns: 1.2fr .8fr .8fr;
  gap: 1.6rem; padding: 1.6rem 1.2rem 1.2rem;
  font-size: .88rem; color: var(--ink-dim);
}
.footer-inner h3 {
  color: var(--red); font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; margin-bottom: .6rem;
}
.footer-inner a { color: var(--ink-dim); }
.footer-inner a:hover { color: var(--red); }
.footer-sign {
  grid-column: 1 / -1; border-top: 1px solid var(--line);
  padding-top: .8rem; display: flex; justify-content: space-between; gap: 1rem;
  font-size: .75rem; color: var(--muted); flex-wrap: wrap;
}
.pulse {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem;
}
.pulse i {
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(196,30,58,.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(196,30,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(196,30,58,0); }
}
body.footer-static .pulse i { animation: none; }

 
.eq {
  display: flex; align-items: flex-end; gap: 3px; height: 18px;
}
.eq b {
  display: block; width: 3px; background: var(--red); transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite alternate;
}
.eq b:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq b:nth-child(2) { height: 80%; animation-delay: .15s; }
.eq b:nth-child(3) { height: 55%; animation-delay: .3s; }
.eq b:nth-child(4) { height: 95%; animation-delay: .05s; }
.eq b:nth-child(5) { height: 35%; animation-delay: .22s; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
body.footer-static .eq b { animation: none; }

 
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.86);
  display: none; place-items: center; z-index: 90; padding: 2rem;
}
.lightbox.on { display: grid; }
.lightbox .box {
  max-width: min(90vw, 1100px); max-height: 90vh; overflow: auto;
  background: var(--bg); border: 1px solid var(--red); padding: 1rem;
}
.lightbox img, .lightbox video { max-width: 100%; max-height: 80vh; margin: auto; }
body.protect-on {   }

 
.admin-shell { min-width: 0; }
.admin-nav {
  display: flex; flex-wrap: wrap; gap: .15rem;
  margin: 0 0 1.4rem; padding: 0 0 .7rem;
  border-bottom: 1px solid var(--line);
}
.admin-nav a {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dim); padding: .4rem .7rem; border: 1px solid transparent;
  border-radius: var(--radius);
}
.admin-nav a:hover { color: var(--ink); border-color: var(--line); }
.admin-nav a[aria-current="page"] {
  color: var(--ink); background: var(--bg-elev);
  border-color: var(--line); border-bottom-color: var(--red);
}

 
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.banner-local {
  background: var(--red); color: #fff; text-align: center;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .6rem; font-weight: 700;
}
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.impersonation-banner {
  background: #c41e3a;
  color: #fff;
  padding: .65rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 80;
  font-size: .95rem;
}
.impersonation-banner .btn { color: #fff; border-color: rgba(255,255,255,.7); }
.inline { display: inline; }

.chat-log { display: flex; flex-direction: column; gap: .75rem; margin: 1.2rem 0; max-width: 48rem; }
.chat-msg { background: var(--bg-elev); border: 1px solid var(--line); padding: .7rem 1rem; }
.chat-msg header { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; margin-bottom: .35rem; font-size: .9rem; color: var(--muted); }
.chat-msg header strong { color: var(--ink); }
.chat-msg.is-deleted { opacity: .7; }
.chat-form textarea { width: 100%; }
.emoji-picker { display: flex; flex-wrap: wrap; gap: .25rem; margin: .4rem 0 1rem; padding: .5rem; border: 1px solid var(--line); background: var(--bg-soft); }
.emoji-btn { background: transparent; border: 0; font-size: 1.25rem; cursor: pointer; line-height: 1.2; padding: .15rem; }
.emoji-btn:hover, .emoji-btn:focus { background: var(--red-soft); }
.btn-link { background: none; border: 0; color: var(--red); cursor: pointer; padding: 0; font: inherit; }
.inline { display: inline-block; margin-right: .6rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.product-card { background: var(--bg-elev); border: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.product-card img { width: 100%; height: 140px; object-fit: cover; background: var(--bg-soft); }
.product-card .price { font-weight: 700; font-size: 1.1rem; }
.callout-ok { border-color: #2e7d4f; background: rgba(46, 125, 79, .12); }


.ico { width: 1.15rem; height: 1.15rem; display: block; }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
[data-theme="sombre"] .ico-sun { display: block; }
[data-theme="sombre"] .ico-moon { display: none; }
[data-theme="clair"] .ico-sun { display: none; }
[data-theme="clair"] .ico-moon { display: block; }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle .ico-close { display: none; }
.header-inner.is-open .nav-toggle .ico-menu { display: none; }
.header-inner.is-open .nav-toggle .ico-close { display: block; }

.admin-subnav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 1.2rem; }
.admin-subnav a { font-size: .8rem; color: var(--ink-dim); border-bottom: 1px solid transparent; padding-bottom: .15rem; }
.admin-subnav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.form-wide { max-width: 48rem; }
.check { display: flex; align-items: center; gap: .55rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--red); }
.perm-grid { display: grid; gap: 1rem; border: 1px solid var(--line); padding: 1rem; background: var(--bg-elev); }
.perm-group h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .4rem; }
.table-wrap { overflow-x: auto; }

.chat-msg header { align-items: center; }
.chat-avatar { width: 1.7rem; height: 1.7rem; display: inline-flex; color: var(--ink); flex-shrink: 0; }
.avatar-icon { width: 1.7rem; height: 1.7rem; }
.chat-hl { font-weight: 700; }

.icon-picker { display: grid; gap: 1.2rem; margin: 1rem 0 2rem; }
.icon-set { border: 1px solid var(--line); background: var(--bg-elev); padding: 1rem; }
.icon-set.is-locked { opacity: .72; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: .7rem; }
.icon-choice { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .6rem .4rem; border: 1px solid var(--line); background: var(--bg-soft); cursor: pointer; text-align: center; font-size: .75rem; color: var(--ink-dim); }
.icon-choice .avatar-icon, .icon-choice svg { width: 2.4rem; height: 2.4rem; color: var(--ink); }
.icon-choice.is-selected { border-color: var(--red); color: var(--ink); background: var(--red-soft); }
.icon-choice.is-disabled { cursor: not-allowed; opacity: .55; }
.icon-choice input { position: absolute; opacity: 0; pointer-events: none; }
.icon-choice:focus-within, .icon-choice:hover { border-color: var(--red); }

@media (max-width: 1279px) {
  .nav-toggle { display: grid; }
  .header-tools { margin-left: 0; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .4rem 0 0.8rem; flex-wrap: wrap; }
  .header-inner.is-open { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-top: .5rem; padding-bottom: .5rem; }
  .header-inner.is-open .nav { display: flex; }
  .nav a { padding: .45rem 0; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 980px) {
  .icon-btn, .lang-select, .btn { min-height: 44px; }
  .table-wrap, table.table { display: block; overflow-x: auto; }
  .lecteur iframe, .lecteur embed { height: 60vh; }
  .echelon { grid-template-columns: 1fr; }
  form.stack, .form-wide { max-width: 100%; }
}
@media (max-width: 899px) {
  .page-frame { grid-template-columns: minmax(0, 1fr); }
  .page-frame > .ad-col { display: none; }
  .page-frame > .site-column { grid-column: 1; }
}
@media (min-width: 1200px) {
  .admin-shell {
    display: grid;
    grid-template-columns: 14.5rem minmax(0, 1fr);
    gap: 1.2rem 2rem;
    align-items: start;
  }
  .admin-shell > .admin-nav {
    grid-column: 1;
    grid-row: 1 / span 80;
    flex-direction: column;
    flex-wrap: nowrap;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 0 1rem 0 0;
    margin: 0;
    position: sticky;
    top: calc(var(--header-h) + .8rem);
  }
  .admin-shell > :not(.admin-nav) { grid-column: 2; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


.pub-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.pub-guide .pub-preview-box { margin-top: .7rem; max-width: 100%; }
.pub-preview-box {
  background: var(--bg-elev); border: 1px dashed var(--line);
  display: grid; place-items: center; overflow: hidden; max-width: 100%;
}
.pub-preview-box img, .pub-preview-box video { width: 100%; height: 100%; object-fit: contain; }
.pub-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.pub-cal-month { border: 1px solid var(--line); background: var(--bg-elev); padding: .9rem 1rem; }
.pub-cal-month h3 { margin: 0 0 .7rem; font-size: .95rem; text-transform: capitalize; }
.pub-cal-sides { display: grid; gap: .5rem; }
.pub-slot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem;
  border: 1px solid var(--line); padding: .45rem .6rem; font-size: .85rem;
}
.pub-slot.is-free { background: color-mix(in srgb, var(--bg) 70%, #1a7f37 8%); }
.pub-slot.is-taken { opacity: .55; background: var(--bg); filter: grayscale(.3); }
.pub-slot-side { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.pub-slot-state { margin-left: auto; }
.ad-slot img, .ad-slot video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.form-inline, form.inline { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

a.ad-vacant {
  position: relative;
  padding: 0;
  display: block;
  overflow: hidden;
}
.ad-vacant-still,
.ad-vacant-video,
.ad-vacant-gif,
.ad-vacant-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-vacant-still {
  display: none;
  position: absolute;
  inset: 0;
}
.ad-vacant-video,
.ad-vacant-gif {
  position: absolute;
  inset: 0;
}
.ad-vacant.has-video .ad-vacant-gif { display: none; }
.ad-vacant-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: .5rem .45rem .7rem;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  display: grid;
  gap: .18rem;
  text-align: center;
  pointer-events: none;
}
.ad-vacant-overlay .ad-vacant-title { color: #fff; }
.ad-vacant-overlay .ad-vacant-cta { color: rgba(255,255,255,.85); }
@media (prefers-reduced-motion: reduce) {
  .ad-vacant-motion { display: none !important; }
  .ad-vacant-still { display: block !important; position: relative; }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--bg-elev, #161616);
  color: var(--ink, #eee);
  border-top: 1px solid var(--line, #333);
  padding: .9rem 1.2rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 24px rgba(0,0,0,.28);
}
.cookie-banner p { margin: 0; max-width: 52rem; font-size: .92rem; line-height: 1.45; }
.cookie-banner .cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.statut-validee { color: #2f9e44; font-weight: 600; }
.statut-refusee { color: var(--red, #c0392b); font-weight: 600; }
.statut-attente { color: var(--muted, #888); }
.statut-probable { color: #c47d00; font-weight: 600; }
