/* Peume Cloud : ce qui s'ajoute à pages.css (pages publiques) et le dashboard (/app) */
:root { --hover:#efefec; --plein:#ececea; --ressort:cubic-bezier(.34, 1.56, .64, 1); }
.btn { border-radius:8px; }
button { font:inherit; cursor:pointer; }

/* bloc de commande à copier : gris plein, pas un champ */
.cmd { display:flex; align-items:center; gap:10px; margin:8px 0 0; padding:0 6px 0 14px; min-height:44px; border-radius:8px; background:#f3f3f1; font:13.5px/1.5 "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; text-align:left; }
.cmd code { flex:1; min-width:0; overflow-x:auto; white-space:nowrap; padding:10px 0; }
.cmd button { flex:none; height:30px; padding:0 12px; border:0; border-radius:8px; background:#e2e2df; color:var(--fg); font:600 12.5px/1 "Geist", system-ui, sans-serif; transition:background .15s; }
.cmd button:hover { background:#dadada; text-shadow:0 0 .55px currentColor, 0 0 .55px currentColor; }

/* accueil */
.hero { text-align:center; padding-top:88px; }
.hero h1 { margin:0 auto 14px; max-width:15ch; }
.hero .lede { margin:0 auto 34px; max-width:34ch; }
.etapes { display:grid; gap:28px; margin:48px 0 0; padding:0; list-style:none; text-align:left; }
.etapes li { display:grid; grid-template-columns:28px minmax(0, 1fr); gap:4px 12px; }
.etapes .n { grid-row:span 2; display:grid; place-items:center; width:28px; height:28px; border-radius:7px; background:var(--fg); color:#fff; font-size:13px; font-weight:600; }
.etapes b { font-size:15.5px; }
.etapes p { margin:0; color:var(--muted); font-size:14.5px; }
.etapes .cmd { grid-column:2; }
.dit { grid-column:2; margin:8px 0 0; padding:10px 14px; border-radius:8px; background:#f3f3f1; color:var(--fg); font-weight:500; font-size:14.5px; width:max-content; max-width:100%; }
.penbar-ray { margin-top:72px; margin-bottom:0; }
.atouts { display:grid; grid-template-columns:repeat(3, 1fr); gap:28px; margin:56px 0 0; }
.atouts b { display:block; margin-bottom:4px; font-size:15px; }
.atouts p { margin:0; color:var(--muted); font-size:14px; }
@media (max-width:640px) { .atouts { grid-template-columns:1fr; } .hero { padding-top:48px; } }

/* connexion et claim : un bloc unique, sans cadre */
.seul { width:min(380px, 100%); margin:0 auto; padding:72px 20px; }
.seul h1 { margin:0 0 8px; font-size:clamp(30px, 5vw, 44px); font-weight:500; letter-spacing:-.04em; line-height:1.1; }
.seul .lede { margin:0 0 28px; color:var(--muted); }
.seul label { display:block; margin:0 0 6px; font-size:13.5px; font-weight:500; }
.seul .btn { width:100%; margin-top:12px; border:0; }
.seul .erreur { min-height:20px; margin:10px 0 0; color:#b3261e; font-size:13.5px; }
.seul .lien { display:block; width:100%; margin-top:14px; padding:0; border:0; background:none; color:var(--muted); font-size:13.5px; text-align:center; text-decoration:underline; text-underline-offset:3px; }
.seul .lien:hover { color:var(--fg); }
.etape-code { animation:monte .35s var(--ressort) both; }
.adresse { display:block; margin:0 0 24px; padding:10px 14px; border-radius:8px; background:#f3f3f1; font-size:14.5px; font-weight:600; text-decoration:none; overflow-wrap:anywhere; }
@keyframes monte { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ===== dashboard ===== */
body.dash { display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.side { position:sticky; top:0; display:flex; flex-direction:column; height:100vh; padding:14px 10px; border-right:1px solid var(--line); }
.marque { display:flex; align-items:center; gap:8px; padding:4px 10px 16px; font-size:17px; font-weight:600; letter-spacing:-.03em; text-decoration:none; }
.marque img { width:22px; height:22px; }
.nav-item { display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border:0; border-radius:5px; background:none; color:var(--fg); text-align:left; text-decoration:none; font-size:14.5px; transition:background .15s, transform .15s; }
.nav-item:hover { background:var(--hover); font-weight:600; transform:translateX(2px); }
.nav-item.on { background:var(--hover); font-weight:600; }
.side-vide { flex:1; }
.side-foot { border-top:1px solid var(--line); margin-top:8px; padding-top:8px; }
.side-foot .email { display:block; padding:4px 10px 6px; font-size:13px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.principal { min-width:0; padding:40px 48px 64px; }
.vue { max-width:860px; animation:monte .35s var(--ressort) both; }
.vue h1 { margin:0 0 4px; font-size:28px; font-weight:500; letter-spacing:-.03em; }
.vue .sous { margin:0 0 28px; color:var(--muted); font-size:14px; }
.vue .sous a { color:var(--fg); font-weight:600; text-underline-offset:3px; }
.vue h2 { margin:32px 0 10px; font-size:15px; font-weight:600; }
.tete { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.pill { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:30px; padding:0 13px; border:0; border-radius:8px; background:var(--plein); color:var(--fg); font-size:12.5px; font-weight:600; white-space:nowrap; text-decoration:none; transition:background .15s, opacity .15s; }
.pill:hover { background:#e2e2df; text-shadow:0 0 .55px currentColor, 0 0 .55px currentColor; }
.pill.noir, .pill.noir:hover { background:var(--fg); color:#fff; }
.pill.rouge, .pill.rouge:hover { background:#b3261e; color:#fff; }
.pill:disabled { opacity:.45; cursor:default; }
.boutons { display:flex; gap:8px; flex-wrap:wrap; }

/* listes : lignes sans fond, survol si cliquable */
.lignes { display:flex; flex-direction:column; margin:0; padding:0; list-style:none; }
.ligne { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 16px; padding:12px 10px; border-radius:5px; text-decoration:none; color:var(--fg); transition:background .15s, transform .15s; }
a.ligne:hover { background:var(--hover); transform:translateX(2px); }
a.ligne:hover b { font-weight:700; }
.ligne b { font-size:15px; font-weight:600; }
.ligne span { color:var(--muted); font-size:13.5px; }
.ligne .etat { grid-row:span 2; align-self:center; }
.lignes.traits .ligne { border-radius:0; border-bottom:1px solid var(--line); }
.etat { display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:500; color:var(--fg); }
.etat::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--faint); }
.etat.live::before, .etat.running::before { background:#1f9d55; }
.etat.building::before, .etat.queued::before, .etat.starting::before { background:#d99a00; animation:pulse 1.2s ease-in-out infinite; }
.etat.failed::before { background:#b3261e; }
@keyframes pulse { 50% { opacity:.3; } }

/* onglets : la sélection est remplie en noir et glisse */
.onglets { position:relative; display:inline-flex; gap:0; margin:8px 0 18px; padding:3px; border-radius:8px; background:var(--plein); }
.onglets i { position:absolute; top:3px; bottom:3px; left:0; border-radius:6px; background:var(--fg); transition:transform .45s var(--ressort), width .45s var(--ressort); }
.onglets button { position:relative; z-index:1; height:24px; padding:0 12px; border:0; border-radius:6px; background:none; color:var(--fg); font-size:12.5px; font-weight:600; transition:color .2s; }
.onglets button.on { color:#fff; }

/* logs */
.logs { margin:0; padding:14px 16px; max-height:460px; overflow:auto; border-radius:8px; background:#1d1d1b; color:#e8e8e3; font:12.5px/1.65 "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; white-space:pre-wrap; word-break:break-word; }
.logs:empty::before { content:"No logs yet."; color:#8b8b86; }

/* variables */
.vars { display:flex; flex-direction:column; gap:8px; }
.var { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.4fr) 30px; gap:8px; align-items:center; }
.var input, .champ { box-sizing:border-box; width:100%; height:30px; padding:0 10px; border:1px solid var(--trait-champ, #e3e3df); border-radius:8px; background:#fff; color:var(--fg); font:13px "Geist Mono", ui-monospace, Menlo, monospace; outline:none; transition:border-color .15s, box-shadow .15s; }
.var input:focus, .champ:focus { border-color:var(--fg); box-shadow:0 0 0 3px rgb(29 29 27 / .08); }
.var button { width:30px; height:30px; padding:0; border:0; border-radius:8px; background:none; color:var(--muted); font-size:18px; line-height:1; }
.var button:hover { background:var(--hover); color:var(--fg); }

/* fenêtre de confirmation */
.voile { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:16px; background:rgb(29 29 27 / .35); animation:fondu .2s both; }
.fenetre { width:min(420px, 100%); overflow:hidden; border-radius:10px; background:#fff; box-shadow:0 20px 60px rgb(0 0 0 / .18); animation:monte .35s var(--ressort) both; }
.fenetre h3 { margin:0; padding:16px 20px; border-bottom:1px solid var(--line); font-size:17px; font-weight:600; }
.fenetre p { margin:0; padding:16px 20px; font-size:14px; color:var(--muted); }
.fenetre .pied { display:flex; justify-content:flex-end; gap:8px; padding:12px 20px; border-top:1px solid var(--line); background:var(--bg); }
@keyframes fondu { from { opacity:0; } }

.vide-dash { max-width:560px; }
.vide-dash p { color:var(--muted); font-size:14.5px; }
.menu-tel { display:none; }
@media (max-width:760px) {
  body.dash { grid-template-columns:1fr; }
  .side { position:static; height:auto; flex-direction:row; align-items:center; gap:4px; padding:10px 12px; border-right:0; border-bottom:1px solid var(--line); overflow-x:auto; }
  .marque { padding:4px 8px 4px 0; }
  .nav-item { width:auto; white-space:nowrap; }
  .side-vide, .side-foot .email { display:none; }
  .side-foot { margin:0; padding:0; border:0; }
  .principal { padding:28px 16px 48px; }
  .var { grid-template-columns:1fr 30px; } .var input:first-child { grid-column:1 / -1; }
}
@media (prefers-reduced-motion:reduce) { *, *::before { animation:none !important; transition:none !important; } }
