/* Weazel News : thème moderne sombre, couleurs du logo (rouge, acier, noir) */
:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1c1c22;
  --border: rgba(255, 255, 255, .08);
  --text: #f2f2f4;
  --muted: #9a9ca5;
  --acier: #c4c7cd;
  --rouge: #e11d2e;
  --rouge-2: #ff4d5e;
  --rouge-fonce: #a30f1d;
  --radius: 16px;
  --accent-rgb: 225, 29, 46;
  --titre: 'Space Grotesk', system-ui, sans-serif;
  --texte: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--texte); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--rouge-2); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(var(--accent-rgb), .22), transparent 70%),
    radial-gradient(500px 400px at -10% 30%, rgba(196, 199, 205, .07), transparent 70%); }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.nav .nav-private { color: var(--acier); }
.account { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 500; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--rouge); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--texte); font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-red { background: linear-gradient(135deg, var(--rouge-2), var(--rouge) 50%, var(--rouge-fonce)); color: #fff; box-shadow: 0 8px 24px -8px rgba(var(--accent-rgb), .7); }
.btn-red:hover { box-shadow: 0 12px 30px -8px rgba(var(--accent-rgb), .9); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }

/* Pages */
.page { padding-top: 48px; padding-bottom: 80px; min-height: calc(100vh - 72px - 100px); }
h1, h2, h3, .page-title { font-family: var(--titre); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 16px; }
.page-title { font-size: 44px; }
.placeholder { color: var(--muted); }
.kicker, .pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--acier); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 24px 0 64px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; }
.grad { background: linear-gradient(120deg, #fff 0%, var(--acier) 35%, var(--rouge-2) 70%, var(--rouge)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-visual { position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: 10% 5%; background: radial-gradient(circle, rgba(var(--accent-rgb), .45), transparent 65%); filter: blur(40px); }
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; background: linear-gradient(160deg, #1d1d24, #0e0e12); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); display: grid; place-items: center; overflow: hidden; transform: perspective(1000px) rotateY(-8deg) rotateX(4deg); }
.screen img { width: 68%; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.badge-live { position: absolute; top: 16px; left: 16px; background: var(--rouge); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 12px; letter-spacing: .12em; padding: 4px 10px; border-radius: 6px; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; background: var(--rouge); color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; padding: 8px 0; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 16s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* Cartes */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; display: block; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s; overflow: hidden; }
.feature::after { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at 0 0, rgba(var(--accent-rgb), .12), transparent 60%); opacity: 0; transition: opacity .2s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .45); }
.feature:hover::after { opacity: 1; }
.feature h3 { font-size: 20px; margin: 18px 0 8px; }
.feature p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .05)); border: 1px solid rgba(var(--accent-rgb), .35); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--rouge-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Formulaires */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .9); }
.form-card { max-width: 520px; margin: 0 auto; }
.form-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.form-head .kicker { margin-bottom: 6px; }
.form-head h1 { font-size: 26px; margin: 0; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--acier); }
.form input, .form select, .form textarea { font: inherit; color: var(--text); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); transition: border-color .15s, box-shadow .15s; }
.form select option { background: var(--surface-2); }
.form input::placeholder { color: #60626a; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.form .btn { justify-content: center; margin-top: 6px; }
.company-field { display: none !important; }
.form:has(#role option[value="patron"]:checked) .company-field { display: flex !important; }

/* Messages */
.flash { padding: 14px 18px; margin-bottom: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--acier); }
.flash-succes { border-left-color: #22c55e; }
.flash-erreur { border-left-color: var(--rouge); }

/* Pied de page */
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.footer-logo { height: 28px; width: auto; opacity: .8; }
.footer p { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; justify-content: space-between; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .nav a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .screen { transform: none; }
  .features { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Étapes 2 à 4 ===== */
.muted { color: var(--muted); }
small.muted, .muted small { display: block; }
.hint { color: var(--muted); font-weight: 400; font-size: 13px; }
.empty { color: var(--muted); }
.empty-card { text-align: center; padding: 48px; color: var(--muted); }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 20px; font-size: 14px; }
.back:hover { color: var(--text); }
.section-head { margin-bottom: 32px; }
.section-head .lead { margin-top: -4px; }
.section-title { font-size: 28px; margin: 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.title-row .page-title, .title-row .card-title { margin: 0; }
.card-title { font-size: 20px; margin: 0 0 16px; }
.gallery-title { margin-top: 36px; }
.grow { flex: 1; min-width: 0; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tabs a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: #fff; background: var(--rouge); border-color: var(--rouge); }

.btn-danger { background: transparent; color: var(--rouge-2); border-color: rgba(var(--accent-rgb), .4); }
.btn-danger:hover { background: rgba(var(--accent-rgb), .12); }
.btn-ok { background: #16a34a; color: #fff; }
.btn-ok:hover { background: #15803d; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: rgba(10,10,12,.8); color: var(--text); cursor: pointer; font-size: 13px; }
.icon-btn:hover { background: var(--rouge); border-color: var(--rouge); }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--acier); border: 1px solid var(--border); white-space: nowrap; }
.badge-ok { background: rgba(34,197,94,.14); color: #4ade80; border-color: rgba(34,197,94,.3); }
.badge-warn { background: rgba(245,158,11,.14); color: #fbbf24; border-color: rgba(245,158,11,.3); }
.badge-ko, .badge-red { background: rgba(var(--accent-rgb), .14); color: var(--rouge-2); border-color: rgba(var(--accent-rgb), .35); }
.badge-btn { cursor: pointer; font-family: inherit; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 24px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .price { font-family: var(--titre); font-weight: 600; white-space: nowrap; color: var(--rouge-2); }
.cell-text { max-width: 320px; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions, .row-actions form { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { display: inline-flex; margin: 0; }

/* Stats admin */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.stat:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.stat strong { font-family: var(--titre); font-size: 40px; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
.stat-alert { border-color: rgba(var(--accent-rgb), .5); background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), var(--surface) 60%); }
.stat-alert strong { color: var(--rouge-2); }

/* Grilles de formulaires */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.grid-2-wide { grid-template-columns: 1.6fr 1fr; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sticky { position: sticky; top: 96px; }
.form .check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); }
.form .check input { width: 18px; height: 18px; accent-color: var(--rouge); }
.form input[type=file] { padding: 10px; font-size: 14px; }
.form input[type=file]::file-selector-button { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.form textarea { resize: vertical; }
.form input[type=date], .form input[type=time] { color-scheme: dark; }
.preview { max-height: 160px; width: auto; border-radius: 12px; border: 1px solid var(--border); align-self: flex-start; }
.preview-round { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
.media-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.media-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item form { position: absolute; top: 6px; right: 6px; margin: 0; }
.media-tag { position: absolute; left: 6px; bottom: 6px; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }

/* Articles */
.latest { margin-top: 72px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.article-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .45); }
.article-card-big { grid-column: 1 / -1; flex-direction: row; }
.article-card-big .article-cover { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
.article-card-big .article-body { flex: 1; padding: 36px; justify-content: center; }
.article-card-big h2 { font-size: 32px; }
.article-cover { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-cover img { transform: scale(1.04); }
.article-cover img.cover-fallback { width: 50%; height: auto; object-fit: contain; opacity: .5; }
.article-body { display: flex; flex-direction: column; padding: 20px 22px 24px; }
.article-body h2 { font-size: 20px; margin: 10px 0 8px; }
.article-body p { color: var(--muted); margin: 0; font-size: 15px; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.tag { color: var(--rouge-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }

.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(32px, 5vw, 52px); margin: 14px 0 16px; }
.article .lead { max-width: none; font-size: 20px; }
.article-hero { width: 100%; border-radius: 20px; margin: 28px 0; border: 1px solid var(--border); }
.prose { font-size: 18px; line-height: 1.8; color: #dcdce0; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 26px; color: var(--text); margin: 1.6em 0 .6em; }
.prose strong { color: #fff; }
.card.prose { font-size: 16px; }
.card.prose p:last-child { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0; }
.gallery figure, .masonry figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img, .gallery video { width: 100%; border-radius: 14px; display: block; border: 1px solid var(--border); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Photographes */
.photog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.photog-card { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.photog-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .45); }
.photog-banner { height: 140px; background: linear-gradient(135deg, var(--rouge-fonce), #1c1c22 70%); overflow: hidden; }
.photog-banner img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.photog-info { padding: 0 22px 24px; text-align: center; }
.photog-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-top: -46px; border: 4px solid var(--surface); background: var(--surface-2); box-shadow: 0 0 0 2px var(--rouge); }
.photog-info h2 { font-size: 22px; margin: 12px 0 4px; }
.photog-info p { margin: 0 0 12px; font-size: 14px; }
.photog-link { font-size: 14px; font-weight: 600; color: var(--rouge-2); }

.profile { display: flex; align-items: center; gap: 28px; margin-bottom: 36px; }
.profile h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 6px; }
.profile .lead { margin: 0; }
.profile .kicker { margin-bottom: 10px; }
.profile-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--rouge), 0 20px 50px -10px rgba(var(--accent-rgb), .5); flex-shrink: 0; }
.profile-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.profile-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.card-accent { border-color: rgba(var(--accent-rgb), .4); background: linear-gradient(160deg, rgba(var(--accent-rgb), .14), var(--surface) 60%); }
.card-accent p { margin: 0; }
.masonry { columns: 3 220px; column-gap: 12px; }
.masonry figure { break-inside: avoid; margin-bottom: 12px; }
.masonry img { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--border); transition: opacity .2s; }
.masonry img:hover { opacity: .85; }

/* Tarifs */
.price-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.price-cat { border-top: 3px solid var(--rouge); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.price-list li:last-child { border-bottom: 0; }
.price-list small { display: block; color: var(--muted); font-size: 13px; }
.price-list strong { font-family: var(--titre); font-size: 18px; color: var(--rouge-2); white-space: nowrap; }

/* Espace employé */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list.card { padding: 8px 24px; }
.event-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.event-list li:last-child { border-bottom: 0; }
.event-list strong { display: block; }
.event-date { flex-shrink: 0; width: 96px; font-family: var(--titre); font-weight: 600; font-size: 14px; color: var(--rouge-2); line-height: 1.3; }
.event-date small { color: var(--muted); font-family: var(--texte); font-weight: 500; }
.ev-details { margin: 6px 0 0; font-size: 14px; color: var(--acier); }
.agenda-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.month-nav { display: flex; gap: 6px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-head { background: var(--surface-2); padding: 10px; text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cal-day { background: var(--surface); min-height: 108px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.out { background: #101013; }
.cal-day.out .cal-num { opacity: .35; }
.cal-num { font-size: 13px; font-weight: 600; color: var(--acier); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-num { background: var(--rouge); color: #fff; }
.cal-ev { display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: rgba(var(--accent-rgb), .16); border-left: 3px solid var(--rouge); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev b { color: var(--rouge-2); font-weight: 600; }
.cal-abs { background: rgba(196,199,205,.1); border-left-color: var(--acier); color: var(--acier); }

@media (max-width: 900px) {
  .grid-2, .grid-2-wide, .profile-grid, .agenda-layout { grid-template-columns: 1fr; }
  .sticky, .profile-side { position: static; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card-big { flex-direction: column; }
  .article-card-big .article-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .article-card-big .article-body { padding: 20px 22px 24px; }
  .article-card-big h2 { font-size: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .profile { flex-direction: column; text-align: center; }
  .cal-day { min-height: 64px; padding: 4px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
  .cal-head { padding: 8px 2px; font-size: 10px; }
  .row-actions { justify-content: flex-start; }
  .price-cats { grid-template-columns: 1fr; }
}

/* ===== Patrons & discussions ===== */
.user-chip-text { display: flex; flex-direction: column; line-height: 1.15; }
.pending { font-size: 11px; font-weight: 600; color: #fbbf24; }
.pending-ko { color: var(--rouge-2); }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 12px; font-weight: 700; }
.other-company { display: none !important; }
.form:has(#company option[value="__autre"]:checked) .other-company { display: flex !important; }
.role-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.role-select, .role-company { font: inherit; font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.role-company { width: 130px; display: none; }
.role-form:has(option[value="patron"]:checked) .role-company { display: block; }

.conv-list { display: flex; flex-direction: column; gap: 10px; }
.conv-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.conv-item:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateX(3px); }
.conv-item strong { display: block; }

.chat { padding: 0; overflow: hidden; max-width: 860px; margin: 0 auto; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chat-head .kicker { margin-bottom: 8px; }
.chat-head h1 { font-size: 26px; margin: 0 0 4px; }
.chat-actions { display: flex; gap: 8px; align-items: center; }
.chat-actions form { margin: 0; }
.chat-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; max-height: 60vh; overflow-y: auto; background: radial-gradient(500px 300px at 100% 0, rgba(var(--accent-rgb), .06), transparent 70%); }
.msg { display: flex; gap: 12px; align-items: flex-end; max-width: 80%; }
.msg .avatar { flex-shrink: 0; }
.msg-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; padding: 10px 14px; }
.msg-bubble p { margin: 4px 0 0; white-space: normal; overflow-wrap: anywhere; }
.msg-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.msg-meta strong { color: var(--text); font-size: 13px; }
.msg-meta .badge { font-size: 10px; padding: 1px 7px; }
.msg-mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-mine .msg-bubble { background: linear-gradient(135deg, rgba(var(--accent-rgb), .28), rgba(var(--accent-rgb), .14)); border-color: rgba(var(--accent-rgb), .35); border-radius: 16px 16px 4px 16px; }
.chat-form { display: flex; gap: 12px; padding: 18px 28px 24px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { flex: 1; font: inherit; color: var(--text); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); resize: vertical; }
.chat-form textarea:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.chat .flash { margin: 0 28px 12px; }
.chat-closed { padding: 18px 28px 24px; margin: 0; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .msg { max-width: 95%; }
  .chat-head, .chat-body { padding: 18px; }
  .chat-form { padding: 14px 18px 18px; flex-direction: column; align-items: stretch; }
}

/* Recherche utilisateurs */
.search-bar { display: flex; gap: 8px; margin: 20px 0 14px; flex-wrap: wrap; }
.search-bar input[type=search] { flex: 1; min-width: 220px; font: inherit; color: var(--text); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.search-bar input[type=search]:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.filter-tabs { margin-bottom: 18px; }
.tab-count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; text-align: center; }
.tabs a.active .tab-count { background: rgba(0,0,0,.25); }
.discord-id { font-size: 12px; font-family: ui-monospace, monospace; }
.search-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.search-date input, .search-sort { font: inherit; font-size: 14px; color: var(--text); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color-scheme: dark; }
.nowrap { white-space: nowrap; }

/* ===== Personnalisation ===== */
.announce { text-align: center; font-size: 14px; font-weight: 600; padding: 9px 16px; }
.announce a { color: inherit; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce-accent { background: var(--rouge); color: #fff; }
.announce-sombre { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--border); }
.announce-info { background: #2563eb; color: #fff; }
.announce-succes { background: #16a34a; color: #fff; }
.announce-warn { background: #f59e0b; color: #1a1200; }
.screen-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.maintenance { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 24px; }
.maintenance img { height: 72px; width: auto; margin-bottom: 16px; }
.maintenance h1 { font-family: var(--titre); font-size: 36px; margin: 0; }
.maintenance p { color: var(--muted); max-width: 460px; }
.settings-jump { margin: 8px 0 24px; }
.settings-card { margin-bottom: 24px; scroll-margin-top: 96px; }
.settings-card > .muted { margin-top: -8px; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.preset { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.preset:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .5); }
.preset.active { border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.preset-swatch { display: flex; height: 40px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.preset-swatch i { flex: 1; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.color-field { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.color-field input[type=color] { width: 42px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.color-field code { font-size: 13px; color: var(--muted); }
.logo-row { display: flex; align-items: center; gap: 18px; }
.logo-preview { height: 64px; width: auto; max-width: 180px; object-fit: contain; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.hero-preview { width: 140px; height: 88px; object-fit: cover; padding: 0; }
.actions-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feature-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-edit fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.feature-edit legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.danger-zone { text-align: right; margin-top: 8px; }
@media (max-width: 900px) { .feature-edit { grid-template-columns: 1fr; } .logo-row { flex-direction: column; align-items: flex-start; } }
a.user-chip { color: var(--text); text-decoration: none; }
a.user-chip:hover { border-color: rgba(var(--accent-rgb), .5); }
.user-chip .job { font-size: 11px; color: var(--muted); }
.user-link { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--muted); }
.user-link:hover { color: var(--rouge-2); border-color: var(--rouge-2); }
.user-profile-head { margin-bottom: 24px; }
.user-profile-head .profile-avatar { width: 110px; height: 110px; }
.user-form { max-width: 820px; }
.user-form:has(#role option[value="patron"]:checked) .company-field { display: flex !important; }

/* ===== Mise à jour 5 : grades, rédaction, espace employé, enquêtes ===== */
.text-ko { color: var(--rouge-2) !important; }
.text-ok { color: #22c55e; }
.striked { text-decoration: line-through; opacity: .6; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.plain-fieldset[disabled] { opacity: .75; }
.inline-input { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; width: 100%; min-width: 120px; }
.inline-num { width: 80px; min-width: 0; }
.tab-alert { background: var(--rouge) !important; color: #fff !important; }

/* En-tête : cloche, recherche */
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--acier); background: var(--surface-2); border: 1px solid var(--border); }
.bell:hover { color: var(--text); }
.bell .nav-count { position: absolute; top: -4px; right: -6px; }
.cmdk-open { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 10px; height: 38px; border-radius: 999px; font-size: 18px; }
.cmdk-open kbd { font: 600 11px var(--texte); color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.cmdk { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-box { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); overflow: hidden; }
.cmdk-box input { width: 100%; font: inherit; font-size: 17px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--border); padding: 16px 18px; outline: none; }
.cmdk-box ul { list-style: none; margin: 0; padding: 6px; max-height: 55vh; overflow-y: auto; }
.cmdk-box li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.cmdk-box li a small { color: var(--muted); }
.cmdk-box li.sel a, .cmdk-box li a:hover { background: rgba(var(--accent-rgb), .15); }

/* Menu de l'espace employé */
.espace-head { margin-bottom: 0; }
.espace-head .kicker { margin-bottom: 0; }
.menu-edit { font-size: 13px; color: var(--muted); text-decoration: none; }
.menu-edit:hover { color: var(--text); }
.tabs-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tabs-scroll a { white-space: nowrap; }

/* Grades */
.grade-list { display: flex; flex-direction: column; gap: 12px; }
.grade-card { padding: 18px 24px; }
.grade-card summary { cursor: pointer; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.grade-card[open] summary { margin-bottom: 18px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.perm-grid fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.perm-grid legend { font-weight: 600; color: var(--text); padding: 0 6px; }
.perm-grid .check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }

/* Éditeur d'article */
.grid-editor { grid-template-columns: 1.6fr 1fr; align-items: start; }
.editor-side { display: flex; flex-direction: column; gap: 20px; }
.editor { display: flex; flex-direction: column; gap: 8px; }
.editor-label { font-size: 14px; font-weight: 500; color: var(--acier); }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.toolbar button { font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.toolbar button:hover, .toolbar button.on { background: rgba(var(--accent-rgb), .15); border-color: rgba(var(--accent-rgb), .35); }
.toolbar-sep { flex: 1; }
.preview-box { min-height: 300px; padding: 16px 20px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: 12px; }
.check-box { padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.check-box ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.check-box li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.check-box mark { background: rgba(var(--accent-rgb), .25); color: var(--text); border-radius: 4px; padding: 0 4px; }
.prose u { text-decoration-color: var(--rouge); text-underline-offset: 3px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose ul { padding-left: 22px; }
.prose blockquote { margin: 18px 0; padding: 10px 18px; border-left: 3px solid var(--rouge); color: var(--acier); font-style: italic; background: rgba(255,255,255,.02); }
.signature { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.signature em { color: var(--muted); }
.game-copy .copy-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.game-copy .copy-row > span { width: 60px; flex-shrink: 0; font-weight: 600; font-size: 14px; }
.game-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-2); padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.game-copy .copy-col { flex-direction: column; align-items: stretch; }
.game-copy .copy-col > span { width: auto; display: flex; justify-content: space-between; }
.game-copy textarea { font: 13px/1.5 ui-monospace, monospace; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; resize: vertical; }
.danger-inline { text-align: right; }
.search-inline { margin: 14px 0 0; max-width: 520px; }

/* Notifications */
.notif { align-items: center; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15); }
.notif-read { opacity: .6; }
.notif-read .notif-dot { background: var(--border); box-shadow: none; }

/* Todolist */
.todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.todo { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.todo-late { border-color: rgba(var(--accent-rgb), .5); }
.todo-done strong { text-decoration: line-through; opacity: .6; }
.todo-check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; border: 2px solid var(--acier); background: transparent; color: #fff; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.todo-done .todo-check { background: #16a34a; border-color: #16a34a; }
.todo .row-actions { display: flex; gap: 4px; }

/* Planning */
.planning-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.planning-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.planning { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.planning th, .planning td { border: 1px solid var(--border); padding: 4px; vertical-align: top; }
.planning thead th { padding: 10px 4px; color: var(--acier); font-weight: 600; }
.planning thead th.today { color: var(--rouge-2); }
.planning tbody th { width: 52px; color: var(--muted); font-weight: 500; }
.planning td { height: 42px; position: relative; }
.plan-task { display: block; margin-bottom: 3px; padding: 3px 6px; border-radius: 6px; background: rgba(var(--accent-rgb), .18); border-left: 3px solid var(--rouge); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-task b { color: var(--rouge-2); font-weight: 600; }
.plan-done { opacity: .5; text-decoration: line-through; }
.plan-add { position: absolute; right: 3px; bottom: 2px; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 700; padding: 0 4px; }
.planning td:hover .plan-add { opacity: 1; }
.planning-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }

/* Accueil employé */
.dash-profile { display: flex; align-items: center; gap: 20px; padding: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-name { font-size: 30px; margin: 0 0 4px; }
.dash-profile p { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dash-counters { display: flex; gap: 14px; font-size: 18px; font-weight: 600; }
.dash-lastnote { margin: 0 0 16px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.dash-grid .card { padding: 24px; }

/* Vidéos et affiches */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.media-card { padding: 0; overflow: hidden; margin: 0; }
.media-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.media-card figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.media-desc { font-size: 14px; color: var(--acier); }
.media-link { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; }
.media-review { margin-top: 10px; gap: 10px; }
.media-url, .media-file { display: none !important; }
#form-media:has(#media-type option[value="video"]:checked) .media-url, #form-media:has(#media-type option[value="affiche"]:checked) .media-file { display: flex !important; }

/* Annuaire, dossier, effectifs */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.person { display: flex; align-items: flex-start; gap: 16px; padding: 20px; }
.person .grow { display: flex; flex-direction: column; gap: 2px; }
.phone { margin-top: 6px; font-weight: 600; }
.doc-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.doc-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.doc-status-sm { grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
.doc-status-sm .doc-tile { padding: 0; font-size: 14px; }
.permis-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.permis-dots i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.permis-dots i.on { background: #16a34a; color: #fff; border-color: #16a34a; }
.doc-subtype { display: none !important; }
#form-doc:has(#doc-type option[value="permis"]:checked) .doc-subtype { display: flex !important; }
.doc-form:has(select[name="type"] option[value="permis"]:checked) .doc-subtype, .doc-subtype.doc-subtype-on { display: flex !important; }
.doc-edit { margin-top: .4rem; }
.doc-edit summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.doc-edit .form { margin-top: .5rem; }
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover { color: var(--text); }

/* Entreprises et devis */
.company-list { display: flex; flex-direction: column; gap: 16px; }
.company-card { padding: 20px 24px; }
.company-card .event-list li { align-items: center; }
.company-name { font-weight: 600; font-size: 17px; min-width: 220px; }
.attach-form { margin-top: 12px; flex-wrap: wrap; }
.company-team { padding: 20px 24px; }
.team-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.quote { margin: 8px 0 18px; padding: 18px 20px; border-left: 4px solid var(--rouge); }
.quote-table { margin: 8px 0; font-size: 14px; }
.quote-total td { font-weight: 700; border-top: 2px solid var(--border); }
.quote-form summary { cursor: pointer; }
.quote-form[open] summary { margin-bottom: 18px; }
.quote-lines { display: flex; flex-direction: column; gap: 8px; }
.quote-line { display: grid; grid-template-columns: 1fr 80px 140px; gap: 8px; }
.quote-head { font-size: 13px; color: var(--muted); }
.quote-live { margin: 0; font-size: 18px; }

/* Tableau d'enquête */
.enquete-desc { max-width: none; }
.board-wrap { overflow: auto; height: 70vh; min-height: 420px; border: 1px solid var(--border); border-radius: 18px; background-color: var(--surface-2); background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; }
.board { position: relative; width: 2800px; height: 2000px; }
.board-links { position: absolute; inset: 0; pointer-events: none; }
.board-links text { font: 600 13px var(--texte); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.e-card { position: absolute; width: 220px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--rouge); border-radius: 12px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); font-size: 13px; user-select: none; touch-action: none; }
[data-editable="1"] .e-card { cursor: grab; }
.e-card.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 20px 40px -10px rgba(0,0,0,.9); }
.e-card p { margin: 6px 0 0; color: var(--acier); max-height: 160px; overflow: hidden; }
.e-card img { display: block; width: 100%; margin-top: 8px; border-radius: 8px; pointer-events: none; }
.e-card .media-link { aspect-ratio: auto; padding: 10px; margin-top: 8px; border-radius: 8px; }
.e-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.e-type { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); flex: 1; }
.e-open { color: var(--muted); text-decoration: none; }
.e-open:hover { color: var(--text); }
.e-title { display: block; font-size: 15px; }
.e-info { border-top-color: #f59e0b; }
.e-fiche { border-top-color: #3b82f6; }
.e-card-hidden { border-top-color: var(--muted); color: var(--muted); text-align: center; }
.ct { display: none !important; }
#ajout-carte:has(#card-type option[value="fiche"]:checked) .ct-fiche,
#ajout-carte:has(#card-type option[value="image"]:checked) .ct-image,
#ajout-carte:has(#card-type option[value="video"]:checked) .ct-video { display: flex !important; }
.link-swatch { width: 18px; height: 4px; border-radius: 2px; flex-shrink: 0; margin-top: 10px; }
.form input[type=color] { padding: 4px; height: 44px; }

@media (max-width: 900px) {
  .grid-editor, .planning-layout, .dash-grid { grid-template-columns: 1fr; }
  .planning-side { position: static; }
  .doc-status { grid-template-columns: repeat(2, 1fr); }
  .quote-line { grid-template-columns: 1fr 60px 100px; }
  .cmdk-open kbd { display: none; }
  .board-wrap { height: 60vh; }
}

/* Candidatures et formulaires */
.answers { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 10px 18px; margin: 18px 0; }
.answers dt { color: var(--muted); font-size: .9rem; }
.answers dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .answers { grid-template-columns: 1fr; gap: 4px; } .answers dd { margin-bottom: 10px; } }
.decision { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--rouge); background: rgba(255, 255, 255, .04); border-radius: 6px; }
.req { color: var(--rouge); }
.form-field-row { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.form-field-row legend { padding: 0 6px; color: var(--muted); font-size: .85rem; }
.form-field-new { border-style: dashed; }
.field-options { display: none !important; }
.form-field-row:has(select option[value="select"]:checked) .field-options { display: flex !important; }
.inline-label { flex-direction: row !important; align-items: center; gap: 8px; }

/* ===== Accueil : bannière animée façon motion design urbain (CSS pur, aucune librairie) =====
   Seules transform et opacity sont animées : fluide même sans carte graphique.
   L'animation se met en pause quand la bannière n'est pas visible (classe posée par app.js). */
/* --vw = largeur visible réelle (sans la barre de défilement), posée par app.js : le logo reste centré */
.hero3d { width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); }
.page > .hero3d:first-child { margin-top: -48px; }
.stage3d { position: relative; height: clamp(460px, 80vh, 860px); overflow: hidden; display: grid; place-items: center; contain: layout paint; isolation: isolate;
  background: radial-gradient(60% 50% at 50% 50%, rgba(var(--accent-rgb), .28), transparent 70%), linear-gradient(160deg, #141418 0%, #0a0a0d 60%, #160608 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .1); }
.stage3d .badge-live { z-index: 8; top: 28px; left: max(16px, calc(var(--vw, 100vw) / 2 - 574px)); font-size: 14px; padding: 6px 14px; }
.stage3d .ticker { z-index: 8; font-size: 15px; padding: 11px 0; }

/* Grand texte qui défile en fond, en diagonale */
.urb-bg { position: absolute; inset: -30% -20%; display: flex; flex-direction: column; justify-content: center; gap: 2vw; transform: rotate(-8deg); z-index: 0; }
.urb-row { display: flex; width: max-content; will-change: transform; animation: urbMarq 38s linear infinite; }
.urb-row b { font-family: var(--titre); font-weight: 900; font-size: clamp(90px, 15vw, 240px); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; padding-right: .35em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .09); }
.urb-row.r2 { animation-direction: reverse; animation-duration: 30s; }
.urb-row.r2 b { color: rgba(var(--accent-rgb), .16); -webkit-text-stroke: 0; }
@keyframes urbMarq { to { transform: translateX(-50%); } }
.urb-dots { position: absolute; inset: 0; z-index: 1; background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px) 0 0 / 7px 7px; }

/* Bandes « scotch » qui se croisent */
.urb-tape { position: absolute; left: -10%; right: -10%; z-index: 2; overflow: hidden; white-space: nowrap; font-family: var(--titre); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(15px, 1.7vw, 26px); padding: .45em 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.urb-tape > div { display: flex; width: max-content; will-change: transform; animation: urbMarq 22s linear infinite; }
.urb-tape span { padding-right: .6em; }
.urb-tape.t1 { top: 16%; background: var(--rouge); color: #fff; transform: rotate(-3deg); }
.urb-tape.t2 { bottom: 16%; background: #f2f2f2; color: #0b0b0e; transform: rotate(3deg); }
.urb-tape.t2 > div { animation-direction: reverse; animation-duration: 26s; }

/* Cadre caméra : coins, REC et compteur */
.urb-frame { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.urb-frame i { position: absolute; z-index: 7; width: 46px; height: 46px; border: 3px solid rgba(255, 255, 255, .75); }
.urb-frame .c1 { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.urb-frame .c2 { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.urb-frame .c3 { bottom: 64px; left: 22px; border-right: 0; border-top: 0; }
.urb-frame .c4 { bottom: 64px; right: 22px; border-left: 0; border-top: 0; }
.urb-rec { position: absolute; z-index: 8; top: 34px; right: max(80px, calc(var(--vw, 100vw) / 2 - 574px)); display: flex; align-items: center; gap: 8px; font-family: ui-monospace, monospace; font-weight: 700; font-size: 15px; letter-spacing: .1em; color: #fff; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); animation: recBlink 1s steps(1) infinite; }
.urb-tc { opacity: .8; }
@keyframes recBlink { 50% { opacity: 0; } }

/* Logo : arrivée « coup de poing », tremblement, glitchs, puis sortie en balayage (boucle de 9 s) */
.urb-logo { position: relative; z-index: 5; width: min(62vw, 860px, 76vh); animation: urbShake 9s linear infinite; }
.urb-slam { position: relative; will-change: transform, opacity; animation: urbSlam 9s cubic-bezier(.2, .8, .2, 1) infinite; }
.urb-slam img { display: block; width: 100%; height: auto; }
.urb-slam .lg-main { position: relative; z-index: 2; }
.lg-cyan, .lg-red, .lg-slice { position: absolute; inset: 0; opacity: 0; }
.lg-cyan { z-index: 1; animation: urbCyan 9s steps(1) infinite; }
.lg-red { z-index: 1; animation: urbRed 9s steps(1) infinite; }
.lg-slice { z-index: 3; }
.lg-slice.k1 { clip-path: inset(14% 0 64% 0); animation: urbK1 9s steps(1) infinite; }
.lg-slice.k2 { clip-path: inset(46% 0 38% 0); animation: urbK2 9s steps(1) infinite; }
.lg-slice.k3 { clip-path: inset(72% 0 10% 0); animation: urbK3 9s steps(1) infinite; }
@keyframes urbSlam {
  0% { transform: scale(2.4) rotate(-7deg); opacity: 0; }
  4% { transform: scale(.9) rotate(1.5deg); opacity: 1; }
  6.5% { transform: scale(1.05) rotate(-.5deg); }
  9% { transform: scale(1) rotate(0); }
  86% { transform: scale(1.07) rotate(0); opacity: 1; }
  89% { transform: scale(1.12) translateX(-3%) skewX(8deg); opacity: 1; }
  93% { transform: scale(.6) translateX(60%) skewX(-35deg); opacity: 0; }
  100% { transform: scale(2.4) rotate(-7deg); opacity: 0; }
}
@keyframes urbShake {
  0%, 3.9% { transform: none; } 4.3% { transform: translate(-14px, 8px); } 4.8% { transform: translate(12px, -10px); } 5.3% { transform: translate(-8px, -4px); } 5.8% { transform: translate(6px, 6px); } 6.4% { transform: translate(-3px, 2px); } 7%, 100% { transform: none; }
}
@keyframes urbCyan {
  0% { opacity: 0; transform: none; } 4% { opacity: .9; transform: translate(-16px, 3px); } 7% { opacity: 0; transform: none; }
  31% { opacity: .9; transform: translate(-22px, 0); } 32.5% { opacity: .9; transform: translate(10px, -4px); } 34% { opacity: 0; transform: none; }
  57% { opacity: .9; transform: translate(-12px, 5px); } 58.5% { opacity: 0; transform: none; }
  78% { opacity: .9; transform: translate(-28px, -2px); } 79% { opacity: .9; transform: translate(14px, 2px); } 80.5% { opacity: 0; transform: none; }
  88% { opacity: .9; transform: translate(-20px, 0); } 92% { opacity: 0; transform: none; }
}
@keyframes urbRed {
  0% { opacity: 0; transform: none; } 4% { opacity: .9; transform: translate(16px, -3px); } 7% { opacity: 0; transform: none; }
  31% { opacity: .9; transform: translate(22px, 2px); } 32.5% { opacity: .9; transform: translate(-10px, 4px); } 34% { opacity: 0; transform: none; }
  57% { opacity: .9; transform: translate(12px, -5px); } 58.5% { opacity: 0; transform: none; }
  78% { opacity: .9; transform: translate(28px, 2px); } 79% { opacity: .9; transform: translate(-14px, -2px); } 80.5% { opacity: 0; transform: none; }
  88% { opacity: .9; transform: translate(20px, 0); } 92% { opacity: 0; transform: none; }
}
@keyframes urbK1 { 0% { opacity: 0; transform: none; } 31% { opacity: 1; transform: translateX(-6%); } 32% { opacity: 1; transform: translateX(4%); } 33.5% { opacity: 0; transform: none; } 78% { opacity: 1; transform: translateX(7%); } 79.5% { opacity: 0; transform: none; } }
@keyframes urbK2 { 0% { opacity: 0; transform: none; } 4.5% { opacity: 1; transform: translateX(8%); } 6% { opacity: 0; transform: none; } 57% { opacity: 1; transform: translateX(-9%); } 58.5% { opacity: 0; transform: none; } 79% { opacity: 1; transform: translateX(-5%); } 80.5% { opacity: 0; transform: none; } }
@keyframes urbK3 { 0% { opacity: 0; transform: none; } 32% { opacity: 1; transform: translateX(5%); } 33.5% { opacity: 0; transform: none; } 57.5% { opacity: 1; transform: translateX(6%); } 58.5% { opacity: 0; transform: none; } 88.5% { opacity: 1; transform: translateX(-10%); } 91% { opacity: 0; transform: none; } }

/* Volets en biais qui balaient l'écran entre deux boucles, et flash à l'impact */
.urb-wipe { position: absolute; top: -20%; bottom: -20%; left: 0; width: 55vw; z-index: 6; transform: translateX(calc(-100% - 50vh)) skewX(-18deg); will-change: transform; animation: urbWipe 9s cubic-bezier(.7, 0, .3, 1) infinite; }
.urb-wipe.w1 { background: var(--rouge); }
.urb-wipe.w2 { background: #f2f2f2; animation-delay: .12s; width: 18vw; }
@keyframes urbWipe { 0%, 87% { transform: translateX(calc(-100% - 50vh)) skewX(-18deg); } 97%, 100% { transform: translateX(calc(100vw + 50vh)) skewX(-18deg); } }
.urb-flash { position: absolute; inset: 0; z-index: 7; background: #fff; opacity: 0; pointer-events: none; animation: urbFlash 9s linear infinite; }
@keyframes urbFlash { 0%, 3.6% { opacity: 0; } 4.2% { opacity: .45; } 8%, 100% { opacity: 0; } }

/* Pause quand la bannière sort de l'écran */
.stage3d.paused *, .stage3d.paused *::before, .stage3d.paused *::after { animation-play-state: paused !important; }

.hero-solo { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-top: 48px; }
.hero-solo .lead { max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-solo .actions { justify-content: center; }
@media (max-width: 760px) {
  .stage3d { height: clamp(340px, 62vh, 520px); }
  .urb-logo { width: 88vw; }
  .urb-wipe { width: 90vw; }
  .urb-wipe.w2 { width: 30vw; }
  .urb-frame i { width: 28px; height: 28px; }
  .urb-rec { right: 60px; top: 30px; font-size: 12px; }
  .urb-tape.t1 { top: 14%; }
  .urb-tape.t2 { bottom: 14%; }
}
@media (prefers-reduced-motion: reduce) {
  .stage3d *, .stage3d *::before, .stage3d *::after { animation: none !important; }
  .urb-wipe { display: none; }
}

/* ===== Régie (pilotage de l'overlay OBS) ===== */
.regie-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 44%); gap: 24px; align-items: start; }
.regie-controls { display: grid; gap: 18px; }
.regie-side { position: sticky; top: 88px; display: grid; gap: 18px; }
.regie-card .title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.regie-card .card-title { margin: 0; }
.regie-card input { width: 100%; }
.regie-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.regie-quick > div { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.regie-quick input { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: 8px; font: inherit; }
.regie-row { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 12px; align-items: end; }
.regie-toggle .rt-on, .regie-toggle.is-on .rt-off { display: none; }
.regie-toggle.is-on .rt-on { display: inline; }
.regie-toggle.is-on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: recBlink 1s steps(1) infinite; }
.regie-scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.regie-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.regie-presets:empty { display: none; }
.regie-chip { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.regie-chip button { background: none; border: 0; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 12px; }
.regie-chip-go:hover { background: rgba(var(--accent-rgb), .25); }
.regie-chip-del { color: var(--muted) !important; border-left: 1px solid var(--border) !important; padding: 6px 10px !important; }
.regie-chip-del:hover { color: var(--rouge-2) !important; }
.regie-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.regie-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.regie-status { font-size: 13px; }
.regie-ok { color: #3ddc84; }
.regie-err { color: var(--rouge-2); }
@media (max-width: 980px) {
  .regie-row { grid-template-columns: 1fr; }
  .regie-grid { grid-template-columns: 1fr; }
  .regie-side { position: static; order: -1; }
  .regie-quick { grid-template-columns: 1fr; }
}
.regie-row-3 { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.3fr); }
.regie-check { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.regie-toggle kbd, .regie-card kbd { font-family: ui-monospace, monospace; font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); opacity: .75; }
.regie-music { display: grid; gap: 8px; margin-bottom: 12px; }
.regie-music-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.regie-music-row .check { flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; }
.regie-volume { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.regie-volume label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--acier); flex: 1 1 220px; }
.regie-volume input[type=range] { flex: 1; accent-color: var(--rouge); }
.regie-volume [data-vol] { min-width: 46px; font-variant-numeric: tabular-nums; }
.regie-inline { display: flex; gap: 8px; }
.regie-inline input { flex: 1; min-width: 0; }
.regie-pads { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 8px; }
.regie-pad { min-height: 64px; padding: 10px; border-radius: 12px; border: 1px solid rgba(var(--accent-rgb), .45); background: linear-gradient(160deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .06)); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .1s, background .15s; }
.regie-pad:hover { background: rgba(var(--accent-rgb), .35); }
.regie-pad.is-hit { transform: scale(.94); background: var(--rouge); }
.regie-upload { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.regie-media { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.regie-media li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.regie-media .grow { flex: 1 1 140px; display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.regie-media small { font-weight: 400; }
.regie-media audio { height: 34px; max-width: 240px; }
.regie-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
.regie-note { width: 54px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: rgba(var(--accent-rgb), .2); color: var(--rouge-2); font-size: 20px; }
@media (max-width: 720px) {
  .regie-row-3, .regie-music-row, .regie-upload { grid-template-columns: 1fr; }
}
.regie-card input[type=checkbox] { width: auto; }
.regie-media audio { flex: 0 1 220px; }

/* ===== Mise à jour 12 : glisser-déposer, postes, tarifs en photos, drive, journal ===== */
.drag-handle { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 7px; color: var(--muted); cursor: grab; touch-action: none; user-select: none; font-size: 16px; line-height: 1; transition: background .15s, color .15s; }
.drag-handle:hover { background: rgba(255,255,255,.08); color: var(--text); }
.is-sorting, .is-sorting * { cursor: grabbing !important; user-select: none; }
.dragging { opacity: .85; outline: 2px dashed rgba(var(--accent-rgb), .8); outline-offset: 2px; background: rgba(var(--accent-rgb), .08) !important; position: relative; z-index: 2; }
tr.dragging td { background: rgba(var(--accent-rgb), .08); }
.media-item .drag-handle { position: absolute; top: 6px; left: 6px; background: rgba(10,10,12,.8); border: 1px solid var(--border); color: var(--text); width: 30px; height: 30px; }
.grade-card summary .drag-handle { align-self: center; }
.form-field-row legend { display: inline-flex; align-items: center; gap: 6px; }
[data-sortable] > details + details, [data-sortable] > .grade-card { margin-bottom: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-left: 4px solid #22c55e; padding: 10px 18px; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); font-weight: 500; transition: opacity .4s, transform .4s; }
.toast-bad { border-left-color: var(--rouge); }
.toast-out { opacity: 0; transform: translate(-50%, 10px); }

/* Visionneuse photo */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(5,5,7,.92); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px -20px #000; }
.lightbox figcaption { color: var(--acier); margin-top: 10px; font-size: 14px; }
.lightbox button { background: rgba(255,255,255,.08); border: 1px solid var(--border); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; flex: none; }
.lightbox button:hover { background: var(--rouge); }
.lightbox .lb-close { position: absolute; top: 18px; right: 18px; font-size: 18px; }

/* Tarifs avec photos */
.price-list li.has-photos { flex-wrap: wrap; }
.price-photos { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.price-photos a { display: block; width: 92px; height: 70px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: transform .15s, border-color .15s; }
.price-photos a:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .6); }
.price-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.price-thumbs { display: flex; gap: 4px; align-items: center; margin-top: 6px; }
.price-thumbs img { width: 36px; height: 28px; object-fit: cover; border-radius: 5px; border: 1px solid var(--border); }

/* Postes à pourvoir */
.position-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 28px; }
.position-card { border-top: 3px solid var(--rouge); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.position-card h3 { margin: 0; font-size: 22px; }
.position-card p { margin: 0; font-size: 14px; }
.position-card .btn { margin-top: auto; }
.position-admin { margin-bottom: 12px; }
.position-row { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface-2); }
.position-choice { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.position-choice legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.position-option { display: flex !important; flex-direction: row !important; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.position-option:hover { border-color: rgba(255,255,255,.2); }
.position-option:has(input:checked) { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .08); }
.position-option input { margin-top: 4px; accent-color: var(--rouge); }
.position-desc { display: block; margin-top: 2px; }
.chips { flex-wrap: wrap; }

/* Drive */
.drive-bar { align-items: center; gap: 12px; flex-wrap: wrap; }
.drive-bar .search-inline { margin: 0 0 18px; display: flex; gap: 8px; flex: 1; min-width: 260px; }
.drive-bar .search-inline input { flex: 1; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.drive-bar .search-inline input:focus { outline: none; border-color: rgba(var(--accent-rgb), .6); }
.drive-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; margin-bottom: 16px; position: sticky; top: 80px; z-index: 5; }
.drive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.drive-item { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.drive-unused { border-style: dashed; }
.drive-check { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(10,10,12,.75); border-radius: 8px; padding: 5px 7px; display: flex; }
.drive-check input { width: 18px; height: 18px; accent-color: var(--rouge); cursor: pointer; }
.drive-thumb { aspect-ratio: 4 / 3; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.drive-thumb a, .drive-thumb img, .drive-thumb video { width: 100%; height: 100%; display: block; object-fit: cover; }
.drive-audio { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 14px; }
.drive-audio span { font-size: 42px; color: var(--rouge-2); }
.drive-audio audio { width: 100%; }
.drive-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.drive-meta .row-actions { margin-top: auto; justify-content: flex-start; }
.drive-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.drive-refs { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.drive-refs li { padding: 2px 0; }
.drive-refs a { color: var(--acier); }
.drive-refs a:hover { color: var(--rouge-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Journal (logs) */
.log-stats { margin-bottom: 18px; }
.log-stats .stat:hover { transform: none; }
.log-filters { margin-bottom: 18px; }
.log-filter-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 12px; }
.log-list { display: flex; flex-direction: column; gap: 8px; }
.log-item { padding: 0; border-left: 3px solid var(--border); }
.log-item.log-warn { border-left-color: #f59e0b; }
.log-item.log-danger { border-left-color: var(--rouge); }
.log-item summary { display: grid; grid-template-columns: 88px 120px minmax(140px, 220px) 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.log-item summary::-webkit-details-marker { display: none; }
.log-item time { font-size: 12px; color: var(--muted); line-height: 1.3; }
.log-item time strong { color: var(--text); font-size: 14px; }
.log-item .badge { justify-self: start; }
.log-who { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-who .avatar { width: 24px; height: 24px; }
.log-action { font-size: 14px; min-width: 0; }
.log-action small { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-details { padding: 0 16px 14px; border-top: 1px solid var(--border); }
.log-details pre { white-space: pre-wrap; word-break: break-word; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 12px 0 8px; color: var(--text); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 20px 0; }
@media (max-width: 900px) {
  .log-filter-grid { grid-template-columns: 1fr 1fr; }
  .log-item summary { grid-template-columns: 70px 1fr; }
  .log-item .log-who, .log-item .log-action { grid-column: 1 / -1; }
}
