/* OG Rush — les pages : studios, journées, lecteur, sujets, recherche, dépôt. Les couleurs viennent de tokens.css ;
   chaque studio apporte la sienne (--studio, posée dans le HTML). */

.gicon--img { object-fit: contain; filter: drop-shadow(0 3px 5px rgba(42, 13, 19, 0.25)); }
.count { margin-left: auto; min-width: 22px; padding: 3px 7px; border-radius: var(--r-pill); background: var(--wine); color: var(--cream); font: 700 0.7rem/1 var(--font-body); text-align: center; font-variant-numeric: tabular-nums; }
.nav__link--studio[aria-current='page'] { box-shadow: var(--glass-inset), 0 0 0 1px color-mix(in srgb, var(--studio) 55%, transparent); background: var(--glass-sheen), linear-gradient(145deg, color-mix(in srgb, var(--studio) 24%, transparent), color-mix(in srgb, var(--studio) 5%, transparent)); }
.row--between { justify-content: space-between; }
.pill { font: 600 0.62rem/1 var(--font-accent); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 9px; border-radius: var(--r-pill); background: var(--wine-soft); color: var(--text-2); flex: none; white-space: nowrap; }
.pill--on { background: var(--ok-soft); color: var(--ok); }
.pill--wait { background: var(--warn-soft); color: var(--warn); }
.pill--err { background: var(--danger-soft); color: var(--danger); }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
mark { background: color-mix(in srgb, var(--gold) 34%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.back { align-self: flex-start; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }
.back:hover { color: var(--text); }
.note { border-radius: var(--r-md); padding: 12px 16px; font-size: var(--fs-sm); color: var(--warn); }

/* Les bandeaux (à classer, envoi arrêté) */
.banner { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-lg); text-decoration: none; }
.banner > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.banner small { color: var(--text-2); }

/* ───── Les studios ───── */
.studios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.studio { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-xl); text-decoration: none; }
.studio::before { background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--studio) 26%, transparent), transparent 62%), var(--glass-sheen); }
.studio__top { display: flex; align-items: center; gap: 12px; }
.studio__top .gicon { width: 52px; height: 52px; }
.studio__top b { display: block; font: 800 1.35rem/1.1 var(--font-display); font-stretch: 110%; }
.studio__top small { color: var(--muted); font-size: var(--fs-sm); }
.studio__promise { color: var(--text-2); font-size: var(--fs-sm); flex: 1; }
.studio__stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.studio__stats b { color: var(--text); font: 800 1.15rem/1 var(--font-display); margin-right: 3px; }
.studio__foot { display: flex; flex-wrap: wrap; gap: 6px; }

.studio-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.studio-head__icon .gicon { width: 64px; height: 64px; }
.studio-head__txt { display: flex; flex-direction: column; gap: 4px; }
.studio-head h1 { font: 800 clamp(1.9rem, 4.6vw, 2.8rem)/1.02 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; }
.studio-head p { color: var(--text-2); max-width: 60ch; }
.studio-head .eyebrow { color: var(--studio); }
.segnav { display: flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); align-self: flex-start; max-width: 100%; overflow-x: auto; }
.seg-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 8px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.seg-tab .gicon { width: 26px; height: 26px; }
.seg-tab[aria-current='page'] { background: var(--glass-control-hover); box-shadow: var(--glass-inset); color: var(--text); }
#tab { display: flex; flex-direction: column; gap: 16px; }

/* ───── Les journées et les rushs ───── */
.journees { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.journee, .rush { display: flex; flex-direction: column; border-radius: var(--r-lg); text-decoration: none; padding: 0; border: 0; text-align: left; color: inherit; }
.cover { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(150deg, var(--surface-2), var(--surface-3)); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame { display: block; width: 100%; height: 100%; background-size: 600% auto; background-position: 20% 0; background-repeat: no-repeat; background-color: #000; }
/* Une vignette verticale (101 × 180 dans la planche) : on la cadre au milieu. 61cqw = (180/101 − 9/16) / 2 de la largeur. */
.cover, .hit__thumb { container-type: inline-size; }
.frame--v { background-position: 20% -61cqw; }
.cover__empty { display: grid; place-items: center; height: 100%; }
.cover__empty .gicon { width: 48px; height: 48px; opacity: 0.6; }
.cover__n { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: var(--r-pill); background: rgba(20, 8, 11, 0.62); color: #fff; font-size: 0.72rem; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.journee__txt, .rush__txt { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.journee__txt b { font: 700 1.02rem/1.25 var(--font-display); }
.rush__txt b { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rush__txt small { color: var(--muted); font-size: var(--fs-xs); }
.rush__txt .pill { align-self: flex-start; }
.rushs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.classer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-lg); }
.classer__label { font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.chip--studio .gicon { width: 22px; height: 22px; }
.chip--studio[aria-pressed='true'] { background: var(--fill-sheen), linear-gradient(180deg, color-mix(in srgb, var(--studio) 88%, white), var(--studio)); color: #fff; }

/* ───── Le lecteur ───── */
.sheet--player { width: min(1080px, 100%); }
.player-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.player { width: 100%; max-width: 100%; border-radius: var(--r-md); background: #000; display: block; max-height: 70dvh; }
.player--vertical { aspect-ratio: 9 / 16; max-height: 70dvh; width: auto; margin: 0 auto; }
.parole { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.parole__meta { font-size: var(--fs-xs); }
.parole__hint { font-size: var(--fs-xs); color: var(--muted); }
.segs { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 2px; max-height: 52dvh; overflow-y: auto; }
.seg { display: flex; align-items: flex-start; gap: 4px; border-radius: var(--r-sm); transition: background var(--t-fast); }
.seg__go { flex: 1; display: flex; gap: 10px; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: var(--r-sm); font-size: 0.9rem; line-height: 1.45; min-width: 0; }
.seg__go:hover { background: var(--glass-control); }
.seg__t { flex: none; font-size: 0.72rem; font-weight: 700; color: var(--muted); padding-top: 3px; min-width: 34px; }
.seg.is-now { background: var(--gold-soft); }
.seg.is-now .seg__t { color: var(--gold-bright); }
.seg.is-picked { background: var(--wine-soft); box-shadow: inset 3px 0 0 var(--wine); }
.seg__pick { flex: none; width: 30px; height: 30px; margin-top: 3px; border: 0; border-radius: 50%; background: var(--glass-control); box-shadow: var(--glass-inset); font-weight: 700; color: var(--text-2); }
.seg__pick[aria-pressed='true'] { background: var(--wine); color: var(--cream); }
.notes { border-radius: var(--r-md); padding: 10px 12px; background: var(--glass-control); font-size: var(--fs-sm); }
.notes summary { cursor: pointer; font-weight: 600; }
.notes ul { margin: 8px 0; padding-left: 18px; }
.pickbar { position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur-strong); backdrop-filter: var(--glass-blur-strong); border-top: 1px solid var(--line); font-weight: 600; }
.pickbar .gicon, .btn .gicon { width: 22px; height: 22px; }

/* ───── Les sujets ───── */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.col__head { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-family: var(--font-display); }
.col__empty { font-size: var(--fs-sm); color: var(--muted); padding: 14px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); }
.sujet { border-radius: var(--r-md); display: flex; flex-direction: column; }
.sujet__open { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 0; background: transparent; padding: 14px 14px 10px; color: inherit; }
.sujet__open .tag { align-self: flex-start; }
.sujet__open b { font: 700 0.98rem/1.3 var(--font-display); }
.sujet__tension { font-size: var(--fs-sm); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sujet__meta { font-size: var(--fs-xs); color: var(--muted); }
.sujet__next { margin: 0 10px 10px; align-self: flex-start; font-size: var(--fs-xs); padding: 6px 11px; }
.form { display: flex; flex-direction: column; gap: 14px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio input:checked + .chip { background: var(--fill-sheen), linear-gradient(180deg, var(--gold-fill-from), var(--gold-fill-to)); color: var(--on-gold); }
.radio input:focus-visible + .chip { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.passages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.passages li { display: flex; gap: 6px; align-items: flex-start; }
.passage { flex: 1; display: flex; gap: 10px; text-align: left; border: 0; border-radius: var(--r-sm); padding: 8px 10px; background: var(--glass-control); box-shadow: var(--glass-inset); font-size: var(--fs-sm); font-weight: 500; color: var(--text); min-width: 0; }

/* ───── La recherche ───── */
.search { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: var(--r-pill); }
.search .gicon { width: 30px; height: 30px; }
.search .input { flex: 1; min-width: 0; background: transparent; box-shadow: none; padding: 8px 4px; }
.hits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hit { width: 100%; display: flex; gap: 14px; align-items: center; border: 0; border-radius: var(--r-md); padding: 10px; text-align: left; color: inherit; }
.hit__thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }

.hit__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hit__q { font-size: 0.95rem; line-height: 1.45; }
.hit__txt small { color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── À classer ───── */
.aclasser { display: flex; flex-direction: column; gap: 10px; }
.aclasser__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px; border-radius: var(--r-lg); transition: opacity var(--t-med); }
.aclasser__txt { display: flex; flex-direction: column; gap: 3px; text-decoration: none; min-width: 0; }
.aclasser__txt small { color: var(--muted); }
.aclasser__row.is-done { opacity: 0.6; }

/* ───── Le dépôt ───── */
.depot { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--r-xl); max-width: 720px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: 1.5px dashed var(--gold-line); background: var(--gold-soft); cursor: pointer; }
.drop .gicon { width: 46px; height: 46px; }
.drop span { display: flex; flex-direction: column; gap: 2px; }
.drop small { color: var(--text-2); font-size: var(--fs-sm); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: var(--fs-sm); }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file__size { color: var(--muted); }
.bar { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-fill-from), var(--gold)); transition: width 300ms var(--ease-out); }
.file__state { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
.file.is-done .bar__fill { background: var(--ok); }
.file.is-done .file__state { color: var(--ok); font-weight: 600; }
.file.is-err .file__state { color: var(--danger); font-weight: 600; }
.tips { font-size: var(--fs-sm); color: var(--text-2); }
.tips summary { cursor: pointer; font-weight: 600; }
.tips ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.resume { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); max-width: 720px; box-shadow: var(--glass-inset), 0 0 0 1px var(--warn); }
.resume p { color: var(--text-2); font-size: var(--fs-sm); }
.done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done .gicon { width: 64px; height: 64px; }
.done h2 { font: 800 1.4rem/1.15 var(--font-display); }
.done p { color: var(--text-2); }

/* Déconnecté : pas de barre latérale */
.is-out .shell { grid-template-columns: minmax(0, 1fr); }
.is-out .side { display: none; }

@media (max-width: 900px) {
  .tabbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-head { grid-template-columns: auto minmax(0, 1fr); }
  .studio-head .btn { grid-column: 1 / -1; justify-self: start; }
  .studio-head__icon .gicon { width: 48px; height: 48px; }
  .player-wrap { grid-template-columns: minmax(0, 1fr); }
  .segs { max-height: none; }
  .player--vertical { max-height: 56dvh; }
  .board { grid-template-columns: repeat(4, minmax(240px, 82vw)); scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; }
  .col { scroll-snap-align: start; }
  .hit__thumb { width: 84px; }
  .is-out .topbar__end .control:last-child { display: none; }
}

/* Les feuilles presque opaques : la page derrière ne doit pas brouiller la lecture (repris de NBA Academy). */
.sheet.glass { background: var(--glass-top), color-mix(in srgb, var(--surface) 93%, transparent); }
:root[data-theme='dark'] .sheet.glass { background: var(--glass-top), color-mix(in srgb, var(--surface) 95%, transparent); }
@media (prefers-reduced-motion: reduce) { .view-in > *, .sheet-bg:not([hidden]), .sheet-bg:not([hidden]) .sheet { animation: none; } }

/* ───── iPhone : la barre latérale devient une barre du haut et une barre d'onglets (repris de NBA Academy) ───── */
@media (max-width: 900px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 50;
    margin: calc(10px + env(safe-area-inset-top, 0px)) 12px 0; padding: 7px 8px 7px 12px; border-radius: var(--r-pill);
  }
  .topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .topbar__brand img { width: 36px; height: auto; }
  .topbar .brand__name { font-size: 0.86rem; }
  .topbar__end { margin-left: auto; display: flex; gap: 6px; align-items: center; }
  .main { padding: 22px 16px calc(var(--tabbar-h) + 44px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; z-index: 60;
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px; padding: 6px;
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; border: 0; background: transparent; padding: 4px 2px; border-radius: 20px; font-size: 0.66rem; line-height: 1.1; text-align: center; font-weight: 600; color: var(--text-2); text-decoration: none; min-width: 0; }
  .tab .gicon { width: 32px; height: 32px; }
  .tab[aria-current='page'] { background: linear-gradient(145deg, rgba(var(--gold-rgb), 0.26), rgba(var(--gold-rgb), 0.06)); box-shadow: var(--glass-inset); color: var(--text); }
  .fields-2 { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom, 0px)); }
  .is-out .tabbar { display: none; }
  .depot { padding: 16px; }
  .pickbar { bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); }
}
.segnav, .board { scrollbar-width: none; }
.segnav::-webkit-scrollbar, .board::-webkit-scrollbar { display: none; }
.sheet__top h2 { min-width: 0; overflow-wrap: anywhere; }
.sheet--player .sheet__top { align-items: center; }
.sheet--player .sheet__top h2 { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── Le rangement par compte (03/10) ───── */
.studio__note { align-self: flex-start; font-size: var(--fs-xs); font-weight: 600; padding: 6px 10px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); }
.studio-head .studio__note { margin-top: 4px; }
.comptes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-top: 8px; }
.compte { position: relative; display: block; border-radius: var(--r-lg); cursor: pointer; }
.compte input { position: absolute; opacity: 0; pointer-events: none; }
.compte__in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: inherit; transition: background var(--t-fast), box-shadow var(--t-fast); }
.compte__in .gicon { width: 40px; height: 40px; }
.compte__in b { font: 700 1rem/1.2 var(--font-display); color: var(--text); }
.compte__in small { color: var(--muted); font-weight: 500; }
.compte__ok { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; color: #fff; background: var(--studio); opacity: 0; transform: scale(0.6); transition: opacity var(--t-fast), transform var(--t-med) var(--ease-spring); }
.compte input:checked + .compte__in { background: color-mix(in srgb, var(--studio) 16%, transparent); box-shadow: inset 0 0 0 2px var(--studio); }
.compte input:checked + .compte__in .compte__ok { opacity: 1; transform: none; }
.compte input:focus-visible + .compte__in { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.chemin { font-size: var(--fs-sm); color: var(--text-2); padding: 10px 12px; border-radius: var(--r-md); background: var(--glass-control); overflow-wrap: anywhere; }
.chemin b { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.8rem; font-weight: 600; color: var(--text); }
.frame--still { background-size: cover; background-position: center; }
.still-big { display: block; max-width: 100%; max-height: 72dvh; margin: 0 auto; border-radius: var(--r-md); object-fit: contain; }
.titre-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.titre-form h1 { font: 800 clamp(2.1rem, 5vw, 3.25rem)/1.02 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; }
.titre-input { flex: 1; min-width: min(100%, 260px); font-size: 1.1rem; }

/* ───── Le fond (Théo, 03/10) : plus de traits, une lumière douce de papier crème, rosée et bleutée ───── */
:root {
  --page-bg: linear-gradient(168deg, #fdf9f3 0%, #f8efe4 38%, #f4e8ec 70%, #e9eef7 100%);
  --halo-1: rgba(214, 112, 136, 0.26); --halo-2: rgba(242, 186, 102, 0.30); --halo-3: rgba(112, 162, 232, 0.22);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 252, 247, 0.62));
  --card-edge: rgba(255, 255, 255, 0.95);
}
:root[data-theme='dark'] {
  --page-bg: linear-gradient(168deg, #18110f 0%, #140e11 55%, #0f1118 100%);
  --halo-1: rgba(160, 50, 80, 0.30); --halo-2: rgba(170, 120, 50, 0.20); --halo-3: rgba(60, 100, 170, 0.22);
  --card-bg: linear-gradient(180deg, rgba(48, 36, 36, 0.86), rgba(30, 22, 24, 0.72));
  --card-edge: rgba(255, 236, 205, 0.22);
}
body { background: var(--page-bg) fixed; }
body::before {
  background:
    radial-gradient(42vmax 32vmax at 88% 4%, var(--halo-1), transparent 70%),
    radial-gradient(38vmax 32vmax at 4% 96%, var(--halo-2), transparent 70%),
    radial-gradient(32vmax 28vmax at 68% 78%, var(--halo-3), transparent 70%),
    radial-gradient(24vmax 20vmax at 20% 20%, var(--halo-2), transparent 72%);
}
body::after { opacity: 0.03; }

/* ───── Les pictos 3D ───── */
.picto { filter: drop-shadow(0 3px 5px rgba(42, 13, 19, 0.18)); overflow: visible; }

/* ───── La carte studio : le profil Instagram, le stock, les derniers rushs, la semaine ───── */
.studios { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.studio {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 30px; cursor: pointer;
  background: var(--card-bg); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--card-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(42, 13, 19, 0.06), 0 22px 48px -18px color-mix(in srgb, var(--studio) 45%, transparent);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  overflow: hidden; isolation: isolate;
}
.studio::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--studio) 22%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 32%);
}
.studio::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-18deg); opacity: 0;
}
.studio:hover { transform: translateY(-4px); }
.studio:hover::after { animation: shine 1s var(--ease-out); }
.ig { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'av who' 'av stats'; gap: 4px 14px; align-items: center; }
.ig__avatar { grid-area: av; width: 76px; height: 76px; border-radius: 50%; padding: 3px; display: grid; place-items: center;
  background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34); box-shadow: 0 8px 18px -6px rgba(238, 42, 123, 0.45); }
.ig__avatar > img, .ig__avatar > .gicon { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid #fff; }
.ig__avatar > .gicon { padding: 10px; }
.ig__who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.ig__who b { font: 700 1.02rem/1.2 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig__who small { color: var(--muted); font-size: var(--fs-sm); }
.ig__stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; }
.ig__stats span { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--text-2); line-height: 1.2; }
.ig__stats b { font: 800 1.2rem/1.1 var(--font-display); color: var(--text); }
.ig__releve { font-size: var(--fs-xs); color: var(--muted); margin-top: -6px; }
.lien { border: 0; background: none; padding: 0; color: var(--gold-bright); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.stock { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 0 0 1px var(--line); }
:root[data-theme='dark'] .stock { background: rgba(255, 255, 255, 0.04); }
.stock__label, .semaine__txt > span { font: 600 0.62rem/1 var(--font-accent); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stock__nums { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.stock__nums b { font: 800 1.15rem/1 var(--font-display); color: var(--text); margin-right: 3px; }
.dernier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--studio) 12%, transparent), transparent 80%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--studio) 22%, transparent); }
.dernier .gicon { width: 40px; height: 40px; flex: none; }
.dernier > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dernier b { font: 700 0.98rem/1.25 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dernier small { font-size: var(--fs-xs); color: var(--muted); }
.dernier__go { font-size: 1.5rem; color: var(--muted); }
.dernier--vide { opacity: 0.7; }
.semaine { display: flex; flex-direction: column; gap: 8px; }
.semaine__txt { display: flex; align-items: baseline; justify-content: space-between; }
.semaine__txt b { font: 800 1.3rem/1 var(--font-display); color: var(--studio); }
.semaine__bar { display: flex; gap: 6px; }
.semaine__bar i { flex: 1; height: 10px; border-radius: 99px; background: var(--line); box-shadow: inset 0 1px 2px rgba(42, 13, 19, 0.08); }
.semaine__bar i.on { background: linear-gradient(180deg, color-mix(in srgb, var(--studio) 70%, white), var(--studio)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 8px color-mix(in srgb, var(--studio) 40%, transparent); }
.fields-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* ───── La recherche par date ───── */
.dates { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 24px; }
.dates__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); }
.dates__label .gicon { width: 28px; height: 28px; }
.dates__jour { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.dates__jour .input { padding: 7px 10px; width: auto; }
#par-date { display: flex; flex-direction: column; gap: 12px; }
#par-date:empty { display: none; }
@media (max-width: 900px) {
  .ig__avatar { width: 64px; height: 64px; }
  .ig__stats { gap: 14px; }
  .dates .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .dates .chip { flex: none; }
}

/* ───── Les statuts d'un sujet (une case du feed) ───── */
:root {
  --st-prevu: #8a7f9a; --st-a-tourner: #b8700a; --st-a-monter: #e0671f; --st-monte: #2d6cdf; --st-publie: #1d9a58; --st-suspens: #9a8f86;
}
.pill--prevu { background: color-mix(in srgb, var(--st-prevu) 16%, transparent); color: var(--st-prevu); }
.pill--a-tourner { background: color-mix(in srgb, var(--st-a-tourner) 15%, transparent); color: var(--st-a-tourner); }
.pill--a-monter { background: color-mix(in srgb, var(--st-a-monter) 15%, transparent); color: var(--st-a-monter); }
.pill--monte { background: color-mix(in srgb, var(--st-monte) 14%, transparent); color: var(--st-monte); }
.pill--publie { background: color-mix(in srgb, var(--st-publie) 14%, transparent); color: var(--st-publie); }
.pill--suspens { background: color-mix(in srgb, var(--st-suspens) 16%, transparent); color: var(--st-suspens); }

/* ───── Les jours d'un studio ───── */
.jours { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.jour-card { display: flex; flex-direction: column; border-radius: 26px; text-decoration: none; color: inherit; }
.mosaic { display: grid; gap: 2px; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: 26px 26px 0 0; background: var(--surface-2); container-type: inline-size; }
.mosaic--2 { grid-template-columns: 1fr 1fr; }
.mosaic--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic--3 > :first-child { grid-row: span 2; }
.mosaic--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic .frame { min-height: 0; }
.mosaic--2 .frame--v, .mosaic--3 .frame--v, .mosaic--4 .frame--v { background-position: 20% 30%; }
.jour-card__bas { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 14px; }
.cal { flex: none; width: 54px; border-radius: 14px; overflow: hidden; text-align: center; background: #fff; box-shadow: 0 4px 12px rgba(42, 13, 19, 0.12), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
:root[data-theme='dark'] .cal { background: var(--surface); }
.cal small:first-child { background: var(--studio); color: #fff; font: 700 0.6rem/1.6 var(--font-accent); letter-spacing: 0.1em; text-transform: uppercase; }
.cal b { font: 800 1.5rem/1.15 var(--font-display); color: var(--text); }
.cal small:last-child { font-size: 0.66rem; color: var(--muted); padding-bottom: 4px; }
.jour-card__txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.jour-card__txt b { font: 700 1rem/1.25 var(--font-display); }
.jour-card__txt small { color: var(--muted); font-size: var(--fs-xs); }

/* ───── Un jour ───── */
.montages { padding: 16px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px; }
.montages h2 { font: 700 1rem/1.2 var(--font-display); }
.montages__list { display: flex; flex-wrap: wrap; gap: 8px; }
.montage { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 8px 12px; border-radius: var(--r-pill); background: var(--glass-control); box-shadow: var(--glass-inset); color: inherit; font-size: var(--fs-sm); }
.personne { display: flex; flex-direction: column; gap: 12px; }
.personne__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.personne__head .chips { margin-left: auto; }
.titre-form--petit { gap: 8px; font-size: 1rem; }
.titre-form--petit .titre-input { font-size: 0.95rem; padding: 8px 12px; }
.titre-txt { color: var(--text-2); }

/* ───── Le feed ───── */
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 24px; }
.feed-head__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-head__txt small { color: var(--muted); font-size: var(--fs-xs); }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; max-width: 640px; border-radius: 18px; overflow: hidden; }
.tuile { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border: 0; padding: 0; background: var(--surface-2); cursor: pointer; overflow: hidden; color: inherit; }
.tuile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-med) var(--ease-out); }
.tuile:hover img { transform: scale(1.04); }
.tuile__vide { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font: 700 0.82rem/1.25 var(--font-display);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(42, 13, 19, 0.04) 10px 20px), var(--surface-2); color: var(--text-2); }
.tuile__n { position: absolute; top: 6px; left: 6px; min-width: 22px; padding: 2px 6px; border-radius: 99px; background: rgba(20, 8, 11, 0.6); color: #fff; font-size: 0.68rem; font-weight: 700; }
.tuile__reel { position: absolute; top: 6px; right: 6px; color: #fff; font-size: 0.8rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.tuile__st { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 99px; font: 700 0.58rem/1.2 var(--font-accent); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--st, #555); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.st--prevu { --st: var(--st-prevu); } .st--a-tourner { --st: var(--st-a-tourner); } .st--a-monter { --st: var(--st-a-monter); }
.st--monte { --st: var(--st-monte); } .st--publie { --st: var(--st-publie); } .st--suspens { --st: var(--st-suspens); }
.tuile__note { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #e0671f; color: #fff; font-weight: 800; font-size: 0.72rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }

/* ───── Le sujet : son image, ce qui manque ───── */
.couv { display: flex; gap: 14px; align-items: center; }
.couv__img { flex: none; width: 96px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: var(--fs-xs); color: var(--muted); }
.couv__img img { width: 100%; height: 100%; object-fit: cover; }
.couv__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sujet__img { width: 100%; aspect-ratio: 4 / 5; max-width: 100%; object-fit: cover; border-radius: 12px; }
.sujet__note { font-size: var(--fs-xs); font-weight: 600; color: #c05515; }
.ranges { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.input--date { max-width: 220px; }
@media (max-width: 900px) {
  .feed { margin: 0 -16px; border-radius: 0; gap: 2px; }
  .personne__head .chips { margin-left: 0; }
}
.board { grid-template-columns: repeat(6, minmax(220px, 1fr)); }
@media (max-width: 900px) { .board { grid-template-columns: repeat(6, minmax(240px, 82vw)); } }
.rush__txt .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file.is-deja .file__state { color: var(--st-a-tourner); font-weight: 600; } .file.is-deja .bar__fill { background: var(--st-suspens); }
.file.is-deja .file__name { opacity: .75; }

/* ───── Les trois cartes, chacune aux couleurs de son compte (Théo, 03/10) ───── */
.studio[data-studio='nba'] {
  --card-bg: linear-gradient(155deg, rgba(122, 37, 53, 0.30) 0%, rgba(255, 248, 238, 0.80) 38%, rgba(255, 250, 242, 0.74) 62%, rgba(201, 162, 90, 0.30) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.95), inset 0 0 0 1.5px rgba(201, 162, 90, 0.55),
    0 1px 2px rgba(42, 13, 19, 0.08), 0 26px 52px -18px rgba(101, 29, 43, 0.55);
}
.studio[data-studio='nba']::before { background: radial-gradient(80% 55% at 0% 0%, rgba(122, 37, 53, 0.28), transparent 70%),
  radial-gradient(60% 50% at 100% 100%, rgba(201, 162, 90, 0.28), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 30%); }
.studio[data-studio='nba'] .ig__avatar { background: conic-gradient(from 200deg, #e2c27a, #651d2b, #a8853f, #e2c27a); box-shadow: 0 8px 18px -6px rgba(101, 29, 43, 0.5); }
.studio[data-studio='nba'] .semaine__txt b { color: #651d2b; }
.studio[data-studio='nba'] .semaine__bar i.on { background: linear-gradient(180deg, #c9a25a, #8a6a2f); }

.studio[data-studio='studio-atlas'] {
  --card-bg: linear-gradient(155deg, rgba(45, 108, 223, 0.30) 0%, rgba(246, 250, 255, 0.82) 40%, rgba(240, 246, 255, 0.76) 65%, rgba(16, 40, 92, 0.22) 100%);
  box-shadow: inset 0 1px 0 rgba(235, 244, 255, 0.95), inset 0 0 0 1.5px rgba(90, 150, 240, 0.45),
    0 1px 2px rgba(10, 30, 70, 0.08), 0 26px 52px -18px rgba(29, 78, 170, 0.55);
}
.studio[data-studio='studio-atlas']::before { background: radial-gradient(80% 55% at 0% 0%, rgba(45, 108, 223, 0.30), transparent 70%),
  radial-gradient(60% 50% at 100% 100%, rgba(10, 30, 80, 0.20), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 30%); }
.studio[data-studio='studio-atlas'] .ig__avatar { background: conic-gradient(from 200deg, #8fc1ff, #2d6cdf, #0b2a66, #8fc1ff); box-shadow: 0 8px 18px -6px rgba(45, 108, 223, 0.5); }

.studio[data-studio='faberlo'] {
  --card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 244, 244, 0.86) 55%, rgba(214, 214, 214, 0.70) 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06), 0 26px 52px -20px rgba(0, 0, 0, 0.40);
}
.studio[data-studio='faberlo']::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 32%); }
.studio[data-studio='faberlo'] .ig__avatar { background: conic-gradient(from 200deg, #d9d9d9, #1a1a1a, #8c8c8c, #d9d9d9); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.35); }
.studio[data-studio='faberlo'] .gicon, .nav__link[href='#/studio/faberlo'] .gicon, .studio-head[style*='#2b2b2b'] .gicon { filter: grayscale(1) contrast(1.15) brightness(0.9); }
.studio[data-studio='faberlo'] .dernier { background: rgba(0, 0, 0, 0.03); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
:root[data-theme='dark'] .studio[data-studio='faberlo'] { --card-bg: linear-gradient(160deg, rgba(60, 60, 60, 0.9), rgba(28, 28, 28, 0.85)); }
:root[data-theme='dark'] .studio[data-studio='nba'] { --card-bg: linear-gradient(155deg, rgba(122, 37, 53, 0.55), rgba(40, 24, 26, 0.85) 45%, rgba(120, 95, 50, 0.35)); }
:root[data-theme='dark'] .studio[data-studio='studio-atlas'] { --card-bg: linear-gradient(155deg, rgba(45, 108, 223, 0.45), rgba(20, 26, 40, 0.88) 45%, rgba(10, 30, 80, 0.5)); }

/* ───── La banque d'idées ───── */
.pill--idee { background: rgba(168, 133, 63, 0.16); color: var(--gold-bright); }
.pill--rushs-oui { background: var(--ok-soft); color: var(--ok); }
.pill--rushs-non { background: var(--info-soft); color: var(--info); }
.pill--rushs-verif { background: var(--warn-soft); color: var(--warn); }
.banque { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 26px; }
.banque__head span { display: flex; flex-direction: column; gap: 3px; }
.banque__head b { font: 800 1.15rem/1.2 var(--font-display); }
.banque__head small { color: var(--muted); font-size: var(--fs-sm); max-width: 70ch; }
.banque .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.banque .chip { flex: none; }
.idees { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; max-height: 560px; overflow-y: auto; padding: 2px; }
.idee { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; border: 0; padding: 14px; border-radius: 18px; color: inherit; }
.idee b { font: 700 0.95rem/1.3 var(--font-display); }
.idee__tension { font-size: var(--fs-sm); color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idee small { font-size: var(--fs-xs); }
.origine { font-size: var(--fs-xs); margin-top: -6px; }
.prendre { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--gold-soft); font-size: var(--fs-sm); font-weight: 600; }

/* ───── La porte d'entrée ───── */
.porte { width: min(980px, 100%); margin: 2vh auto 0; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: center; }
.porte__carte {
  max-width: none; margin: 0; padding: 30px 28px; border-radius: 34px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(122, 37, 53, 0.16), rgba(255, 250, 243, 0.86) 34%, rgba(255, 252, 247, 0.8) 70%, rgba(201, 162, 90, 0.2));
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1.5px rgba(201, 162, 90, 0.45), 0 30px 70px -24px rgba(101, 29, 43, 0.45);
}
:root[data-theme='dark'] .porte__carte { background: linear-gradient(160deg, rgba(122, 37, 53, 0.45), rgba(32, 22, 24, 0.9) 40%, rgba(120, 95, 50, 0.3)); }
.porte__marque { display: grid; place-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.porte__nba { width: 88px; height: auto; filter: drop-shadow(0 6px 12px rgba(101, 29, 43, 0.3)); }
.porte__app { display: flex; align-items: center; gap: 14px; }
.porte__app img { width: 64px; height: 64px; filter: drop-shadow(0 6px 10px rgba(42, 13, 19, 0.25)); }
.porte__app h1 { font: 800 2rem/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; }
.porte__app .eyebrow { display: block; margin-top: 6px; }
.porte__texte { color: var(--text-2); font-size: 0.95rem; }
.porte__info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.porte__info li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; line-height: 1.5; color: var(--text-2); }
.porte__info .gicon { width: 48px; height: 48px; flex: none; }
.porte__info b { color: var(--text); }
@media (max-width: 900px) {
  .porte { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .porte__carte { padding: 24px 20px; }
  .porte__info { padding: 0 6px 24px; }
}
.is-out .topbar { display: none; }

/* ───── Sur la carte : la bio et les 3 dernières publications, comme sur le profil (Théo, 03/10) ───── */
.ig__bio { font-size: var(--fs-sm); line-height: 1.45; color: var(--text); white-space: pre-line; margin-top: -4px; display: flex; flex-direction: column; }
.ig__cat { color: var(--muted); }
.ig__lien { color: #2d6cdf; font-weight: 600; text-decoration: none; }
.publis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 14px; overflow: hidden; text-decoration: none; }
.publi { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface-2); }
.publi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.publi i { position: absolute; top: 5px; right: 6px; font-style: normal; font-size: 0.72rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.publis--vide { display: block; padding: 12px; text-align: center; font-size: var(--fs-sm); color: var(--muted); background: rgba(255, 255, 255, 0.35); border: 1px dashed var(--line-strong); }

/* ───── La progression d'un envoi ───── */
.prog { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 20px; }
.prog__haut, .prog__bas { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.prog__haut b { font: 800 1.15rem/1 var(--font-display); }
.prog__haut span { font-weight: 700; color: var(--studio, var(--wine)); }
.prog__bas { font-size: var(--fs-xs); color: var(--muted); }
.prog__barre { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; box-shadow: inset 0 1px 2px rgba(42, 13, 19, 0.1); }
.prog__barre i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-fill-from), var(--gold)); transition: width 600ms var(--ease-out); }
.prog__garde { font-size: var(--fs-xs); color: var(--text-2); }
.done__acts { display: flex; flex-direction: column; gap: 10px; width: 100%; } .encore { margin-top: 4px; }
.maj { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 120; border: 0; padding: 12px 18px; border-radius: 99px; font-weight: 700; font-size: var(--fs-sm); color: var(--text); box-shadow: 0 10px 30px rgba(42, 13, 19, 0.25); max-width: calc(100% - 32px); }

/* ───── Les vignettes et les dossiers d'une journée ───── */
img.frame--still { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.groupe { border-radius: 20px; padding: 0; overflow: hidden; }
.groupe > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: var(--fs-sm); }
.groupe > summary::-webkit-details-marker { display: none; }
.groupe > summary::before { content: '›'; font-size: 1.2rem; color: var(--muted); transition: transform var(--t-fast); }
.groupe[open] > summary::before { transform: rotate(90deg); }
.groupe > summary b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.groupe > .rushs { padding: 0 14px 14px; }
.personne { gap: 10px; }

/* ───── Les notifications ───── */
.notif { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--glass-control); box-shadow: var(--glass-inset); }
.notif__l { flex: 1; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-width: 0; }
.notif__l input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--wine); flex: none; }
.notif__l span { display: flex; flex-direction: column; gap: 2px; }
.notif__l small { color: var(--muted); font-size: var(--fs-xs); }
.side__foot > .control { width: 100%; }

/* ───── Les pastilles de compte : une seule allumée, et ça glisse ───── */
.chip--studio { transition: background 260ms var(--ease-out), color 260ms var(--ease-out), box-shadow 260ms var(--ease-out), transform 180ms var(--ease-spring); }
.chip--studio[aria-pressed='true'] { transform: scale(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px color-mix(in srgb, var(--studio) 35%, transparent); }
.chip--studio[aria-pressed='false'] { background: var(--glass-control); color: var(--text-2); }
.chip--studio[aria-pressed='false'] .gicon { opacity: 0.75; }
.personne.part { opacity: 0; transform: translateY(-6px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }

/* ───── Les logos des comptes (leur photo de profil) ───── */
.gicon--avatar { border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 2px 6px rgba(42, 13, 19, 0.2), 0 0 0 1.5px rgba(255, 255, 255, 0.9); filter: none !important; }
.nav__link .gicon--avatar { width: 32px; height: 32px; margin: 2px; }

/* ───── Le calendrier éditorial : des cartes en verre, façon Apple ───── */
.cal-resume { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 18px; border-radius: 26px; }
.cal-resume > span { display: flex; flex-direction: column; gap: 2px; }
.cal-resume b { font: 800 1.5rem/1.1 var(--font-display); }
.cal-resume small { color: var(--muted); font-size: var(--fs-xs); }
.cal-resume__prochaine { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--text-2); border-top: 1px solid var(--line); padding-top: 10px; }
.cal-semaine { display: flex; flex-direction: column; gap: 10px; }
.cal-semaine h3 { font: 800 1.05rem/1.2 var(--font-display); display: flex; align-items: baseline; gap: 10px; }
.cal-semaine h3 small { font: 500 var(--fs-xs) var(--font-body); color: var(--muted); }
.cal-semaine.est-passee { opacity: 0.6; }
.cal-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.publi-carte {
  position: relative; display: block; padding: 0; border: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%;
  cursor: pointer; background: var(--surface-2); text-align: left; color: #fff; isolation: isolate;
  box-shadow: 0 1px 2px rgba(42, 13, 19, 0.1), 0 18px 36px -16px rgba(42, 13, 19, 0.45);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.publi-carte:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 2px 4px rgba(42, 13, 19, 0.12), 0 26px 46px -18px rgba(42, 13, 19, 0.55); }
.publi-carte__img { position: absolute; inset: 0; z-index: -1; }
.publi-carte__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.publi-carte__num, .publi-carte__etat {
  position: absolute; top: 10px; padding: 5px 9px; border-radius: 99px; font: 700 0.7rem/1 var(--font-body);
  background: rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.25); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.publi-carte__num { left: 10px; }
.publi-carte__etat { right: 10px; }
.publi-carte__etat.est-pret { background: rgba(29, 154, 88, 0.55); }
.publi-carte__etat.est-a-monter { background: rgba(224, 103, 31, 0.6); }
.publi-carte__bas {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.publi-carte__bas b { font: 700 0.92rem/1.2 var(--font-display); }
.publi-carte__bas small { font-size: 0.7rem; opacity: 0.92; }
.publi-carte__limite { font-weight: 700; }
.publi-carte__note { font-style: italic; }
.publiees { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.publiee { flex: none; width: 110px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.publiee img { width: 110px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.cal-pack code, .publi-chemin code { font-size: 0.72rem; overflow-wrap: anywhere; }
.publi-visuels { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.publi-grande { max-height: 62dvh; max-width: 100%; border-radius: 16px; object-fit: contain; background: #000; flex: none; }
.publi-texte { white-space: pre-wrap; font: 400 0.9rem/1.5 var(--font-body); margin: 6px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--glass-control); max-height: 40dvh; overflow: auto; }
.publi-note { font-size: var(--fs-sm); font-weight: 600; color: #c05515; }
.publi-deroule summary { cursor: pointer; }

/* ───── La banque ───── */
.banque-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bascule { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; }
.bascule button { border: 0; background: transparent; padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); transition: background 220ms var(--ease-out), color 220ms; }
.bascule button[aria-selected='true'] { background: var(--glass-control-hover); color: var(--text); box-shadow: var(--glass-inset), 0 2px 8px rgba(42, 13, 19, 0.1); }
.banque-dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.banque-dossier { display: flex; flex-direction: column; border: 0; padding: 0; border-radius: 22px; text-align: left; color: inherit; cursor: pointer; }
.banque-dossier .mosaic { border-radius: 22px 22px 0 0; aspect-ratio: 4 / 3; }
.banque-dossier__bas { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; }
.banque-dossier__bas b { font: 700 0.92rem/1.25 var(--font-display); }
.banque-dossier__bas small { color: var(--muted); font-size: var(--fs-xs); }
.banque-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 8px; margin-top: 6px; }
.banque-vig { border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; max-width: 100%; background: var(--surface-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-2); }
.banque-vig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banque-vig small { font-size: 0.62rem; padding: 0 6px; overflow-wrap: anywhere; text-align: center; }
.banque-vig__video { font-size: 1.6rem; }
.banque-son { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 12px; background: var(--glass-control); }
.banque-son small { font-size: var(--fs-xs); color: var(--text-2); }
.banque-son audio { width: 100%; height: 34px; }
@media (max-width: 900px) {
  .cal-resume { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .publi-carte { border-radius: 20px; }
  .banque-dossiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ───── Les bulles Instagram de la banque, comme les stories à la une ───── */
.bulles { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
.bulles::-webkit-scrollbar { display: none; }
.bulle { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--text); cursor: pointer; }
.bulle__img { width: 68px; height: 68px; border-radius: 50%; padding: 2px; background: linear-gradient(180deg, #fff, #dfe6f2); box-shadow: 0 4px 12px rgba(20, 40, 80, 0.15); transition: transform 220ms var(--ease-spring), box-shadow 220ms; }
.bulle span { font-size: 0.72rem; font-weight: 600; text-align: center; line-height: 1.15; }
.bulle small { font-size: 0.64rem; color: var(--muted); }
.bulle.est-vide .bulle__img { opacity: 0.45; }
.bulle.est-choisie .bulle__img { transform: scale(1.06); box-shadow: 0 0 0 3px #2d6cdf, 0 6px 16px rgba(45, 108, 223, 0.35); }
.cal-semaine h3 .bulle__img { width: 34px; height: 34px; padding: 1px; box-shadow: 0 2px 6px rgba(20, 40, 80, 0.15); align-self: center; }

/* ───── Le retour, en haut de chaque page ───── */
.retour { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: var(--fs-sm); color: var(--text);
  background: var(--glass-control); box-shadow: var(--glass-inset), 0 2px 8px rgba(42, 13, 19, 0.08); transition: transform 160ms var(--ease-spring), background 160ms; }
.retour span { font-size: 1.3rem; line-height: 0.8; margin-top: -2px; }
.retour:hover { background: var(--glass-control-hover); }
.retour:active { transform: scale(0.96); }
.reglages__titre { font: 700 0.95rem/1.2 var(--font-display); margin-top: 6px; }
.business { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.business .chip { flex: none; }
@media (max-width: 900px) {
  .topbar.a-retour .topbar__brand::before { content: '‹'; font-size: 1.6rem; line-height: 1; margin-right: 2px; color: var(--text); }
}
.control--icone { padding: 4px 12px 4px 6px; gap: 4px; } .control--icone .gicon { width: 28px; height: 28px; } .topbar .control--icone { padding: 4px; }

/* ───── Les pastilles d'état sur l'accueil : prêt en vert, à monter en jaune, à tourner en orange ───── */
.pill--pret { background: rgba(29, 154, 88, 0.16); color: #127443; box-shadow: inset 0 0 0 1px rgba(29, 154, 88, 0.28); }
.pill--amonter { background: rgba(232, 182, 20, 0.2); color: #8a6400; box-shadow: inset 0 0 0 1px rgba(232, 182, 20, 0.4); }
.pill--atourner { background: rgba(240, 120, 30, 0.17); color: #b0500c; box-shadow: inset 0 0 0 1px rgba(240, 120, 30, 0.32); }
:root[data-theme='dark'] .pill--pret { color: #5fd69a; }
:root[data-theme='dark'] .pill--amonter { color: #f2cf5a; }
:root[data-theme='dark'] .pill--atourner { color: #ffa05a; }

/* ───── Les idées de sujets, par bulle ───── */
.idees-bulle { display: flex; flex-direction: column; gap: 10px; }
.idees-bulle h3 { display: flex; align-items: center; gap: 10px; font: 800 1.02rem/1.2 var(--font-display); margin-top: 6px; }
.idees-bulle h3 .bulle__img { width: 36px; height: 36px; padding: 1px; }
.idees-bulle h3 small { font: 600 var(--fs-xs) var(--font-body); color: var(--muted); }
.idees-bulle .idees { max-height: none; }
.bulle__mini { width: 20px; height: 20px; border-radius: 50%; }
.bulles-choix .chip { gap: 6px; }
