/* ——— Arqtype · direction « Rubis Noir » ———
   Fond quasi noir chaud, surfaces en verre fumé, accent rubis, lueurs diffuses, grain. */
:root {
  color-scheme: dark;
  /* Fonds */
  --bg: #0d0708; --bg-2: #150a0b; --bg-3: #1d0e10;
  /* Surfaces en verre */
  --glass: rgb(var(--tint-rgb) / .045); --glass-2: rgb(var(--tint-rgb) / .075); --glass-solid: #1a0d0f;
  --border: rgb(var(--line-rgb) / .09); --border-strong: rgb(var(--line-rgb) / .18); --highlight: rgb(255 255 255 / .07);
  /* Texte */
  --fg: #f7eeeb; --muted: #b5a29e; --faint: #8a7773;
  /* Rubis */
  --ruby: #c8161f; --ruby-deep: #7a070d; --ruby-hi: #e8303a; --ruby-text: #ff6b70; --ruby-soft: rgb(var(--ruby-rgb) / .16); --ruby-glow: rgb(var(--ruby-rgb) / .45);
  /* États */
  --ok: #5fd39a; --ok-bg: rgb(var(--ok-rgb) / .12); --warn: #f3b955; --warn-bg: rgb(var(--warn-rgb) / .12); --info: #8bb8f2; --info-bg: rgb(var(--info-rgb) / .12);
  /* Formes */
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow: 0 1px 0 var(--highlight) inset, 0 24px 48px -24px rgb(0 0 0 / .7);
  --shadow-ruby: 0 14px 34px -12px var(--ruby-glow);
  --blur: saturate(140%) blur(18px);
  /* Canaux RVB (pour les transparences) et surfaces de structure */
  --ruby-rgb: 200 22 31; --ruby-hi-rgb: 232 48 58; --ruby-deep-rgb: 122 7 13; --ruby-text-rgb: 255 107 112;
  --tint-rgb: 255 240 236; --line-rgb: 255 228 222; --ok-rgb: 95 211 154; --warn-rgb: 243 185 85; --info-rgb: 139 184 242;
  --fg-hi: #fff; --well: rgb(0 0 0 / .28); --well-2: rgb(0 0 0 / .4); --panel: rgb(18 9 10 / .72); --topbar: rgb(13 7 8 / .62); --pop: rgb(26 13 14 / .92);
  --shadow-deep: rgb(0 0 0 / .8); --note-fg: #ffd99a; --star: #f3b955;
  /* Typo */
  --display: 'Bricolage Grotesque', 'Inter Tight', system-ui, sans-serif; --body: 'Inter Tight', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1100px 620px at 85% -10%, rgb(var(--ruby-rgb) / .20), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgb(var(--ruby-deep-rgb) / .28), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  background-attachment: fixed; background-color: var(--bg);
  color: var(--fg); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01', 'cv11';
}
/* Grain photographique */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--ruby); color: #fff; }
h1, h2, h3 { font-family: var(--display); font-stretch: 86%; letter-spacing: -.03em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 700; } h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; } h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; } a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ruby-text); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); } .sm { font-size: 13px; } .accent { color: var(--ruby-text); }
.ic { width: 18px; height: 18px; flex: none; } .ic.sm { width: 15px; height: 15px; } .ic.xl { width: 34px; height: 34px; }
.row { display: flex; align-items: center; gap: 10px; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.stack { display: grid; gap: 14px; } .stack.tight { gap: 6px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }

/* ——— Marque ——— */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--display); font-stretch: 86%; letter-spacing: -.03em; color: var(--fg); }
.logo img { width: 36px; height: 36px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 14px rgb(var(--ruby-rgb) / .35)); }
.logo.lg { font-size: 30px; } .logo.lg img { width: 54px; height: 54px; border-radius: 12px; }

/* ——— Pastilles ——— */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; letter-spacing: .01em; background: var(--glass-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge.accent { background: var(--ruby-soft); color: var(--ruby-text); border-color: rgb(var(--ruby-hi-rgb) / .3); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: rgb(var(--ok-rgb) / .25); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: rgb(var(--warn-rgb) / .25); }
.badge.info { background: var(--info-bg); color: var(--info); border-color: rgb(var(--info-rgb) / .25); }
.badge.neutral { color: var(--muted); }

/* ——— Boutons ——— */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 17px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--glass); backdrop-filter: var(--blur);
  font-weight: 500; font-size: 14px; cursor: pointer; box-shadow: 0 1px 0 var(--highlight) inset;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s, transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { border-color: rgb(var(--ruby-hi-rgb) / .55); background: var(--glass-2); color: var(--fg-hi); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, var(--ruby-hi), var(--ruby) 55%, #a70f17); border-color: rgb(255 120 124 / .35); color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / .28) inset, 0 -2px 0 rgb(0 0 0 / .18) inset, var(--shadow-ruby);
}
.btn.primary:hover { background: linear-gradient(180deg, #f2444d, var(--ruby-hi) 55%, var(--ruby)); box-shadow: 0 1px 0 rgb(255 255 255 / .3) inset, 0 18px 40px -12px var(--ruby-glow); }
.btn.pill { border-radius: 99px; min-height: 54px; padding: 13px 34px; font-size: 16px; font-weight: 600; }
.btn.outline { border-color: rgb(var(--ruby-hi-rgb) / .55); color: var(--ruby-text); background: transparent; }
.btn.outline:hover { background: var(--ruby-soft); color: var(--fg-hi); }
.btn.danger { color: var(--ruby-text); } .btn.ghost { border-color: transparent; background: none; box-shadow: none; backdrop-filter: none; }
.btn.small { min-height: 32px; padding: 4px 11px; font-size: 13px; border-radius: 10px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--glass); transition: border-color .18s; }
.icon-btn:hover { border-color: rgb(var(--ruby-hi-rgb) / .55); }
.icon-btn b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--ruby); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg), 0 0 14px var(--ruby-glow); }
.lnk { color: var(--ruby-text); text-decoration: underline; text-decoration-color: rgb(var(--ruby-text-rgb) / .45); text-underline-offset: 4px; transition: text-decoration-color .18s; }
.lnk:hover { text-decoration-color: currentColor; }

/* ——— Cartes en verre ——— */
.card {
  position: relative; background: linear-gradient(180deg, var(--glass-2), var(--glass) 40%); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow);
}
a.card { transition: border-color .2s var(--ease), transform .2s var(--ease); } a.card:hover { border-color: rgb(var(--ruby-hi-rgb) / .4); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ic-box { width: 38px; height: 38px; border-radius: 11px; background: radial-gradient(circle at 30% 20%, rgb(var(--ruby-hi-rgb) / .35), var(--ruby-soft)); border: 1px solid rgb(var(--ruby-hi-rgb) / .3); color: var(--ruby-text); display: grid; place-items: center; flex: none; }
.center-card { max-width: 500px; margin: 48px auto; text-align: center; display: grid; gap: 14px; justify-items: center; padding: 36px; }
.center-card > .ic { width: 34px; height: 34px; color: var(--ruby-text); }
.empty { border: 1px dashed var(--border-strong); border-radius: var(--r); padding: 34px; text-align: center; color: var(--muted); font-family: var(--display); font-weight: 600; font-stretch: 90%; background: rgb(var(--tint-rgb) / .02); }
.stat { display: grid; gap: 4px; overflow: hidden; }
.stat > span:first-child { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.stat strong { font: 700 38px/1.05 var(--display); font-stretch: 82%; letter-spacing: -.035em; }
.stat::after { content: ''; position: absolute; right: -40px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--ruby-rgb) / .18), transparent 70%); pointer-events: none; }
.sep { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }

/* ——— Champs ——— */
label.f { display: grid; gap: 7px; font-weight: 500; font-size: 14px; } label.f i { color: var(--ruby-text); font-style: normal; }
.in {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--well); color: var(--fg); transition: border-color .18s, box-shadow .18s, background .18s;
}
.in::placeholder { color: var(--faint); }
.in:hover { border-color: rgb(var(--line-rgb) / .28); }
.in:focus { outline: none; border-color: var(--ruby-hi); box-shadow: 0 0 0 4px rgb(var(--ruby-rgb) / .18); background: var(--well-2); }
select.in option { background: var(--bg-3); color: var(--fg); }
textarea.in { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ruby); flex: none; }
input[type=checkbox] { accent-color: var(--ruby); }

/* ——— Coquille ——— */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 14px 0 14px 14px; display: flex; flex-direction: column; }
.side-top, .side nav, .side-bottom { background: var(--panel); backdrop-filter: var(--blur); border-inline: 1px solid var(--border); padding: 0 12px; }
.side-top { border-top: 1px solid var(--border); border-radius: var(--r-lg) var(--r-lg) 0 0; padding-top: 20px; padding-bottom: 18px; display: flex; align-items: center; gap: 8px; box-shadow: 0 1px 0 var(--highlight) inset; }
.side nav { flex: 1; overflow: auto; display: grid; gap: 2px; align-content: start; scrollbar-width: thin; }
.side-bottom { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--r-lg) var(--r-lg); padding-bottom: 14px; padding-top: 10px; display: grid; gap: 2px; }
.nav-a { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 11px; color: var(--muted); font-size: 14.5px; text-align: left; transition: background .18s, color .18s; }
.nav-a span { flex: 1; } .nav-a:hover { background: var(--glass-2); color: var(--fg); }
.nav-a.on { color: #fff; background: linear-gradient(90deg, rgb(var(--ruby-rgb) / .55), rgb(var(--ruby-rgb) / .14)); box-shadow: 0 1px 0 rgb(255 255 255 / .1) inset, 0 10px 26px -14px var(--ruby-glow); }
.nav-a.on::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ruby-hi); box-shadow: 0 0 12px var(--ruby-hi); }
.nav-sec { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 6px; } .nav-gap { height: 14px; }
header.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 14px 30px; background: var(--topbar); backdrop-filter: var(--blur); border-bottom: 1px solid var(--border); }
.search { flex: 1; max-width: 400px; display: flex; align-items: center; gap: 9px; padding: 0 15px; height: 42px; border: 1px solid var(--border); border-radius: 99px; background: var(--well); color: var(--faint); transition: border-color .18s; }
.search:focus-within { border-color: var(--ruby-hi); }
.search input { border: 0; outline: 0; background: none; width: 100%; color: var(--fg); } .search input::placeholder { color: var(--faint); }
.roles { margin-left: auto; display: flex; padding: 4px; border-radius: 99px; background: var(--well); border: 1px solid var(--border); }
.roles a { padding: 6px 15px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .18s, background .18s; }
.roles a:hover { color: var(--fg); } .roles a.on { background: var(--ruby); color: #fff; box-shadow: 0 6px 18px -8px var(--ruby-glow); }
.who { display: flex; align-items: center; gap: 10px; line-height: 1.2; } .who strong { font-weight: 500; display: block; } .who small { font-size: 12px; }
.menu { position: relative; }
.drop { position: absolute; right: 0; top: 50px; width: 330px; max-height: 400px; overflow: auto; background: var(--pop); backdrop-filter: var(--blur); border: 1px solid var(--border-strong); border-radius: var(--r); box-shadow: 0 30px 60px -20px var(--shadow-deep); padding: 6px; }
.drop-item { padding: 11px 12px; border-radius: 10px; display: grid; gap: 2px; font-size: 14px; } .drop-item + .drop-item { border-top: 1px solid var(--border); }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--ruby-hi), var(--ruby-deep)); color: #fff; display: grid; place-items: center; font: 700 30px var(--display); object-fit: cover; flex: none; box-shadow: 0 0 0 3px rgb(255 255 255 / .06), 0 16px 34px -14px var(--ruby-glow); }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; box-shadow: none; } .avatar.md { width: 64px; height: 64px; font-size: 22px; }
.page { max-width: 1180px; margin: 0 auto; padding: 44px 30px 72px; display: grid; gap: 24px; }
.enter { animation: rise .45s var(--ease) both; }
.page > .row:first-child h1 { margin-bottom: 6px; }
.page > .row:first-child > div > p { font-size: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .18s; }
.tab:hover { color: var(--fg); } .tab.on { color: var(--fg); border-color: var(--ruby-hi); font-weight: 500; }
.tab b { background: var(--ruby-soft); color: var(--ruby-text); border-radius: 99px; padding: 1px 7px; font-size: 12px; margin-left: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; }
td { padding: 13px 10px; border-top: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: rgb(var(--tint-rgb) / .02); }
.table-wrap { overflow-x: auto; }

/* ——— Médias ——— */
.media { width: 100%; border-radius: var(--r); background: #000; aspect-ratio: 9 / 16; object-fit: cover; display: block; max-height: 430px; border: 1px solid var(--border); }
.media.ph { background: radial-gradient(120% 80% at 50% 0%, rgb(var(--ruby-rgb) / .28), transparent 60%), linear-gradient(170deg, var(--bg-3), #0a0506); color: var(--muted); display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 12px; font-size: 13px; }
.media.ph .ic { width: 30px; height: 30px; color: var(--ruby-text); }
.tile { position: relative; } .tile .rm { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgb(0 0 0 / .65); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; border: 1px solid var(--border-strong); }
.note { background: var(--warn-bg); color: var(--note-fg); border: 1px solid rgb(var(--warn-rgb) / .25); border-radius: 12px; padding: 11px 13px; font-size: 14px; }
.info { background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; font-size: 13px; color: var(--muted); display: flex; gap: 9px; align-items: flex-start; }
.stars { color: var(--star); letter-spacing: 2px; text-shadow: 0 0 12px rgb(var(--warn-rgb) / .35); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 10px; }
.bars div { flex: 1; display: grid; gap: 7px; justify-items: center; align-content: end; height: 100%; font-size: 12px; color: var(--muted); }
.bars i { width: 100%; max-width: 46px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--ruby-hi), var(--ruby-deep)); box-shadow: 0 0 22px -4px var(--ruby-glow); }
.progress { height: 8px; background: rgb(var(--tint-rgb) / .08); border-radius: 99px; overflow: hidden; } .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--ruby-deep), var(--ruby-hi)); border-radius: 99px; box-shadow: 0 0 16px var(--ruby-glow); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; } .cal span { text-align: center; font-size: 11px; letter-spacing: .1em; color: var(--faint); }
.cal button { aspect-ratio: 1; border: 1px solid var(--border); border-radius: 11px; background: var(--glass); transition: border-color .18s, background .18s; }
.cal button:hover { border-color: var(--border-strong); background: var(--glass-2); }
.cal button.off { background: linear-gradient(180deg, var(--ruby-hi), var(--ruby)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px var(--ruby-glow); }
.cal button.today { border-color: var(--ruby-hi); font-weight: 600; }

/* Bannière de profil : lueur rubis à la place du ruban */
.banner { overflow: hidden; display: flex; gap: 22px; align-items: flex-start; background: linear-gradient(120deg, rgb(var(--ruby-rgb) / .2), rgb(var(--tint-rgb) / .03) 55%); }
.banner::after { content: ''; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--ruby-hi-rgb) / .45), rgb(var(--ruby-deep-rgb) / .18) 45%, transparent 70%); pointer-events: none; filter: blur(4px); }
.banner > * { position: relative; z-index: 1; }

/* ——— Messages ——— */
.msgs { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 20px; min-height: 580px; }
.conv { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent; transition: background .18s, border-color .18s; }
.conv:hover { background: var(--glass-2); } .conv.on { background: var(--ruby-soft); border-color: rgb(var(--ruby-hi-rgb) / .3); }
.conv strong { display: block; font-weight: 500; } .conv small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; } .thread-msgs { flex: 1; overflow: auto; display: grid; gap: 9px; align-content: start; max-height: 460px; padding: 4px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: var(--glass-2); border: 1px solid var(--border); justify-self: start; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { background: linear-gradient(180deg, var(--ruby-hi), var(--ruby)); border-color: transparent; color: #fff; justify-self: end; border-radius: 16px 16px 5px 16px; box-shadow: 0 10px 24px -14px var(--ruby-glow); }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-top: 3px; }

/* ——— Parcours d'inscription ——— */
.ob { position: relative; min-height: 100vh; padding: 28px 24px 64px; overflow: hidden; isolation: isolate; }
.ob::before, .ob::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; filter: blur(60px); }
.ob::before { width: 620px; height: 620px; left: -260px; top: -280px; background: radial-gradient(circle, rgb(var(--ruby-rgb) / .55), transparent 65%); }
.ob::after { width: 560px; height: 560px; right: -220px; bottom: -260px; background: radial-gradient(circle, rgb(var(--ruby-deep-rgb) / .7), transparent 65%); }
.ob-in { position: relative; z-index: 1; max-width: 1340px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px 52px; }
.steps { grid-column: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 46px; }
.step { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 14.5px; }
.step b { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 13px; font-weight: 500; background: var(--well); }
.step.done, .step.cur { color: var(--fg); font-weight: 500; }
.step.done b, .step.cur b { background: linear-gradient(180deg, var(--ruby-hi), var(--ruby)); border-color: transparent; color: #fff; }
.step.cur b { box-shadow: 0 0 0 4px rgb(var(--ruby-rgb) / .2), 0 0 18px var(--ruby-glow); }
.steps > i { width: 56px; height: 1px; background: var(--border-strong); } .steps > i.done { background: linear-gradient(90deg, var(--ruby-hi), var(--ruby)); height: 2px; }
.ob-left { grid-row: 1 / span 2; display: grid; gap: 18px; align-content: start; }
.ob-left h2 { font-size: 40px; font-weight: 700; font-stretch: 84%; padding-top: 24px; position: relative; } .ob-left h2::before { content: ''; position: absolute; top: 0; left: 0; width: 56px; height: 2px; background: var(--ruby-hi); box-shadow: 0 0 12px var(--ruby-hi); }
.ob-photo { margin-top: 26px; width: 250px; aspect-ratio: 3 / 4; border-radius: 24px; transform: rotate(-3deg); position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 20%, rgb(var(--ruby-hi-rgb) / .55), transparent 70%), linear-gradient(170deg, #2b1012, #0b0506); border: 1px solid var(--border-strong); box-shadow: 18px 18px 0 rgb(255 255 255 / .03), 0 30px 60px -20px var(--shadow-deep); }
.ob-photo::after { content: ''; position: absolute; inset: 0; background: url('logo.png') center 42% / 46% no-repeat; opacity: .9; mix-blend-mode: screen; filter: saturate(1.1); }
.ob-photo span { position: absolute; z-index: 1; top: 14px; left: 14px; background: rgb(0 0 0 / .5); backdrop-filter: blur(6px); border: 1px solid var(--border-strong); color: var(--fg); border-radius: 99px; padding: 3px 12px; font-size: 13px; font-style: italic; }
.ob-photo .ic { position: absolute; z-index: 1; left: 14px; bottom: 14px; width: 26px; height: 26px; }
.ob-card { background: linear-gradient(180deg, var(--glass-2), var(--glass) 30%); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px; box-shadow: var(--shadow); display: grid; gap: 24px; min-height: 620px; align-content: start; }
.eyebrow { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ruby-text); font-weight: 600; }
.ob-card h1 { font-size: clamp(40px, 5vw, 64px); } .ob-card h1 i, .welcome h1 i, .ob-left h2 i { color: var(--ruby-hi); font-style: normal; text-shadow: 0 0 24px var(--ruby-glow); }
.ob-foot { display: flex; justify-content: flex-end; align-items: center; gap: 22px; border-top: 1px solid var(--border); padding-top: 24px; flex-wrap: wrap; }
.ob-foot a.muted:hover { color: var(--fg); }
.sec { display: grid; gap: 10px; } .sec > h3 i { color: var(--ruby-text); font-style: normal; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--glass); text-align: left; font-size: 14.5px; color: var(--muted); transition: border-color .18s, background .18s, color .18s, box-shadow .18s; }
.opt .ic { color: var(--faint); transition: color .18s; }
.opt:hover { border-color: var(--border-strong); color: var(--fg); background: var(--glass-2); }
.opt span { flex: 1; }
.opt.on { background: linear-gradient(180deg, rgb(var(--ruby-rgb) / .26), rgb(var(--ruby-rgb) / .1)); border-color: rgb(var(--ruby-hi-rgb) / .6); color: var(--fg-hi); font-weight: 500; box-shadow: 0 0 0 1px rgb(var(--ruby-hi-rgb) / .25), 0 12px 28px -16px var(--ruby-glow); }
.opt.on .ic { color: var(--ruby-text); }
.opt .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--ruby); color: #fff; display: none; place-items: center; box-shadow: 0 0 10px var(--ruby-glow); } .opt.on .tick { display: grid; } .opt .tick .ic { width: 12px; height: 12px; stroke-width: 3; color: #fff; }
.opt.col { flex-direction: column; justify-content: center; text-align: center; min-height: 108px; font-size: 13px; position: relative; } .opt.col .tick { position: absolute; top: 8px; right: 8px; } .opt.center { justify-content: center; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; background: var(--glass); color: var(--muted); transition: border-color .18s, color .18s, background .18s; }
.chip:hover { border-color: var(--border-strong); color: var(--fg); }
.chip.on { background: var(--ruby-soft); border-color: rgb(var(--ruby-hi-rgb) / .55); color: var(--fg-hi); }
.swatch { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / .08); }
.photo-box { width: 180px; aspect-ratio: 1; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 30%, rgb(var(--ruby-rgb) / .3), rgb(var(--tint-rgb) / .03)); border: 1px dashed var(--border-strong); color: var(--ruby-text); display: grid; place-items: center; position: relative; cursor: pointer; transition: border-color .18s; }
.photo-box:hover { border-color: var(--ruby-hi); }
.photo-box img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); } .photo-box > .ic { width: 44px; height: 44px; }
.photo-box b { position: absolute; right: -8px; bottom: -8px; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(180deg, var(--ruby-hi), var(--ruby)); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg), 0 8px 20px -6px var(--ruby-glow); }
.slot { aspect-ratio: 3 / 4; border: 1px dashed var(--border-strong); border-radius: var(--r); display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px; background: rgb(var(--tint-rgb) / .02); transition: border-color .18s, background .18s, color .18s; }
.slot:hover { border-color: var(--ruby-hi); background: var(--ruby-soft); color: var(--fg); }

/* Accueil : logo sur halo qui respire */
.welcome { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; display: grid; gap: 30px; justify-items: center; text-align: center; }
.welcome > .logo { position: relative; flex-direction: column; gap: 14px; font-size: 26px; }
.welcome > .logo img { width: 92px; height: 92px; border-radius: 20px; }
.welcome > .logo::before { content: ''; position: absolute; left: 50%; top: 46px; width: 260px; height: 260px; translate: -50% -50%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgb(var(--ruby-hi-rgb) / .55), rgb(var(--ruby-deep-rgb) / .2) 45%, transparent 70%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .65; scale: .92; } 50% { opacity: 1; scale: 1.08; } }
.welcome section { width: 100%; background: linear-gradient(180deg, var(--glass-2), var(--glass) 40%); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: 32px; padding: 56px 40px; box-shadow: var(--shadow); display: grid; gap: 26px; justify-items: center; margin-top: 4vh; }
.welcome h1 { font-size: clamp(42px, 6.4vw, 76px); font-stretch: 80%; letter-spacing: -.045em; }
.bigcheck { width: 112px; height: 112px; border-radius: 30px; background: radial-gradient(circle at 50% 30%, rgb(var(--ruby-hi-rgb) / .4), rgb(var(--ruby-deep-rgb) / .25) 60%, rgb(255 255 255 / .02)); border: 1px solid rgb(var(--ruby-hi-rgb) / .4); box-shadow: 0 0 60px -10px var(--ruby-glow), inset 0 1px 0 var(--highlight); display: grid; place-items: center; color: #fff; }
.bigcheck .ic { width: 58px; height: 58px; stroke-width: 3; filter: drop-shadow(0 0 10px var(--ruby-hi)); }

/* Écrans d'entrée */
.ob.plain::before { width: 520px; height: 520px; left: 50%; top: 8%; translate: -50% 0; background: radial-gradient(circle, rgb(var(--ruby-rgb) / .35), transparent 65%); }
.ob.plain::after { opacity: .6; }
.auth { position: relative; z-index: 1; max-width: 420px; margin: 18vh auto 0; display: grid; gap: 16px; padding: 30px; border-radius: var(--r-xl); }
.auth h2 { font-size: 28px !important; font-stretch: 84%; }
.rule { width: 50px; height: 2px; background: var(--ruby-hi); box-shadow: 0 0 12px var(--ruby-hi); }
.choice { display: grid; gap: 24px; padding: 32px; border-radius: 26px; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.choice:hover { border-color: rgb(var(--ruby-hi-rgb) / .4); transform: translateY(-3px); }
.choice .btn { width: 100%; }
.choice-img { width: 190px; height: 128px; border-radius: 16px; background: linear-gradient(150deg, rgb(var(--tint-rgb) / .08), rgb(var(--tint-rgb) / .02)); border: 1px solid var(--border); color: var(--muted); display: grid; place-items: center; flex: none; }
.choice-img.dark { background: radial-gradient(90% 90% at 30% 20%, rgb(var(--ruby-hi-rgb) / .6), transparent 70%), linear-gradient(150deg, #4a0a0f, #120607); color: #fff; border-color: rgb(var(--ruby-hi-rgb) / .3); }
.choice-img .ic { width: 44px; height: 44px; }

/* Espace Outils : cadre intégré */
.page.wide { max-width: none; } .frame { padding: 0; overflow: hidden; }
.frame iframe { display: block; width: 100%; height: calc(100vh - 240px); min-height: 520px; border: 0; background: var(--bg-2); }
details summary { cursor: pointer; } details summary:hover { color: var(--fg); }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--pop); backdrop-filter: var(--blur); border: 1px solid var(--border-strong); color: var(--fg); padding: 11px 20px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s var(--ease); z-index: 95; max-width: 90vw; box-shadow: 0 20px 40px -16px var(--shadow-deep); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Réglages rapides : jour/nuit et langue */
.prefs { display: flex; gap: 8px; align-items: center; }
.prefs.float { position: fixed; top: 16px; right: 16px; z-index: 20; }
.icon-btn.lang { font: 600 12px/1 var(--body); letter-spacing: .08em; color: var(--fg); }
.icon-btn { color: var(--fg); }

/* ——— Direction « Papier plié » : le mode jour ———
   Papier beige, encre presque noire, bordeaux réservé aux accents, plis et coupes nettes. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3ece2; --bg-2: #eee5d8; --bg-3: #e5d9c8;
  --glass: rgb(255 252 246 / .72); --glass-2: rgb(255 252 246 / .94); --glass-solid: #fbf7f0;
  --border: rgb(74 22 28 / .13); --border-strong: rgb(74 22 28 / .24); --highlight: rgb(255 255 255 / .85);
  --fg: #1c1213; --muted: #624f4b; --faint: #7a6560;
  --ruby: #7d1421; --ruby-deep: #4e0a13; --ruby-hi: #9c1b2c; --ruby-text: #8a1626; --ruby-soft: rgb(125 20 33 / .08); --ruby-glow: rgb(125 20 33 / .2);
  --ruby-rgb: 125 20 33; --ruby-hi-rgb: 140 24 40; --ruby-deep-rgb: 78 10 19; --ruby-text-rgb: 138 22 38;
  --tint-rgb: 74 30 26; --line-rgb: 74 22 28; --ok-rgb: 31 122 77; --warn-rgb: 154 91 0; --info-rgb: 43 93 158;
  --ok: #1d6f46; --ok-bg: rgb(31 122 77 / .1); --warn: #8a5200; --warn-bg: rgb(154 91 0 / .1); --info: #2b5d9e; --info-bg: rgb(43 93 158 / .1);
  --fg-hi: #3d0910; --well: rgb(255 253 249 / .85); --well-2: #fffdf9; --panel: rgb(250 245 237 / .9); --topbar: rgb(243 236 226 / .84); --pop: rgb(252 248 241 / .97);
  --shadow-deep: rgb(74 34 24 / .22); --note-fg: #6e4300; --star: #a36b0c;
  --r-sm: 6px; --r: 8px; --r-lg: 10px; --r-xl: 14px;
  --shadow: 0 1px 0 var(--highlight) inset, 0 1px 2px rgb(74 34 24 / .06), 0 14px 30px -20px rgb(74 34 24 / .3);
  --shadow-ruby: 0 10px 22px -12px rgb(125 20 33 / .45);
  --blur: none;
  --display: 'Fraunces', Georgia, serif;
}
/* Papier : fibre légère et un grand pli en diagonale */
[data-theme="light"] body {
  background:
    linear-gradient(118deg, rgb(255 255 255 / .55) 0%, transparent 38%, rgb(120 70 50 / .07) 38.2%, transparent 72%),
    linear-gradient(180deg, #f6f0e7, var(--bg) 60%);
  background-attachment: fixed;
}
[data-theme="light"] body::after { mix-blend-mode: multiply; opacity: .09; }
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3, [data-theme="light"] .logo, [data-theme="light"] .stat strong { font-stretch: 100%; font-variation-settings: 'opsz' 96; }
[data-theme="light"] h1 { font-weight: 600; letter-spacing: -.015em; word-spacing: .04em; }
[data-theme="light"] h2, [data-theme="light"] h3 { font-weight: 600; letter-spacing: -.01em; }
[data-theme="light"] .stat strong { font-weight: 500; }
[data-theme="light"] .ob-card h1 i, [data-theme="light"] .welcome h1 i, [data-theme="light"] .ob-left h2 i { text-shadow: none; color: var(--ruby); }
[data-theme="light"] .logo img { filter: drop-shadow(0 4px 8px rgb(74 22 28 / .18)); }
/* Cartes : feuilles avec un coin plié */
[data-theme="light"] .card, [data-theme="light"] .ob-card, [data-theme="light"] .welcome section { background: var(--glass-2); }
[data-theme="light"] .card:not(.frame)::before, [data-theme="light"] .ob-card::before, [data-theme="light"] .welcome section::before {
  content: ''; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; pointer-events: none;
  background: linear-gradient(225deg, var(--bg) 0 50%, #e2d4c1 50% 100%); border-bottom-left-radius: 3px; box-shadow: -2px 2px 3px -1px rgb(74 34 24 / .15);
}
[data-theme="light"] .ob-card, [data-theme="light"] .welcome section { position: relative; }
[data-theme="light"] .stat::after { background: none; }
[data-theme="light"] .stat { border-top: 3px solid var(--ruby); }
/* Ruban bordeaux qui traverse les bannières */
[data-theme="light"] .banner { background: var(--glass-2); }
[data-theme="light"] .banner::after { width: 160%; height: 26px; right: auto; left: -30%; top: auto; bottom: 18px; border-radius: 0; filter: none; transform: rotate(-4deg); background: linear-gradient(90deg, transparent, rgb(125 20 33 / .9) 20%, var(--ruby) 80%, transparent); opacity: .9; }
/* Boutons, navigation, sélections */
[data-theme="light"] .btn { box-shadow: 0 1px 0 var(--highlight) inset, 0 1px 2px rgb(74 34 24 / .08); background: var(--glass-2); }
[data-theme="light"] .btn.primary { background: linear-gradient(180deg, var(--ruby-hi), var(--ruby)); border-color: var(--ruby-deep); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .22) inset, var(--shadow-ruby); }
[data-theme="light"] .btn.primary:hover { background: linear-gradient(180deg, #ad2134, var(--ruby-hi)); }
[data-theme="light"] .btn.outline { background: transparent; }
[data-theme="light"] .btn.ghost { background: none; box-shadow: none; }
[data-theme="light"] .nav-a.on { background: var(--ruby); box-shadow: 0 8px 18px -12px rgb(125 20 33 / .6); }
[data-theme="light"] .nav-a.on::before { background: var(--ruby-deep); box-shadow: none; }
[data-theme="light"] .side-top, [data-theme="light"] .side nav, [data-theme="light"] .side-bottom { backdrop-filter: none; }
[data-theme="light"] .opt.on { background: rgb(125 20 33 / .07); border-color: var(--ruby); box-shadow: 0 0 0 1px var(--ruby); }
[data-theme="light"] .chip.on { border-color: var(--ruby); }
[data-theme="light"] .bars i, [data-theme="light"] .progress i { box-shadow: none; }
[data-theme="light"] .in:focus { box-shadow: 0 0 0 3px rgb(125 20 33 / .14); }
[data-theme="light"] .rule, [data-theme="light"] .ob-left h2::before { box-shadow: none; }
[data-theme="light"] .bigcheck { background: linear-gradient(180deg, var(--ruby-hi), var(--ruby)); border-color: var(--ruby-deep); box-shadow: var(--shadow-ruby); }
[data-theme="light"] .bigcheck .ic { filter: none; }
[data-theme="light"] .media.ph { background: linear-gradient(170deg, #efe4d4, #e4d5c1); }
[data-theme="light"] .ob-photo span { color: #fff; }
[data-theme="light"] .ob::before { background: radial-gradient(circle, rgb(125 20 33 / .16), transparent 65%); }
[data-theme="light"] .ob::after { background: radial-gradient(circle, rgb(160 110 70 / .18), transparent 65%); }
[data-theme="light"] .welcome > .logo::before { background: radial-gradient(circle, rgb(125 20 33 / .2), transparent 68%); }
[data-theme="light"] .choice-img { background: repeating-linear-gradient(135deg, rgb(74 22 28 / .04) 0 1px, transparent 1px 9px), var(--bg-2); }
[data-theme="light"] #toast { background: var(--fg); color: var(--bg); border-color: transparent; }
[data-theme="light"] ::selection { background: var(--ruby); color: #fff; }

/* ——— Page d'accueil « vitrine » (#/accueil) ———
   Préfixe lp- partout : bar, menu, pill, rule, top… existent déjà ailleurs. */
.lp {
  --lp-veil: 13 7 8; --lp-hair: rgb(255 228 222 / .5); --lp-chev: rgb(var(--ruby-hi-rgb) / .95);
  --cover: max(calc(100vw / 1536), calc(100vh / 1024)); --fit: calc(100vh / 910); --u: min(var(--cover), var(--fit));
  --lp-blur: calc(var(--u) * 26); --lp-glow: calc(var(--u) * 34); --lp-hairline: max(1px, calc(var(--u) * 1.6)); --rise: 9px;
  position: fixed; inset: 0; overflow: hidden; isolation: isolate; background: var(--bg); color: var(--fg);
}
@supports (height: 100dvh) { .lp { --cover: max(calc(100vw / 1536), calc(100dvh / 1024)); --fit: calc(100dvh / 910); } }
.lp a { color: inherit; }

/* Fond : vidéo si fournie, sinon lumière rubis animée en CSS (filaments qui convergent au centre) */
.lp-ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 118%, rgb(var(--ruby-deep-rgb) / .7), transparent 62%), radial-gradient(90% 60% at 50% 46%, rgb(var(--ruby-rgb) / .14), transparent 70%), var(--bg); }
.lp-glow { position: absolute; left: 50%; top: 47%; width: 92vmax; height: 92vmax; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 244 240 / .95) 0, rgb(255 140 140 / .7) 1.6%, rgb(var(--ruby-hi-rgb) / .42) 7%, rgb(var(--ruby-rgb) / .16) 22%, transparent 48%);
  animation: lp-breathe 10s ease-in-out infinite; }
.lp-fan { position: absolute; left: 50%; top: 47%; width: 170vmax; height: 170vmax; translate: -50% -50%; filter: blur(14px); opacity: .9;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg 28deg, rgb(var(--ruby-hi-rgb) / .34) 33deg, rgb(255 120 120 / .12) 36deg, transparent 42deg,
    transparent 50deg, rgb(var(--ruby-rgb) / .22) 54deg, transparent 60deg,
    transparent 128deg, rgb(255 240 236 / .16) 133deg, rgb(255 240 236 / .05) 137deg, transparent 141deg,
    transparent 150deg, rgb(255 240 236 / .1) 153deg, transparent 158deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 18%, transparent 50%); mask: radial-gradient(circle, #000 0, #000 18%, transparent 50%);
  animation: lp-sweep 14s ease-in-out infinite alternate; }
.lp-fan-r { scale: -1 1; }
@keyframes lp-breathe { 0%, 100% { opacity: .85; scale: .94; } 55% { opacity: 1; scale: 1.06; } }
@keyframes lp-sweep { from { rotate: -3deg; } to { rotate: 4deg; } }
.lp-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; user-select: none; background: var(--bg); }
.lp-veil { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(140% 60% at 50% 40%, rgb(var(--lp-veil) / .34) 0%, rgb(var(--lp-veil) / .14) 50%, rgb(var(--lp-veil) / 0) 100%),
    linear-gradient(180deg, rgb(var(--lp-veil) / 0) 45%, rgb(var(--lp-veil) / .4) 100%); }

/* Avec une vidéo : image assombrie et voile plus dense, pour que le texte reste lisible sur les zones claires */
.lp.has-video .lp-art { filter: brightness(.62) saturate(.92) contrast(1.04); }
.lp.has-video .lp-veil { background:
  radial-gradient(75% 62% at 50% 45%, rgb(var(--lp-veil) / .62) 0%, rgb(var(--lp-veil) / .4) 55%, rgb(var(--lp-veil) / .12) 100%),
  linear-gradient(180deg, rgb(var(--lp-veil) / .55) 0%, rgb(var(--lp-veil) / .1) 22%, rgb(var(--lp-veil) / .1) 60%, rgb(var(--lp-veil) / .7) 100%); }
.lp.has-video .lp-sub { color: rgb(var(--tint-rgb) / .86); }
.lp.has-video .lp-sub, .lp.has-video .lp-feats li, .lp.has-video .lp-foot { text-shadow: 0 1px 14px rgb(var(--lp-veil) / .9); }
.lp.has-video .lp-foot { color: rgb(var(--tint-rgb) / .8); }

/* Habillage commun */
.lp-mark { display: block; flex: none; filter: drop-shadow(0 6px 14px var(--ruby-glow)); }
.lp-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lp-brand { display: flex; align-items: center; }
.lp-word { font-family: var(--display); font-variation-settings: 'wght' 720, 'wdth' 82; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.lp-menu a, .lp-login { font-weight: 500; color: var(--fg); transition: color .18s, background .15s; }
.lp-menu a:hover, .lp-login:hover { color: var(--ruby-text); }
.lp-caret, .lp-navarrow { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lp-navarrow { stroke-linecap: square; stroke-linejoin: miter; }
.lp-pill { border: var(--lp-hairline) solid var(--lp-hair); border-radius: 999px; background: var(--glass); font-weight: 550; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; transition: border-color .18s, background .18s; }
.lp-pill:hover { border-color: var(--ruby-hi); background: var(--ruby-soft); }
.lp-chev { fill: none; stroke: var(--lp-chev); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lp-rule { display: block; width: 1px; background: linear-gradient(180deg, rgb(var(--ruby-hi-rgb) / .15), var(--ruby-hi) 52%, rgb(var(--ruby-hi-rgb) / .15)); transform-origin: top; }
.lp-title { font-family: var(--display); font-variation-settings: 'wght' 640, 'wdth' 80; font-weight: 650; letter-spacing: -.035em; color: var(--fg); margin: 0; text-shadow: 0 2px 30px rgb(var(--lp-veil) / .5); }
.lp-title span, .lp-sub span, .lp-foot span { display: block; }
.lp-sub { color: var(--muted); font-weight: 400; }
.lp-feats { list-style: none; margin: 0; padding: 0; }
.lp-feats li { display: flex; align-items: center; color: rgb(var(--tint-rgb) / .88); font-weight: 500; }
.lp-foot { color: var(--muted); font-weight: 450; text-align: center; }
.lp :focus-visible { outline: 2px solid var(--ruby-text); outline-offset: 3px; border-radius: 6px; }

/* Bouton « Commencer » : verre rubis à gauche, papier blanc à droite */
.lp-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #fff;
  font-family: var(--display); font-variation-settings: 'wght' 600, 'wdth' 88; font-weight: 600; letter-spacing: -.01em;
  background:
    linear-gradient(180deg, rgb(var(--lp-veil) / 0) 45%, rgb(var(--lp-veil) / .14) 78%, rgb(var(--lp-veil) / .32) 100%),
    linear-gradient(90deg, rgb(var(--ruby-hi-rgb) / .34) 0%, rgb(var(--ruby-rgb) / .12) 28%, rgb(255 245 240 / .04) 60%, rgb(255 245 240 / .11) 100%),
    linear-gradient(90deg, rgb(255 255 255 / .2) 0%, rgb(255 255 255 / .1) 26%, rgb(255 255 255 / .05) 50%, rgb(255 255 255 / .04) 100%);
  -webkit-backdrop-filter: blur(var(--lp-blur)) saturate(.6); backdrop-filter: blur(var(--lp-blur)) saturate(.6);
  box-shadow: 0 0 var(--lp-glow) var(--ruby-glow), inset 0 var(--lp-hairline) 0 0 rgb(255 245 240 / .4); transition: box-shadow .25s var(--ease); }
.lp-cta::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: var(--lp-hairline); pointer-events: none;
  background: linear-gradient(180deg, rgb(255 250 247 / .9) 0%, rgb(255 250 247 / .2) 45%, rgb(255 250 247 / 0) 78%),
    linear-gradient(90deg, rgb(255 107 112 / .95) 0%, rgb(232 48 58 / .6) 14%, rgb(255 240 236 / .04) 36%, rgb(255 240 236 / .03) 62%, rgb(255 245 240 / .7) 90%, rgb(255 250 247 / .95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.lp-cta:hover { box-shadow: 0 0 calc(var(--lp-glow) * 1.5) rgb(var(--ruby-rgb) / .65), inset 0 var(--lp-hairline) 0 0 rgb(255 245 240 / .5); }
.lp-arrow { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.lp-burger svg { display: block; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; }

/* ——— Grand écran : composition verrouillée sur une planche 1536 × 1024 qui ne fait que changer d'échelle ——— */
@media (min-width: 1200px) and (min-height: 560px) and (min-aspect-ratio: 100/95) {
  .lp-bar, .lp-hero, .lp-foot { position: absolute; left: 50%; width: calc(var(--u) * 1536); translate: -50% 0; z-index: 2; }
  .lp-bar { top: 0; height: calc(var(--u) * 120); display: flex; align-items: center; gap: calc(var(--u) * 26); padding: 0 calc(var(--u) * 150) 0 calc(var(--u) * 200); z-index: 3; }
  .lp-toggle, .lp-burger, .lp-scrim { display: none; }
  .lp-panel { display: contents; }
  .lp-brand { gap: calc(var(--u) * 11); }
  .lp-mark { width: calc(var(--u) * 34); height: calc(var(--u) * 34); }
  .lp-word { font-size: calc(var(--u) * 25); }
  .lp-menu { flex: 1; display: flex; justify-content: center; gap: calc(var(--u) * 44); }
  .lp-menu a, .lp-login { display: inline-flex; align-items: center; gap: calc(var(--u) * 7); font-size: calc(var(--u) * 14.5); }
  .lp-caret { width: calc(var(--u) * 9); height: calc(var(--u) * 6); stroke-width: 1.25; }
  .lp-navarrow { width: calc(var(--u) * 10); height: calc(var(--u) * 9); stroke-width: 1.2; }
  .lp-pill { height: calc(var(--u) * 44); padding: 0 calc(var(--u) * 24); font-size: calc(var(--u) * 14.5); }
  .lp-prefs { margin-left: calc(var(--u) * 6); }
  .lp-hero { top: 50%; height: calc(var(--u) * 1024); translate: -50% -50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: calc(var(--u) * 30); pointer-events: none; }
  .lp-hero > * { pointer-events: auto; }
  .lp-title { font-size: calc(var(--u) * 60); line-height: 1.02; }
  .lp-sub { font-size: calc(var(--u) * 20.5); line-height: 1.3; margin-top: calc(var(--u) * 26); }
  .lp-cta { margin-top: calc(var(--u) * 44); height: calc(var(--u) * 52); padding: 0 calc(var(--u) * 32); gap: calc(var(--u) * 14); font-size: calc(var(--u) * 20); }
  .lp-arrow { width: calc(var(--u) * 16); height: calc(var(--u) * 11); }
  .lp-feats { margin-top: calc(var(--u) * 104); display: flex; gap: calc(var(--u) * 56); }
  .lp-feats li { gap: calc(var(--u) * 12); font-size: calc(var(--u) * 14.6); }
  .lp-chev { width: calc(var(--u) * 9); height: calc(var(--u) * 16); }
  .lp-rule { margin-top: calc(var(--u) * 44); height: calc(var(--u) * 57); }
  .lp-foot { bottom: calc(var(--u) * 54); font-size: calc(var(--u) * 15); line-height: 1.6; }
}

/* ——— En dessous : colonne fluide pilotée par --c, menu derrière le burger (sans JS) ——— */
@media (max-width: 1199px), (max-height: 559px), (max-aspect-ratio: 100/95) {
  .lp { --c: min(calc(100vw / 430), calc(100vh / 860)); display: flex; flex-direction: column;
    padding: calc(env(safe-area-inset-top) + var(--c) * 24) calc(var(--c) * 22) calc(env(safe-area-inset-bottom) + var(--c) * 22); }
  .lp-bar { position: relative; z-index: 5; display: flex; align-items: center; gap: calc(var(--c) * 10); }
  .lp-brand { gap: calc(var(--c) * 9); margin-right: auto; }
  .lp-mark { width: calc(var(--c) * 30); height: calc(var(--c) * 30); }
  .lp-word { font-size: calc(var(--c) * 21); }
  .lp-prefs .icon-btn { width: max(38px, calc(var(--c) * 38)); height: max(38px, calc(var(--c) * 38)); }
  .lp-toggle { position: absolute; top: 0; right: 0; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
  .lp-burger { position: relative; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--c) * 46); height: calc(var(--c) * 34); border-radius: 999px; cursor: pointer;
    border: var(--lp-hairline) solid var(--lp-hair); background: var(--glass); -webkit-backdrop-filter: blur(var(--lp-blur)) saturate(.6); backdrop-filter: blur(var(--lp-blur)) saturate(.6); }
  .lp-burger::after { content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: max(44px, 100%); height: max(44px, 100%); }
  .lp-burger svg { width: calc(var(--c) * 20); height: auto; }
  .lp-burger path { transform-box: fill-box; transform-origin: center; transition: transform .24s ease, opacity .18s ease; }
  .lp-toggle:focus-visible ~ .lp-burger { outline: 2px solid var(--ruby-text); outline-offset: 3px; }
  .lp-toggle:checked ~ .lp-burger .b1 { transform: translateY(6px) rotate(45deg); }
  .lp-toggle:checked ~ .lp-burger .b2 { opacity: 0; }
  .lp-toggle:checked ~ .lp-burger .b3 { transform: translateY(-6px) rotate(-45deg); }
  .lp-scrim { display: none; position: fixed; inset: 0; z-index: -1; }
  .lp-toggle:checked ~ .lp-scrim { display: block; }
  .lp-panel { position: absolute; top: calc(100% + var(--c) * 12); right: 0; display: flex; flex-direction: column; gap: calc(var(--c) * 2);
    width: min(calc(var(--c) * 280), 82vw); padding: calc(var(--c) * 13); border-radius: calc(var(--c) * 20);
    background: linear-gradient(180deg, rgb(var(--tint-rgb) / .08), rgb(var(--tint-rgb) / .03)), linear-gradient(90deg, rgb(var(--ruby-rgb) / .12), transparent), rgb(var(--lp-veil) / .78);
    border: 1px solid var(--border); -webkit-backdrop-filter: blur(var(--lp-blur)) saturate(.6); backdrop-filter: blur(var(--lp-blur)) saturate(.6);
    box-shadow: 0 calc(var(--c) * 14) calc(var(--c) * 38) var(--shadow-deep);
    opacity: 0; transform: translateY(calc(var(--c) * -8)) scale(.985); transform-origin: 100% 0; pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
  .lp-toggle:checked ~ .lp-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .lp-menu { display: flex; flex-direction: column; }
  .lp-menu a, .lp-login { display: flex; align-items: center; gap: calc(var(--c) * 8); min-height: 44px; padding: calc(var(--c) * 11) calc(var(--c) * 13); border-radius: calc(var(--c) * 12); font-size: calc(var(--c) * 16); }
  .lp-menu a:hover, .lp-login:hover { background: rgb(var(--tint-rgb) / .07); }
  .lp-caret, .lp-navarrow { margin-left: auto; height: auto; stroke-width: 1.3; }
  .lp-caret { width: calc(var(--c) * 10); } .lp-navarrow { width: calc(var(--c) * 11); }
  .lp-pill { margin-top: calc(var(--c) * 8); min-height: 44px; padding: calc(var(--c) * 12) calc(var(--c) * 16); font-size: calc(var(--c) * 15.5); }
  .lp-hero { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: calc(var(--c) * 20); }
  .lp-title { font-size: calc(var(--c) * 33); line-height: 1.12; max-width: 17ch; }
  .lp-title span, .lp-sub span { display: inline; }
  .lp-sub { font-size: calc(var(--c) * 17); line-height: 1.35; max-width: 28ch; }
  .lp-cta { gap: calc(var(--c) * 12); padding: calc(var(--c) * 16) calc(var(--c) * 28); font-size: calc(var(--c) * 18); min-height: 44px; }
  .lp-arrow { width: calc(var(--c) * 16); height: calc(var(--c) * 11); }
  .lp-feats { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: calc(var(--c) * 14) calc(var(--c) * 18); margin-top: calc(var(--c) * 6); text-align: left; }
  .lp-feats li { gap: calc(var(--c) * 9); font-size: calc(var(--c) * 13.5); }
  .lp-chev { width: calc(var(--c) * 9); height: calc(var(--c) * 16); }
  .lp-rule { height: calc(var(--c) * 30); margin-top: calc(var(--c) * 4); }
  .lp-foot { position: relative; z-index: 2; font-size: calc(var(--c) * 13); line-height: 1.6; }
  .lp-veil { background: radial-gradient(130% 44% at 50% 45%, rgb(var(--lp-veil) / .5) 0%, rgb(var(--lp-veil) / .26) 55%, rgb(var(--lp-veil) / 0) 100%),
    linear-gradient(180deg, rgb(var(--lp-veil) / .36) 0%, rgb(var(--lp-veil) / 0) 20%, rgb(var(--lp-veil) / 0) 60%, rgb(var(--lp-veil) / .4) 100%); }

  /* Téléphone : le titre passe librement à la ligne, ce qui permet au texte de grandir */
  @media (max-width: 599px), (max-height: 429px) {
    .lp { --c: min(calc(100vw / 360), calc(100vh / 770), 1px); --rise: 6px; padding: calc(env(safe-area-inset-top) + var(--c) * 26) calc(var(--c) * 24) calc(env(safe-area-inset-bottom) + var(--c) * 24); }
    .lp-title { font-size: calc(var(--c) * 32); line-height: 1.16; max-width: none; text-wrap: balance; }
    .lp-title span, .lp-sub span { display: block; }
    .lp-sub { font-size: calc(var(--c) * 16); line-height: 1.45; max-width: none; text-wrap: balance; }
    .lp-cta { font-size: calc(var(--c) * 17); }
    .lp-feats { gap: calc(var(--c) * 14) calc(var(--c) * 16); margin-top: calc(var(--c) * 16); }
    .lp-feats li { font-size: calc(var(--c) * 13); max-width: 15ch; }
    .lp-foot { text-wrap: balance; }
  }
  /* Téléphone à l'horizontale */
  @media (max-height: 429px) and (min-aspect-ratio: 1/1) {
    .lp { --c: min(calc(100vw / 760), calc(100vh / 430)); }
    .lp-hero { gap: calc(var(--c) * 12); }
    .lp-title { font-size: calc(var(--c) * 31); line-height: 1.15; max-width: 30ch; }
    .lp-sub { font-size: calc(var(--c) * 16); } .lp-sub span { display: inline; }
    .lp-feats { grid-template-columns: repeat(4, max-content); gap: calc(var(--c) * 24); margin-top: 0; }
    .lp-feats li { max-width: none; }
    .lp-rule { display: none; }
  }
  /* Tablette */
  @media (min-width: 600px) and (min-height: 430px) {
    .lp { --c: min(calc(100vw / 860), calc(100vh / 1120)); padding: calc(env(safe-area-inset-top) + var(--c) * 40) calc(var(--c) * 44) calc(env(safe-area-inset-bottom) + var(--c) * 36); }
    .lp-mark { width: calc(var(--c) * 44); height: calc(var(--c) * 44); } .lp-word { font-size: calc(var(--c) * 32); }
    .lp-burger { width: calc(var(--c) * 62); height: calc(var(--c) * 46); } .lp-burger svg { width: calc(var(--c) * 27); }
    .lp-panel { width: min(calc(var(--c) * 340), 56vw); padding: calc(var(--c) * 16); border-radius: calc(var(--c) * 26); }
    .lp-menu a, .lp-login { font-size: calc(var(--c) * 20); padding: calc(var(--c) * 13) calc(var(--c) * 15); }
    .lp-pill { font-size: calc(var(--c) * 19); padding: calc(var(--c) * 14) calc(var(--c) * 20); }
    .lp-hero { gap: calc(var(--c) * 26); }
    .lp-title { font-size: calc(var(--c) * 54); line-height: 1.06; max-width: none; } .lp-title span, .lp-sub span { display: block; }
    .lp-sub { font-size: calc(var(--c) * 22); max-width: none; }
    .lp-cta { font-size: calc(var(--c) * 22); padding: calc(var(--c) * 18) calc(var(--c) * 36); gap: calc(var(--c) * 14); }
    .lp-arrow { width: calc(var(--c) * 20); height: calc(var(--c) * 14); }
    .lp-feats { gap: calc(var(--c) * 22) calc(var(--c) * 54); margin-top: calc(var(--c) * 12); }
    .lp-feats li { font-size: calc(var(--c) * 17); gap: calc(var(--c) * 12); }
    .lp-chev { width: calc(var(--c) * 12); height: calc(var(--c) * 21); }
    .lp-rule { height: calc(var(--c) * 46); }
    .lp-foot { font-size: calc(var(--c) * 16); }
    @media (min-aspect-ratio: 1/1) {
      .lp { --c: min(calc(100vw / 1040), calc(100vh / 780)); }
      .lp-feats { grid-template-columns: repeat(4, max-content); gap: calc(var(--c) * 40); }
    }
  }
}
@supports (height: 100dvh) {
  @media (max-width: 1199px), (max-height: 559px), (max-aspect-ratio: 100/95) {
    .lp { --c: min(calc(100vw / 430), calc(100dvh / 860)); }
    @media (max-width: 599px), (max-height: 429px) { .lp { --c: min(calc(100vw / 360), calc(100dvh / 770), 1px); } }
    @media (max-height: 429px) and (min-aspect-ratio: 1/1) { .lp { --c: min(calc(100vw / 760), calc(100dvh / 430)); } }
    @media (min-width: 600px) and (min-height: 430px) {
      .lp { --c: min(calc(100vw / 860), calc(100dvh / 1120)); }
      @media (min-aspect-ratio: 1/1) { .lp { --c: min(calc(100vw / 1040), calc(100dvh / 780)); } }
    }
  }
}

/* Mode jour : Papier plié — papier beige, grand pli, rubans bordeaux et papier blanc */
[data-theme="light"] .lp { --lp-veil: 243 236 226; --lp-hair: rgb(74 22 28 / .3); --lp-chev: var(--ruby); }
[data-theme="light"] .lp-ambient { background: linear-gradient(118deg, rgb(255 255 255 / .6) 0%, transparent 40%, rgb(120 70 50 / .08) 40.2%, transparent 74%), radial-gradient(120% 70% at 50% 118%, rgb(125 20 33 / .12), transparent 60%), var(--bg); }
[data-theme="light"] .lp-glow { background: radial-gradient(circle, rgb(255 255 255 / .95) 0, rgb(255 250 244 / .8) 3%, rgb(125 20 33 / .12) 14%, transparent 46%); }
[data-theme="light"] .lp-fan { filter: blur(6px); background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg 28deg, rgb(125 20 33 / .26) 33deg, rgb(125 20 33 / .08) 36deg, transparent 42deg, transparent 50deg, rgb(125 20 33 / .12) 54deg, transparent 60deg,
    transparent 128deg, rgb(255 255 255 / .85) 133deg, rgb(255 255 255 / .3) 137deg, transparent 141deg, transparent 150deg, rgb(255 255 255 / .6) 153deg, transparent 158deg, transparent 360deg); }
[data-theme="light"] .lp-title { text-shadow: none; font-variation-settings: 'opsz' 96; font-weight: 600; letter-spacing: -.02em; }
[data-theme="light"] .lp-word { font-variation-settings: 'opsz' 96; letter-spacing: -.01em; }
[data-theme="light"] .lp-cta { color: #fff; background: linear-gradient(180deg, var(--ruby-hi), var(--ruby)); box-shadow: var(--shadow-ruby); }
[data-theme="light"] .lp-cta::before { background: linear-gradient(180deg, rgb(255 255 255 / .5), rgb(255 255 255 / 0) 60%); }
[data-theme="light"] .lp-cta:hover { box-shadow: 0 14px 30px -12px rgb(125 20 33 / .6); }
[data-theme="light"] .lp-feats li { color: var(--fg); }
[data-theme="light"] .lp-mark { filter: drop-shadow(0 4px 8px rgb(74 22 28 / .22)); }

/* Entrée : une seule fois, propriétés indépendantes uniquement, état de départ tenu pendant le délai */
@media (prefers-reduced-motion: no-preference) {
  .lp { --ent-line: cubic-bezier(.16, 1, .3, 1); --ent-soft: cubic-bezier(.25, .8, .35, 1); }
  @keyframes lp-wipe { from { clip-path: inset(-.3em 0 calc(100% + .3em) 0); translate: 0 var(--rise); } to { clip-path: inset(-.3em 0 -.3em 0); translate: 0 0; } }
  @keyframes lp-lift { from { opacity: 0; translate: 0 var(--rise); } }
  @keyframes lp-settle { from { opacity: 0; translate: 0 calc(var(--rise) * .7); scale: .99; } }
  @keyframes lp-draw { from { scale: 1 0; } }
  @keyframes lp-halo { from { filter: drop-shadow(0 0 22px var(--ruby-glow)); } }
  .lp:not(.is-entered) .lp-brand { animation: lp-lift .6s var(--ent-soft) .12s backwards; }
  .lp:not(.is-entered) .lp-mark { animation: lp-halo 1.4s var(--ent-soft) .12s backwards; }
  .lp:not(.is-entered) .lp-menu a:nth-child(1) { animation: lp-lift .55s var(--ent-soft) .2s backwards; }
  .lp:not(.is-entered) .lp-menu a:nth-child(2) { animation: lp-lift .55s var(--ent-soft) .25s backwards; }
  .lp:not(.is-entered) .lp-menu a:nth-child(3) { animation: lp-lift .55s var(--ent-soft) .3s backwards; }
  .lp:not(.is-entered) .lp-login { animation: lp-lift .55s var(--ent-soft) .35s backwards; }
  .lp:not(.is-entered) .lp-pill, .lp:not(.is-entered) .lp-prefs { animation: lp-settle .6s var(--ent-soft) .4s backwards; }
  .lp:not(.is-entered) .lp-burger { animation: lp-lift .6s var(--ent-soft) .4s backwards; }
  .lp:not(.is-entered) .lp-title .l1 { animation: lp-wipe .95s var(--ent-line) .34s backwards; }
  .lp:not(.is-entered) .lp-title .l2 { animation: lp-wipe .95s var(--ent-line) .44s backwards; }
  .lp:not(.is-entered) .lp-sub .s1 { animation: lp-lift .7s var(--ent-soft) .74s backwards; }
  .lp:not(.is-entered) .lp-sub .s2 { animation: lp-lift .7s var(--ent-soft) .8s backwards; }
  .lp:not(.is-entered) .lp-cta { animation: lp-lift .8s var(--ent-line) .94s backwards; }
  .lp:not(.is-entered) .lp-feats li:nth-child(1) { animation: lp-lift .6s var(--ent-soft) 1.08s backwards; }
  .lp:not(.is-entered) .lp-feats li:nth-child(2) { animation: lp-lift .6s var(--ent-soft) 1.15s backwards; }
  .lp:not(.is-entered) .lp-feats li:nth-child(3) { animation: lp-lift .6s var(--ent-soft) 1.22s backwards; }
  .lp:not(.is-entered) .lp-feats li:nth-child(4) { animation: lp-lift .6s var(--ent-soft) 1.29s backwards; }
  .lp:not(.is-entered) .lp-rule { animation: lp-draw .55s var(--ent-line) 1.34s backwards; }
  .lp:not(.is-entered) .lp-foot .f1 { animation: lp-lift .6s var(--ent-soft) 1.42s backwards; }
  .lp:not(.is-entered) .lp-foot .f2 { animation: lp-lift .6s var(--ent-soft) 1.48s backwards; }
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 12px 12px 0; min-width: 0; }
  .side-top, .side nav, .side-bottom { min-width: 0; }
  .side nav { display: flex; overflow-x: auto; padding-bottom: 8px; } .nav-a { white-space: nowrap; width: auto; } .nav-a.on::before { display: none; } .nav-sec, .nav-gap { display: none; }
  .side-bottom { display: flex; flex-wrap: wrap; }
  .cols, .g2, .g3, .g4, .msgs { grid-template-columns: 1fr; }
  header.top { flex-wrap: wrap; padding: 12px 16px; } .roles { margin-left: 0; } .search { max-width: none; flex-basis: 100%; }
  .page { padding: 26px 16px 52px; }
  .ob-in { grid-template-columns: 1fr; } .steps { grid-column: 1; } .ob-left { grid-row: auto; } .ob-photo { display: none; } .ob-card { padding: 22px; }
  .steps > i { width: 16px; } .step span { display: none; } .step.cur span { display: inline; }
  .choice-img { display: none; } .auth { margin-top: 8vh; }
  .stat strong { font-size: 32px; }
}
@media (max-width: 520px) { .g2 .g2, .grid.g2 { grid-template-columns: 1fr; } .who div { display: none; } .welcome section { padding: 38px 22px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ——— Accueil créateur ——— */
.home { gap: 22px; }
.home-hi h1 { margin-bottom: 8px; }
.home-kicker { text-transform: uppercase; letter-spacing: .32em; font-size: 12px; color: var(--muted); font-weight: 500; }
/* Fil d'actualité du réseau */
.home-ticker { display: flex; align-items: center; gap: 14px; padding: 12px 16px; overflow: hidden; }
.ht-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--ruby-text); background: var(--ruby-soft); }
.ht-view { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.ht-track { display: flex; width: max-content; animation: ht-run calc(var(--n) * 4.5s) linear infinite; }
.ht-track > .ht-dup { display: flex; }
.home-ticker:hover .ht-track { animation-play-state: paused; }
.ht-item { display: inline-flex; align-items: center; gap: 8px; padding-right: 34px; white-space: nowrap; font-size: 14px; color: var(--muted); }
.ht-item b { color: var(--fg); font-weight: 600; }
.ht-av { font: 700 10px/1 var(--body); letter-spacing: .04em; color: var(--ruby-text); background: var(--ruby-soft); border-radius: 6px; padding: 4px 5px; }
@keyframes ht-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ht-track { animation: none; } .ht-view { overflow-x: auto; } .ht-dup { display: none !important; } }
/* Indicateurs */
.home-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(250px, 1.2fr); gap: 16px; }
.home-kpi { display: flex; align-items: center; gap: 14px; padding: 22px; }
.hk-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--ruby-text); background: var(--ruby-soft); border: 1px solid rgb(var(--ruby-hi-rgb) / .2); }
.home-kpi strong { display: block; font: 700 28px/1.1 var(--display); font-stretch: 84%; letter-spacing: -.03em; }
.home-kpi div > span { color: var(--muted); font-size: 14px; }
/* Carte niveau : toujours sombre, comme une carte de membre */
.home-level { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--r-lg); color: #f7eeeb;
  background: radial-gradient(120% 90% at 100% 100%, rgb(200 22 31 / .55), transparent 55%), linear-gradient(150deg, #241316, #0e0809 60%);
  border: 1px solid rgb(255 228 222 / .1); box-shadow: 0 24px 48px -24px rgb(0 0 0 / .8); transition: translate .2s var(--ease), box-shadow .2s var(--ease); }
.home-level::after { content: ''; position: absolute; right: -30%; bottom: -60%; width: 120%; height: 90%; border-radius: 50%; border-top: 2px solid rgb(232 48 58 / .5); rotate: -14deg; pointer-events: none; }
.home-level:hover { translate: 0 -2px; box-shadow: 0 28px 50px -22px rgb(200 22 31 / .5); }
.hl-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #cbb7b3; }
.hl-top b { font: 700 22px/1 var(--display); letter-spacing: -.02em; color: #fff; }
.hl-mid { display: flex; align-items: center; gap: 14px; }
.hl-mid strong { display: block; font: 700 26px/1 var(--display); font-stretch: 84%; letter-spacing: -.02em; color: #fff; }
.hl-mid div > span { font-size: 13px; color: #cbb7b3; font-weight: 600; }
.blason { flex: none; filter: drop-shadow(0 6px 12px rgb(0 0 0 / .5)); }
.hl-go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); }
.hl-bot { display: grid; gap: 8px; font-size: 13px; color: #cbb7b3; position: relative; z-index: 1; } .hl-bot b { color: #fff; }
.hl-bar { height: 6px; border-radius: 99px; background: rgb(255 255 255 / .12); overflow: hidden; }
.hl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8a8f, var(--tier, #e8303a)); }
/* Collaborations et tâches */
.home-main { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(250px, 1fr); gap: 16px; align-items: start; }
.hc-count { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; color: var(--ruby-text); background: var(--ruby-soft); }
.hc-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ruby-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(var(--ruby-text-rgb) / .4); }
.hc-all:hover { text-decoration-color: currentColor; }
.hc-list { display: grid; gap: 12px; margin-top: 16px; }
.hc-row { display: grid; grid-template-columns: 64px minmax(140px, 1.5fr) minmax(130px, 1fr) 96px 86px auto; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); transition: border-color .2s; }
.hc-row:hover { border-color: rgb(var(--ruby-hi-rgb) / .35); }
.hc-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; display: block; background: var(--well); }
.hc-thumb.ph { display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, hsl(var(--h) 62% 58%), hsl(calc(var(--h) + 8) 55% 18%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); }
.hc-thumb.ph .ic { width: 26px; height: 26px; opacity: .9; }
.hc-title { display: grid; gap: 2px; min-width: 0; } .hc-title strong { font-size: 16px; line-height: 1.25; } .hc-title .muted { font-size: 14px; }
.hc-tag { justify-self: start; margin-top: 4px; font-size: 12px; padding: 2px 9px; border-radius: 7px; background: var(--glass-2); color: var(--muted); }
.hc-meta { display: grid; gap: 6px; font-size: 13px; }
.hc-state { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.hc-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hc-state.ok { color: var(--ok); background: var(--ok-bg); } .hc-state.info { color: var(--info); background: var(--info-bg); } .hc-state.warn { color: var(--warn); background: var(--warn-bg); }
.hc-due { display: flex; align-items: center; gap: 7px; color: var(--muted); } .hc-due > span { display: grid; line-height: 1.25; } .hc-due small { font-size: 11px; }
.hc-prog { display: grid; gap: 4px; font-size: 13px; } .hc-prog small { color: var(--muted); font-size: 11px; }
.hc-steps { display: flex; gap: 4px; } .hc-steps i { flex: 1; height: 4px; border-radius: 4px; background: rgb(var(--tint-rgb) / .12); } .hc-steps i.on { background: var(--ruby-hi); }
.hc-amount { font: 700 18px/1 var(--display); font-stretch: 86%; text-align: right; }
.hc-row .btn { white-space: nowrap; }
.ht-count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ruby-text); background: var(--ruby-soft); }
.home-todo { display: grid; gap: 14px; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.todo li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 9px; font-size: 14px; }
.todo li:hover { background: var(--glass); }
.todo li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.todo li.done span { text-decoration: line-through; color: var(--faint); }
.todo-box { width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--border-strong); color: #fff; }
.todo li.done .todo-box { background: var(--ruby); border-color: var(--ruby); }
.todo-rm { opacity: 0; color: var(--muted); padding: 2px; } .todo li:hover .todo-rm, .todo-rm:focus-visible { opacity: 1; }
.todo-add { display: grid; gap: 8px; }
.todo-add input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--well); }
.home-todo > .hc-all { justify-self: start; }
.card.focus { animation: focus-ring 2.2s var(--ease); }
@keyframes focus-ring { 0%, 60% { box-shadow: 0 0 0 2px var(--ruby-hi), var(--shadow-ruby); } }
/* Carrière : échelle des paliers */
.xp-ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.xp-ladder > div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); border-top: 3px solid var(--border-strong); }
.xp-ladder > div.on { border-top-color: var(--tier); background: var(--glass); }
.xp-ladder small { color: var(--muted); }
.xp-rules { display: flex; flex-wrap: wrap; gap: 8px; } .xp-rules > span { display: inline-flex; gap: 8px; font-size: 13px; padding: 5px 11px; border-radius: 99px; background: var(--glass-2); } .xp-rules b { color: var(--ruby-text); }
@media (max-width: 1180px) {
  .home-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-level { grid-column: 1 / -1; }
  .hc-row { grid-template-columns: 64px minmax(0, 1fr) auto; } .hc-meta, .hc-prog { grid-column: 2 / 3; } .hc-amount { grid-column: 3; grid-row: 1; } .hc-row .btn { grid-column: 3; grid-row: 2 / 4; align-self: end; }
}
@media (max-width: 960px) { .home-main { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .home-kpis { grid-template-columns: 1fr; } .home-kpi { padding: 16px; }
  .hc-row { grid-template-columns: 56px minmax(0, 1fr); } .hc-thumb { width: 56px; height: 56px; }
  .hc-amount { grid-column: 2; grid-row: auto; text-align: left; } .hc-row .btn { grid-column: 1 / -1; grid-row: auto; justify-content: center; }
  .xp-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-kicker { letter-spacing: .2em; }
}
/* Mode jour */
[data-theme="light"] .home-kicker { color: #6f5a55; }
[data-theme="light"] .hc-row { background: rgb(255 255 255 / .45); }
[data-theme="light"] .hc-steps i.on { background: #8e1b28; }
[data-theme="light"] .ht-item b { color: var(--fg); }

/* ——— Missions : tableau par étape ——— */
.hc-state.neutral { color: var(--muted); background: var(--glass-2); } .hc-state.accent { color: var(--ruby-text); background: var(--ruby-soft); }
.mb-over { display: grid; gap: 14px; }
.mb-over-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mb-over-grid > div { display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: var(--r); background: var(--glass); text-align: center; }
.mb-over-grid .ic { color: var(--ruby-text); } .mb-over-grid strong { font: 700 26px/1.1 var(--display); font-stretch: 84%; } .mb-over-grid span { color: var(--muted); font-size: 13px; }
.mb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border-strong); font-size: 14px; color: var(--muted); transition: all .2s; }
.mb-pill b { font-size: 12px; font-weight: 600; opacity: .8; }
.mb-pill:hover { color: var(--fg); border-color: rgb(var(--ruby-hi-rgb) / .5); }
.mb-pill.on { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.mb-board { display: grid; grid-template-columns: repeat(var(--cols), minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.mb-col { display: grid; gap: 10px; padding: 10px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--border); min-height: 160px; align-content: start; }
.mb-col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-weight: 600; font-size: 14px; }
.mb-col-head span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--dot, var(--muted)); }
.mb-col-head b { font-size: 12px; color: var(--muted); }
.mb-attente { --dot: var(--ruby-hi); } .mb-production { --dot: var(--warn); } .mb-revoir { --dot: var(--info); } .mb-livre { --dot: var(--ok); }
.mb-empty { color: var(--faint); font-size: 13px; text-align: center; padding: 18px 0; }
.mb-card { display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--glass-solid); border: 1px solid var(--border); box-shadow: 0 10px 24px -18px var(--shadow-deep); transition: translate .2s var(--ease), border-color .2s; }
.mb-card:hover { translate: 0 -2px; border-color: rgb(var(--ruby-hi-rgb) / .45); }
.mb-head { display: flex; gap: 10px; align-items: center; } .mb-head .hc-thumb { width: 52px; height: 52px; } .mb-head > div { display: grid; min-width: 0; } .mb-head strong { font-size: 15px; line-height: 1.2; } .mb-head .muted { font-size: 13px; }
.mb-card .hc-tag { margin: 0; }
.mb-state { display: grid; gap: 6px; } .mb-state p { font-size: 13px; color: var(--muted); line-height: 1.4; }
.mb-foot { display: flex; justify-content: space-between; align-items: end; gap: 8px; } .mb-foot strong { font: 700 16px/1 var(--display); }
.mb-props { display: grid; gap: 10px; }
.mb-prop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; } .mb-prop .hc-thumb { width: 52px; height: 52px; } .mb-prop-txt { display: grid; flex: 1; min-width: 180px; }
/* Fiche mission */
.mf-back .ic { rotate: 180deg; } .mf-back { justify-self: start; }
.mf-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; } .mf-top .hc-thumb { width: 84px; height: 84px; border-radius: 16px; } .mf-top h1 { font-size: clamp(28px, 3.4vw, 40px); }
.mf-act { margin-left: auto; }
.mf-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.mf-hook { font: 600 20px/1.3 var(--display); font-stretch: 92%; } .mf-strong { color: var(--fg); font-weight: 600; }
.mf-keys { display: grid; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); }
.mf-keys-head { display: flex; align-items: center; gap: 8px; color: var(--ruby-text); } .mf-keys-head strong { color: var(--fg); }
.mf-kv { display: grid; gap: 2px; } .mf-kv small { font-weight: 600; font-size: 13px; color: var(--fg); } .mf-kv span { color: var(--muted); font-size: 14px; }
.mf-brand .mf-kv { padding: 10px 0; border-bottom: 1px solid var(--border); } .mf-brand .mf-kv:last-child { border: 0; }
.mf-brand .mf-kv small { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--muted); } .mf-brand .mf-kv span { color: var(--fg); }
.mf-shoot { border-radius: var(--r); border: 1px solid var(--border); background: var(--glass); }
.mf-shoot summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.mf-shoot summary::-webkit-details-marker { display: none; }
.mf-shoot summary::before { content: '▸'; color: var(--ruby-text); transition: rotate .2s; } .mf-shoot[open] summary::before { rotate: 90deg; }
.mf-shoot-body { display: grid; gap: 18px; padding: 4px 18px 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.mf-shoot-body small { color: var(--muted); font-size: 12px; } .mf-shoot-body p { font: 500 22px/1.35 var(--display); font-stretch: 94%; letter-spacing: -.01em; }
.mf-versions { display: grid; gap: 12px; } .mf-version { display: grid; gap: 6px; padding: 12px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); }
.mf-media { max-width: 180px; margin-top: 6px; }
.mf-pay { display: grid; gap: 6px; background: linear-gradient(160deg, rgb(var(--ruby-rgb) / .16), var(--glass)); } .mf-pay > .row { color: var(--ruby-text); font-size: 14px; } .mf-pay strong { font: 700 32px/1.1 var(--display); font-stretch: 84%; }
.mf-facts { display: grid; gap: 0; padding-top: 6px; padding-bottom: 6px; }
.mf-fact { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); } .mf-fact:last-child { border: 0; }
.mf-fact .ic { margin-top: 3px; color: var(--muted); } .mf-fact > div { display: grid; } .mf-fact small { color: var(--muted); font-size: 12px; }
.mf-track { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--faint); }
.mf-track li { display: flex; align-items: center; gap: 10px; } .mf-track li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.mf-track li.done { color: var(--muted); } .mf-track li.done::before { background: var(--ruby-hi); border-color: var(--ruby-hi); }
.mf-track li.cur { color: var(--fg); font-weight: 600; } .mf-track li.cur::before { background: var(--ruby-hi); border-color: var(--ruby-hi); box-shadow: 0 0 0 4px var(--ruby-soft); }
@media (max-width: 1100px) { .mb-board { grid-template-columns: repeat(var(--cols), minmax(240px, 260px)); } }
@media (max-width: 900px) { .mf-grid { grid-template-columns: 1fr; } .mf-act { margin-left: 0; } }
@media (max-width: 640px) { .mb-board { grid-template-columns: 1fr; overflow: visible; } .mb-over-grid > div { padding: 10px 6px; } .mb-over-grid strong { font-size: 22px; } .mf-shoot-body p { font-size: 19px; } }
[data-theme="light"] .mb-card { background: rgb(255 255 255 / .7); }
[data-theme="light"] .mb-pill.on { background: #8e1b28; border-color: #8e1b28; }

/* ——— Collection ——— */
.collection-page .tabs .tab b { font-weight: 500; opacity: .6; margin-left: 4px; }
.cl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-bar select.in { min-width: 190px; width: auto; }
.cl-views { display: inline-flex; gap: 6px; }
.cl-views button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 11px; font-size: 14px; color: var(--muted); border: 1px solid var(--border); }
.cl-views button.on { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.cl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.cl-item { border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); overflow: hidden; transition: border-color .2s, translate .2s var(--ease); }
.cl-item:hover { translate: 0 -2px; border-color: rgb(var(--ruby-hi-rgb) / .4); } .cl-item.sel { border-color: var(--ruby-hi); box-shadow: 0 0 0 1px var(--ruby-hi); }
.cl-media { position: relative; aspect-ratio: 4 / 3; background: var(--well); }
.cl-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-thumb.ph, .cl-mini.ph, .cl-player .ph { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); background: radial-gradient(circle at 30% 20%, rgb(var(--ruby-rgb) / .3), var(--well) 70%); text-align: center; padding: 8px; }
.cl-thumb.ph small, .cl-player .ph small { font-size: 11px; overflow-wrap: anywhere; }
.cl-check { position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgb(0 0 0 / .45); backdrop-filter: blur(6px); }
.cl-check input { width: 16px; height: 16px; margin: 0; cursor: pointer; }
.cl-dur { font-variant-numeric: tabular-nums; }
.cl-media .cl-dur { position: absolute; right: 8px; bottom: 8px; z-index: 1; font-size: 11px; font-weight: 600; color: #fff; padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / .6); }
.cl-open { position: absolute; inset: 0; z-index: 1; cursor: zoom-in; }
.cl-body { display: grid; gap: 6px; padding: 10px 12px 12px; }
.cl-name { text-align: left; font-weight: 600; font-size: 15px; line-height: 1.25; } .cl-name:hover { color: var(--ruby-text); }
.cl-camp { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-camp i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--ruby-text); background: var(--ruby-soft); padding: 2px 4px; border-radius: 5px; flex: none; }
.cl-table td { vertical-align: middle; } .cl-table .cl-check { position: static; background: none; backdrop-filter: none; }
.cl-table tr.sel td { background: var(--ruby-soft); }
.cl-row { display: flex; align-items: center; gap: 10px; text-align: left; font-weight: 600; }
.cl-mini { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; display: block; background: var(--well); } .cl-mini.ph { padding: 0; } .cl-mini.ph .ic { width: 16px; height: 16px; }
.cl-side h2 { font-size: 17px; } .cl-side > div > .row .ic, .cl-side > .row .ic { color: var(--ruby-text); }
.cl-qa { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--glass); font-size: 14px; text-align: left; transition: border-color .2s; }
.cl-qa span { flex: 1; } .cl-qa > .ic:last-child { opacity: .5; }
.cl-qa:not(:disabled):hover { border-color: rgb(var(--ruby-hi-rgb) / .5); } .cl-qa:disabled { opacity: .45; cursor: not-allowed; }
.cl-coll { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--glass); font-size: 14px; } .cl-coll span { flex: 1; } .cl-coll b { font-size: 12px; color: var(--muted); }
.cl-coll:hover { color: var(--ruby-text); }
.cl-recent { display: flex; gap: 10px; align-items: center; text-align: left; padding: 6px; border-radius: 10px; } .cl-recent:hover { background: var(--glass); }
.cl-recent > span { display: grid; min-width: 0; } .cl-recent strong { font-size: 13px; line-height: 1.25; } .cl-recent small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Fenêtre de détail */
.cl-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.cl-scrim { position: absolute; inset: 0; background: rgb(8 4 5 / .62); backdrop-filter: blur(6px); animation: fade .2s ease both; }
.cl-dialog { position: relative; width: min(1000px, 100%); max-height: calc(100dvh - 40px); overflow: auto; display: grid; gap: 14px; padding: 22px; border-radius: var(--r-xl); background: var(--pop); border: 1px solid var(--border-strong); box-shadow: 0 40px 80px -30px var(--shadow-deep); animation: rise .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.cl-dhead h2 { font-size: 22px; }
.cl-dgrid { display: grid; grid-template-columns: 230px minmax(0, 1.3fr) minmax(200px, 1fr); grid-template-rows: auto 1fr; gap: 14px; }
.cl-player { grid-row: 1 / 3; border-radius: var(--r); overflow: hidden; background: var(--well); aspect-ratio: 9 / 16; align-self: start; }
.cl-player video, .cl-player img, .cl-player .ph { width: 100%; height: 100%; object-fit: cover; display: grid; }
.cl-box { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); }
.cl-box h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; } .cl-box h3 .ic { color: var(--ruby-text); }
.cl-kv { display: grid; grid-template-columns: 18px 90px 1fr; align-items: center; gap: 8px; font-size: 14px; } .cl-kv > span { color: var(--muted); } .cl-kv .ic { color: var(--muted); } .cl-kv b { font-weight: 500; }
.cl-acts .btn { justify-content: flex-start; }
.cl-hist { grid-column: 2 / 4; } .cl-hist ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.cl-hist li { display: flex; gap: 8px; } .cl-hist li .ic { color: var(--ok); margin-top: 3px; } .cl-hist li div { display: grid; } .cl-hist li span { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .cl-layout { grid-template-columns: 1fr; } .cl-dgrid { grid-template-columns: 200px minmax(0, 1fr); } .cl-acts { grid-column: 2; } .cl-hist { grid-column: 1 / -1; } .cl-player { grid-row: 1 / 3; } }
@media (max-width: 640px) {
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cl-bar select.in { min-width: 0; flex: 1; } .cl-bar > .row { width: 100%; }
  .cl-dgrid { grid-template-columns: 1fr; } .cl-player { grid-row: auto; max-width: 240px; justify-self: center; width: 100%; } .cl-acts, .cl-hist { grid-column: auto; } .cl-dialog { padding: 16px; }
}
[data-theme="light"] .cl-item, [data-theme="light"] .cl-box { background: rgb(255 255 255 / .55); }
[data-theme="light"] .cl-views button.on { background: #8e1b28; border-color: #8e1b28; }
[data-theme="light"] .cl-scrim { background: rgb(60 30 30 / .35); }
.cl-hist li.wait .ic { color: var(--warn); } .cl-body .row .muted { white-space: nowrap; }
.cl-mini.ph small { display: none; }

/* ——— Revenus ——— */
.rv-periods { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rv-periods button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border-strong); font-size: 14px; color: var(--muted); }
.rv-periods button:hover { color: var(--fg); } .rv-periods button.on { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.rv-custom .f { min-width: 170px; }
.rv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rv-kpis .home-kpi div > span { display: block; color: var(--muted); font-size: 13px; } .rv-kpis .home-kpi small { display: block; font-size: 12px; margin-top: 2px; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.rv-grid > section > .row .ic, .rv-edu > .row .ic { color: var(--ruby-text); }
.rv-big { font: 700 34px/1 var(--display); font-stretch: 84%; letter-spacing: -.03em; }
.rv-none { text-align: center; color: var(--muted); padding: 34px 0; font-size: 14px; }
.rv-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; }
.rv-bars > div { flex: 1; display: grid; justify-items: center; gap: 6px; align-content: end; height: 100%; }
.rv-bars i { width: min(42px, 100%); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--ruby-hi), var(--ruby-deep)); }
.rv-bars span { font-size: 11px; color: var(--muted); white-space: nowrap; } .rv-bars small { font-size: 12px; color: var(--muted); }
.rv-pie { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rv-donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.rv-donut::before { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: var(--bg-2); }
.rv-donut span { position: relative; font: 700 17px/1 var(--display); }
.rv-pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; min-width: 150px; }
.rv-pie li { display: grid; grid-template-columns: 12px 1fr auto; gap: 2px 10px; align-items: center; font-size: 14px; } .rv-pie li i { width: 10px; height: 10px; border-radius: 3px; }
.rv-pie li small { grid-column: 2 / 4; color: var(--muted); font-size: 12px; }
.rv-list { display: grid; gap: 8px; }
.rv-row { display: grid; grid-template-columns: 36px minmax(0, 1.4fr) minmax(0, 1fr) auto auto 16px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); text-align: left; transition: border-color .2s; }
.rv-row:hover { border-color: rgb(var(--ruby-hi-rgb) / .4); } .rv-row > .ic:last-child { opacity: .5; }
.rv-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ruby-text); background: var(--ruby-soft); flex: none; }
.rv-lib { display: grid; min-width: 0; } .rv-lib strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rv-lib small, .rv-per { font-size: 12px; color: var(--muted); }
.rv-per::first-letter { text-transform: uppercase; } .rv-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-next { background: linear-gradient(160deg, rgb(var(--ruby-rgb) / .14), var(--glass)); }
.rv-next-head { display: flex; align-items: center; gap: 12px; text-align: left; } .rv-next-head strong { font: 700 32px/1 var(--display); font-stretch: 84%; }
.rv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rv-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; color: var(--muted); }
.rv-steps li div { display: grid; } .rv-steps li strong { font-size: 14px; font-weight: 500; } .rv-steps li small { font-size: 12px; color: var(--faint); }
.rv-steps li.ok { color: var(--fg); }
.rv-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; color: #fff; }
.rv-steps li.ok .rv-dot { background: var(--ruby-hi); border-color: var(--ruby-hi); } .rv-dot .ic { width: 12px; height: 12px; }
.rv-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* Éducation financière */
.rv-edu { border-color: rgb(var(--ruby-hi-rgb) / .25); }
.rv-edu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.rv-edu input[type=range] { width: 100%; accent-color: var(--ruby); margin-top: 8px; }
.rv-tog { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rv-edu-res { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--border); }
.rv-edu-top { display: grid; gap: 2px; } .rv-edu-top span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-edu-top strong { font: 700 36px/1.05 var(--display); font-stretch: 84%; color: var(--ruby-text); } .rv-edu-top small { color: var(--muted); }
.rv-edu-res ul { list-style: none; margin: 0; padding: 0; display: grid; } .rv-edu-res li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.rv-edu-res li span { color: var(--muted); } .rv-edu-res li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rv-edu-res li.rv-net { border: 0; } .rv-edu-res li.rv-net span { color: var(--fg); font-weight: 600; }
.rv-tip { display: flex; gap: 10px; font-size: 13px; padding: 12px; border-radius: 12px; background: var(--ruby-soft); } .rv-tip .ic { color: var(--ruby-text); margin-top: 2px; }
/* Fenêtres */
.rv-all { width: min(860px, 100%); }
.rv-drawer { position: fixed; inset: 0; z-index: 50; }
.rv-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); overflow: auto; display: grid; align-content: start; gap: 18px; padding: 22px; background: var(--pop); border-left: 1px solid var(--border-strong); box-shadow: -30px 0 60px -30px var(--shadow-deep); animation: rv-in .28s var(--ease) both; }
@keyframes rv-in { from { translate: 40px 0; opacity: 0; } }
.rv-dhead { display: flex; gap: 12px; align-items: flex-start; } .rv-dhead > div { display: grid; flex: 1; }
.rv-dpay { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 16px; border-radius: var(--r); background: linear-gradient(160deg, rgb(var(--ruby-rgb) / .16), var(--glass)); }
.rv-dpay > div { display: grid; gap: 4px; } .rv-dpay small { color: var(--muted); font-size: 12px; } .rv-dpay strong { font: 700 30px/1 var(--display); font-stretch: 84%; } .rv-dpay b::first-letter { text-transform: uppercase; }
.rv-dkv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; } .rv-dkv span { color: var(--muted); }
.rv-panel h3 { font-size: 15px; margin-bottom: 6px; } .rv-close { justify-content: center; }
@media (max-width: 1000px) { .rv-grid, .rv-edu-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .rv-kpis { grid-template-columns: 1fr; }
  .rv-row { grid-template-columns: 34px minmax(0, 1fr) auto; } .rv-per, .rv-row > .ic:last-child { display: none; } .rv-row .hc-state { grid-column: 2 / 4; justify-self: start; }
  .rv-bars { gap: 4px; } .rv-bars span { display: none; }
}
[data-theme="light"] .rv-periods button.on { background: #8e1b28; border-color: #8e1b28; }
[data-theme="light"] .rv-donut::before { background: #f6efe6; }
[data-theme="light"] .rv-row { background: rgb(255 255 255 / .5); }

/* ——— Carrière ——— */
.ht-demo { font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; color: var(--muted); border: 1px solid var(--border-strong); margin-left: 4px; }
.cr-bar { height: 7px; border-radius: 99px; background: rgb(var(--tint-rgb) / .1); overflow: hidden; } .cr-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ruby-deep), var(--ruby-hi)); }
.cr-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.cr-top-mid { flex: 1; display: grid; gap: 8px; } .cr-top-mid span:first-child { display: grid; } .cr-top-mid small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cr-next { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; } .cr-next .blason { opacity: .45; filter: grayscale(.6); }
.cr-ov { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); gap: 16px; }
.cr-ladder { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; background: radial-gradient(80% 120% at 50% 0%, rgb(var(--ruby-rgb) / .14), transparent 70%), linear-gradient(180deg, var(--glass-2), var(--glass)); }
.cr-l-left, .cr-l-right { display: grid; gap: 12px; align-content: center; } .cr-l-left .row .ic, .cr-pools .row .ic, .cr-me .row .ic { color: var(--ruby-text); }
.cr-tier { font: 700 54px/1 var(--display); font-stretch: 82%; letter-spacing: -.03em; text-transform: uppercase; } .cr-tier.sm2 { font-size: 34px; }
.cr-nums { gap: 30px; } .cr-nums > div { display: grid; } .cr-nums b { font: 700 28px/1.1 var(--display); } .cr-nums small { color: var(--muted); font-size: 12px; }
.cr-l-badge .blason { filter: drop-shadow(0 18px 30px rgb(0 0 0 / .55)); }
.cr-unlock { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.cr-rewards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .cr-rewards li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); } .cr-rewards li .ic { color: var(--ruby-text); }
.cr-rewards.grid2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } .cr-rewards.grid2 li { padding: 10px 12px; border-radius: 11px; background: var(--glass); border: 1px solid var(--border); }
.cr-rewards.on li { color: var(--fg); } .cr-rewards.on li .ic { color: var(--ok); }
.cr-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cr-role { display: grid; gap: 8px; align-content: start; } .cr-role.locked { opacity: .72; } .cr-role .hc-state .ic { width: 12px; height: 12px; }
.cr-role .btn { justify-self: start; margin-top: 4px; }
.cr-lad { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 16px; align-items: stretch; }
.cr-podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-top: 30px; overflow: hidden; background: radial-gradient(70% 90% at 50% 100%, rgb(232 190 98 / .16), transparent 70%), linear-gradient(180deg, var(--glass-2), var(--glass)); }
.cr-pod { display: grid; justify-items: center; gap: 4px; text-align: center; width: min(190px, 31%); }
.cr-av { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 20px/1 var(--display); color: #fff; background: radial-gradient(circle at 30% 25%, var(--ruby-hi), var(--ruby-deep)); border: 3px solid #d9d9dc; }
.cr-pod.p1 .cr-av { width: 82px; height: 82px; border-color: #e8be62; font-size: 24px; } .cr-pod.p3 .cr-av { border-color: #c98a58; } .cr-av.me { box-shadow: 0 0 0 4px var(--ruby-soft); }
.cr-av > b { position: absolute; bottom: -8px; left: 50%; translate: -50% 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--body); background: #d9d9dc; color: #1a0d0f; }
.cr-pod.p1 .cr-av > b { background: #e8be62; } .cr-pod.p3 .cr-av > b { background: #c98a58; }
.cr-crown { position: absolute; top: -22px; color: #e8be62; } .cr-crown .ic { width: 22px; height: 22px; fill: #e8be62; }
.cr-pod strong { margin-top: 8px; font-size: 15px; } .cr-podxp { font-weight: 600; font-size: 14px; }
.cr-step { width: 100%; margin-top: 8px; border-radius: 14px 14px 0 0; display: grid; place-items: center; font: 700 44px/1 var(--display); color: rgb(255 255 255 / .55); text-shadow: 0 2px 0 rgb(0 0 0 / .15); }
.cr-pod.p1 .cr-step { height: 130px; background: linear-gradient(180deg, #f5d98c, #c99a35); } .cr-pod.p2 .cr-step { height: 96px; background: linear-gradient(180deg, #ececf0, #a9a9b1); } .cr-pod.p3 .cr-step { height: 76px; background: linear-gradient(180deg, #e2a77a, #a5653a); }
.cr-me { align-content: start; }
.cr-av.sm { width: 30px; height: 30px; font-size: 11px; border-width: 0; }
.cr-who { display: inline-flex; align-items: center; gap: 10px; } .cr-table tr.me td { background: var(--ruby-soft); } .cr-table td { vertical-align: middle; }
.cr-prog-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 16px; }
.cr-cur { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .cr-cur > div { display: grid; gap: 10px; align-content: start; } .cr-cur .row > div { display: grid; }
.cr-big { font: 700 30px/1 var(--display); } .cr-pos { display: grid; align-content: center; gap: 4px; } .cr-huge { font: 700 60px/1 var(--display); font-stretch: 82%; }
.cr-timeline { display: flex; justify-content: space-between; gap: 6px; overflow-x: auto; position: relative; }
.cr-tl { display: grid; justify-items: center; gap: 4px; min-width: 84px; text-align: center; opacity: .5; } .cr-tl b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; } .cr-tl small { font-size: 11px; color: var(--muted); }
.cr-tl.done { opacity: .85; } .cr-tl.cur { opacity: 1; } .cr-tl.cur b { color: var(--ruby-text); } .cr-tl.cur small::after { content: ' ●'; color: var(--ruby-hi); }
.cr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cr-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cr-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .cr-todo li { display: flex; gap: 8px; font-size: 14px; } .cr-todo li .ic { color: var(--ruby-text); margin-top: 3px; }
.cr-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cr-badge { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px 12px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); opacity: .75; }
.cr-badge.ok { opacity: 1; border-color: rgb(var(--ruby-hi-rgb) / .35); } .cr-badge .cr-bar { width: 100%; }
.cr-medal { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--well); border: 2px dashed var(--border-strong); }
.cr-badge.ok .cr-medal { color: #fff; border: 2px solid #e8be62; background: radial-gradient(circle at 30% 25%, var(--ruby-hi), var(--ruby-deep)); box-shadow: 0 8px 20px -8px var(--ruby-glow); } .cr-medal .ic { width: 22px; height: 22px; }
.cr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cr-src { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 12px; font-size: 14px; } .cr-src b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1200px) { .cr-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .cr-ov, .cr-lad, .cr-prog-top, .cr-two { grid-template-columns: 1fr; } .cr-ladder { grid-template-columns: 1fr auto; } .cr-l-right { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .cr-roles, .cr-stats { grid-template-columns: 1fr; } .cr-ladder { grid-template-columns: 1fr; } .cr-l-badge { justify-self: center; } .cr-tier { font-size: 42px; }
  .cr-cur { grid-template-columns: 1fr; } .cr-av { width: 52px; height: 52px; font-size: 16px; } .cr-pod.p1 .cr-av { width: 64px; height: 64px; } .cr-step { font-size: 30px; }
  .cr-pod.p1 .cr-step { height: 96px; } .cr-pod.p2 .cr-step { height: 70px; } .cr-pod.p3 .cr-step { height: 56px; } .cr-src { grid-template-columns: 110px 1fr 56px; }
  .cr-top { flex-wrap: wrap; } .cr-next { display: none; }
}

/* ——— Profils du classement ——— */
.cr-click { cursor: pointer; } tr.cr-click:hover td { background: var(--glass-2); } .cr-pod.cr-click:hover .cr-av { transform: scale(1.05); } .cr-av { transition: transform .2s var(--ease); }
.cr-priv .row .ic { color: var(--ruby-text); } .cr-priv .f { max-width: 320px; }
.cr-never { display: flex; gap: 8px; font-size: 12px; color: var(--muted); } .cr-never .ic { flex: none; margin-top: 2px; color: var(--ok); }
.pf-dialog { width: min(760px, 100%); gap: 16px; }
.pf-head { display: flex; align-items: center; gap: 14px; } .pf-head > div { flex: 1; display: grid; gap: 4px; } .pf-head h2 { font-size: 24px; }
.pf-av { width: 64px; height: 64px; font-size: 22px; flex: none; border-color: var(--ruby-hi); }
.pf-private { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px 10px; border-radius: var(--r); border: 1px dashed var(--border-strong); } .pf-private .ic { width: 26px; height: 26px; color: var(--muted); }
.pf-grid { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 12px; }
.pf-money { display: grid; gap: 4px; align-content: center; padding: 18px; border-radius: var(--r); background: linear-gradient(160deg, rgb(var(--ruby-rgb) / .2), var(--glass)); }
.pf-money small { display: flex; align-items: center; gap: 6px; color: var(--ruby-text); font-size: 13px; } .pf-money strong { font: 700 28px/1.1 var(--display); font-stretch: 86%; } .pf-money span { color: var(--muted); font-size: 12px; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-stats > div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); } .pf-stats b { font: 700 18px/1.15 var(--display); } .pf-stats b::first-letter { text-transform: uppercase; } .pf-stats span { font-size: 12px; color: var(--muted); }
.pf-folio { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); } .pf-folio .row .ic { color: var(--ruby-text); }
.pf-vitrine { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pf-tile { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--well); } .pf-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-tile span { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .55); color: #fff; } .pf-tile span .ic { width: 11px; height: 11px; }
.pf-tile.ph { display: grid; place-items: center; color: var(--muted); background: radial-gradient(circle at 30% 20%, rgb(var(--ruby-rgb) / .3), var(--well) 70%); }
@media (max-width: 640px) { .pf-grid { grid-template-columns: 1fr; } .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-vitrine { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ——— Rôles verrouillés ——— */
.role-lock .hc-state .ic { width: 12px; height: 12px; }
.tab.off { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); cursor: not-allowed; } .tab.off .ic { width: 13px; height: 13px; }
.rl-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: stretch; }
.rl-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(200px, 1fr); gap: 10px; overflow: hidden; padding: 0; }
.rl-copy { display: grid; gap: 14px; align-content: center; padding: 28px; } .rl-copy .hc-state { justify-self: start; } .rl-copy .btn { justify-self: start; }
.rl-copy h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; } .rl-copy em { font-style: normal; color: var(--ruby-text); }
.rl-art { position: relative; display: grid; place-items: center; min-height: 260px; background: radial-gradient(circle at 60% 40%, rgb(var(--ruby-rgb) / .45), transparent 60%), linear-gradient(160deg, var(--bg-3), var(--bg)); }
.rl-orb { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgb(var(--ruby-hi-rgb) / .35); box-shadow: 0 0 80px rgb(var(--ruby-rgb) / .35); animation: breathe 6s ease-in-out infinite; }
.rl-art .blason { position: relative; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .6)) grayscale(.15); }
.rl-ic { position: absolute; right: 22%; bottom: 22%; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--ruby); box-shadow: var(--shadow-ruby); }
.rl-item { display: flex; gap: 12px; } .rl-item > div { display: grid; } .rl-item strong { font-size: 14px; } .rl-item .hk-ic { width: 34px; height: 34px; }
.rl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rl-steps > div { display: grid; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); }
.rl-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--glass-2); border: 1px solid var(--border-strong); }
.rl-steps > div.ok b { background: var(--ok); border-color: var(--ok); color: #0d0708; } .rl-steps > div.ok strong { color: var(--ok); }
.rl-state { display: flex; gap: 14px; align-items: flex-start; } .rl-state.info { border-color: rgb(var(--info-rgb) / .35); } .rl-state.info > .ic { color: var(--info); } .rl-state.warn > .ic { color: var(--warn); }
#cand-form textarea.in { min-height: 110px; } #cand-form input[type=number] { max-width: 220px; }
#cand-form .in:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }
.ad-cand h3 { font-size: 18px; }
@media (max-width: 1000px) { .rl-top { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .rl-hero { grid-template-columns: 1fr; } .rl-art { min-height: 200px; } .rl-steps { grid-template-columns: 1fr; } }

/* ——— Profil ——— */
.avatar.xl { width: 104px; height: 104px; font-size: 34px; border: 3px solid var(--bg-2); box-shadow: 0 12px 30px -12px var(--shadow-deep); flex: none; object-fit: cover; }
.pr-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 26px; min-height: 190px; }
.pr-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pr-hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-2) 25%, rgb(13 7 8 / .35) 70%, transparent); pointer-events: none; }
.pr-ribbon { position: absolute; right: -40px; top: -30px; width: 420px; height: 260px; pointer-events: none; }
.pr-ribbon i { position: absolute; inset: 0; border-radius: 50%; border-top: 26px solid var(--ruby); rotate: -18deg; filter: drop-shadow(0 10px 18px rgb(var(--ruby-rgb) / .45)); opacity: .9; }
.pr-ribbon i + i { inset: 40px -20px -40px 60px; border-top-width: 14px; border-top-color: var(--ruby-deep); rotate: -10deg; opacity: .8; }
.pr-id, .pr-acts { position: relative; z-index: 1; }
.pr-id { display: flex; gap: 20px; align-items: center; min-width: 0; } .pr-id h2 { font-size: 26px; } .pr-id .row .row { gap: 6px; }
.pr-bio { max-width: 560px; font-size: 14px; }
.pr-acts { display: grid; gap: 8px; justify-items: end; } .pr-acts .btn, .pr-acts label { white-space: nowrap; }
.pr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.pr-rows { display: grid; } .pr-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pr-row:last-child { border: 0; } .pr-row span { color: var(--muted); } .pr-row b { font-weight: 500; overflow-wrap: anywhere; } .pr-priv { color: var(--faint); } .pr-priv .ic { width: 13px; height: 13px; }
.pr-verif { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .pr-verif li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); } .pr-verif li.ok { color: var(--fg); } .pr-verif li.ok .ic { color: var(--ok); }
.pr-verif-d { padding: 12px; border-radius: 12px; background: var(--glass); }
/* ——— Disponibilité ——— */
.dc-nav { gap: 10px; } .dc-title { min-width: 150px; text-align: center; text-transform: capitalize; font-size: 16px; } .dc-statut { margin-left: auto; min-width: 230px; }
.dcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.dcal > span { padding: 10px 4px; text-align: center; font-size: 12px; color: var(--muted); text-transform: capitalize; background: var(--glass); border-bottom: 1px solid var(--border); }
.dcal > .dc, .dcal > .dc-empty { min-height: 64px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dcal > :nth-child(7n) { border-right: 0; }
.dc { display: grid; place-items: center; align-content: center; gap: 6px; background: none; transition: background .15s; font: inherit; color: var(--fg); }
button.dc:hover { background: var(--glass-2); } .dc b { font-weight: 500; font-size: 14px; } .dc i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.dc.off { background: var(--ruby-soft); } .dc.off i { background: var(--ruby-hi); } .dc.gris { background: rgb(var(--tint-rgb) / .03); } .dc.gris b { color: var(--muted); } .dc.gris i { background: var(--faint); }
.dc.passe b { color: var(--faint); } .dc.passe i { background: transparent; border: 1px solid var(--faint); } .dc.today { box-shadow: inset 0 0 0 2px var(--ruby-hi); } .dc.today b { font-weight: 700; }
.dc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); } .dc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dc-legend i { width: 8px; height: 8px; border-radius: 50%; } .dc-legend .dispo i { background: var(--ok); } .dc-legend .off i { background: var(--ruby-hi); } .dc-legend .gris i { background: var(--faint); } .dc-legend .passe i { border: 1px solid var(--faint); }
.dp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.dp-week { width: 100%; } .dp-week th { font-weight: 500; font-size: 12px; color: var(--muted); text-transform: capitalize; text-align: center; } .dp-week td { text-align: center; padding: 8px 4px; } .dp-week td:first-child { text-align: left; font-size: 14px; white-space: nowrap; padding-right: 12px; }
.dp-box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--border-strong); display: inline-grid; place-items: center; color: #fff; transition: all .15s; } .dp-box:hover { border-color: var(--ruby-hi); } .dp-box.on { background: var(--ruby); border-color: var(--ruby); } .dp-box .ic { width: 13px; height: 13px; }
.dp-add { justify-self: start; }
.dp-abs { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); } .dp-abs > div { flex: 1; display: grid; min-width: 0; } .dp-abs .ic { color: var(--ruby-text); } .dp-abs.old { opacity: .55; }
.dr-t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 4px; } .dr-t.dr-m { text-transform: capitalize; letter-spacing: 0; font-size: 14px; color: var(--fg); }
.dispo-resume .row .ic { color: var(--ruby-text); }
.dr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 18px; } .dr-grid .dcal > .dc, .dr-grid .dcal > .dc-empty { min-height: 40px; } .dr-grid .dc b { font-size: 12px; }
.dr-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .dr-week > div { display: grid; justify-items: center; gap: 4px; } .dr-week b { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: capitalize; }
.dr-week i { width: 100%; height: 8px; border-radius: 3px; background: rgb(var(--tint-rgb) / .08); } .dr-week i.on { background: var(--ok); }
/* ——— Messages ——— */
.msgs { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; height: min(680px, calc(100dvh - 210px)); min-height: 480px; }
.msgs.has-cur { grid-template-columns: 300px minmax(0, 1fr) 250px; }
.msgs > .card { min-height: 0; min-width: 0; }
.msg-list { display: flex; flex-direction: column; gap: 12px; padding: 18px; } .msg-list h2 { font-size: 20px; } .msg-list .tabs { flex-wrap: wrap; } .msg-list .tab b { font-size: 11px; background: var(--ruby); color: #fff; border-radius: 99px; padding: 0 6px; margin-left: 4px; }
.msg-search { width: 100%; } .msg-new { display: grid; grid-template-columns: 1fr; gap: 8px; } .msg-new .btn { justify-content: center; }
.conv-scroll { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 4px; align-content: start; margin: 0 -6px; padding: 0 6px; }
.conv { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid transparent; transition: background .18s, border-color .18s; min-width: 0; }
.conv-txt { flex: 1; min-width: 0; display: grid; gap: 1px; } .conv-top { display: flex; justify-content: space-between; gap: 8px; } .conv-top strong { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .conv-top small { flex: none; }
.conv small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; } .conv-sub { color: var(--ruby-text) !important; }
.conv-n { flex: none; align-self: center; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; background: var(--ruby); color: #fff; }
.conv-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--body); color: #fff; background: radial-gradient(circle at 30% 25%, var(--ruby-hi), var(--ruby-deep)); } .conv-av.sm { width: 28px; height: 28px; font-size: 10px; }
.thread { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.thread-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); } .thread-who { flex: 1; min-width: 0; display: grid; } .thread-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .thread-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-back { display: none; } .msg-back .ic { rotate: 180deg; }
.thread-msgs { flex: 1; min-height: 0; max-height: none; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 80%; } .msg > div { display: grid; min-width: 0; } .msg.me { align-self: flex-end; } .msg.me > div { justify-items: end; }
.msg .bubble { max-width: 100%; justify-self: auto; } .msg-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.msg-day { display: flex; justify-content: center; margin: 6px 0; } .msg-day span { font-size: 11px; color: var(--muted); padding: 2px 10px; border-radius: 99px; background: var(--glass); text-transform: uppercase; letter-spacing: .08em; }
.composer { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--well); } .composer .in { border: 0; background: none; box-shadow: none; flex: 1; min-width: 0; }
.composer-send { width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-content: center; flex: none; }
.thread-empty { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px; border-radius: var(--r); border: 1px dashed var(--border-strong); } .thread-empty .ic { width: 28px; height: 28px; color: var(--muted); }
.msg-side { overflow-y: auto; align-content: start; }
@media (max-width: 1200px) { .msgs.has-cur { grid-template-columns: 280px minmax(0, 1fr); } .msg-side { display: none; } .pr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .pr-grid, .dp-grid, .dr-grid { grid-template-columns: 1fr; } .pr-hero { grid-template-columns: 1fr; } .pr-acts { justify-items: start; grid-auto-flow: column; justify-content: start; } }
@media (max-width: 820px) {
  .msgs, .msgs.has-cur { grid-template-columns: 1fr; height: calc(100dvh - 190px); }
  .msgs.has-cur .msg-list { display: none; } .msgs:not(.has-cur) .thread { display: none; } .msg-back { display: grid; }
}
@media (max-width: 640px) {
  .pr-id { flex-direction: column; align-items: flex-start; } .avatar.xl { width: 84px; height: 84px; } .pr-row { grid-template-columns: 1fr 18px; } .pr-row span { grid-column: 1 / -1; font-size: 12px; }
  .pr-acts { grid-auto-flow: row; } .pr-ribbon { width: 260px; height: 170px; } .dcal > .dc, .dcal > .dc-empty { min-height: 46px; } .dc-statut { margin-left: 0; width: 100%; } .pr-kpis { grid-template-columns: 1fr 1fr; }
}
[data-theme="light"] .pr-hero.has-img::after { background: linear-gradient(90deg, #f6efe6 25%, rgb(246 239 230 / .4) 70%, transparent); }
[data-theme="light"] .composer { background: rgb(255 255 255 / .6); }
/* Correctif audit : lignes de collaborations qui débordaient de leur carte vers 1440 px */
.hc-row { grid-template-columns: 64px minmax(120px, 1.4fr) minmax(120px, 1fr) 86px auto auto; gap: 14px; }
.hc-row > * { min-width: 0; }
@media (max-width: 1440px) {
  .hc-row { grid-template-columns: 64px minmax(0, 1fr) auto; } .hc-meta, .hc-prog { grid-column: 2 / 3; } .hc-amount { grid-column: 3; grid-row: 1; } .hc-row .btn { grid-column: 3; grid-row: 2 / 4; align-self: end; }
}
@media (max-width: 640px) { .hc-row { grid-template-columns: 56px minmax(0, 1fr); } .hc-amount { grid-column: 2; grid-row: auto; text-align: left; } .hc-row .btn { grid-column: 1 / -1; grid-row: auto; justify-content: center; } }
/* Correctif audit : champs et colonnes qui forçaient la largeur de leur carte */
.in { min-width: 0; max-width: 100%; } .grid > *, .cols > *, .f { min-width: 0; }
.card.row { flex-wrap: wrap; } .card.row > .stack { min-width: 0; flex: 1 1 230px !important; }
/* Correctifs audit téléphone */
.card.banner { flex-wrap: wrap; } .card.banner > * { min-width: 0; }
@media (max-width: 640px) { .cr-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; overflow: visible; } .cr-tl { min-width: 0; } .cr-tl b { font-size: 11px; } }
.msg-search { flex: none; height: auto; min-height: 42px; }
@media (max-width: 640px) { .thread-head { flex-wrap: wrap; } .thread-head > .btn { order: 9; width: 100%; justify-content: center; } }

/* ——— Vérification d'admission ——— */
.vf-hero { display: flex; gap: 16px; align-items: flex-start; } .vf-hero h2 { font-size: 22px; }
.vf-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; } .vf-hero.info .vf-ic { color: var(--info); background: var(--info-bg); } .vf-hero.warn .vf-ic { color: var(--warn); background: var(--warn-bg); }
.vf-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 16px; align-items: start; } .vf-grid .btn { justify-content: center; }
.pf-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ——— Centre de contrôle : sobre, lignes fines, gros chiffres ——— */
.ctl { min-height: 100vh; background: var(--bg); }
.ctl-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 28px; border-bottom: 1px solid var(--border); background: var(--topbar); backdrop-filter: var(--blur); }
.ctl-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: 99px; }
.ctl-nav { display: flex; gap: 2px; flex-wrap: wrap; } .ctl-nav a { padding: 7px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); } .ctl-nav a:hover { color: var(--fg); background: var(--glass); }
.ctl-nav a.on { color: var(--fg); background: var(--glass-2); } .ctl-nav b { font-size: 11px; background: var(--ruby); color: #fff; border-radius: 99px; padding: 0 6px; margin-left: 4px; }
.ctl-main { max-width: 1180px; margin: 0 auto; padding: 32px 28px 72px; display: grid; gap: 20px; } .ctl-main h1 { font-size: clamp(28px, 3vw, 40px); }
.ctl-nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.ctl-num { display: grid; gap: 4px; padding: 20px; border-right: 1px solid var(--border); transition: background .15s; } .ctl-num:last-child { border-right: 0; } .ctl-num:hover { background: var(--glass); }
.ctl-num b { font: 700 38px/1 var(--display); font-stretch: 82%; } .ctl-num span { font-size: 12px; color: var(--muted); }
.ctl-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ctl-box { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; } .ctl-box h2 { font-size: 18px; }
.ctl-item { border-top: 1px solid var(--border); } .ctl-item:first-of-type { border-top: 0; }
.ctl-line { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-align: left; min-width: 0; } .ctl-line:hover { background: var(--glass); } .ctl-line.static:hover { background: none; }
.ctl-line > .ic:last-child { opacity: .5; transition: rotate .2s; } .ctl-item.open .ctl-line > .ic:last-child { rotate: 90deg; }
.ctl-who { flex: 1; min-width: 0; display: grid; } .ctl-who strong, .ctl-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ctl-who small { color: var(--muted); font-size: 12px; }
.ctl-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ctl-detail { display: grid; gap: 12px; padding: 4px 4px 16px 44px; }
.ctl-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; } .ctl-vit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ctl-actions .in { flex: 1; min-width: 200px; } .ctl-actions { gap: 8px; }
.ctl-ev { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; } .ctl-ev:first-of-type { border-top: 0; } .ctl-ev span { color: var(--muted); } .ctl-ev small { color: var(--faint); font-size: 12px; white-space: nowrap; }
.ctl-link { display: flex; align-items: center; gap: 14px; } .ctl-link > div { flex: 1; display: grid; } .ctl-link > .ic:first-child { color: var(--ruby-text); }
@media (max-width: 1000px) { .ctl-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ctl-num:nth-child(3) { border-right: 0; } .ctl-num:nth-child(-n+3) { border-bottom: 1px solid var(--border); } .ctl-two, .ctl-cols, .vf-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ctl-top, .ctl-main { padding-left: 16px; padding-right: 16px; } .ctl-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ctl-num { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border); } .ctl-num:nth-child(2n) { border-right: 0 !important; }
  .ctl-meta { display: none; } .ctl-detail { padding-left: 4px; } .ctl-ev { grid-template-columns: 1fr; gap: 2px; }
}
.code-in { font: 600 26px/1 var(--display); letter-spacing: .3em; text-align: center; }
.ctl-spaces { gap: 6px; padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--border); }
.ctl-back { white-space: nowrap; } @media (max-width: 900px) { .ctl-back span { display: none; } }
@media (max-width: 640px) { .ctl-spaces { border-right: 0; padding-right: 0; width: 100%; flex-wrap: wrap; } }
/* Visionneuse des créatifs (centre de contrôle) */
.ctl-tile { padding: 0; border: 0; cursor: pointer; color: inherit; transition: transform .15s var(--ease), box-shadow .15s; }
.ctl-tile:hover, .ctl-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ruby, #c0263d); }
.ctl-voir-box { width: min(760px, 100%); }
.ctl-voir-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ctl-voir-scene { position: relative; justify-self: center; width: min(100%, calc(62dvh * 9 / 16 + 1px)); min-width: 220px; aspect-ratio: 9 / 16; max-height: 62dvh; border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center; }
.ctl-voir-scene > img, .ctl-voir-scene > video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.ctl-voir-scene > img.flou { filter: blur(8px) brightness(.55); object-fit: cover; }
.ctl-voir-etat { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; text-align: center; padding: 18px; }
.ctl-voir-etat.bas { inset: auto 0 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .8)); padding-top: 40px; }
.ctl-voir-nav.prev .ic { transform: scaleX(-1); }
.ctl-voir-strip { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.ctl-voir-strip .pf-tile { width: 44px; padding: 0; border: 2px solid transparent; cursor: pointer; } .ctl-voir-strip .pf-tile.on { border-color: var(--ruby, #c0263d); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vf-envoi { position: relative; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--well); font-size: 13px; overflow: hidden; }
.vf-envoi i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: var(--ruby, #c0263d); transition: width .3s; }
@media (max-width: 640px) { .ctl-voir-main { grid-template-columns: minmax(0, 1fr); } .ctl-voir-nav { display: none; } .ctl-voir-scene { min-width: 0; width: 100%; } }
/* Base de données (centre de contrôle) */
.ctl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.ctl-q { max-width: 280px; }
.ctl-base td { vertical-align: middle; } .ctl-base .ctl-who { min-width: 160px; max-width: 260px; }
.ctl-vu { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; } .ctl-sub { display: block; font-size: 11px; margin-top: 2px; white-space: nowrap; }
.ctl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .45; flex: none; } .ctl-dot.mid { background: #e0a43a; opacity: 1; } .ctl-dot.on { background: #3fbf7f; opacity: 1; box-shadow: 0 0 0 3px rgb(63 191 127 / .2); }
.ctl-del { justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
@media (max-width: 760px) { .ctl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ctl-kpis .ctl-num:nth-child(2) { border-right: 0; } .ctl-kpis .ctl-num:nth-child(-n+2) { border-bottom: 1px solid var(--border); } .ctl-q { max-width: none; width: 100%; } }
@media (min-width: 761px) and (max-width: 1000px) { .ctl-kpis .ctl-num { border-bottom: 0; } .ctl-kpis .ctl-num:nth-child(3) { border-right: 1px solid var(--border); } .ctl-kpis .ctl-num:last-child { border-right: 0; } }
/* Rôles et équipe (centre de contrôle) */
.ctl-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.ctl-roles h2 { display: flex; align-items: center; gap: 8px; }
.ctl-rl { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); } .ctl-rl:last-of-type { border-bottom: 0; }
.ctl-rl-add { margin-top: 10px; gap: 8px; } .ctl-rl-add select { flex: 1; min-width: 0; }
.ctl-lien { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--well); } .ctl-lien code { font-size: 12px; word-break: break-all; user-select: all; }
.inv-qr { justify-self: center; padding: 10px; background: #fff; border-radius: 12px; width: 204px; height: 204px; } .inv-qr img, .inv-qr canvas { display: block; }
.inv-key { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .04em; word-break: break-all; user-select: all; }
@media (max-width: 760px) { .ctl-roles { grid-template-columns: 1fr; } }
