/* StreamHub — site public (accueil, aide, connexion, page de chaîne) */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
body.site { min-height: 100vh; display: flex; flex-direction: column; }
body.site main { flex: 1; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13, 11, 22, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header-in { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text-2); font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: 88px 0 40px; text-align: center; }
.hero-glow { position: absolute; inset: -200px 0 auto; height: 700px; background: radial-gradient(600px 300px at 30% 20%, rgba(139, 77, 255, .35), transparent 70%), radial-gradient(500px 280px at 75% 10%, rgba(255, 95, 162, .22), transparent 70%); pointer-events: none; }
.hero-in { position: relative; max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: .85rem; font-weight: 600; margin-bottom: 26px; }
.eyebrow .dot { color: var(--success); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 20px; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 680px; margin: 0 auto 30px; }
.hero-cta .btn { white-space: normal; text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 14px; }
.hero-preview { position: relative; margin: 56px auto 0; max-width: 940px; display: grid; grid-template-columns: 210px 1fr; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(155, 92, 255, .12); overflow: hidden; text-align: left; animation: rise .9s var(--ease) both .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hp-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 18px 12px; display: grid; gap: 4px; align-content: start; }
.hp-logo { margin: 0 6px 14px; }
.hp-item { padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: .85rem; }
.hp-item.on { background: var(--primary-soft); color: #fff; font-weight: 600; }
.hp-main { padding: 22px; display: grid; gap: 10px; align-content: start; }
.hp-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.hp-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); font-size: .88rem; }
.hp-row b { color: #e3d5ff; font-family: var(--mono); font-weight: 600; }
.hp-row span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-row em { font-style: normal; color: var(--muted); font-size: .8rem; }

.section { padding: 90px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(155, 92, 255, .05), transparent); }
.section-title { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-lead { text-align: center; color: var(--text-2); max-width: 640px; margin: 0 auto 44px; font-size: 1.05rem; }
.section-title.left, .section-lead.left { text-align: left; margin-left: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s var(--ease); }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature h3 { font-size: 1.08rem; margin: 14px 0 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .92rem; }
.feature-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); font-size: 1.25rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps li { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.steps h3 { font-size: 1.1rem; margin-top: 14px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-family: var(--font-display); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { padding: 18px 20px 18px 50px; position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.check-list li::before { content: ''; position: absolute; left: 18px; top: 21px; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.check-list b { color: var(--text); }
.cta-band { padding: 70px 0; }
.cta-in { text-align: center; padding: 50px 24px; border-radius: 22px; background: radial-gradient(500px 200px at 50% 0%, rgba(155, 92, 255, .35), transparent), var(--surface); border: 1px solid var(--border-strong); }
.cta-in h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-in p { color: var(--text-2); }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; }
.site-footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--text-2); font-size: .9rem; }
.site-footer p { margin: 0 0 0 auto; }

/* Connexion */
.auth > * { min-width: 0; }
.auth { display: grid; place-items: center; padding: 60px 20px; min-height: calc(100vh - 220px); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; padding: 34px 30px; box-shadow: var(--shadow-lg); }
.auth-card .brand { margin-bottom: 22px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 18px; }
.auth-card .btn-block + .small { margin-top: 10px; }
.sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 22px 0; text-transform: uppercase; letter-spacing: .08em; }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.big-code { font-family: var(--font-display); font-size: 4rem; font-weight: 800; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Aide */
.help { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 44px; padding-bottom: 40px; }
.help-nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; }
.help-nav a { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-size: .92rem; }
.help-nav a:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.help-nav a[aria-current="page"] { background: var(--primary-soft); color: #fff; font-weight: 600; }
.prose { max-width: 780px; min-width: 0; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose li { margin-bottom: .45em; color: var(--text-2); }
.prose p { color: var(--text-2); }
.prose .lead { margin-left: 0; text-align: left; }
.prose .table { margin: 14px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); display: block; overflow-x: auto; }
.prose blockquote { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.callout { padding: 14px 16px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); margin: 18px 0; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.help-card { display: block; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.help-card:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }
.help-card h2 { font-size: 1.05rem; margin: 0 0 6px; }
.help-card p { margin: 0; font-size: .88rem; color: var(--muted); }

/* Page publique de chaîne */
.pub-hero { text-align: center; padding: 64px 0 34px; background: radial-gradient(600px 240px at 50% 0, color-mix(in srgb, var(--accent) 35%, transparent), transparent); }
.pub-hero .btn-primary { background: var(--accent); }
.pub-avatar { border-radius: 50%; border: 3px solid var(--accent); margin-bottom: 14px; }
.pub-live { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 640px; margin: -4px auto 24px; }
.pub-live-badge { font-size: .78rem; padding: 3px 11px; }
.pub-live.is-live .pub-live-badge { background: #e91916; color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.pub-live.is-live .dot { animation: pub-live-pulse 1.6s ease-in-out infinite; }
@keyframes pub-live-pulse { 50% { opacity: .35; } }
.pub-live-title { margin: 8px 0 0; font-weight: 600; color: var(--text); overflow-wrap: anywhere; text-wrap: balance; }
.pub-live-game { margin: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.pub-sections { display: grid; gap: 18px; padding-bottom: 50px; }
.pub-sections blockquote { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.pub-sections cite { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.pub-board { margin: 0; padding-left: 22px; }
.pub-board li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pub-board li span { display: inline-block; min-width: 50%; }
.pub-next { margin: 0 0 12px; }
.pub-next .muted { white-space: nowrap; }
.pub-slots { list-style: none; margin: 0; padding: 0; }
.pub-slots li { display: grid; grid-template-columns: 13rem 1fr; gap: 4px 14px; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.pub-slots li.is-next { padding-left: 9px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.pub-slot-when b { text-transform: capitalize; }
.pub-slot-what { min-width: 0; overflow-wrap: anywhere; }
.pub-slot-what small { display: block; color: var(--muted); font-size: .85rem; }
.pub-badge { margin-left: 6px; background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); }
.pub-sections h3 { font-size: 1rem; margin: 22px 0 8px; }
.pub-sections h2 + h3 { margin-top: 6px; }
.pub-hint { margin: 0 0 10px; color: var(--text-2); font-size: .92rem; }
.pub-shop-list, .pub-ranks, .pub-achievements { list-style: none; margin: 0; padding: 0; }
.pub-shop-list li, .pub-ranks li, .pub-achievements li { display: grid; gap: 4px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pub-shop-list li { grid-template-columns: 1fr auto; }
.pub-shop-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pub-shop-name, .pub-rank-name, .pub-ach-name { min-width: 0; overflow-wrap: anywhere; }
.pub-shop-name small, .pub-rank-name small, .pub-ach-name small, .pub-rank-xp small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.pub-shop-price { font-weight: 700; white-space: nowrap; text-align: right; }
.pub-shop-list li.is-out .pub-shop-name b { opacity: .6; }
.pub-out { margin-left: 6px; background: var(--danger-soft); color: var(--danger); }
.pub-ranks li { grid-template-columns: auto 1fr auto; }
.pub-rank-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .07); }
.pub-rank-xp { font-weight: 600; white-space: nowrap; text-align: right; }
.pub-achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 22px; }
.pub-achievements li { grid-template-columns: auto 1fr; }
.pub-ach-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); font-size: 1.25rem; line-height: 1; }

@media (max-width: 860px) {
  .two-col, .help { grid-template-columns: 1fr; }
  .help-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .help-nav a { white-space: nowrap; background: var(--surface); }
  .hero-preview { grid-template-columns: 1fr; }
  .hp-side { display: none; }
  .hp-row { grid-template-columns: 1fr; gap: 4px; }
  .site-footer p { margin-left: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-nav { display: none; }
  .site-header-in { justify-content: space-between; }
  .hero { padding-top: 56px; }
  .section { padding: 60px 0; }
  .auth-card { padding: 26px 20px; }
  .pub-slots li { grid-template-columns: 1fr; }
  .pub-shop-list li { grid-template-columns: 1fr; }
  .pub-shop-price { white-space: normal; text-align: left; }
  .pub-ranks li { grid-template-columns: auto 1fr; }
  .pub-rank-xp { grid-column: 2; white-space: normal; text-align: left; }
  .pub-rank-xp small { display: inline; margin-left: 4px; }
  .pub-rank-xp small::before { content: "· "; }
  .pub-achievements { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- animations du site */
.site-header { transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(13, 11, 22, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.js .sr { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .sr.in { opacity: 1; transform: none; }

.orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orbs span { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(70px); opacity: .32; animation: orb 18s ease-in-out infinite; }
.orbs span:nth-child(1) { left: -80px; top: 40px; background: #8b4dff; }
.orbs span:nth-child(2) { right: -60px; top: -40px; background: #ff5fa2; animation-delay: -6s; animation-duration: 22s; opacity: .22; }
.orbs span:nth-child(3) { left: 40%; top: 260px; width: 260px; height: 260px; background: #6ea8ff; animation-delay: -11s; opacity: .14; }
@keyframes orb { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, 40px) scale(1.12); } 66% { transform: translate(-40px, 20px) scale(.92); } }

.hero h1 .grad { background-size: 200% 200%; animation: grad-pan 8s ease infinite; }
@keyframes grad-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-in > * { animation: rise .8s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: .08s; }
.hero-in > :nth-child(3) { animation-delay: .16s; }
.hero-in > :nth-child(4) { animation-delay: .24s; }
.hero-in > :nth-child(5) { animation-delay: .32s; }
.hero-in > :nth-child(6) { animation-delay: .4s; }
.hp-row { animation: rise .6s var(--ease) both; }
.hp-row:nth-of-type(2) { animation-delay: .55s; }
.hp-row:nth-of-type(3) { animation-delay: .7s; }
.hp-row:nth-of-type(4) { animation-delay: .85s; }
.hero-cta .btn-primary { position: relative; overflow: hidden; }
.hero-cta .btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite 1.5s; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.feature, .help-card, .steps li { position: relative; overflow: hidden; }
.feature::before, .help-card::before, .steps li::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(155, 92, 255, .16), transparent 70%); }
.feature:hover::before, .help-card:hover::before, .steps li:hover::before { opacity: 1; }
.feature-ico { transition: transform .3s var(--ease); }
.feature:hover .feature-ico { transform: scale(1.1) rotate(-6deg); }

/* ---------------------------------------------------------------- accueil enrichi */
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-preview { grid-template-columns: 190px minmax(0, 1fr) 270px; max-width: 1060px; }
.hp-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hp-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 10px; border-radius: 99px; font: 600 .72rem var(--font); color: var(--success); border: 1px solid rgba(61, 220, 151, .35); }
.hp-pill .dot { animation: pulse 2s infinite; }
.hp-chat { border-left: 1px solid var(--border); background: var(--bg-2); display: flex; flex-direction: column; min-height: 330px; }
.hp-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: .85rem; color: var(--text-2); }
.hp-live { padding: 2px 8px; border-radius: 6px; background: #e91916; color: #fff; font-size: .68rem; letter-spacing: .08em; }
.hp-chat-list { list-style: none; margin: 0; padding: 12px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; flex: 1; overflow: hidden; font-size: .84rem; line-height: 1.45; }
.hp-chat-list li { animation: chat-in .35s var(--ease) both; overflow-wrap: anywhere; }
.hp-chat-list li b { margin-right: 6px; }
.hp-chat-list li.bot { padding: 6px 9px; border-radius: 9px; background: var(--primary-soft); }
.hp-chat-list li.event { padding: 6px 9px; border-radius: 9px; background: rgba(255, 95, 162, .1); border: 1px solid rgba(255, 95, 162, .25); color: #ffc2dc; font-weight: 600; font-size: .8rem; }
.hp-chat-list li.out { animation: chat-out .3s ease forwards; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes chat-out { to { opacity: 0; height: 0; margin: -3px 0; padding-top: 0; padding-bottom: 0; } }
.hp-caption { text-align: center; color: var(--muted); font-size: .78rem; margin: 12px 0 0; }

.stats-band { padding: 26px 0 10px; }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-big { padding: 22px 18px; border-radius: var(--radius); text-align: center; background: linear-gradient(180deg, rgba(155, 92, 255, .08), transparent), var(--surface); border: 1px solid var(--border); }
.stat-big b { display: block; font: 800 clamp(1.9rem, 4vw, 2.6rem)/1.1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-big span { color: var(--text-2); font-size: .9rem; }

.kicker { text-align: center; margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-2); }
.kicker.left { text-align: left; }
.feature { --fc: var(--primary-2); }
.feature-ico { background: color-mix(in srgb, var(--fc) 16%, transparent); color: var(--fc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc) 30%, transparent); }
.feature:hover { border-color: color-mix(in srgb, var(--fc) 45%, var(--border)); }
.feature::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--fc) 18%, transparent), transparent 70%); }

.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mini-list li { position: relative; padding-left: 28px; color: var(--text-2); }
.mini-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b47bff' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.showcase { grid-template-columns: 1fr 1.15fr; }
.scene { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); background: radial-gradient(circle at 30% 40%, #3b2a6b, transparent 55%), radial-gradient(circle at 80% 70%, #5b1f45, transparent 50%), linear-gradient(135deg, #1a1430, #0f0c1c); }
.scene::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px); }
.scene-cam { position: absolute; right: 4%; bottom: 6%; width: 26%; aspect-ratio: 4 / 3; border-radius: 12px; border: 2px solid rgba(180, 123, 255, .7); background: radial-gradient(circle at 50% 38%, #8c78b8 0 16%, transparent 17%), radial-gradient(ellipse 34% 30% at 50% 92%, #8c78b8 0 99%, transparent 100%), #2a2147; }
.scene-alert { position: absolute; left: 50%; top: 34%; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(14, 10, 24, .85); border: 1px solid rgba(180, 123, 255, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: clamp(.7rem, 1.6vw, .95rem); white-space: nowrap; transform: translateX(-50%); animation: scene-alert 6s var(--ease) infinite; }
.scene-alert b { color: var(--primary-2); }
.scene-alert-ico { font-size: 1.3em; }
@keyframes scene-alert { 0%, 8% { opacity: 0; transform: translate(-50%, -20px) scale(.8); } 14%, 62% { opacity: 1; transform: translate(-50%, 0) scale(1); } 70%, 100% { opacity: 0; transform: translate(-50%, -12px) scale(.95); } }
.scene-goal { position: absolute; left: 4%; top: 6%; width: 40%; padding: 8px 10px; border-radius: 10px; background: rgba(14, 10, 24, .75); font-size: clamp(.55rem, 1.1vw, .72rem); font-weight: 700; }
.scene-goal-top { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 5px; white-space: nowrap; }
.scene-goal-bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.scene-goal-bar i { display: block; height: 100%; width: 84%; border-radius: 99px; background: var(--grad); }
.scene-chat { position: absolute; left: 4%; bottom: 6%; width: 40%; display: grid; gap: 5px; font-size: clamp(.55rem, 1.1vw, .75rem); }
.scene-chat p { margin: 0; padding: 4px 8px; border-radius: 8px; background: rgba(14, 10, 24, .72); animation: chat-in .5s var(--ease) both; }
.scene-chat p:nth-child(2) { animation-delay: .8s; }
.scene-chat p:nth-child(3) { animation-delay: 1.6s; }
.scene-chat b { margin-right: 5px; }
.scene-tag { position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .5); color: var(--muted); font-size: .68rem; }

.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 10px; margin-bottom: 18px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { margin-left: auto; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--primary-2); transition: transform .25s var(--ease), background .2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--primary-soft); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--text-2); animation: chat-in .3s var(--ease); }

/* Gratuité sous le bouton de l’accueil et bande des offres */
.hero-free { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 auto 12px; padding: 5px 14px; border-radius: 99px; background: var(--success-soft); color: #9cf0c8; font-weight: 600; font-size: .9rem; }
.hero-free::before { content: '✓'; color: var(--success); font-weight: 800; }
.home-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.home-plan { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.home-plan:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }
.home-plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem; }
.home-plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.home-plan-price b { font-size: 1.7rem; font-weight: 800; }
.home-plan-price span, .home-plan-tag { color: var(--muted); }
.home-plan-tag { margin: 0; font-size: .92rem; }

@media (max-width: 1020px) {
  .hero-preview { grid-template-columns: minmax(0, 1fr) 260px; }
  .hp-side { display: none; }
}
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-plans { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero-preview { grid-template-columns: minmax(0, 1fr); }
  .hp-main { display: none; }
  .hp-chat { border-left: 0; min-height: 300px; }
}
/* ---------------------------------------------------------------- tarifs */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 34px 0 30px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.plan-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.plan-card h2 { margin: 0; font-size: 1.3rem; }
.plan-card .btn { margin-top: auto; justify-content: center; }
.pricing-soon { max-width: 720px; margin: 22px auto 0; justify-content: center; text-align: center; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 2.2rem; font-weight: 800; }
.plan-price span { color: var(--muted); }
.plan-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.plan-list li { padding-left: 24px; position: relative; }
.plan-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.plan-list li.soon { color: var(--muted); }
.plan-list li.soon::before { content: '…'; color: var(--muted); }
.pricing-table { margin-bottom: 18px; }
.pricing-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--text-2); text-transform: none; letter-spacing: 0; font-size: .9rem; white-space: normal; background: transparent; }
.pricing-table td, .pricing-table thead th { text-align: center; }
.pr-yes { color: var(--success); font-weight: 800; }
.pr-no { color: var(--muted); }
.pr-soon { color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- fonctionnalités */
.feat-more { margin: 28px 0 0; }
.feat-legend { max-width: 860px; margin: -22px auto 24px; text-align: center; color: var(--text-2); font-size: .92rem; line-height: 1.9; }
.feat-legend .badge { vertical-align: 1px; }
.feat-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; margin: 0 auto 24px; }
.feat-toc .chip:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.feat-tools { position: sticky; top: 74px; z-index: 5; display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 0 auto 28px; padding: 10px; border-radius: var(--radius); background: rgba(13, 11, 22, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-strong); }
.feat-tools .input { flex: 1; min-width: 0; }
.feat-count { margin: 0; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.feat-empty { text-align: center; color: var(--muted); margin: 0 0 28px; }
.feat-group { padding-top: 26px; scroll-margin-top: 150px; }
.feat-group + .feat-group { margin-top: 22px; border-top: 1px solid var(--border); }
.feat-kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-2); }
.feat-group h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.45rem; }
.feat-n { padding: 1px 9px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font: 700 .78rem var(--font); }
.feat-lead { max-width: 720px; margin: 0 0 18px; color: var(--text-2); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.feat-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feat-card h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.feat-card > p { margin: 0; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.feat-card > p.feat-trail { color: var(--primary-2); font-size: .74rem; font-weight: 600; }
.feat-meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 6px; }
.feat-meta a.badge:hover { text-decoration: none; filter: brightness(1.2); }
.feat-note summary { cursor: pointer; list-style: none; }
.feat-note summary::-webkit-details-marker { display: none; }
.feat-note summary::after { content: '▾'; font-size: .7rem; transition: transform .2s; }
.feat-note[open] { flex-basis: 100%; }
.feat-note[open] summary::after { transform: rotate(180deg); }
.feat-note p { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: .84rem; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .feat-legend { margin-top: -26px; text-align: left; }
  .feat-toc { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; }
  .feat-toc .chip { flex: none; white-space: nowrap; }
  .feat-tools { flex-wrap: wrap; gap: 8px; }
  .feat-count { width: 100%; padding: 0 2px; }
  .feat-group h2 { font-size: 1.25rem; }
}
