/* partage.ibda.ma — charte IBDA (5-MARQUE/brand-spec.md) : sable, encre, un seul orange, le point. */
@font-face { font-family: Alexandria; src: url("alexandria.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url("inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FBFAF8; --surface: #F7F3F1; --fg: #2B2B30; --muted: #6B6B73;
  --border: #E4DEDB; --accent: #EC6335; --accent-deep: #D14E22; --charcoal: #26262B;
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font: 16px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.top { max-width: 1200px; margin: 0 auto; padding: 28px 24px 0; }
.logo { height: 30px; display: block; margin-left: -4px; }
main { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; }

.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
h1, h2 { font-family: Alexandria, sans-serif; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
.intro { color: var(--muted); max-width: 640px; margin-top: 16px; font-size: 17px; }
.cta { margin-top: 24px; }
.intro code, code { font: 14px ui-monospace, monospace; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

.liv { padding: 40px 0; border-bottom: 1px solid var(--border); }
.lhead { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.note { margin-top: 10px; max-width: 640px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--fg);
         background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.badge.hors { color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600;
       font-size: 14px; text-decoration: none; border: 1px solid var(--border); background: #fff; transition: border-color .15s, transform .15s; }
.btn:hover { border-color: var(--fg); }
.btn.plein { background: var(--charcoal); color: var(--bg); border-color: var(--charcoal); }
.btn.plein::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.docs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.docs .card { min-width: min(100%, 300px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.media { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.media img, .media video { display: block; width: 100%; max-height: 520px; object-fit: contain; background: var(--charcoal); }
.media a { display: block; }
.media.audio { padding: 18px 16px 0; }
.media audio { width: 100%; }
figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px 12px; word-break: break-word; }
.card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 18px;
        background: #fff; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; }
.card:hover { border-color: var(--fg); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--surface);
       border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
.nm { font-weight: 500; overflow-wrap: anywhere; }
.go { color: var(--muted); }
.vide { color: var(--muted); padding: 40px 0; }

.tab { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.tab th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tab th, .tab td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tab td.url a { font: 13px ui-monospace, monospace; word-break: break-all; }
.muted { color: var(--muted); font-size: 13px; }

.pied { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; gap: 16px;
        flex-wrap: wrap; color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .hero { padding-top: 40px; } .grid { grid-template-columns: 1fr; } .actions { width: 100%; } }

/* Mise en situation « écrans au-dessus du comptoir » (--ecrans). Tout est en cqw : la scène garde ses proportions sur mobile. */
.scene { container-type: inline-size; margin: 0 0 28px; border-radius: var(--r); overflow: hidden; background: #141416; }
.mur { position: relative; height: 34cqw; display: flex; align-items: center; justify-content: center;
       background: radial-gradient(60cqw 22cqw at 50% -4cqw, #3a3632 0%, transparent 70%),
                   repeating-linear-gradient(90deg, #1b1a1a 0 0.5cqw, #19181a 0.5cqw 5cqw), #19181a; }
.rangee { position: relative; z-index: 0; display: flex; gap: 2cqw; align-items: center; margin-top: 2cqw; }
.tv { position: relative; display: block; width: calc((91cqw - (var(--n) - 1) * 2cqw) / var(--n));
      aspect-ratio: 16 / 9; padding: 0.45cqw; background: #050506; border-radius: 0.6cqw;
      box-shadow: 0 0 0 0.12cqw #2c2c30, 0 1.6cqw 2.4cqw rgba(0,0,0,.65); transition: transform .2s; }
.tv:hover { transform: translateY(-0.3cqw); }
.tv::after { content: ""; position: absolute; inset: 0.45cqw; border-radius: 0.2cqw; pointer-events: none;
             background: linear-gradient(118deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 38%); }
.tv img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0.2cqw; }
.tv .halo { position: absolute; inset: 0; z-index: -1; filter: blur(3.5cqw) saturate(1.4); opacity: .55; transform: scale(1.06); }
.dalle { position: relative; }
.comptoir { height: 9cqw; background:
              linear-gradient(#cfc6bd 0 0.5cqw, #8e8277 0.5cqw 0.9cqw, transparent 0.9cqw),
              repeating-linear-gradient(90deg, #2a2522 0 7cqw, #2e2825 7cqw 14cqw); box-shadow: inset 0 1.4cqw 2cqw -1cqw rgba(0,0,0,.6); }
.scene figcaption { background: var(--surface); color: var(--muted); }
.pivot { display: none; }
@media (max-width: 600px) and (orientation: portrait) { .pivot { display: inline; color: var(--fg); font-weight: 600; } }
