/* Page d'accueil (index.html) : barre flottante, hero avec aperçu du salon dessiné en CSS, sections sombres / claires en alternance. */
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.landing { --paper: #f6f5fb; --paper-ink: #15131f; --paper-muted: #62607a; --paper-line: #e3e0f0; overflow-x: hidden; }
.landing h1, .landing h2, .landing h3 { letter-spacing: -.03em; }

/* ------------------------------------------------------------ navigation flottante */
.pill-nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(21, 19, 31, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px #0008; white-space: nowrap; transition: background .25s, border-color .25s, box-shadow .25s;
}
.pill-nav a { text-decoration: none; border-radius: 999px; transition: color .2s, background .2s; }
.corner-logo { position: absolute; top: 14px; left: clamp(16px, 3vw, 40px); z-index: 50; display: flex; align-items: center; height: 52px; text-decoration: none; }
.logo-svg { display: block; flex: none; height: 32px; width: auto; }
.logo-svg .t { fill: var(--accent); }
.logo-svg .b, .logo-svg .w { fill: var(--text); transition: fill .25s; }
.pill-nav .nav-link { padding: .5em 1em; color: var(--muted); font-size: .92rem; font-weight: 600; }
.pill-nav .nav-link:hover { color: var(--text); background: var(--panel-2); }
.pill-nav .nav-cta { padding: .55em 1.1em; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .92rem; }
@media (max-width: 720px) { .pill-nav .nav-link { display: none; } }

/* ------------------------------------------------------------ hero */
.lhero {
  text-align: center; padding: 128px 20px 0;
  background: radial-gradient(70% 55% at 50% 0%, #3b2f7a66 0%, transparent 70%), radial-gradient(40% 30% at 88% 8%, #ffc93c14 0%, transparent 70%);
}
.eyebrow { display: inline-block; margin: 0 0 22px; padding: .35em 1em; border: 1px solid var(--line); border-radius: 999px; background: #20102f33; color: var(--muted); font-size: .85rem; }
.lhero h1 { margin: 0 auto; max-width: 15ch; font-size: clamp(2.5rem, 8vw, 5.6rem); line-height: 1.02; font-weight: 800; }
.lhero .lead { margin: 22px auto 0; max-width: 60ch; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); }
.lhero .fine { margin: 16px auto 0; color: var(--muted); font-size: .8rem; opacity: .8; }

.dock { display: grid; gap: 14px; max-width: 780px; margin: 38px auto 0; text-align: left; }
@media (min-width: 720px) { .dock { grid-template-columns: 1fr 1fr; } }
.dock-card { display: grid; gap: 12px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(32, 29, 47, .82); backdrop-filter: blur(6px); }
.dock-card h2 { margin: 0; font-size: 1.05rem; letter-spacing: 0; }
.dock-card .error { margin: 0; font-size: .9rem; }
.dock-card .error:empty { display: none; }

/* ------------------------------------------------------------ aperçu du salon (décoratif) */
.stage { position: relative; max-width: 1060px; margin: 56px auto 0; text-align: left; }
.win { border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; background: #0c0b14; overflow: hidden; box-shadow: 0 -10px 80px #5b3fd333, 0 40px 100px #000a; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1a1728; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3558; }
.win-bar span { margin-left: 12px; color: var(--muted); font-size: .75rem; }
.win-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; height: clamp(260px, 38vw, 400px); }
@media (max-width: 640px) { .win-body { grid-template-columns: minmax(0, 1fr) 150px; } .chatcol .chips, .chatcol .sys { display: none; } }

.screen { position: relative; overflow: hidden; background: #000; }
.sky { position: absolute; inset: 0; background: radial-gradient(circle at 70% 70%, #ffd27a 0, #ffb25a 7%, transparent 22%), linear-gradient(180deg, #16306b 0%, #4a7cc9 45%, #f2a65a 80%, #6b2a3a 100%); }
.subs { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); width: 92%; text-align: center; color: #fff; font-weight: 800; font-size: clamp(.85rem, 2.1vw, 1.45rem); line-height: 1.2; text-shadow: 0 0 3px #000, 0 0 3px #000, 2px 2px 3px #000; }
.subs em { color: #ffe27a; font-style: italic; }
.subs.sm { font-size: .72rem; bottom: 10%; }
.win .screen .subs { left: 60%; width: 66%; } /* laisse la place au téléphone posé à gauche */
@media (max-width: 720px) { .win .screen .subs { left: 50%; width: 92%; } }
.ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 18px 12px 9px; color: #fff; font-size: .7rem; background: linear-gradient(transparent, #000a); }
.track { flex: 1; height: 4px; border-radius: 4px; background: #ffffff40; }
.track i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.ovl { position: absolute; right: 10px; top: 38%; display: grid; gap: 4px; justify-items: end; font-size: .76rem; }
.ovl p { margin: 0; padding: 3px 9px; border-radius: 9px; background: #000a; color: #fff; }

/* chat dessiné : colonne du salon, aperçu des fonctionnalités et téléphone partagent le même style */
.chatcol, .chatviz, .phone-chat { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; }
.chatcol { padding: 10px; background: var(--panel); border-left: 1px solid var(--line); }
.chatcol p, .chatviz p, .phone-chat p { margin: 0; overflow-wrap: anywhere; }
.chat-title { align-self: center; font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips span { padding: .12em .6em; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: .7rem; font-weight: 600; }
.chips span.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chatcol time { margin-right: .4em; color: var(--muted); font-size: .66rem; }
.sys { color: var(--muted); font-style: italic; font-size: .72rem; }
.m { padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 3px 0 var(--accent); }
.field-mock { margin-top: auto; padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: var(--muted); }

.phone { position: absolute; left: 3%; bottom: 0; display: flex; flex-direction: column; width: clamp(110px, 17vw, 175px); height: clamp(220px, 33vw, 340px); border: 6px solid #2a2640; border-bottom: 0; border-radius: 26px 26px 0 0; background: #0c0b14; overflow: hidden; box-shadow: 0 20px 60px #000c; }
.phone-video { position: relative; flex: none; height: 28%; overflow: hidden; }
.phone-chat { flex: 1; padding: 8px; background: var(--panel); font-size: .66rem; }
@media (max-width: 720px) { .stage .phone { display: none; } }

/* ------------------------------------------------------------ bandeau d'appareils */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; padding: 22px 20px; border-top: 1px solid var(--line); background: #0e0c17; color: var(--muted); font-size: .9rem; position: relative; }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.strip li { color: var(--text); font-weight: 700; }
@media (max-width: 720px) { .strip ul { display: none; } }

/* ------------------------------------------------------------ sections claires */
.paper { background: var(--paper); color: var(--paper-ink); padding: clamp(56px, 9vw, 110px) 20px; }
.wrap { max-width: 1060px; margin: 0 auto; }
.paper h2, .night h2 { margin: 0 0 .3em; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.05; font-weight: 800; }
.paper .sub { max-width: 56ch; margin: 0; color: var(--paper-muted); font-size: 1.1rem; }
.two { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.mode, .steps li { padding: 28px; border: 1px solid var(--paper-line); border-radius: 22px; background: #fff; box-shadow: 0 20px 50px #15131f10; }
.mode h3, .steps h3 { margin: 0 0 .4em; font-size: 1.35rem; }
.mode p, .steps p { margin: 0; color: var(--paper-muted); }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 1.7em; font-size: .95rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: #1c8d57; font-weight: 800; }
.steps { display: grid; gap: 18px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps b { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 1.1rem; }

/* ------------------------------------------------------------ fonctionnalités (sombre) */
.night { padding: clamp(56px, 9vw, 110px) 20px; background: #0b0a12; }
.feat { display: grid; gap: 28px; align-items: center; margin-top: clamp(48px, 8vw, 88px); }
@media (min-width: 900px) { .feat { grid-template-columns: 1fr 1fr; gap: 64px; } .feat.flip .viz { order: -1; } }
.feat h3 { margin: 0 0 .5em; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.1; font-weight: 800; }
.feat p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.viz { position: relative; min-height: 220px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, #241f3a, #171426); box-shadow: 0 30px 80px #0008; }
.sync { display: grid; align-content: center; gap: 18px; }
.who { display: grid; grid-template-columns: 56px 1fr 48px; gap: 12px; align-items: center; }
.who small { color: var(--muted); text-align: right; }
.chatviz { justify-content: center; gap: 10px; font-size: .95rem; }
.chatviz .field-mock { margin-top: 6px; }
.subviz { padding: 0; overflow: hidden; display: grid; }
.subviz .screen { height: clamp(210px, 28vw, 280px); }
.subviz .subs { bottom: 14%; font-size: clamp(1rem, 2.4vw, 1.6rem); }
.menu { position: absolute; top: 14px; left: 14px; display: grid; width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #000d; font-size: .85rem; }
.menu span { padding: .4em .7em; border-radius: 8px; }
.menu .on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.menu .row { display: flex; justify-content: space-between; margin-top: 4px; padding: .5em .7em 0; border-top: 1px solid var(--line); color: var(--muted); }
.menu .row b { color: var(--text); }
.phoneviz { display: grid; place-items: end center; padding-bottom: 0; overflow: hidden; background: radial-gradient(60% 70% at 50% 100%, #5b3fd340, transparent), linear-gradient(160deg, #241f3a, #171426); }
.phone.big { position: relative; left: auto; width: min(210px, 60%); height: 400px; }
.phone.big .phone-video { height: 25%; }
.phone.big .phone-chat { font-size: .78rem; }

/* ------------------------------------------------------------ appel final + pied de page */
.final { padding: clamp(64px, 10vw, 120px) 20px; text-align: center; background: radial-gradient(60% 80% at 50% 100%, #3b2f7a66, transparent 70%), #0b0a12; }
.final h2 { margin: 0 0 28px; font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; }
.btn.big { padding: .9em 2.4em; font-size: 1.1rem; }
.lfoot { padding: 26px 20px 34px; border-top: 1px solid var(--line); background: #0b0a12; color: var(--muted); font-size: .85rem; text-align: center; }

/* ------------------------------------------------------------ Mes salons (accueil) */
.mine { max-width: 780px; margin: 22px auto 0; padding: 18px 20px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: rgba(32, 29, 47, .82); }
.filters { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); }
.filters::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent); transition: transform .2s ease; }
.filters[data-view="joined"]::before { transform: translateX(100%); }
.filters .btn { position: relative; min-height: 44px; border: 0; background: transparent; color: var(--muted); white-space: nowrap; transition: color .2s; }
.filters .btn[aria-pressed="true"] { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .filters::before, .filters .btn { transition: none; } }
.lpage .filters + .mine { margin-top: 16px; } /* plus spécifique que « .lpage .mine { margin: 0 } » */
.mine ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mine li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.mine .info { display: grid; gap: 2px; min-width: 0; }
.mine .info code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; font-weight: 700; color: var(--accent); }
.mine .info span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.mine .acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* barre : lien de la section courante, et variante claire au-dessus des sections claires (voir le script de index.html) */
.pill-nav .nav-link.active { color: var(--text); background: var(--panel-2); }
.pill-nav.light { background: rgba(255, 255, 255, .84); border-color: var(--paper-line); box-shadow: 0 10px 30px #15131f26; }
.pill-nav.light .nav-link { color: var(--paper-muted); }
.pill-nav.light .nav-link:hover { color: var(--paper-ink); background: #15131f10; }
.pill-nav.light .nav-link.active { color: #fff; background: var(--paper-ink); }

/* page « Mes salons » */
.lpage { max-width: 780px; margin: 0 auto; padding: 110px 20px 60px; }
.lpage h1 { margin: 0 0 .3em; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; font-weight: 800; }
.lpage .lead { margin: 0 0 28px; color: var(--muted); font-size: 1.05rem; }
.lpage .mine { margin: 0; }
.lpage .empty { padding: 22px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.lpage .empty a { color: var(--accent); }
.lpage .fine { margin: 18px 0 0; color: var(--muted); font-size: .8rem; opacity: .8; }

/* écrans étroits : la barre est centrée et large, le logo se réduit au symbole pour ne pas la toucher */
@media (max-width: 1000px) { .corner-logo { width: 28px; overflow: hidden; } .corner-logo .logo-svg .w { display: none; } } /* la barre centrée est large : seul le symbole reste, la boîte est rognée */

/* page sans barre (Mes salons) : le nom reste affiché à toutes les largeurs */
.corner-logo.full { width: auto; overflow: visible; }
.corner-logo.full .logo-svg .w { display: inline; }

/* ------------------------------------------------------------ téléphone : bouton « trois barres » + menu à la place de la barre */
.menu-btn, .menu-sheet { display: none; }
@media (max-width: 720px) {
  .pill-nav { display: none; }
  .menu-btn {
    position: fixed; top: 14px; right: clamp(16px, 4vw, 24px); z-index: 60; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: rgba(21, 19, 31, .72); color: var(--text); cursor: pointer;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px #0008; transition: background .25s, color .25s, border-color .25s;
  }
  .menu-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-bars { display: none; }
  .menu-btn[aria-expanded="true"] .i-close { display: block; }
  .pill-nav.light ~ .menu-btn { background: rgba(255, 255, 255, .86); border-color: var(--paper-line); color: var(--paper-ink); box-shadow: 0 10px 30px #15131f26; }
  .menu-sheet {
    position: fixed; top: 76px; right: clamp(16px, 4vw, 24px); left: clamp(16px, 4vw, 24px); z-index: 60; display: grid; gap: 4px; max-width: 340px; margin-left: auto; padding: 8px;
    border: 1px solid var(--line); border-radius: 22px; background: rgba(21, 19, 31, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px #000a;
  }
  .menu-sheet[hidden] { display: none; }
  .menu-sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; text-decoration: none; font-weight: 700; }
  .menu-link { color: var(--text); }
  .menu-link:hover, .menu-link.active { background: var(--panel-2); }
  .menu-link.active { color: var(--accent); }
  .menu-cta { justify-content: center; margin-top: 4px; background: var(--accent); color: var(--accent-ink); }
}
