/* MAIA Studio — habillage de l'app (DA MAIA : beige rosé, marine, accent rosé, presque-noir). */
:root {
  --bg: #f6f1f2;
  --ink: #1f2a44;
  --ink-soft: #3d4a66;
  --accent: #e8d5d7;
  --near-black: #030213;
  --card: #ffffff;
  --line: rgba(31, 42, 68, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 20px; letter-spacing: -0.01em; }
.brand .logo { font-weight: 500; color: var(--ink); }
.brand .studio { font-weight: 300; color: var(--ink-soft); margin-left: 6px; }
.tag { font-size: 13px; color: var(--ink-soft); font-weight: 300; }

.layout {
  display: flex;
  gap: 20px;
  padding: 20px;
  height: calc(100vh - 65px);
}

.chat {
  flex: 0 0 38%;
  min-width: 320px;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: block;
  overflow: auto;
}
.chat h1 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; margin: 0 0 8px; }
.hint { font-size: 14px; color: var(--ink-soft); font-weight: 300; margin: 0 0 18px; line-height: 1.5; }

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
  background: #fcfafb;
}
textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.chip {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  line-height: 1.3;
  text-align: left;
}
.chip:hover { filter: brightness(0.97); }

.btn {
  margin-top: 16px;
  width: 100%;
  background: var(--near-black);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }

.note { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; min-height: 18px; font-weight: 300; }

.preview {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbf9fa;
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.preview-title { font-size: 13px; color: var(--ink-soft); margin-left: 8px; font-weight: 300; }
.ai-badge {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 11px;
}

.preview-frame { position: relative; flex: 1; background: #fff; }
.preview-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  gap: 4px;
}
.empty-emoji { font-size: 40px; margin-bottom: 6px; }
.empty p { margin: 2px; font-weight: 300; }
.empty .small { font-size: 13px; opacity: 0.8; }
.empty[hidden] { display: none; }

@media (max-width: 820px) {
  .layout { flex-direction: column; height: auto; padding: 14px; gap: 14px; }
  .chat { max-width: none; flex: none; padding: 22px; }
  .preview { min-height: 72vh; }
  .editor-toolbar { top: -22px; }
}

/* Téléphone : on resserre, on évite tout débordement horizontal. */
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px; }
  .tag { display: none; }                 /* phrase trop longue pour un petit écran */
  .topbar-right { gap: 8px; }
  .chat { padding: 18px; }
  .chat h1 { font-size: 21px; }
  .editor-toolbar { flex-wrap: wrap; gap: 6px; top: -16px; }
  .editor-actions { width: 100%; justify-content: flex-end; }
  .btn-mini { padding: 9px 13px; }        /* cibles tactiles plus confortables */
  .btn-ghost { padding: 9px 6px; }
  .ed-theme { gap: 12px; }
  .gate-card { padding: 26px 22px; }
  .site-act { padding: 9px 11px; }        /* renommer / supprimer : doigt-friendly */
}

/* ---------- Éditeur visuel ---------- */
.editor-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  position: sticky; top: -28px; background: var(--card); padding: 6px 0 12px; margin: -4px 0 8px;
  border-bottom: 1px solid var(--line); z-index: 2;
}
.editor-title { font-size: 13px; color: var(--ink-soft); }
.btn-ghost { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 14px; padding: 6px 4px; }
.btn-ghost:hover { color: var(--ink); }
.btn-mini { background: var(--near-black); color: #fff; border: none; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; }

.ed-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-soft); margin: 18px 0 8px; }
.ed-theme { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; padding: 4px 0 2px; }
.ed-theme label { font-size: 11px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 5px; }
.ed-theme input[type="color"] { width: 44px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 2px; cursor: pointer; }
.ed-theme select { border: 1px solid var(--line); border-radius: 8px; padding: 7px; font: inherit; font-size: 13px; background: #fff; }

.ed-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #fcfafb; }
.ed-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ed-card-head .lbl { font-weight: 500; font-size: 13px; }
.ed-card-head .tools { display: flex; gap: 2px; }
.ed-card-head .tools button { background: none; border: none; cursor: pointer; font-size: 15px; color: var(--ink-soft); padding: 2px 5px; border-radius: 6px; }
.ed-card-head .tools button:hover { background: var(--accent); }
.ed-field { margin-bottom: 8px; }
.ed-field label { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 3px; }
.ed-field input, .ed-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
.ed-field textarea { resize: vertical; }
.ed-item { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.ed-item-row { display: flex; gap: 6px; align-items: center; }
.ed-item-row input { flex: 1; }
.ed-del { color: #c0392b; background: none; border: none; cursor: pointer; font-size: 16px; padding: 2px 6px; }
.ed-add { background: none; border: 1px dashed var(--line); border-radius: 8px; padding: 7px; width: 100%; cursor: pointer; color: var(--ink-soft); font-size: 12px; margin-top: 4px; }
.ed-add:hover { border-color: var(--ink-soft); }

/* Champ image de fond (hero) */
.ed-thumb { width: 100%; height: 120px; background-size: cover; background-position: center; border-radius: 8px; border: 1px solid var(--line); }
.ed-img-remove { margin-top: 6px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 12px; color: #c0392b; }
.ed-img-remove:hover { border-color: #c0392b; }
.ed-img-input { width: 100%; font-size: 12px; cursor: pointer; }
.ed-img-status { font-size: 11px; color: var(--ink-soft); margin: 6px 0 0; min-height: 14px; }

/* Indicateur « non enregistré » */
.dirty-dot { font-size: 11.5px; color: #c0392b; align-self: center; margin-right: 2px; white-space: nowrap; }

/* Barre « Ajouter une section » */
.ed-addsection { margin-top: 14px; }
.ed-addsection-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-addsection-btn { background: none; border: 1px dashed var(--line); border-radius: 999px; padding: 8px 13px; cursor: pointer; font-size: 12.5px; color: var(--ink-soft); }
.ed-addsection-btn:hover { border-color: var(--ink-soft); color: var(--ink); background: #fff; }

/* Onglets de pages (multi-pages) */
.ed-pagetabs { margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.ed-tabrow { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-tab { background: #fcfafb; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink-soft); }
.ed-tab:hover { border-color: var(--ink-soft); color: var(--ink); }
.ed-tab.on { background: var(--near-black); color: #fff; border-color: var(--near-black); }
.ed-tab-add { border-style: dashed; color: var(--ink-soft); }
.ed-page-acts { display: flex; gap: 8px; margin-top: 10px; }
.ed-page-act { background: none; border: none; cursor: pointer; font: inherit; font-size: 12px; color: var(--ink-soft); text-decoration: underline; padding: 2px 0; }
.ed-page-act:hover { color: var(--ink); }

/* Modal forfaits */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(3, 2, 19, 0.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--card); border-radius: var(--radius); width: min(880px, 96vw); max-height: 92vh; overflow: auto; padding: 30px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal-title { font-size: 22px; font-weight: 500; margin: 0 0 6px; }
.modal-sub { font-size: 14px; color: var(--ink-soft); font-weight: 300; margin: 0 0 22px; }
.modal-note { font-size: 12.5px; color: var(--ink-soft); margin: 16px 0 0; min-height: 16px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: #fcfafb; }
.plan-card.current { border-color: var(--ink); background: #fff; }
.plan-name { font-size: 16px; font-weight: 600; }
.plan-price { font-size: 24px; font-weight: 600; margin: 2px 0; }
.plan-price small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.plan-feat { font-size: 13px; color: var(--ink-soft); }
.plan-feat.wl { color: var(--ink); font-weight: 500; }
.plan-cta { margin-top: auto; padding-top: 10px; }
.plan-cta button { width: 100%; border: none; border-radius: 999px; padding: 11px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--near-black); color: #fff; }
.plan-cta button:hover { transform: translateY(-1px); }
.plan-cta button:disabled { opacity: 0.5; cursor: default; transform: none; }
.plan-badge { display: inline-block; font-size: 11px; color: var(--ink-soft); background: var(--accent); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }

/* ---------- Porte d'accès (mot de passe) ---------- */
.gate { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 50; }
.gate-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; width: min(360px, 90vw); text-align: center; box-shadow: 0 12px 44px rgba(0, 0, 0, 0.08); }
.gate-logo { font-size: 22px; margin-bottom: 14px; }
.gate-logo .logo { font-weight: 500; color: var(--ink); }
.gate-text { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.gate input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; font-size: 15px; margin-bottom: 12px; background: #fcfafb; }
.gate input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.gate-err { color: #c0392b; font-size: 13px; min-height: 16px; margin: 10px 0 0; }
.gate input + input { margin-top: 0; }
.gate-toggle { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); cursor: pointer; text-decoration: underline; }
.gate-toggle:hover { color: var(--ink); }
.gate-forgot { margin-top: 8px; font-size: 12.5px; }

/* En-tête : crédits + déconnexion */
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.credit-chip { font-size: 13px; color: var(--ink-soft); background: var(--accent); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }

/* Actions éditeur + liste « Vos sites » */
.editor-actions { display: flex; align-items: center; gap: 8px; }
.mysites { margin-top: 18px; }
.mysites-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-soft); margin-bottom: 8px; }
.site-item { display: block; width: 100%; text-align: left; background: #fcfafb; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.site-item:hover { border-color: var(--ink-soft); background: #fff; }
.publish-info { font-size: 12.5px; background: #eaf7ef; border: 1px solid #bfe6cf; color: #1c6b3f; border-radius: 10px; padding: 9px 11px; margin-bottom: 12px; word-break: break-all; }
.publish-info a { color: #1c6b3f; font-weight: 500; }

/* Liste sites : ligne avec actions renommer/supprimer */
.site-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.site-row .site-item { flex: 1; margin-bottom: 0; }
.site-act { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; cursor: pointer; font-size: 13px; line-height: 1; }
.site-act:hover { border-color: var(--ink-soft); background: #fff; }
.link-danger { display: inline-block; margin-top: 18px; background: none; border: none; color: #c0392b; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* Bandeau d'accueil (première visite) */
.onboard { position: relative; background: var(--accent); border-radius: 12px; padding: 14px 40px 14px 16px; margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.onboard strong { font-weight: 600; }
.onboard .ob-steps { margin: 8px 0 0; padding: 0; list-style: none; }
.onboard .ob-steps li { margin: 3px 0; }
.onboard .ob-close { position: absolute; top: 8px; right: 10px; background: none; border: none; cursor: pointer; font-size: 19px; line-height: 1; color: var(--ink-soft); padding: 2px 4px; }
.onboard .ob-close:hover { color: var(--ink); }
.onboard[hidden] { display: none; }

/* --- Connexion : bouton Google, séparateur « ou », case CGV (Jalon 1) --- */
.btn-google { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:11px 14px; margin-bottom:10px; background:#fff; color:#3c4043; border:1px solid #dadce0; border-radius:10px; font-size:15px; font-weight:500; cursor:pointer; transition:background .15s, box-shadow .15s; }
.btn-google:hover { background:#f7f8f8; box-shadow:0 1px 3px rgba(60,64,67,.15); }
.auth-or { display:flex; align-items:center; text-align:center; color:var(--ink-soft, #9a8f8a); font-size:13px; margin:6px 0 10px; }
.auth-or::before, .auth-or::after { content:""; flex:1; height:1px; background:rgba(0,0,0,.10); }
.auth-or span { padding:0 12px; }
.cgv-row { display:flex; align-items:flex-start; gap:8px; width:100%; box-sizing:border-box; font-size:13px; line-height:1.45; text-align:left; margin:4px 0 14px; color:var(--ink-soft, #6b6360); cursor:pointer; }
.cgv-row input { flex:0 0 auto; width:16px; height:16px; min-width:16px; margin:3px 0 0; cursor:pointer; }
.cgv-row a { color:var(--accent, #b6452c); text-decoration:underline; }
/* L'attribut hidden doit toujours l'emporter (sinon display:flex le réaffiche par erreur) */
[hidden] { display: none !important; }
/* Le texte de la case CGV reste DANS la carte (wrap propre) */
.cgv-row span { flex: 1; min-width: 0; }

/* --- Chat d'édition par IA dans l'éditeur (Jalon 1) --- */
.ai-chat { margin: 0 0 16px; padding: 12px; background: var(--accent-soft, #f3ece9); border: 1px solid rgba(0,0,0,.07); border-radius: 12px; }
.ai-chat-row { display: flex; gap: 8px; align-items: center; }
.ai-chat-row input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid rgba(0,0,0,.14); border-radius: 9px; font-size: 14px; background: #fff; box-sizing: border-box; }
.ai-chat-row .btn-mini { white-space: nowrap; flex: 0 0 auto; }
.ai-chat-status { font-size: 12.5px; margin: 7px 2px 0; min-height: 1em; color: var(--ink-soft, #6b6360); }

/* --- Studio conversationnel : fil de discussion (Jalon 1) --- */
.chat-log { display:flex; flex-direction:column; gap:8px; max-height:300px; overflow-y:auto; margin-bottom:10px; }
.chat-log:empty { display:none; }
.chat-msg { font-size:13.5px; line-height:1.5; padding:9px 12px; border-radius:12px; max-width:92%; white-space:pre-wrap; overflow-wrap:anywhere; }
.chat-user { align-self:flex-end; background:var(--near-black, #030213); color:#fff; border-bottom-right-radius:4px; }
.chat-assistant { align-self:flex-start; background:#fff; color:var(--ink, #1f2a44); border:1px solid rgba(0,0,0,.08); border-bottom-left-radius:4px; }
.chat-assistant.streaming::after { content:'▍'; margin-left:1px; animation:maiaBlink 1s steps(2,start) infinite; }
@keyframes maiaBlink { 50% { opacity:0; } }

/* Modal forfaits & recharge : titres de section + packs */
.modal-section-title { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft, #6b6b6b); margin: 20px 0 10px; text-align: left; }
.packs-section { margin-top: 4px; }
.modal-sub.small { font-size: 13px; opacity: .85; }

/* « Compteur de magie » : toast premium (slide-up + fade) */
.magic-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(16px); z-index: 60; background: var(--near-black); color: #fff; padding: 14px 24px; border-radius: 14px; box-shadow: 0 14px 44px rgba(3, 2, 19, .30); display: flex; flex-direction: column; gap: 3px; max-width: 90vw; text-align: center; opacity: 0; transition: opacity .35s ease, transform .4s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.magic-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.magic-toast strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.magic-toast span { font-size: 13px; opacity: .82; }

/* Historique des versions */
.history-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; margin-top: 6px; }
.hist-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.hist-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hist-when { font-size: 14px; font-weight: 500; color: var(--ink); }
.hist-src { font-size: 12px; color: var(--ink-soft); }

/* ===== Landing d'acquisition MAIA Studio (éditorial premium, ADN maiatech × maiasolution) ===== */
.btn-cta-sm { background: var(--near-black); color: #fff; border: 0; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 500; cursor: pointer; }
.gate-back { position: absolute; top: 16px; left: 18px; background: none; border: 0; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.gate-back:hover { color: var(--ink); }

.landing { --lp-ink:#1f2a44; --lp-dim:#5a6275; --lp-rose:#e8d5d7; --lp-rose-d:#b06a72; --lp-line:rgba(31,42,68,.10); --lp-nb:#030213;
  background:#f7f2f0; color:var(--lp-ink); font-family:'Inter Tight',-apple-system,'Segoe UI',sans-serif; font-weight:300; line-height:1.6; overflow:hidden; }
.landing h1, .landing h2, .landing h3 { font-family:'Fraunces',Georgia,serif; font-weight:400; letter-spacing:-.01em; }
.landing em { font-style:italic; color:var(--lp-rose-d); }
.lp-mono { font-family:'JetBrains Mono',ui-monospace,monospace; font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--lp-rose-d); }

.lp-nav { max-width:1180px; margin:0 auto; padding:26px 32px 0; display:flex; align-items:center; justify-content:space-between; }
.lp-brand { font-family:'Fraunces',serif; font-size:22px; color:var(--lp-ink); }
.lp-brand i { font-style:normal; color:var(--lp-rose-d); }
.lp-nav-r { display:flex; align-items:center; gap:18px; }
.lp-link { background:none; border:0; color:var(--lp-dim); font:inherit; font-size:14px; cursor:pointer; }
.lp-link:hover { color:var(--lp-ink); }
.lp-navcta { background:var(--lp-nb); color:#fff; border:0; border-radius:999px; padding:10px 20px; font:inherit; font-size:14px; font-weight:500; cursor:pointer; }
.lp-navcta:hover { opacity:.88; }

.lp-hero { max-width:1180px; margin:0 auto; padding:clamp(44px,7vw,92px) 32px clamp(40px,6vw,80px); display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(28px,5vw,60px); align-items:center; }
.lp-hero-text h1 { font-size:clamp(40px,5.4vw,76px); line-height:1.04; margin:20px 0 22px; color:var(--lp-nb); }
.lp-lead { font-size:clamp(16px,1.5vw,19px); color:var(--lp-dim); max-width:520px; margin:0 0 32px; }
.lp-lead strong { color:var(--lp-ink); font-weight:500; }
.lp-cta-row { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.lp-cta { background:var(--lp-nb); color:#fff; border:0; border-radius:999px; padding:16px 30px; font:inherit; font-size:16px; font-weight:500; cursor:pointer; transition:transform .2s, box-shadow .2s; }
.lp-cta:hover { transform:translateY(-2px); box-shadow:0 14px 38px rgba(3,2,19,.20); }
.lp-note { font-size:13px; color:var(--lp-dim); }

.lp-browser { border:1px solid var(--lp-line); border-radius:14px; overflow:hidden; background:#fff; box-shadow:0 30px 70px rgba(31,42,68,.16); }
.lp-bbar { display:flex; align-items:center; gap:7px; padding:12px 14px; border-bottom:1px solid var(--lp-line); background:#fbf8f7; }
.lp-bbar i { width:11px; height:11px; border-radius:50%; background:rgba(31,42,68,.16); }
.lp-burl { margin-left:12px; font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--lp-dim); }
.lp-browser img { display:block; width:100%; height:auto; aspect-ratio:16/10.2; object-fit:cover; }

.lp-band, .lp-steps-sec { max-width:1180px; margin:0 auto; padding:clamp(48px,7vw,88px) 32px; border-top:1px solid var(--lp-line); text-align:center; }
.lp-band h2, .lp-steps-sec h2 { font-size:clamp(28px,4vw,46px); line-height:1.1; margin:14px 0 0; color:var(--lp-nb); }
.lp-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:40px; }
.lp-card { margin:0; border:1px solid var(--lp-line); border-radius:14px; overflow:hidden; background:#fff; transition:transform .5s cubic-bezier(.22,1,.36,1), box-shadow .3s; }
.lp-card:hover { transform:translateY(-6px); box-shadow:0 20px 50px rgba(31,42,68,.14); }
.lp-card img { display:block; width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; }
.lp-card figcaption { font-family:'JetBrains Mono',monospace; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--lp-dim); padding:14px 16px; text-align:left; }

.lp-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:40px; text-align:left; }
.lp-step { border:1px solid var(--lp-line); border-radius:14px; padding:28px 26px; background:#fff; }
.lp-step-n { font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--lp-rose-d); }
.lp-feat-ic { font-size:26px; display:block; }
.lp-step h3 { font-size:21px; margin:12px 0 8px; color:var(--lp-ink); }
.lp-step p { font-size:15px; color:var(--lp-dim); margin:0; }

/* Section finale : bande sombre (le seul moment dark) pour le contraste premium */
.lp-final { background:var(--lp-nb); color:#fff; text-align:center; padding:clamp(56px,8vw,96px) 32px; margin-top:clamp(40px,6vw,72px); }
.lp-final .lp-mono { color:var(--lp-rose); }
.lp-final h2 { font-size:clamp(30px,4.5vw,52px); margin:10px 0 14px; color:#fff; }
.lp-final em { color:var(--lp-rose); }
.lp-final .lp-lead { color:rgba(255,255,255,.72); margin:0 auto 30px; }
.lp-final .lp-cta { background:var(--lp-rose); color:#3a1f25; }
.lp-final .lp-cta:hover { box-shadow:0 14px 38px rgba(232,213,215,.28); }
.lp-final .lp-link { color:rgba(255,255,255,.82); }
.lp-foot { max-width:1180px; margin:0 auto; padding:30px 32px 56px; text-align:center; font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--lp-dim); }
.lp-foot a { color:var(--lp-ink); text-decoration:underline; }

@media (max-width:860px){ .lp-hero{ grid-template-columns:1fr; text-align:center; } .lp-lead{ margin-left:auto; margin-right:auto; } .lp-cta-row{ justify-content:center; } .lp-grid,.lp-steps{ grid-template-columns:1fr; } .lp-card figcaption{ text-align:center; } .lp-nav{ padding-top:20px; } }

/* ===== Landing v2 : nav sticky, démo animée, faits, écosystème, FAQ ===== */
.lp-nav { position:sticky; top:0; z-index:20; background:rgba(247,242,240,.82); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }

/* Hero : démo « on parle → le site se construit » */
.lp-demo { position:relative; }
.lp-demo-browser { background:#fff; }
.lp-demo-canvas { padding:18px; display:flex; flex-direction:column; gap:14px; min-height:330px; background:#fff; }
.db { opacity:0; transform:translateY(12px); transition:opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.db.on { opacity:1; transform:none; }
.db-hero { background:#fbeef0; border-radius:10px; padding:18px 16px; display:flex; flex-direction:column; gap:9px; align-items:flex-start; }
.db-kick { width:64px; height:7px; border-radius:4px; background:var(--lp-rose-d); opacity:.7; }
.db-title { width:62%; height:17px; border-radius:5px; background:rgba(31,42,68,.82); }
.db-sub { width:42%; height:9px; border-radius:4px; background:rgba(31,42,68,.30); }
.db-btn { width:92px; height:22px; border-radius:999px; background:var(--lp-nb); margin-top:4px; }
.db-about { display:flex; flex-direction:column; gap:8px; padding:2px 4px; }
.db-line { height:9px; border-radius:4px; background:rgba(31,42,68,.16); }
.w80{width:80%}.w95{width:95%}.w55{width:55%}
.db-menu { display:flex; flex-direction:column; gap:10px; padding:2px 4px; }
.db-item { display:flex; align-items:center; justify-content:space-between; }
.db-item b { width:46%; height:10px; border-radius:4px; background:rgba(31,42,68,.42); }
.db-item u { width:34px; height:10px; border-radius:4px; background:var(--lp-rose-d); opacity:.6; }
.db-contact { display:flex; justify-content:center; padding:4px; }
.db-phone { width:150px; height:14px; border-radius:5px; background:rgba(31,42,68,.6); }

.lp-chatbubble { position:absolute; left:-14px; top:-18px; display:flex; gap:10px; align-items:flex-start; background:#fff; border:1px solid var(--lp-line); border-radius:14px; padding:12px 14px; max-width:84%; box-shadow:0 14px 34px rgba(31,42,68,.16); }
.lp-chat-av { flex:none; width:26px; height:26px; border-radius:50%; background:var(--lp-rose); color:#7a3b45; display:flex; align-items:center; justify-content:center; font-size:13px; }
.lp-chat-body { font-size:13.5px; line-height:1.45; }
.lp-chat-u { color:var(--lp-ink); min-height:19px; }
.lp-chat-u::after { content:'▌'; color:var(--lp-rose-d); animation:lpCaret 1s step-end infinite; }
@keyframes lpCaret { 50%{opacity:0} }
.lp-chat-m { color:var(--lp-dim); margin-top:4px; opacity:0; transition:opacity .3s; display:flex; align-items:center; gap:6px; }
.lp-chat-m.on { opacity:1; }
.lp-dots { display:inline-flex; gap:3px; }
.lp-dots i { width:4px; height:4px; border-radius:50%; background:var(--lp-rose-d); animation:lpDot 1.1s infinite; }
.lp-dots i:nth-child(2){ animation-delay:.18s } .lp-dots i:nth-child(3){ animation-delay:.36s }
@keyframes lpDot { 0%,60%,100%{opacity:.25; transform:translateY(0)} 30%{opacity:1; transform:translateY(-2px)} }

/* Barre de faits (preuve honnête, pas de fausses stats) */
.lp-facts { max-width:1180px; margin:0 auto; padding:22px 32px; display:flex; flex-wrap:wrap; gap:14px 30px; justify-content:center; border-top:1px solid var(--lp-line); border-bottom:1px solid var(--lp-line); }
.lp-facts span { font-size:13.5px; color:var(--lp-ink); display:inline-flex; align-items:center; gap:8px; }
.lp-facts b { font-size:15px; }

/* Section écosystème (le moat) — bande rosée douce */
.lp-eco { background:#f4e7e8; padding:clamp(56px,8vw,96px) 32px; margin-top:0; }
.lp-eco-in { max-width:720px; margin:0 auto; text-align:center; }
.lp-eco h2 { font-size:clamp(28px,4vw,46px); color:var(--lp-nb); margin:14px 0 16px; }
.lp-eco .lp-lead { margin:0 auto 28px; color:#5a4146; }
.lp-eco .lp-lead strong { color:var(--lp-nb); }

/* FAQ */
.lp-faq-list { max-width:720px; margin:34px auto 0; text-align:left; }
.lp-faq-list details { border-bottom:1px solid var(--lp-line); padding:6px 0; }
.lp-faq-list summary { cursor:pointer; list-style:none; padding:16px 36px 16px 4px; position:relative; font-size:17px; color:var(--lp-ink); font-family:'Inter Tight',sans-serif; font-weight:500; }
.lp-faq-list summary::-webkit-details-marker { display:none; }
.lp-faq-list summary::after { content:'+'; position:absolute; right:8px; top:14px; font-size:22px; color:var(--lp-rose-d); transition:transform .2s; }
.lp-faq-list details[open] summary::after { transform:rotate(45deg); }
.lp-faq-list p { margin:0 4px 16px; color:var(--lp-dim); font-size:15px; line-height:1.6; }

@media (max-width:860px){ .lp-chatbubble{ position:static; max-width:100%; margin-bottom:14px; } .lp-demo{ display:flex; flex-direction:column; } .lp-facts{ gap:12px 18px; } }

/* Deux façons d'avoir son site : self-service (app) vs clés en main (équipe MAIA TECH) */
.lp-choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; max-width:880px; margin:40px auto 0; text-align:left; }
.lp-choice-card { border:1px solid var(--lp-line); border-radius:16px; padding:30px 28px; background:#fff; display:flex; flex-direction:column; }
.lp-choice-feat { border:1.5px solid var(--lp-rose-d); box-shadow:0 18px 44px rgba(176,106,114,.14); }
.lp-choice-tag { font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--lp-rose-d); }
.lp-choice-card h3 { font-size:24px; margin:10px 0 8px; color:var(--lp-nb); }
.lp-choice-card > p { color:var(--lp-dim); font-size:15px; line-height:1.6; margin:0 0 14px; }
.lp-choice-price { font-size:15px; color:var(--lp-ink); margin:auto 0 18px !important; }
.lp-choice-price strong { font-size:24px; font-family:'Fraunces',Georgia,serif; }
.lp-choice-price span { display:block; font-size:13px; color:var(--lp-dim); margin-top:2px; }
.lp-choice-card .lp-cta { width:100%; text-align:center; }
.lp-cta-alt { background:#fff; color:var(--lp-nb); border:1.5px solid var(--lp-nb); text-decoration:none; box-sizing:border-box; }
.lp-cta-alt:hover { background:var(--lp-nb); color:#fff; box-shadow:none; }
@media (max-width:860px){ .lp-choice-grid{ grid-template-columns:1fr; } }

/* Démo enrichie : onde sonore (voix), bloc horaires, badge En ligne */
.lp-chat-u::after { content:none; }                                   /* l'ancien caret passe sur le texte */
.lp-chat-u { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.lp-chatbubble.speaking #lpDemoText::after { content:'▌'; color:var(--lp-rose-d); animation:lpCaret 1s step-end infinite; }
.lp-wave { display:none; align-items:center; gap:2.5px; height:15px; }
.lp-chatbubble.speaking .lp-wave { display:inline-flex; }
.lp-wave i { width:2.5px; height:4px; border-radius:2px; background:var(--lp-rose-d); animation:lpWave .85s infinite ease-in-out; }
.lp-wave i:nth-child(2){ animation-delay:.12s } .lp-wave i:nth-child(3){ animation-delay:.24s } .lp-wave i:nth-child(4){ animation-delay:.36s } .lp-wave i:nth-child(5){ animation-delay:.48s }
@keyframes lpWave { 0%,100%{ height:4px } 50%{ height:14px } }
.db-hours { display:flex; flex-direction:column; gap:9px; padding:2px 4px; }
.db-hrow { display:flex; align-items:center; justify-content:space-between; }
.db-hrow b { width:30%; height:9px; border-radius:4px; background:rgba(31,42,68,.4); }
.db-hrow u { width:24%; height:9px; border-radius:4px; background:rgba(31,42,68,.22); }
.lp-publish { margin-left:auto; font-family:'JetBrains Mono',monospace; font-size:11px; color:#1d7a4f; background:#e7f5ee; border-radius:999px; padding:3px 10px; opacity:0; transform:translateX(8px); transition:opacity .4s, transform .4s; }
.lp-publish.on { opacity:1; transform:none; }
