/* 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; }
.preview-devices { display: inline-flex; gap: 2px; margin-left: 10px; background: #efece8; border-radius: 8px; padding: 2px; }
.dev-btn { border: 0; background: transparent; cursor: pointer; font-size: 13px; line-height: 1; padding: 4px 8px; border-radius: 6px; opacity: .5; transition: opacity .15s, background .15s, box-shadow .15s; }
.dev-btn:hover { opacity: .85; }
.dev-btn.is-active { background: #fff; opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.preview-frame.is-mobile { background: #e8e5e1; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 16px 0; }
.preview-frame.is-mobile iframe { width: 390px; max-width: 90%; height: calc(100% - 32px); flex: 0 0 auto; border-radius: 24px; box-shadow: 0 14px 44px rgba(0,0,0,.22); border: 1px solid rgba(0,0,0,.14); background: #fff; }
.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; }
/* Mobile : champs à 16px pour empêcher le zoom automatique d'iOS au focus (UX d'édition). */
@media (max-width: 560px) {
  .ed-field input, .ed-field textarea, .acc-field input, .domain-add-row input, #authEmail, #authPass, #desc, #aiChatInput { font-size: 16px; }
}
/* Alerte solde de crédits bas (≤ 15) sur le compteur. */
#creditChip.is-low { color: #b45309; background: #fff7ed; }
/* Bouton flottant mobile « voir l'aperçu » (l'aperçu est empilé sous l'éditeur sur téléphone). */
#mobilePreviewBtn { position: fixed; right: 14px; bottom: 14px; z-index: 50; background: #111; color: #fff; border: 0; border-radius: 999px; padding: 11px 17px; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.28); cursor: pointer; }
@media (min-width: 861px) { #mobilePreviewBtn { display: none !important; } }
.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; }

/* Bouton officiel « Continuer avec Google » (rendu par Google dans ce cadre) */
.gis-wrap { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 2px; }
.gis-wrap[hidden] { display: none; }

/* Partir d'un modèle (création sans IA) */
.tpl-section { margin-top: 26px; }
.tpl-or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 14px; }
.tpl-or::before, .tpl-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tpl-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.tpl-hint { margin-top: 0; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tpl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 12px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.tpl-card:hover { border-color: var(--ink-soft); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31, 42, 68, 0.08); }
.tpl-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tpl-card:disabled { cursor: progress; opacity: 0.6; transform: none; box-shadow: none; }
.tpl-card.is-loading { opacity: 1; border-color: var(--ink); }
.tpl-swatch { position: relative; display: block; width: 100%; height: 54px; border-radius: 9px; margin-bottom: 6px; border: 1px solid rgba(0, 0, 0, 0.06); overflow: hidden; }
.tpl-swatch.has-thumb { height: auto; aspect-ratio: 16 / 10; }
/* Rendu à 1280 px de large, réduit à la largeur de la carte (≈ 1/6). */
.tpl-thumb { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform: scale(0.16); transform-origin: 0 0; pointer-events: none; background: #fff; }
.tpl-name { font-size: 13.5px; font-weight: 600; }
.tpl-desc { font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 420px) { .tpl-grid { grid-template-columns: 1fr; } }

/* 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; }

/* Connecter mon domaine */
.domain-section { margin-bottom: 12px; }
.domain-toggle { font-size: 12.5px; padding: 6px 0; }
.domain-panel { border: 1px solid var(--line, #e6e1d8); border-radius: 12px; padding: 12px 13px; margin-top: 4px; background: #fbfaf7; }
.domain-intro { font-size: 12.5px; color: var(--ink-soft, #6a6256); margin: 0 0 9px; }
.domain-intro code { background: #efece5; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.domain-add-row { display: flex; gap: 7px; }
.domain-add-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line, #d9d3c8); border-radius: 9px; font-size: 13px; font-family: inherit; }
.domain-note { font-size: 12.5px; margin-top: 9px; padding: 8px 10px; border-radius: 9px; background: #fdf6e8; border: 1px solid #f0e0b8; color: #7a5b14; word-break: break-word; }
.domain-note.is-error { background: #fdecec; border-color: #f3c6c6; color: #9a2b2b; }
.domain-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.domain-card { border: 1px solid var(--line, #e6e1d8); border-radius: 10px; padding: 10px 11px; background: #fff; font-size: 12.5px; }
.domain-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.domain-card-host { font-weight: 600; word-break: break-all; }
.domain-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.domain-badge.ok { background: #e3f6ea; color: #1c6b3f; }
.domain-badge.wait { background: #fdf6e8; color: #8a6512; }
.domain-badge.err { background: #fdecec; color: #9a2b2b; }
.domain-dns { margin-top: 9px; border-top: 1px dashed var(--line, #e6e1d8); padding-top: 9px; }
.domain-dns-row { display: grid; grid-template-columns: 56px 1fr; gap: 4px 8px; font-size: 11.5px; margin-bottom: 7px; }
.domain-dns-row .k { color: var(--ink-soft, #6a6256); }
.domain-dns-row .v { font-family: var(--mono, 'JetBrains Mono', monospace); word-break: break-all; background: #f6f3ee; padding: 2px 6px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; }
.domain-copy { cursor: pointer; border: none; background: none; font-size: 12px; opacity: .6; padding: 0; }
.domain-copy:hover { opacity: 1; }
.domain-remove { cursor: pointer; border: none; background: none; color: #9a2b2b; font-size: 11.5px; text-decoration: underline; padding: 0; }
.domain-apex { font-size: 11.5px; color: var(--ink-soft, #6a6256); margin-top: 4px; }
.domain-find { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line, #e6e1d8); }
.domain-buy-form { margin-top: 10px; padding: 10px; border: 1px solid var(--line, #e6e1d8); border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 7px; }
.domain-buy-form input:not([type]), .domain-buy-form input[type="email"], .domain-buy-form input[type="tel"] { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line, #d9d3c8); border-radius: 9px; font-size: 13px; font-family: inherit; }
.dbf-row { display: flex; gap: 7px; }
.dbf-row[hidden] { display: none; }
.dbf-type { display: flex; gap: 14px; font-size: 13px; }
.dbf-accept { font-size: 12px; line-height: 1.45; color: var(--ink-soft, #6a6256); }
.domain-orders { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.domain-order { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12.5px; padding: 8px 10px; border: 1px solid var(--line, #e6e1d8); border-radius: 9px; background: #fff; }
.domain-order .st { font-size: 11.5px; color: var(--ink-soft, #6a6256); text-align: right; }
.domain-note code {background: #efece5; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.domain-noyet {font-size: 12px; color: var(--ink-soft, #6a6256); margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line, #e6e1d8); }

/* Espace client */
.acc-section { margin-bottom: 22px; }
.acc-field { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; font-size: 13.5px; }
.acc-field span { width: 64px; color: var(--ink-soft, #6a6256); flex: none; }
.acc-field input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line, #d9d3c8); border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; }
.acc-field input[readonly] { background: #f6f3ee; color: var(--ink-soft, #6a6256); }
.acc-plan { font-size: 14px; margin: 0 0 12px; }
.acc-plan b { font-weight: 600; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-card { text-align: left; cursor: pointer; border: 1.5px solid var(--line, #e6e1d8); background: #fff; border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; transition: border-color .15s, background .15s; }
.mode-card b { font-size: 14.5px; font-weight: 600; }
.mode-card span { font-size: 12px; line-height: 1.5; color: var(--ink-soft, #6a6256); }
.mode-card:hover { border-color: var(--accent, #b6452c); }
.mode-card.is-sel { border-color: var(--accent, #b6452c); background: color-mix(in srgb, var(--accent, #b6452c) 7%, #fff); }
.acc-credits { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-cred-now { display: flex; align-items: baseline; gap: 8px; }
.acc-cred-num { font-size: 30px; font-weight: 600; color: var(--accent, #b6452c); line-height: 1; }
.acc-cred-lbl { font-size: 13px; color: var(--ink-soft, #6a6256); }
.acc-cred-meta { font-size: 12.5px; color: var(--ink-soft, #6a6256); text-align: right; }
.acc-cred-bar { height: 7px; background: #ece8e0; border-radius: 999px; overflow: hidden; margin: 10px 0 0; }
.acc-cred-bar > span { display: block; height: 100%; background: var(--accent, #b6452c); border-radius: 999px; transition: width .4s; }
.acc-cred-bar.is-low > span { background: #c0392b; }
.acc-btns { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.acc-hist { margin-top: 14px; }
.acc-hist summary { cursor: pointer; font-size: 13px; color: var(--ink-soft, #6a6256); }
.acc-hist-list { margin-top: 8px; max-height: 180px; overflow-y: auto; }
.acc-hist-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--line, #f0ede6); }
.acc-hist-row .h-act { color: var(--ink, #2a2a28); }
.acc-hist-row .h-date { color: var(--ink-soft, #9a9389); flex: none; }
.acc-hist-row .h-cr { font-weight: 600; flex: none; }
.acc-hist-row .h-cr.neg { color: #c0392b; }
.acc-hist-row .h-cr.pos { color: #1c6b3f; }
.acc-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e6e1d8); }
@media (max-width: 560px) { .mode-grid { grid-template-columns: 1fr; } }

/* 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; }
.chat-chips { display:flex; flex-wrap:wrap; gap:7px; margin-top:2px; }
.chat-chip { border:1px solid var(--line); background:var(--card); color:var(--ink); border-radius:999px; padding:7px 13px; font-size:12.5px; cursor:pointer; transition:background .15s, border-color .15s, transform .15s; }
.chat-chip:hover { background:color-mix(in oklab, var(--accent) 14%, var(--card)); border-color:var(--accent); transform:translateY(-1px); }
@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; }

/* --- Sélecteur de mode (Simple ↔ Sur-mesure) dans l'éditeur --- */
.mode-switch { display: flex; gap: 4px; padding: 4px; background: #f1ecec; border: 1px solid var(--line); border-radius: 999px; margin: 0 0 14px; }
.mode-switch-btn { flex: 1; background: none; border: none; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.mode-switch-btn:hover { color: var(--ink); }
.mode-switch-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(31, 42, 68, 0.12); }

/* --- Panneau mode sur-mesure --- */
.code-panel { border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; background: linear-gradient(180deg, #fff, #fbf8f9); text-align: center; }
.code-panel-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.code-panel h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.code-panel p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.code-panel-hint { font-size: 12px !important; color: var(--ink-soft); opacity: .85; font-style: italic; }
.code-view { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.code-view summary { cursor: pointer; padding: 9px 12px; font-size: 12.5px; color: var(--ink-soft); background: #fcfafb; user-select: none; }
.code-view pre { margin: 0; padding: 12px; max-height: 320px; overflow: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; line-height: 1.5; color: #2a2540; background: #faf8f9; white-space: pre-wrap; word-break: break-word; }

/* --- Paires de police recommandées (1 clic) --- */
.font-pairs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 4px; }
.font-pairs-lab { font-size: 11px; color: var(--ink-soft); margin-right: 2px; }
.font-pair { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s; }
.font-pair:hover { border-color: var(--accent, #b6452c); }
.font-pair.is-on { border-color: var(--near-black); background: color-mix(in srgb, var(--near-black) 6%, #fff); }

/* --- Barre de style par texte (édition inline) --- */
.inline-tb { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #1b1b22; border-radius: 999px; box-shadow: 0 10px 34px rgba(0,0,0,.28); color: #fff; }
.inline-tb .itb-lbl { font-size: 12px; color: #b9b6c6; padding: 0 6px 0 4px; }
.inline-tb button { background: rgba(255,255,255,.08); border: none; color: #fff; width: 32px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background .12s; }
.inline-tb button:hover { background: rgba(255,255,255,.2); }
.inline-tb button.on { background: #5b8cff; }
.inline-tb .itb-x { background: transparent; color: #b9b6c6; font-size: 18px; }
/* Mobile : la barre d'édition fixe ne doit pas déborder de l'écran (était centrée + largeur libre). */
@media (max-width: 560px) {
  .inline-tb { top: 8px; left: 8px; right: 8px; transform: none; max-width: calc(100vw - 16px); overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .inline-tb .itb-lbl { display: none; }
}
.inline-tb .itb-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.inline-tb .itb-color { position: relative; width: 32px; height: 30px; border-radius: 8px; overflow: hidden; cursor: pointer; display: inline-flex; }
.inline-tb .itb-color span { position: absolute; inset: 0; background: linear-gradient(135deg,#ff5f6d,#ffc371,#5b8cff); pointer-events: none; }
.inline-tb .itb-color input { position: absolute; inset: -4px; width: 200%; height: 200%; border: none; padding: 0; cursor: pointer; opacity: 0; }
.inline-tb .itb-font { background: rgba(255,255,255,.08); color: #fff; border: none; border-radius: 8px; height: 30px; padding: 0 6px; font-size: 12px; cursor: pointer; max-width: 120px; }
.inline-tb .itb-font option { color: #111; }

/* --- Import logo (Identité) --- */
.ed-logo-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ed-logo-thumb { height: 40px; width: auto; max-width: 120px; border: 1px solid var(--line); border-radius: 8px; background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 14px 14px; padding: 4px; }
.ed-logo-detour { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); margin-top: 7px; cursor: pointer; }
.ed-logo-detour input { width: auto; }
.ed-logo-status { font-size: 12px; color: var(--ink-soft); margin-top: 6px; display: block; }
