:root {
  --bg: #f3f3f8;
  --card: #ffffff;
  --text: #13163a;
  --muted: #5d6180;
  --border: #e2e3ee;
  --primary: #6d4cf5;
  --ac: var(--primary);
  --primary-dark: #5a38e6;
  --primary-soft: #eeeafe;
  --sidebar: #171a3c;
  --sidebar-active: #282d5c;
  --sidebar-text: #e9eaf7;
  --sidebar-muted: #9ea2c9;
  --ig: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  --fb: #1877f2;
  --radius: 14px;
  --sidebar-w: 254px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--primary); }
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 2rem 0 1rem; }
h3 { margin: 0 0 1rem; font-size: 1.02rem; font-weight: 600; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ================= Barre latérale (menu Studio Publie, aux couleurs de la marque) ================= */
body.app {
  --ac: var(--primary); --aci: #fff;
  --acs: color-mix(in srgb, var(--ac) 12%, #fff);
  --act: color-mix(in srgb, var(--ac) 70%, #1F1D47);
  background: color-mix(in srgb, var(--ac) 4%, #f6f6f9);
}
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: #fff; color: var(--text); border-right: 1px solid #eceaf2;
  display: flex; flex-direction: column; gap: 4px; padding: 1.1rem .9rem 1rem; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: .7rem; padding: .3rem .6rem 1.1rem; text-decoration: none; color: var(--text); }
.brand strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.brand small { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.brand-mark {
  width: 30px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, #ff4fa3, #8b5cf6 55%, #6d4cf5);
  clip-path: polygon(8% 0, 100% 50%, 8% 100%);
  border-radius: 4px;
}
.btn-create {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin: 0 0 1rem; min-height: 50px; padding: 0 1rem; border-radius: 999px;
  background: var(--ac); color: var(--aci);
  font-weight: 500; font-size: 1rem; text-decoration: none;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--ac) 70%, transparent);
}
.btn-create .icon { width: 18px; height: 18px; }
.btn-create:hover, .btn-create.active { filter: brightness(.95); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: .8rem; min-height: 46px;
  padding: 0 .8rem; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 400; font-size: .98rem;
}
.side-nav a .icon { width: 19px; height: 19px; color: #4b4f6b; }
.side-nav a:hover { background: #f4f3f8; }
.side-nav a.active { background: var(--acs); color: var(--act); font-weight: 500; }
.side-nav a.active .icon { color: var(--act); }
.nav-label { flex: 1; min-width: 0; }
.nav-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center;
  background: var(--ac); color: var(--aci); font-size: .75rem; font-weight: 600;
}
.side-sub { margin-top: auto; padding-top: .9rem; border-top: 1px solid #eceaf2; }
.side-sub a { min-height: 40px; font-size: .93rem; }
.side-logout { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; color: var(--muted);
  text-decoration: none; font-size: .9rem; }
.side-logout .icon { width: 17px; height: 17px; }
.side-logout:hover { background: #f4f3f8; color: var(--text); }

.workspace {
  display: flex; align-items: center; gap: .8rem;
  margin: .5rem 0 0; padding: .5rem; border-radius: 14px;
  background: #faf9fc; border: 1px solid #eceaf2;
}
.workspace strong { display: block; font-size: .95rem; }
.workspace small { display: block; font-size: .8rem; color: var(--muted); }
.sidebar .workspace { position: relative; }

.avatar {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .85rem;
}
.avatar-dark { width: 40px; height: 40px; border-radius: 12px; background: var(--ac); color: var(--aci); }

/* ================= Zone principale ================= */
.app .main { margin-left: var(--sidebar-w); min-height: 100vh; }
.content { max-width: 1120px; margin: 0 auto; padding: 1.8rem 2rem 3rem; }
.topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: .7rem;
  margin-bottom: 1.6rem; font-size: 1rem;
}
.topbar strong { font-weight: 600; }
.account-chip {
  display: flex; align-items: center; gap: .65rem; padding: .35rem .8rem .35rem .4rem;
  border-radius: 999px; color: var(--text); text-decoration: none; transition: background .15s;
}
.account-chip:hover, .account-chip.active { background: var(--primary-soft); text-decoration: none; }
.account-chip-text { display: flex; flex-direction: column; line-height: 1.2; }
.account-chip-text small { color: var(--muted); font-size: .78rem; }
.account-chip:hover .account-chip-text small, .account-chip.active .account-chip-text small { color: var(--primary); }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.4rem; }
.subtitle { color: var(--muted); margin: .4rem 0 0; max-width: 660px; font-size: 1.02rem; }

/* Onglets */
.tabs { display: flex; gap: 1.8rem; border-bottom: 1px solid var(--border); margin: 1.6rem 0 1.6rem; }
.tabs a {
  padding: .55rem .75rem; margin-bottom: -1px; text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: 1.05rem; border-bottom: 2px solid transparent;
}
.tabs a.active { color: var(--text); border-bottom-color: var(--primary); }
.tabs a:hover { color: var(--text); }
.tabs .count {
  display: inline-block; min-width: 1.4rem; padding: 0 .4rem; margin-left: .3rem; border-radius: 99px;
  background: var(--primary-soft); color: var(--primary); font-size: .78rem; text-align: center;
}

/* ================= Composants ================= */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; }
label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 1rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .65rem .8rem;
  border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #d4c9ff; border-color: var(--primary); }
textarea { resize: vertical; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.row > label { flex: 1; min-width: 140px; }
label.check { display: flex; align-items: center; gap: .4rem; flex: 0; white-space: nowrap; }
label.check input { width: auto; margin: 0; }

.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 10px; border: 1px solid #d9dae6;
  background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 2px rgba(19, 22, 58, .05);
}
.btn:hover { border-color: var(--primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ai { background: linear-gradient(90deg, #7048f6, #9257f8); color: #fff; border: 0; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-sm { padding: .38rem .8rem; font-size: .88rem; }
.btn-block { width: 100%; }

.alert { position: relative; padding: .85rem 1rem .85rem 2.75rem; border-radius: 12px; margin-bottom: 1.2rem; border: 1px solid transparent; font-size: .95rem; }
/* Icône de la notification, à la couleur du texte : avertissement (erreur, attention), information, validation. */
.alert::before { content: ''; position: absolute; left: 1rem; top: calc(.85rem + .1em); width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--alert-ic) center / contain no-repeat; mask: var(--alert-ic) center / contain no-repeat;
  --alert-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.alert-info::before { --alert-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5M12 7.5h.01'/%3E%3C/svg%3E"); }
.alert-success::before { --alert-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.8'/%3E%3C/svg%3E"); }
.alert-success { background: #e9f8ef; border-color: #c9ecd7; color: #1b6b3d; }
.alert-error { background: #fdeeee; border-color: #f6d0d0; color: #9b1c1c; }
/* Les informations portent Plùm (dessin en couleurs, inséré dans la page) à la place du « i ». */
.alert > .mascot { position: absolute; left: .7rem; top: .55rem; }
.alert:has(> .mascot)::before { display: none; }
.alert-info { background: #eef0fe; border-color: #d8dcf8; color: #3a3f9e; }
.alert a { color: #4b55d6; text-decoration: none; }

.badge { padding: .15rem .6rem; border-radius: 99px; font-size: .76rem; font-weight: 600; }
.badge-grey { background: #eeeef4; color: #555; }
.badge-blue { background: #e7ebff; color: #3a3f9e; }
.badge-green { background: #e2f6e9; color: #1b6b3d; }
.badge-orange { background: #fff1de; color: #9a5800; }
.badge-red { background: #fde4e4; color: #9b1c1c; }

.chip { display: inline-block; padding: .15rem .6rem; border-radius: 99px; font-size: .78rem; color: #fff; margin: 0 .3rem .3rem 0; }
.chip-instagram { background: var(--ig); }
.chip-facebook { background: var(--fb); }
.chip-check { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 99px; color: #fff; margin: 0 .5rem .5rem 0; cursor: pointer; }
.chip-check input { width: auto; margin: 0; }

.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; font-size: .85rem; }
.empty { color: var(--muted); margin: .5rem 0; }

/* ================= Pages invité (connexion / inscription) ================= */
.guest .main { min-height: 100vh; display: grid; place-items: center; }
.guest .content { width: 100%; }
.auth { max-width: 420px; margin: 0 auto; }
.auth .brand { color: var(--text); padding: 0 0 1.6rem; justify-content: center; }
.auth .brand small { color: var(--muted); }
.auth h1 { font-size: 1.7rem; margin-bottom: .3rem; }
.auth .forgot-link { margin: -.4rem 0 .9rem; text-align: right; font-size: .88rem; }

/* ================= Calendrier ================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.stat strong { display: block; font-size: 1.8rem; font-weight: 700; }
.stat span { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.post { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #e9e9f1; }
.post-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.caption { margin: 0; font-size: .92rem; }
.post-actions { display: flex; gap: .5rem; margin-top: auto; }
details pre { white-space: pre-wrap; font-size: .78rem; background: var(--bg); padding: .6rem; border-radius: 8px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; gap: .6rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.list .inline { margin-left: auto; }
.help { margin-top: 1rem; font-size: .92rem; }
.ideas { line-height: 1.75; }

/* ================= Création ================= */
.composer { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.2rem; align-items: start; }
.composer section:last-child { grid-column: 1 / -1; }
.dropzone {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; margin: 0;
  border: 2px dashed #d6d7e6; border-radius: var(--radius); background: #fafafd;
  text-align: center; color: var(--muted); cursor: pointer; overflow: hidden;
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.dropzone img { width: 100%; height: 100%; object-fit: cover; }
.ai-box { background: #f6f4ff; border: 1px solid #e8e3fd; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .sidebar { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .7rem; }
  .sidebar .brand { padding: .2rem .5rem; flex: 1; }
  .sidebar { border-right: 0; border-bottom: 1px solid #eceaf2; }
  .sidebar .brand small, .workspace { display: none; }
  .btn-create { margin: 0; min-height: 40px; padding: 0 1rem; font-size: .95rem; }
  .side-nav { flex-direction: row; width: 100%; overflow-x: auto; }
  .side-nav a { min-height: 38px; padding: 0 .8rem; font-size: .93rem; white-space: nowrap; }
  .side-sub { margin: 0; padding: 0; border: 0; }
  .side-logout { padding: .3rem .5rem; }
  .app .main { margin-left: 0; }
  .content { padding: 1rem; }
  .composer, .grid-2 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
}

/* ---------- Administration ---------- */
.stats-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 1.6rem; }
.stat small { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.6rem 0 1rem; }
.table-head h2 { margin: 0; }
.search { display: flex; gap: .5rem; align-items: center; }
.search input { min-width: 280px; margin: 0; }
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); padding: .85rem 1rem; border-bottom: 1px solid var(--border); background: #fafafe; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-suspended td { background: #fdf8f8; }
.table .num { text-align: right; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.table .actions-col { text-align: right; white-space: nowrap; }
.table form.inline { display: inline-block; margin: 0 0 0 .3rem; }
.table td:nth-child(4) form.inline { margin: 0; }
.user-cell { display: flex; align-items: center; gap: .7rem; }
.user-cell strong, .user-cell small { display: block; }
.user-cell em { font-style: normal; font-weight: 400; }
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }
.select-sm { padding: .3rem .5rem; font-size: .88rem; width: auto; margin: 0; }
.badge-purple { background: #efe9ff; color: #5b3bd6; }
.btn-danger { color: #b42318; border-color: #f3c7c2; }
.btn-danger:hover { background: #fdeeee; border-color: #b42318; }
.text-red { color: #b42318; }
.small { font-size: .85rem; }
@media (max-width: 1000px) { .stats-4 { grid-template-columns: repeat(2, 1fr); } }
.user-cell small { overflow-wrap: anywhere; max-width: 240px; }
.table th, .table td { padding-left: .75rem; padding-right: .75rem; }
.table .actions-col form.inline { margin: .15rem 0 .15rem .3rem; }

/* ---------- Réglages ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.settings-card h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.settings-card p.small { line-height: 1.55; margin: 0 0 1.1rem; }
.settings-card code { background: var(--bg); padding: .05rem .35rem; border-radius: 5px; font-size: .85em; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0;
    border-bottom: 1px solid var(--border); }
.service-list li:last-child { border-bottom: 0; }
.pill { padding: .2rem .65rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eeeef4; color: #555; }
.pill-on { background: #e2f6e9; color: #1b6b3d; }
.btn-danger-text { color: #b42318; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- Higgsfield (création) ---------- */
.dropzone video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.media-meta { display: flex; justify-content: space-between; align-items: center; min-height: 2rem; margin: .4rem 0 .2rem; }
.hf-box { background: #f6f4ff; border: 1px solid #e8e3fd; border-radius: 12px; padding: 1rem; margin-top: .6rem; }
.hf-off { font-size: .92rem; }
.hf-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .7rem; flex-wrap: wrap; }
.hf-reel { border-top: 1px dashed #d9d1fb; margin-top: 1.1rem; padding-top: 1rem; }
.hf-reel p { margin: .5rem 0 0; }
.hf-sound { border-top: 1px dashed #d9d1fb; margin-top: 1.1rem; padding-top: 1rem; }
.hf-sound p { margin: .5rem 0 0; }
.hf-sound .sound-count { margin: -.35rem 0 .6rem; }
.hf-status { margin-top: 1rem; padding: .7rem .9rem; border-radius: 10px; font-size: .92rem; background: #eef0fe; color: #3a3f9e; }
.hf-status-success { background: #e9f8ef; color: #1b6b3d; }
.hf-status-error { background: #fdeeee; color: #9b1c1c; }
.hf-recent { margin-top: 1.1rem; }
.hf-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.hf-thumb { position: relative; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px;
    overflow: hidden; cursor: pointer; background: #e9e9f1; }
.hf-thumb:hover { border-color: var(--primary); }
.hf-thumb img, .hf-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-thumb span { position: absolute; bottom: 2px; left: 2px; font-size: .62rem; background: rgba(0,0,0,.65); color: #fff;
    padding: 0 .3rem; border-radius: 4px; }

/* ---------- Reels (tableau de bord) ---------- */
.post-media { position: relative; }
.post-media video { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; display: block; }
.reel-tag { position: absolute; top: .6rem; left: .6rem; background: rgba(0,0,0,.7); color: #fff; font-size: .75rem;
    font-weight: 600; padding: .15rem .55rem; border-radius: 99px; }

/* L attribut hidden doit toujours gagner sur les display des composants (.btn, etc.) */
[hidden] { display: none !important; }

/* ---------- Résultats ---------- */
.segmented { display: inline-flex; gap: .2rem; background: #ececf3; padding: .25rem; border-radius: 12px; }
.segmented a { padding: .45rem .9rem; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; }
.segmented a.active { background: var(--card); color: var(--text, #1a1a2e); box-shadow: 0 1px 3px rgba(20, 20, 50, .08); }
.results-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 175px)); gap: .9rem; margin-bottom: .9rem; }
.results-stats .stat { min-height: 150px; }
.results-stats .stat span { color: inherit; font-weight: 500; }
.empty-line { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem .9rem; color: var(--muted); margin-bottom: 1rem; }
.network-totals { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.results-list { padding: .4rem 1.2rem; }
.result-row { display: flex; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.result-row:last-child { border-bottom: 0; }
.result-thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--bg); }
.result-thumb img, .result-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-main { flex: 1; min-width: 0; }
.result-main p { margin: .2rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { font-size: .82rem; color: var(--muted); }
.result-figures { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; font-size: .9rem; white-space: nowrap; }
.results-note { margin-top: .8rem; }

/* ---------- Ma marque ---------- */
.brand-card { padding: 1.6rem; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.brand-grid > label, .brand-grid .logo-field { margin: 0; }
.brand-grid .span-2 { grid-column: span 2; }
.brand-grid label small { display: block; font-weight: 400; margin-top: .1rem; }
.brand-grid input[type=color] { width: 64px; height: 40px; padding: 2px; border-radius: 8px; cursor: pointer; }
.brand-grid label.suggested input, .brand-grid label.suggested textarea { border-color: #8b5cf6; background: #f6f2ff; }
.logo-field .label { display: block; font-weight: 500; margin-bottom: .4rem; }
.logo-row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 120px; height: 56px; border: 1px solid var(--border); border-radius: 10px; display: grid; place-items: center; overflow: hidden;
    background: repeating-conic-gradient(#f0f0f5 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.file-btn { position: relative; overflow: hidden; margin: 0; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.brand-actions { justify-content: space-between; align-items: center; margin-top: 1.3rem; }
@media (max-width: 760px) {
    .brand-grid { grid-template-columns: 1fr; }
    .brand-grid .span-2 { grid-column: auto; }
    .results-stats { grid-template-columns: 1fr 1fr; }
    .result-row { flex-wrap: wrap; }
}

/* ================= Sélecteur de marque ================= */
.brand-switch { display: block; padding: 0; }
.brand-switch summary {
  display: flex; align-items: center; gap: .7rem; padding: .3rem; cursor: pointer; list-style: none; border-radius: 12px;
}
.brand-switch summary::-webkit-details-marker { display: none; }
.brand-switch summary:hover { background: #f4f3f8; }
.brand-switch .avatar-dark { flex: none; color: #fff; }
.brand-switch .brand-logo { object-fit: contain; background: #fff; padding: 3px; }
.brand-switch-name { min-width: 0; }
.brand-switch-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-switch small { display: flex; align-items: center; gap: .2rem; }
.brand-switch small .icon { width: 14px; height: 14px; transition: transform .15s; }
.brand-switch[open] small .icon { transform: rotate(180deg); }
.brand-menu { padding: 0 .5rem .6rem; display: grid; gap: .15rem; max-height: 50vh; overflow-y: auto; }
.brand-menu form { margin: 0; }
.brand-menu button:not(.btn) {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .5rem; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: inherit; font-size: .93rem; text-align: left; cursor: pointer;
}
.brand-menu button:not(.btn):hover, .brand-menu button.active { background: var(--acs); }
.brand-menu button span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-menu .avatar-sm { width: 28px; height: 28px; border-radius: 8px; font-size: .72rem; flex: none; }
.brand-check { color: #22c55e; }
.brand-add { display: grid; gap: .4rem; margin-top: .4rem !important; padding-top: .6rem; border-top: 1px solid #eceaf2; }
.brand-add input { margin: 0; padding: .45rem .6rem; font-size: .9rem; }
.brand-delete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 900px) {
  .sidebar .brand-switch { display: block; order: 2; width: 100%; margin: .4rem 0 0; }
  .brand-switch summary { padding: .5rem; }
}

/* ================= Échanges ================= */
.inbox-warnings summary { cursor: pointer; }
.inbox-warnings ul { margin: .6rem 0; padding-left: 1.2rem; }
.inbox-warnings small { color: var(--muted); }
.inbox-list { display: grid; gap: 1rem; }
.inbox-item { margin: 0; }
.inbox-head { display: flex; align-items: center; gap: .8rem; }
.inbox-who { flex: 1; min-width: 0; }
.inbox-who strong { display: block; }
.inbox-who small { color: var(--muted); }
.net {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  color: #fff; font-weight: 700; font-size: .85rem; line-height: 1;
}
/* Dessin du réseau : proportionnel à la pastille, donc toujours centré. */
.net svg { display: block; width: 62%; height: 62%; }
.net-fb { background: #1877f2; font-size: 1.15rem; }
.net-ig { background: linear-gradient(45deg, #f9a825, #e1306c 55%, #833ab4); }
.inbox-context { margin: .8rem 0 0; color: var(--muted); font-size: .88rem; }
.inbox-text {
  margin: .7rem 0 0; padding: .8rem 1rem; border-radius: 4px 14px 14px 14px; background: #f3f4fa;
  white-space: normal; overflow-wrap: anywhere;
}
.inbox-reply { margin-top: 1rem; }
.inbox-label { display: block; font-size: .85rem; color: var(--muted); }
.inbox-label textarea { margin-top: .35rem; color: var(--text); font-size: .95rem; }
.inbox-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.inbox-actions small { margin-right: auto; }
.inbox-answer {
  margin: .8rem 0 0 2.5rem; padding: .8rem 1rem; border-radius: 14px 4px 14px 14px;
  background: var(--primary-soft); overflow-wrap: anywhere;
}
.inbox-answer small { color: var(--muted); }
.inbox-answer p { margin: .3rem 0 0; }

/* ================= Se connecter avec Facebook ================= */
.btn-facebook {
  display: inline-flex; align-items: center; gap: .6rem; width: 100%; justify-content: center;
  background: #1877f2; border-color: #1877f2; color: #fff; font-weight: 600; padding: .75rem 1rem;
}
.btn-facebook:hover { background: #166fe5; border-color: #166fe5; color: #fff; }
.btn-facebook:disabled { background: #9bbcf0; border-color: #9bbcf0; cursor: not-allowed; }
.btn-facebook svg { width: 20px; height: 20px; }
.meta-choice { display: grid; gap: .5rem; }
.meta-candidate {
  display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; margin: 0;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.meta-candidate:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.meta-candidate input { width: auto; margin: 0; }
.meta-candidate-name { display: grid; min-width: 0; }
.meta-candidate-name small { font-size: .8rem; }
.meta-choice .actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .6rem; }

/* ================= Inscription « Essayer 7 jours » ================= */
body.guest:has(.signup) { background: #171a3b; }
.signup {
  max-width: 460px; margin: 1.5rem auto; padding: 2.2rem 2.1rem 1.8rem; background: #fff; border-radius: 26px;
  box-shadow: 0 24px 60px rgba(5, 7, 30, .35);
}
.signup-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-size: 1.02rem; }
.signup-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #171a3b; }
.signup-mark .brand-mark { width: 16px; height: 17px; }
.signup h1 { font-size: 1.85rem; letter-spacing: -.02em; margin: 1.1rem 0 1.4rem; }
.signup-lead { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0 0 1.5rem; }
.signup-lead strong { color: var(--text); opacity: .75; }
.signup label { font-weight: 600; margin-bottom: 1.15rem; }
.signup input:not([type=radio]):not([type=checkbox]) { margin-top: .5rem; padding: .8rem .9rem; }
.signup .field-help { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: .3rem; line-height: 1.4; }
.signup-offers { border: 0; padding: 0; margin: 0 0 .8rem; }
.signup-offers legend { font-weight: 600; font-size: .92rem; margin-bottom: .6rem; padding: 0; }
.signup-offer, .signup-terms {
  display: flex; align-items: flex-start; gap: .75rem; font-weight: 400; font-size: .9rem; line-height: 1.45;
  margin-bottom: .75rem; cursor: pointer;
}
.signup-offer input, .signup-terms input { width: auto; margin: .2rem 0 0; accent-color: #1a5fd8; flex: none; }
.signup-terms { margin: .4rem 0 1.1rem; }
.signup-submit {
  padding: .95rem; border: 0; border-radius: 12px; font-size: 1rem;
  background: linear-gradient(90deg, #7c3aed, #8b5cf6); box-shadow: 0 10px 24px rgba(124, 58, 237, .3);
}
.signup-login { margin: 2.6rem 0 0; font-size: .92rem; }
.signup-login a, .signup-terms a { color: #4b55d6; text-decoration: none; }
.legal { max-width: 760px; margin: 0 auto; padding: 2rem 0; }

/* Abonnement */
.billing-card { max-width: 640px; display: grid; gap: 16px; }
.billing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.billing-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.billing-offer { font-size: 18px; }
.billing-status { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.billing-ok { background: #dcfce7; color: #166534; }
.billing-warn { background: #fef3c7; color: #92400e; }
.billing-bad { background: #fee2e2; color: #991b1b; }
.billing-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.billing-facts dt { color: #6b7280; }
.billing-facts dd { margin: 0; font-weight: 600; }
.billing-card .hint { margin: 0; font-size: 13px; color: #6b7280; }

/* Utilisation du mois (limites de l'offre) */
.usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; max-width: 760px;
         background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; }
.usage-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: #4b5563; }
.usage-line strong { color: #111827; white-space: nowrap; }
.usage-bar { height: 6px; border-radius: 999px; background: #eef0f4; margin-top: 6px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: #6d4aff; border-radius: inherit; }
.usage-full .usage-bar span { background: #dc2626; }
.usage-full .usage-line strong { color: #b91c1c; }
.usage-reset { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #6b7280; }
.section-title { font-size: 16px; margin: 26px 0 10px; }
@media (max-width: 640px) { .usage { grid-template-columns: 1fr; } }

/* Accessibilité */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mon compte */
.account-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.account-facts dt { color: #6b7280; }
.account-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.key-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }

/* ---------- Coûts IA ---------- */
.alert-warn { background: #fff7e6; border-color: #f6e0b0; color: #8a5a00; }
.pill-warn { background: #fff1d6; color: #8a5a00; }
.pill-off { background: #fde3e3; color: #9b1c1c; }
.cost-cell { min-width: 150px; }
.cost-cell .usage-bar { margin: 0 0 .3rem; }
.cost-cell small { margin-right: .4rem; }
.bar-warn span { background: #e59a00 !important; }
.bar-full span { background: #dc2626 !important; }
.cap-form { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 0; }
.cap-form input { width: 6.5rem; padding: .35rem .5rem; margin: 0; }
.cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.cost-grid label small { display: inline; font-weight: 400; }
.usage-warn .usage-bar span { background: #e59a00; }
.usage-alert { grid-column: 1 / -1; margin: 0; padding: .6rem .8rem; border-radius: 8px; font-size: 13px;
  background: #fdeeee; color: #9b1c1c; }
.usage-alert-warn { background: #fff7e6; color: #8a5a00; }

/* ---------- Validation et délai d'envoi ---------- */
.badge-purple { background: #efe7ff; color: #5b2bb5; }
.sending-soon { color: #8a5a00; background: #fff7e6; border-radius: 6px; padding: .3rem .55rem; font-size: 13px; margin: .2rem 0 .5rem; display: inline-block; }
.review-note { background: #fff7e6; border-left: 3px solid #e59a00; border-radius: 6px; padding: .5rem .7rem; font-size: 13px; margin: .3rem 0 .6rem; }
.review-note small { color: var(--muted); margin-left: .3rem; }
.approval-bulk { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.approval-bulk .muted { margin-right: auto; }
.approval-list { display: grid; gap: 1rem; }
.approval-item { display: grid; grid-template-columns: auto 200px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.approval-item:not(:has(.approval-check)) { grid-template-columns: 200px minmax(0, 1fr); }
.approval-check { padding-top: .2rem; }
.approval-check input { width: 18px; height: 18px; }
.approval-media img, .approval-media video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #e9e9f1; }
.approval-media .post-media { position: relative; }
.approval-body .targets { margin: .2rem 0 .6rem; }
.approval-body textarea { width: 100%; }
.approval-changes { margin-top: .6rem; font-size: 14px; }
.approval-changes summary { cursor: pointer; color: var(--muted); }
.approval-changes form { display: grid; gap: .5rem; margin-top: .5rem; justify-items: start; }
.review-link-card { margin-top: 1.6rem; max-width: 760px; }
.copy-row { display: flex; gap: .5rem; align-items: center; }
.copy-row input { flex: 1; margin: 0; }
.inbox-scheduled { border-top: 1px dashed var(--border); padding-top: .6rem; }
.review-page { max-width: 980px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.review-head { margin-bottom: 1.4rem; }
.review-head .brand { display: inline-flex; gap: .6rem; align-items: center; }
.review-head .brand strong { color: var(--text); }
.review-head .brand small { color: var(--muted); display: block; }
.review-empty { text-align: center; padding: 2rem; }
.review-sub { margin-top: 2rem; font-size: 18px; }
.review-done { list-style: none; padding: 0; display: grid; gap: .5rem; }
.review-done li { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .approval-item, .approval-item:not(:has(.approval-check)) { grid-template-columns: 1fr; }
  .approval-check { order: -1; }
}

/* ---------- Introduction guidée (Plùm) ---------- */
body.intro-body { background: #F7F6FC; }
.intro {
  --ac: #7166E3; --aci: #fff; --acs: color-mix(in srgb, var(--ac) 14%, #fff); --ink: #1F1D47; --line: #E4E2F0;
  position: relative; min-height: 100vh; overflow: hidden; color: var(--ink);
  padding: 18px clamp(16px, 4vw, 48px) 48px clamp(16px, 6vw, 84px);
}
.intro-wave { position: absolute; left: 0; top: 0; height: 100%; width: 46px; }
.intro-wave path { fill: var(--ac); }
.intro h1, .intro-q { font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
.intro h1 { font-size: clamp(28px, 3.4vw, 40px); }
.intro-q { font-size: clamp(24px, 3vw, 32px); margin-top: -8px; }
.intro-hero { font-size: clamp(32px, 4.4vw, 52px) !important; line-height: 1.06 !important; }
.intro-lead { font-size: 17px; color: var(--muted); margin: 0; max-width: 46ch; }
.intro .btn { border-radius: 14px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.intro .btn-sm { min-height: 36px; }
.intro .btn.intro-go { background: var(--ac); border-color: var(--ac); color: var(--aci); }
.intro .btn.intro-go:hover { filter: brightness(.95); }
.intro-alert { max-width: 980px; margin: 0 auto 14px; }

.intro-top { display: flex; align-items: center; gap: 12px; max-width: 980px; margin: 0 auto 18px; }
.intro-top .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.intro-top form { margin: 0; }
.intro-back { width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line); background: #fff; display: inline-flex;
  align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font-size: 18px; flex: none; }
.intro-bar { flex: 1; height: 8px; border-radius: 9px; background: #ECEAF6; overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--ac); border-radius: 9px; transition: width .4s; }

.intro-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; max-width: 1120px; margin: 5vh auto 0; }
.intro-col { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.intro-hello { display: flex; align-items: center; gap: 10px; }
.intro-hello span { background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 14px 14px 14px 4px; font-size: .92rem; }
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.intro-actions .intro-go { min-height: 56px; padding: 0 30px; font-size: 16px; }
.intro-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.intro-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 18px 40px -26px rgba(31, 29, 71, .35); }
.intro-card:nth-child(2) { transform: translateY(-18px); }
.intro-doo { background: var(--acs); border-radius: 16px; padding: 8px; }

.intro-lay { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 330px); gap: 44px; justify-content: center; align-items: start; }
.intro-step { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.intro-say { display: flex; align-items: flex-start; gap: 12px; }
.intro-say p { margin: 0; background: #ECEAF6; padding: 10px 14px; border-radius: 16px 16px 16px 4px; font-size: .92rem; }
.intro-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px;
  background: var(--acs); color: var(--ink); font-size: .82rem; font-weight: 600; }
.intro-chip.alt { background: color-mix(in srgb, var(--pac2, var(--ac)) 22%, #fff); }
.intro-side { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex;
  flex-direction: column; gap: 12px; box-shadow: 0 18px 40px -26px rgba(31, 29, 71, .3); margin-top: 40px; }
.intro-side .intro-doo { border-radius: 18px; padding: 10px; }
.intro-side-title { font-size: 18px; }
.intro-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.intro-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.intro-steps li i { width: 24px; height: 24px; border-radius: 99px; border: 1.5px solid var(--line); display: inline-flex; align-items: center;
  justify-content: center; font-style: normal; font-size: 12px; flex: none; }
.intro-steps li.d i { background: var(--ac); border-color: var(--ac); color: var(--aci); }
.intro-steps li.c { color: var(--ink); font-weight: 600; }
.intro-steps li.c i { border-color: var(--ac); color: var(--ac); }

.intro input:not([type=radio]):not([type=checkbox]):not([type=color]):not([type=file]), .intro textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; color: var(--ink); }
.intro input:focus-visible, .intro textarea:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.intro .intro-big { font-size: 22px; padding: 16px 18px !important; }
.intro-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.intro-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.intro-add input { flex: 1; min-width: 200px; width: auto !important; }

/* choix : la case est cachée, l'étiquette entière se coche */
.intro-opt input, .intro-tag input, .intro-duel input, .intro-seg input, .intro-style input { position: absolute; opacity: 0; pointer-events: none; }
.intro-opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.intro-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intro-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 16px; border-radius: 16px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 16px; cursor: pointer;
  box-shadow: 0 2px 8px -4px rgba(31, 29, 71, .12); }
.intro-opt .tk { width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--line); flex: none; margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.intro-opt:has(input:checked) { border-color: var(--ac); background: var(--acs); }
.intro-opt:has(input:checked) .tk { background: var(--ac); border-color: var(--ac); color: var(--aci); }
.intro-opt:has(input:checked) .tk::after { content: '✓'; }
.intro-opt:has(input:focus-visible), .intro-tag:has(input:focus-visible), .intro-duel label:has(input:focus-visible),
.intro-style:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.intro-net { flex-direction: column; align-items: flex-start; padding: 16px; gap: 8px; }
.intro-net .tk { position: absolute; top: 14px; right: 14px; }
.intro-net-dot { width: 40px; height: 40px; border-radius: 12px; background: #EA4335; }
.intro-net-dot.net-facebook { background: var(--fb); }
.intro-net-dot.net-instagram { background: var(--ig); }
.intro-pair { display: flex; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; flex: none; }
.intro-pair i { flex: 2; } .intro-pair i + i { flex: 1; }

.intro-tag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1.5px dashed var(--line);
  background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); position: relative; }
.intro-tag span::before { content: '+ '; }
.intro-tag:has(input:checked) { border-style: solid; border-color: var(--ac); background: var(--acs); }
.intro-tag:has(input:checked) span::before { content: '✓ '; }
.intro-tag.dash { min-height: 36px; font-size: 13px; }

.intro-duels { display: flex; flex-direction: column; gap: 10px; }
.intro-duel { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 8px; align-items: center; }
.intro-duel em { text-align: center; color: var(--muted); font-style: normal; font-size: 13px; }
.intro-duel label { position: relative; }
.intro-duel span { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 500; font-size: 15px; cursor: pointer; }
.intro-duel input:checked + span { background: var(--ac); border-color: var(--ac); color: var(--aci); }
.intro-seg { display: inline-flex; background: #ECEAF6; border-radius: 12px; padding: 3px; }
.intro-seg label { position: relative; }
.intro-seg span { display: inline-block; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: .9rem; font-weight: 500; }
.intro-seg input:checked + span { background: #fff; box-shadow: 0 1px 3px rgba(31, 29, 71, .15); }

.intro-sample { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-align: left; width: 100%; }
.intro-sample p { margin: .45rem 0 0; }
.intro-sample-big p { font-size: 16px; }
.intro-sample-big .intro-row { justify-content: space-between; }

.intro-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.intro-style { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.intro-style .smp { font-size: 26px; line-height: 1.1; }
.intro-style:has(input:checked) { border-color: var(--ac); background: var(--acs); }

.intro-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.intro-swatch { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; text-align: left; font: inherit; font-weight: 500; font-size: 14px; color: var(--ink); }
.intro-swatch .intro-pair { width: 100%; height: 30px; }
.intro-swatch.on { border-color: var(--ac); background: var(--acs); }
.intro-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-colors label { display: flex; align-items: center; gap: 10px; }
.intro-colors input[type=color] { width: 52px; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; flex: none; }
.intro-preview { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.intro-preview-card { background: var(--pac); color: var(--pink); border-radius: 14px; padding: 12px 14px; }
.intro-preview-card div { background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 10px; margin-top: 8px; font-size: 13px; }
.intro-preview .intro-chip { background: color-mix(in srgb, var(--pac) 16%, #fff); }
.intro-preview-btn { margin-left: auto; background: var(--pac); color: var(--pink); border-radius: 10px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.intro-drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; background: #fff; cursor: pointer; flex-wrap: wrap; }
.intro-drop input { font-size: .85rem; }
.intro-logo { max-height: 48px; }

.intro-foot { position: sticky; bottom: 0; padding: 14px 0 4px; background: linear-gradient(transparent, #F7F6FC 30%); display: flex; flex-direction: column; gap: 8px; }
.intro-foot .btn { width: 100%; min-height: 56px; font-size: 16px; }

.intro-center { max-width: 640px; margin: 4vh auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.intro-center .intro-foot { width: 100%; position: static; background: none; }
.intro-center > .mascot, .intro-dplum .mascot { animation: intro-float 3.2s ease-in-out infinite; }
.intro-dcard { position: relative; width: min(300px, 80%); background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 16px;
  box-shadow: 0 18px 40px -26px rgba(31, 29, 71, .35); }
.intro-dplum { position: absolute; right: -26px; bottom: -30px; }
.intro-load { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; width: min(360px, 100%); }
.intro-load li { display: flex; align-items: center; gap: 12px; font-size: 16px; opacity: .25; animation: intro-tick .4s forwards; }
.intro-load li span { width: 26px; height: 26px; border-radius: 99px; background: var(--ac); color: var(--aci); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.intro-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.intro-plan div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: left; box-shadow: 0 8px 24px -16px rgba(31, 29, 71, .25); }
.intro-plan b { display: block; font-size: 26px; line-height: 1.1; color: var(--ac); letter-spacing: -.02em; }
@keyframes intro-float { 50% { transform: translateY(-6px); } }
@keyframes intro-tick { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .intro *, .intro *::before { animation: none !important; transition: none !important; } .intro-load li { opacity: 1; } }

@media (max-width: 1000px) { .intro-lay { grid-template-columns: minmax(0, 600px); } .intro-side { display: none; } }
@media (max-width: 920px) { .intro-welcome { grid-template-columns: 1fr; margin-top: 2vh; } }
@media (max-width: 700px) {
  .intro { padding-left: 16px; }
  .intro-wave { display: none; }
  .intro-opts-3, .intro-colors, .intro-plan { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .intro-cards { grid-template-columns: 1fr; } .intro-card:nth-child(2) { transform: none; } }
.intro-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--primary-soft), #fff 70%); }
.intro-banner p { margin: .25rem 0 .4rem; }
.intro-banner.done { background: var(--card); }
.intro-banner .chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.intro-banner .chip { background: #fff; color: var(--primary-dark); border: 1px solid #dcd4fd; }


/* ---------- Réglages (onglets de la maquette) ---------- */
.set-tabs { margin: 0 0 1.1rem; flex-wrap: wrap; border-radius: 14px; }
.set-tabs a { font-size: .9rem; }
.set-card { padding: 1.4rem 1.5rem; }
.set-card h2 { font-size: 1.2rem; font-weight: 500; margin: 0 0 .25rem; letter-spacing: -.01em; }
.set-card > p.small { margin: 0 0 .8rem; }
.set-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.set-head p { margin: 0; }
.set-chip { flex: none; padding: .25rem .7rem; border-radius: 99px; background: var(--acs); color: var(--act); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.set-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid #f0eff5; }
.set-line:last-of-type { border-bottom: 0; }
.set-line-main { flex: 1; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.set-line-name { font-size: .92rem; }
.set-line-value { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.set-quota { height: 8px; border-radius: 99px; background: #f1f0f6; overflow: hidden; }
.set-quota i { display: block; height: 100%; border-radius: inherit; background: var(--ac); }
.set-quota.full i { background: #dc2626; }
.set-foot { margin: .8rem 0 0; }
.set-net { display: flex; align-items: center; gap: .8rem; }
.set-net .net { width: 34px; height: 34px; }
.net-gg { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.set-tip { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: var(--acs); font-size: .85rem; color: #3b3f5c; }
.set-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.1rem; align-items: start; }
.set-grid-wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.set-grid-one { grid-template-columns: minmax(0, 1fr); }
.set-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
.set-tool { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .8rem; border: 1.5px solid #ebeaf2;
  border-radius: 14px; cursor: pointer; background: #fff; }
.set-tool input { position: absolute; opacity: 0; pointer-events: none; }
.set-tool:has(input:checked) { border-color: var(--ac); background: var(--acs); }
.set-tool:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.set-services { display: grid; gap: .5rem; margin: .6rem 0 .8rem; }
.set-service { display: flex; align-items: center; gap: .5rem; }
.set-service input { margin: 0; }
.set-service input[type=number] { width: 90px; flex: none; }
.set-utm-out { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: 12px; background: #f6f5fa; margin-top: .4rem; }
.set-utm-out code { flex: 1; overflow-wrap: anywhere; font-size: .85rem; }
@media (max-width: 900px) { .set-grid, .set-grid-wide { grid-template-columns: 1fr; } .set-line { flex-wrap: wrap; } }

/* ---------- Ma marque (programmation de la maquette) ---------- */
.bm-tabs a { display: inline-flex; align-items: center; gap: .4rem; }
.bm-tabs .icon { width: 15px; height: 15px; }
.bm-hero { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.4rem; margin-bottom: 1.1rem; border-radius: 20px;
  background: linear-gradient(100deg, #fff 0%, var(--acs) 100%); border: 1px solid #f0eef6; }
.bm-hero > div { flex: 1; min-width: 0; }
.bm-hero h1 { font-size: 1.25rem; font-weight: 500; margin: 0 0 .2rem; letter-spacing: -.01em; }
.bm-hero p { margin: 0; max-width: 60ch; }
.bm-hero .btn { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.bm-hero-plum { flex: none; }
.bm-pill { display: inline-flex; align-items: center; gap: .4rem; border-radius: 99px; background: #fff; }
.bm-pill .icon { width: 15px; height: 15px; }
.bm-save-row { display: flex; align-items: center; gap: .9rem; margin-top: 1.3rem; }
.bm-save { border-radius: 99px; background: var(--ac); border-color: var(--ac); color: var(--aci, #fff); padding-inline: 1.1rem; }
.bm-save:disabled { background: var(--acs); border-color: var(--acs); color: var(--ac); opacity: 1; cursor: default; }
.bm-head-btn { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; border-radius: 99px; background: #fff; }
.bm-hero .btn-primary { background: var(--ac); border-color: var(--ac); color: var(--aci, #fff); }
.bm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.bm-card { background: #fff; border: 1px solid #efedf5; border-radius: 18px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: 0 1px 2px rgba(20, 20, 50, .03); }
.bm-card-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.bm-card-head h2 { flex: 1; margin: 0; font-size: 1.08rem; font-weight: 500; }
.bm-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--acs); color: var(--ac); }
.bm-ic .icon { width: 17px; height: 17px; }
.bm-edit { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: #3b3f5c; text-decoration: none; }
.bm-edit:hover { color: var(--act); }
.bm-edit .icon { width: 13px; height: 13px; }
.bm-lead { margin: 0 0 .6rem; font-size: .88rem; }
.bm-lead b { font-weight: 600; }
.bm-sub { margin: .8rem 0 .4rem; font-size: .78rem; color: var(--muted); }
.bm-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bm-chips span, .bm-chips button { padding: .3rem .65rem; border-radius: 99px; background: #f5f4f9; font-size: .8rem; color: #2d3050; border: 0; }
.bm-suggest button { cursor: pointer; font: inherit; font-size: .8rem; }
.bm-suggest button:hover { background: var(--acs); color: var(--act); }
.bm-quote { margin: .7rem 0 0; font-size: .8rem; color: var(--muted); font-style: italic; }
.bm-nets { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.bm-net { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; }
.bm-net .net { width: 24px; height: 24px; font-size: 11px; border-radius: 50%; }
.bm-net.off { color: var(--muted); }
.bm-net.off .net { filter: grayscale(1); opacity: .45; }
.bm-dot { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; display: inline-block; }
.bm-swatch { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; }
.bm-swatch i { width: 48px; height: 22px; border-radius: 8px; flex: none; }
.bm-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.bm-checks label { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border: 1.5px solid #ebeaf2; border-radius: 99px;
  font-size: .85rem; cursor: pointer; margin: 0; }
.bm-checks input { width: auto; margin: 0; accent-color: var(--ac); }
.bm-checks label:has(input:checked) { border-color: var(--ac); background: var(--acs); }
.bm-radio { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.bm-radio legend { font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.bm-radio label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.bm-radio input { width: auto; margin: 0; accent-color: var(--ac); }
.bm-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-styles b { font-size: 1.1rem; }
.bm-bank { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin-top: .6rem; }
.bm-bank figure { margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.bm-bank img, .bm-bank video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #f5f4f9; }
.bm-bank .bm-logo img { object-fit: contain; padding: 1rem; }
.bm-bank .bm-logo > span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: #f5f4f9; }
.bm-bank figcaption { font-size: .75rem; color: var(--muted); }
@media (max-width: 1100px) { .bm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .bm-grid, .bm-styles { grid-template-columns: 1fr; } .bm-hero { flex-wrap: wrap; } }

/* Ma marque → Charte */
.bm-h { font-size: 1.05rem; font-weight: 500; margin: 1.3rem 0 .15rem; }
.set-card > .bm-h:first-of-type, .bm-preview > .bm-h { margin-top: 0; }
.bm-charte .set-card > p.small { margin: 0 0 .8rem; }
.bm-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.bm-style { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1rem; border: 1px solid #ebeaf2; border-radius: 16px;
  background: #fff; cursor: pointer; margin: 0; font-weight: 400; }
.bm-style input { position: absolute; opacity: 0; pointer-events: none; }
.bm-style:has(input:checked) { border-color: var(--ac); background: var(--acs); }
.bm-style:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.bm-style-aa { font-size: 1.45rem; line-height: 1.2; color: #2d3050; }
.bm-style b { font-size: .8rem; font-weight: 600; }
.bm-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.bm-preset { display: flex; flex-direction: column; align-items: stretch; gap: .45rem; padding: .5rem .5rem .6rem; border: 1px solid #ebeaf2; border-radius: 12px;
  background: #fff; font: inherit; font-size: .8rem; text-align: left; color: #2d3050; cursor: pointer; }
.bm-preset i { height: 26px; border-radius: 7px; }
.bm-preset.on { border-color: var(--ac); background: var(--acs); }
.bm-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 0; }
.bm-colors label { margin: 0; font-weight: 400; }
.bm-color { display: flex; align-items: center; gap: .6rem; margin: .4rem 0; }
.bm-color input[type=color] { width: 42px; height: 34px; padding: 3px; border: 1px solid #ebeaf2; border-radius: 9px; background: #fff; cursor: pointer; margin: 0; }
.bm-colors small { font-size: .75rem; }
.bm-note { margin: .9rem 0 0; padding: .7rem .9rem; border-radius: 10px; background: #f5f6f8; font-size: .78rem; color: var(--muted); }
.bm-toggles { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.bm-toggles label { display: inline-flex; padding: .35rem .75rem; border-radius: 99px; border: 1px dashed #c9c7d6; font-size: .8rem; cursor: pointer; margin: 0; font-weight: 400; }
.bm-toggles label { position: relative; }
.bm-toggles input, .bm-style input { width: 1px; height: 1px; margin: 0; }
.bm-toggles input { position: absolute; opacity: 0; pointer-events: none; }
.bm-toggles label:has(input:checked) { border: 1px solid color-mix(in srgb, var(--ac) 40%, #fff); background: var(--acs); color: var(--act); }
.bm-toggles label:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.bm-preview { position: sticky; top: 1rem; padding: 1.2rem; border-radius: 20px; background: #f4f5f8; font-family: var(--pfont); }
.bm-p-ideas { padding: 1rem; border-radius: 20px; background: var(--pac); color: var(--pink); }
.bm-p-ideas > b { font-size: .9rem; }
.bm-p-ideas > div { margin-top: .7rem; padding: .8rem; border-radius: 14px; background: #fff; color: #1F1D47; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; font-size: .88rem; }
.bm-p-chip, .bm-p-badge { padding: .2rem .6rem; border-radius: 99px; font-size: .72rem; background: color-mix(in srgb, var(--pac) 18%, #fff); color: color-mix(in srgb, var(--pac) 70%, #1F1D47); }
.bm-p-row { display: flex; align-items: center; gap: .5rem; margin: 1rem 0; }
.bm-p-btn { padding: .55rem 1rem; border-radius: 99px; background: var(--pac); color: var(--pink); font-size: .82rem; font-weight: 600; }
.bm-p-mar { padding: .2rem .6rem; border-radius: 99px; font-size: .72rem; background: color-mix(in srgb, var(--pac2) 22%, #fff); color: color-mix(in srgb, var(--pac2) 60%, #1F1D47); }
.bm-p-bars { display: flex; align-items: flex-end; justify-content: center; gap: .6rem; height: 80px; margin: .4rem 0 1rem; }
.bm-p-bars i { width: 30px; border-radius: 8px; background: var(--pac); }
.bm-p-bars i:nth-child(2) { background: var(--pac2); }
.bm-p-plum { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 99px; font-size: .85rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pac2) 25%, #fff), color-mix(in srgb, var(--pac) 15%, #fff)); --ac: var(--pac); }
@media (max-width: 900px) { .bm-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bm-preview { position: static; } }
.bm-logo-form { display: inline; }
.bm-link { display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit; font-size: .75rem; color: var(--act); cursor: pointer; text-decoration: underline; font-weight: 400; }
.bm-link input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bm-danger { color: #b42318; }
.bm-bank figcaption .muted { display: block; font-size: .7rem; }

/* Ma marque → Ton et coulisses */
.bm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.bm-two .set-card { margin: 0; }
.bm-two .set-card .bm-h:first-child { margin-top: 0; }
.bm-pairs { display: grid; grid-template-columns: 1fr auto 1fr; gap: .55rem .7rem; align-items: center; margin: .8rem 0; }
.bm-or { font-size: .75rem; color: var(--muted); }
.bm-pair { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: .5rem; border: 1px solid #ebeaf2;
  border-radius: 12px; background: #fff; font-size: .88rem; font-weight: 500; cursor: pointer; margin: 0; text-align: center; }
.bm-pair input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bm-pair:has(input:checked) { background: var(--ac); border-color: var(--ac); color: var(--aci, #fff); }
.bm-pair:has(input:focus-visible), .bm-tu label:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.bm-tu { display: flex; width: 100%; margin: 0 0 .9rem; }
.bm-tu label { position: relative; padding: .4rem .8rem; border-radius: 99px; font-size: .78rem; cursor: pointer; margin: 0; font-weight: 400; color: var(--muted); }
.bm-tu input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bm-tu label:has(input:checked) { background: #fff; color: #1F1D47; font-weight: 500; box-shadow: 0 1px 3px rgba(20, 20, 50, .08); }
.bm-sample { padding: 1.1rem 1.2rem; border-radius: 18px; background: #f4f5f8; }
.bm-sample-head { margin: 0 0 .8rem; font-size: .72rem; color: var(--muted); }
.bm-sample #t-lines p { margin: 0 0 .7rem; font-size: .85rem; line-height: 1.55; color: #3b3f5c; }
.bm-sample #t-lines p:last-child { margin-bottom: 0; }
.bm-sample-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
@media (max-width: 900px) { .bm-two { grid-template-columns: 1fr; } }

/* Ma marque → Clientèle */
.bm-personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.bm-persona { padding: 1.1rem 1.2rem 1.2rem; border: 1px solid #efedf5; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(20, 20, 50, .03); }
.bm-persona-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.bm-persona-head h2 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.bm-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ac); color: var(--aci, #fff); }
.bm-avatar .icon { width: 18px; height: 18px; }
.bm-persona p { margin: 0 0 .6rem; line-height: 1.5; }
.bm-persona p:last-child { margin-bottom: 0; }
.bm-persona b { font-weight: 600; }
.bm-persona-foot { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.bm-text-btn { padding: 0; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 500; color: #1F1D47; cursor: pointer; }
.bm-text-btn:hover { color: var(--act); text-decoration: underline; }
.bm-persona-empty { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bm-persona-empty > div { flex: 1; min-width: 220px; }
.bm-persona-empty h2 { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 500; }
.bm-persona-empty p { margin: 0; }
.bm-persona-empty form { margin: 0; }
@media (max-width: 1000px) { .bm-personas { grid-template-columns: 1fr; } }

/* Ma marque → Banque de visuels */
.bm-bank-card .set-head { margin: 0 0 1rem; }
.bm-upload, .bm-logo-form label { position: relative; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.bm-upload { padding-block: .5rem; font-size: .85rem; }
.bm-upload .icon, .bm-logo-form .icon { width: 15px; height: 15px; }
.bm-upload input, .bm-logo-form input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.bm-upload:focus-within, .bm-logo-form label:focus-within { outline: 2px solid var(--ac); outline-offset: 2px; }
.bm-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.bm-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, var(--acs, #f3e6ec), #e8d6c8); }
.bm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(20, 18, 40, .55)); pointer-events: none; }
.bm-photo-del { position: absolute; top: .4rem; right: .4rem; z-index: 2; margin: 0; }
.bm-photo-del button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
    background: #fff; color: #1F1D47; cursor: pointer; box-shadow: 0 1px 3px rgba(20, 20, 50, .15); }
.bm-photo-del button:hover { color: #b42318; }
.bm-photo-del .icon { width: 13px; height: 13px; }
.bm-photo-cap { position: absolute; left: .35rem; right: .35rem; bottom: .3rem; z-index: 2; margin: 0; }
.bm-photo-cap input { width: 100%; padding: .15rem .25rem; border: 1px solid transparent; border-radius: 6px; background: transparent;
    color: #fff; font: inherit; font-size: .72rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.bm-photo-cap input::placeholder { color: rgba(255, 255, 255, .8); font-weight: 500; }
.bm-photo-cap input:hover { border-color: rgba(255, 255, 255, .5); }
.bm-photo-cap input:focus { outline: none; background: rgba(20, 18, 40, .55); border-color: #fff; }
.bm-photos-empty { display: flex; align-items: center; gap: .9rem; padding: 1.2rem; border: 1.5px dashed #e6e3ef; border-radius: 14px; }
.bm-photos-empty p { margin: 0; }
.bm-logo-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.bm-logo-card > div { flex: 1; min-width: 220px; }
.bm-logo-card h2 { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 500; }
.bm-logo-card p { margin: 0; }
.bm-logo-box { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #f5f4f9; color: var(--muted); overflow: hidden; }
.bm-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.bm-logo-card .bm-logo-form { display: flex; align-items: center; gap: .8rem; margin: 0; }
.bm-danger { color: #b42318; }
@media (max-width: 1000px) { .bm-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bm-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bank-pick { margin-top: .8rem; }

/* Ma page */
.mp { display: grid; gap: 1.1rem; }
.mp-step h2 { margin-bottom: .15rem; }
.mp-step > .muted.small { margin: 0 0 1rem; }
.mp-templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mp-template .muted.small { margin: .15rem 0 .6rem; }
.mp-tname { display: block; margin-top: .8rem; font-weight: 600; }
.mp-card { border: 1px solid #ebe8f1; border-radius: 18px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mp-card.chosen { border: 2px solid var(--pac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pac) 15%, transparent); }
.mp-banner { position: relative; height: 76px; display: grid; place-items: center; overflow: hidden; background-size: cover; background-position: center; }
.mp-banner-name { font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; position: relative; z-index: 1; }
.mp-banner-classique { background-color: var(--pac); background-image: linear-gradient(120deg, var(--pac), var(--pac2)); color: var(--pac-ink); }
.mp-banner-vitrine { background-color: var(--pac); background-image: linear-gradient(120deg, color-mix(in srgb, var(--pac) 65%, #fff), color-mix(in srgb, var(--pac2) 65%, #fff)); color: #fff; }
.mp-banner-proche { background-color: #F5EFE9; color: #1F1D47; }
.mp-banner-proche::before, .mp-banner-proche::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--pac) 22%, #fff); }
.mp-banner-proche::before { width: 70px; height: 70px; left: -14px; top: -26px; }
.mp-banner-proche::after { width: 96px; height: 96px; right: -26px; bottom: -40px; }
.mp-banner-ic { position: absolute; right: 12px; top: 50%; width: 32px; height: 32px; transform: translateY(-30%); fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.6; stroke-linecap: round; }
.mp-card-body { position: relative; padding: 0 .8rem .8rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.mp-avatar { display: grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--pac); color: var(--pac-ink); font-weight: 600; }
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.mp-avatar-card { width: 50px; height: 50px; margin-top: -26px; border: 3px solid #fff; font-size: .95rem; }
.mp-avatar-sm { width: 40px; height: 40px; font-size: .85rem; }
.mp-avatar-lg { width: 62px; height: 62px; font-size: 1.05rem; }
.mp-name { font-size: .95rem; }
.mp-meta { font-size: .72rem; color: var(--muted); }
.mp-bio { margin: .1rem 0 .2rem; font-size: .74rem; line-height: 1.5; color: #4a4860; white-space: pre-line; }
.mp-btn { display: inline-block; padding: .35rem .75rem; border: 1px solid #e6e3ef; border-radius: 99px; font-size: .7rem; font-weight: 500; background: #fff; }
.mp-btn-main { background: var(--pac); border-color: var(--pac); color: var(--pac-ink); }
.mp-btn-block { display: block; text-align: center; width: 100%; }
.mp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; width: 100%; margin-top: .3rem; }
.mp-tiles > span { aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pac) 45%, #fff), color-mix(in srgb, var(--pac2) 50%, #fff)); }
.mp-tiles img { width: 100%; height: 100%; object-fit: cover; }
.mp-tile-empty .icon { width: 22px; height: 22px; fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 1.6; stroke-linecap: round; }
.mp-chosen { border-radius: 99px; background: #fff; border: 1px solid #e6e3ef; color: #1F1D47; font-size: .85rem; }
.mp-choose .btn { padding: .4rem 1rem; font-size: .85rem; }
.mp-two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.mp-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 500; }
.mp-wide { grid-column: 1 / -1; }
.mp-label { display: block; font-size: .85rem; margin-bottom: .35rem; color: var(--muted); }
.mp-row { display: flex; align-items: center; gap: .7rem; }
.mp-grid .mp-import { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: .35rem; cursor: pointer; font-size: .8rem; }
.mp-import .icon { width: 14px; height: 14px; }
.mp-import input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.mp-import:focus-within { outline: 2px solid var(--pac); outline-offset: 2px; }
.mp-hint { display: block; margin-top: .35rem; }
.mp-bio-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: -.4rem; }
.mp-bio-row .btn { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; }
.mp-bio-row .icon { width: 14px; height: 14px; }
.mp-over { color: #b42318; }
.mp-grid textarea.suggested { border-color: var(--pac); background: color-mix(in srgb, var(--pac) 6%, #fff); }
.mp-preview { position: sticky; top: 1rem; }
.mp-preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.mp-preview-head h2 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.mp-nets button { padding: .35rem .8rem; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer; }
.mp-nets button.active { background: var(--card, #fff); color: #1F1D47; box-shadow: 0 1px 3px rgba(20, 20, 50, .08); }
.mp-phone { border: 1px solid #ebe8f1; border-radius: 18px; overflow: hidden; background: #fff; }
.mp-ig-top { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1rem .6rem; }
.mp-stats { display: flex; gap: 1rem; flex: 1; justify-content: space-around; }
.mp-stats span { display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: var(--muted); }
.mp-stats b { font-size: .95rem; color: #1F1D47; }
.mp-ig-text { display: flex; flex-direction: column; gap: .25rem; padding: 0 1rem .9rem; }
.mp-ig-grid { gap: 2px; margin: 0; }
.mp-ig-grid > span { border-radius: 0; }
.mp-fb-banner { height: 110px; }
.mp-phone .mp-card-body { padding-bottom: 1rem; }
.mp-checks { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.mp-check { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 99px; background: #e6f4ec; color: #1d7a4a; font-size: .78rem; font-weight: 500; }
.mp-check .icon { width: 13px; height: 13px; }
.mp-check.todo { background: #f1f0f5; color: var(--muted); }
.mp-apply { display: flex; flex-wrap: wrap; gap: .7rem; }
.mp-apply-btn { display: inline-flex; align-items: center; gap: .5rem; }
.mp-apply-btn .net { width: 20px; height: 20px; font-size: 10px; border-radius: 50%; }
.mp-kit { margin-top: 1.2rem; padding: 1rem 1.1rem; border: 1px dashed color-mix(in srgb, var(--pac) 55%, #fff); border-radius: 14px; background: color-mix(in srgb, var(--pac) 5%, #fff); }
.mp-kit h3 { margin: 0 0 .2rem; font-size: 1rem; font-weight: 600; }
.mp-kit > p { margin: 0 0 .9rem; }
.mp-kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin-bottom: 1rem; font-size: .85rem; }
.mp-copy { display: flex; align-items: flex-start; gap: .8rem; padding: .6rem .8rem; border-radius: 10px; background: #fff; border: 1px solid #ebe8f1; }
.mp-copy span { flex: 1; }
@media (max-width: 1100px) { .mp-two { grid-template-columns: 1fr; } .mp-preview { position: static; } }
@media (max-width: 900px) { .mp-templates { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mp-grid, .mp-kit-grid { grid-template-columns: 1fr; } }

/* Ma marque → Concurrents */
.bm-comp-card .set-head { margin: 0 0 .5rem; align-items: center; }
.bm-comp-card .set-head h2 { margin: 0; }
.bm-comp-card > p.muted { margin: 0 0 .9rem; }
.bm-comps { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.bm-comp { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .4rem .3rem .75rem; border-radius: 99px; background: #f1f0f5; font-size: .8rem; font-weight: 500; }
.bm-comp button { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: #1F1D47; font-size: 1rem; line-height: 1; cursor: pointer; }
.bm-comp button:hover { background: #e2e0ea; color: #b42318; }
.bm-comp-empty { margin: 0 0 1rem; }
.bm-comp-add { display: flex; gap: .5rem; margin: 0; }
.bm-comp-add input { flex: 1; min-width: 0; }

/* Résultats */
.rs-head { margin-bottom: .8rem; }
.rs-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.rs-filters .segmented a { padding: .35rem .8rem; font-size: .82rem; }
.rs-guide-btn, .rs-export { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; }
.rs-guide-btn .icon, .rs-export .icon { width: 14px; height: 14px; }
.rs-export { border-radius: 99px; background: color-mix(in srgb, var(--ac) 12%, #fff); border-color: transparent; color: var(--act); text-decoration: none; }
.rs-export:hover { background: color-mix(in srgb, var(--ac) 20%, #fff); }
.rs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.rs-kpi { display: flex; flex-direction: column; gap: .3rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.rs-kpi-name { display: flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--muted); }
.rs-kpi-name i { display: inline-grid; cursor: help; }
.rs-kpi-name .icon { width: 12px; height: 12px; }
.rs-kpi b { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.rs-trend { font-size: .75rem; font-weight: 600; }
.rs-trend.up, .rs-trend.flat { color: #1d7a4a; }
.rs-trend.down { color: #b42318; }
.rs-sub { font-size: .72rem; color: var(--muted); }
.rs-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; align-items: start; }
.rs-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-row .set-card h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.rs-card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rs-legend { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--muted); }
.rs-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ac); }
.rs-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.rs-grid { stroke: #efedf5; stroke-width: 1; }
.rs-axis { font-size: 8.5px; fill: var(--muted); }
.rs-area { fill: color-mix(in srgb, var(--ac) 14%, #fff); }
.rs-line { fill: none; stroke: var(--ac); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.rs-peak { fill: #fff; stroke: var(--ac); stroke-width: 1.8; }
.rs-peak-label { font-size: 9px; font-weight: 600; fill: #1F1D47; }
.rs-note { margin: .7rem 0 0; }
.rs-top-row { margin-bottom: .8rem; }
.rs-top-line { display: flex; align-items: center; gap: .45rem; font-size: .82rem; margin-bottom: .35rem; }
.rs-top-line .net { width: 16px; height: 16px; font-size: 8px; border-radius: 50%; flex: none; }
.rs-top-cap { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.rs-bar { height: 6px; border-radius: 99px; background: #f1f0f5; overflow: hidden; }
.rs-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ac); }
.rs-reco { padding: .75rem .85rem; border-radius: 12px; background: #f6f5f9; margin-bottom: .6rem; }
.rs-reco p { margin: .35rem 0 0; font-size: .8rem; line-height: 1.55; color: #4a4860; }
.rs-tag { display: inline-block; padding: .15rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--ac) 14%, #fff); color: var(--act); font-size: .72rem; font-weight: 600; }
.rs-soon { padding: .8rem .9rem; border-radius: 12px; background: #f6f5f9; margin-bottom: .8rem; }
.rs-soon p { margin: .3rem 0 0; color: #4a4860; }
.rs-stars { color: #e7b416; letter-spacing: .1em; opacity: .5; }
.rs-rep-line { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; border-top: 1px solid #f1f0f5; font-size: .85rem; }
.rs-rep-line > span:first-child { display: inline-flex; align-items: center; gap: .45rem; }
.rs-rep-line .icon { width: 15px; height: 15px; }
.rs-rep-line .net { width: 18px; height: 18px; font-size: 9px; border-radius: 50%; }
.rs-rep-line .net svg { width: 12px; height: 12px; }
.rs-gg { display: flex; align-items: center; gap: .9rem; margin: .4rem 0 .7rem; }
.rs-gg-note { font-size: 2.2rem; font-weight: 600; line-height: 1; }
.rs-gg p { margin: .15rem 0 0; }
.rs-gg-stars { color: #e7b416; letter-spacing: .08em; white-space: nowrap; }
.rs-gg-stars span { color: #dedce6; }
a.rs-gg-review { color: inherit; text-decoration: none; gap: .6rem; }
a.rs-gg-review:hover { background: #faf9fc; }
a.pill-warn { text-decoration: none; }
.rs-link-new { margin-bottom: .8rem; }
.rs-link-new summary { display: inline-flex; list-style: none; cursor: pointer; font-size: .82rem; }
.rs-link-new summary::-webkit-details-marker { display: none; }
.rs-link-new form { display: grid; gap: .5rem; margin-top: .7rem; }
.rs-link-new input, .rs-link-new select { font-size: .85rem; }
.rs-link-row { display: flex; gap: .5rem; }
.rs-link-row select { flex: 1; min-width: 0; }
.rs-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.rs-table th { text-align: left; font-weight: 500; color: var(--muted); padding: .45rem .4rem; border-bottom: 1px solid #efedf5; }
.rs-table td { padding: .55rem .4rem; border-bottom: 1px solid #f4f3f8; vertical-align: middle; }
.rs-table th:nth-child(3), .rs-table td:nth-child(3) { text-align: right; }
.rs-table td:last-child { width: 1%; }
.rs-table form { margin: 0; }
.rs-copy { margin-left: .3rem; padding: 0; border: 0; background: none; color: var(--act); font: inherit; font-size: .72rem; cursor: pointer; }
.rs-copy:hover { text-decoration: underline; }
.rs-del { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; }
.rs-del:hover { background: #f1f0f5; color: #b42318; }
.rs-guide { max-width: 460px; border: 0; border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: 0 20px 60px rgba(20, 20, 50, .2); }
.rs-guide::backdrop { background: rgba(20, 18, 40, .35); }
.rs-guide h2 { margin: 0 0 .8rem; font-size: 1.15rem; font-weight: 500; }
.rs-guide dt { font-weight: 600; font-size: .85rem; margin-top: .6rem; }
.rs-guide dd { margin: .15rem 0 0; font-size: .82rem; color: #4a4860; line-height: 1.5; }
.rs-guide form { margin: 1.1rem 0 0; text-align: right; }
.rs-foot { margin: .2rem 0 0; }
@media (max-width: 1100px) { .rs-row, .rs-row3 { grid-template-columns: 1fr; } }

/* Mes posts */
.ps { --acs: color-mix(in srgb, var(--ac) 12%, #fff); --act: color-mix(in srgb, var(--ac) 70%, #1F1D47); }
.ps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.ps-head > div { flex: 1 1 260px; min-width: 0; }
.ps-head .subtitle { margin-bottom: 0; }
.ps-head h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.ps-seg { display: inline-flex; flex-wrap: wrap; gap: .15rem; padding: .25rem; border-radius: 99px; background: #eef0f4; }
.ps-seg a { padding: .4rem .85rem; border-radius: 99px; font-size: .8rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ps-seg a:hover { color: #1F1D47; }
.ps-seg a.on { background: #fff; color: #1F1D47; box-shadow: 0 1px 3px rgba(20, 20, 50, .1); }
.ps-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.ps-card h3, .ps-gen-head h2, .ps-preview-head h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 1.05rem; margin: 0; }
.ps-card-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; flex-wrap: wrap; }
.ps-card > h3 { margin-bottom: .8rem; }
.ps-label { margin: .8rem 0 .45rem; font-size: .8rem; font-weight: 600; color: #4a4860; }
.ps-chips, .ps-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.ps-chip { display: inline-flex; padding: .4rem .8rem; border: 1px solid transparent; border-radius: 99px; background: #f1f2f6; font-size: .8rem; cursor: pointer; }
.ps-chip { position: relative; }
.ps-chip input, .ps-mini-seg input, .ps-net input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.ps-chip:has(input:checked) { background: var(--acs); border-color: color-mix(in srgb, var(--ac) 55%, #fff); color: var(--act); }
.ps-chip:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.ps-mini-seg { display: inline-flex; gap: 3px; padding: 4px; border: 0; border-radius: 999px; background: #f6f7f9; }
.ps-mini-seg label, .ps-mini-seg button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 500; color: #737b8c; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.ps-mini-seg label { position: relative; }
.ps-mini-seg { align-items: center; vertical-align: middle; }
.ps-mini-seg label, .ps-mini-seg button { display: inline-flex; align-items: center; margin: 0; line-height: 1.2; }
.ps-chip, .ps-net, .ps-when label { margin: 0; }
.ps-overlay { align-items: end; }
.ps-overlay-text { margin: 0; }
.ps-overlay-pos { min-height: 2.75rem; }
.ps-mini-seg label:has(input:checked), .ps-mini-seg .on { background: #fff; color: #2a2f3b; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ps-mini-seg label.off { cursor: not-allowed; }
.ps-gen-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .9rem; }
.ps-gen-head p { margin: .2rem 0 0; max-width: 46ch; }
.ps-reset { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: #1F1D47; text-decoration: none; }
.ps-reset .icon { width: 15px; height: 15px; }
.ps-gen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); gap: 1.3rem; align-items: start; }
.ps-gen textarea, .ps-gen input[type=text], .ps-gen input:not([type]) { width: 100%; }
.ps-gen textarea { border-radius: 14px; }
.ps-add, .ps-retouch { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .7rem 0; }
.ps-pill-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid var(--border); border-radius: 99px; background: #fff; font: inherit; font-size: .78rem; color: #1F1D47; cursor: pointer; }
label.ps-pill-btn { margin: 0; } /* « Document » : pas la marge des étiquettes de formulaire */
.ps-pill-btn:hover { border-color: color-mix(in srgb, var(--ac) 50%, #fff); }
.ps-finish { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0 .5rem; }
.ps-finish .ps-pill-btn { padding: .6rem 1rem; font-size: .88rem; }
.ps-pill-btn .icon { width: 16px; height: 16px; }
.ps-pill-btn:disabled { opacity: .6; cursor: progress; }
.ps-pill-btn .icon { width: 14px; height: 14px; }
.ps-t { font-weight: 700; font-size: .85rem; line-height: 1; }
.ps-dash-btn { padding: .35rem .75rem; border: 1px dashed #c9cbd8; border-radius: 99px; background: #fff; font: inherit; font-size: .78rem; color: #1F1D47; cursor: pointer; }
.ps-dash-btn:hover { border-color: var(--ac); color: var(--act); }
.ps-write { display: inline-flex; align-items: center; gap: .4rem; border-radius: 99px; }
.ps-write .icon { width: 16px; height: 16px; }
.ps-status { min-height: 1.1em; margin: .5rem 0 0; }
.ps-nets { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .8rem; }
.ps-net { position: relative; display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 12px; font-size: .88rem; cursor: pointer; }
.ps-net .net { width: 24px; height: 24px; border-radius: 50%; font-size: .7rem; }
.ps-check { margin-left: auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef0f4; color: transparent; }
.ps-check .icon { width: 13px; height: 13px; }
.ps-net:has(input:checked) { background: var(--acs); border-color: color-mix(in srgb, var(--ac) 60%, #fff); }
.ps-net:has(input:checked) .ps-check { background: var(--ac); color: #fff; }
.ps-net:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.ps-net.missing { cursor: default; opacity: .75; }
.ps-net.off { cursor: not-allowed; opacity: .5; }
.ps-net.missing a { margin-left: auto; }
.ps-subtabs { display: flex; gap: .15rem; padding: .25rem; border-radius: 14px; background: #f1f2f6; margin-bottom: .7rem; flex-wrap: wrap; }
.ps-subtabs button { padding: .35rem .8rem; border: 0; border-radius: 99px; background: none; font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer; }
.ps-subtabs button.on { background: #fff; color: #1F1D47; font-weight: 500; box-shadow: 0 1px 3px rgba(20, 20, 50, .1); }
.ps-tag { padding: .3rem .7rem; border: 1px dashed #c9cbd8; border-radius: 99px; background: #fff; font: inherit; font-size: .76rem; color: #1F1D47; cursor: pointer; }
.ps-tag.on { border-style: solid; border-color: color-mix(in srgb, var(--ac) 45%, #fff); background: var(--acs); color: var(--act); }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .6rem 0; }
.ps-thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: #f1f2f6; cursor: pointer; }
.ps-thumb img, .ps-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-thumb span { position: absolute; left: .45rem; right: .45rem; bottom: .35rem; color: #fff; font-size: .7rem; font-weight: 600; text-align: left; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-thumb.on { border-color: var(--ac); }
.ps-soon { padding: .8rem .9rem; border-radius: 12px; background: #f6f5f9; }
.ps-soon p { margin: .3rem 0 0; }
.ps-stock-search { display: flex; gap: .5rem; }
.ps-stock-search input { flex: 1; min-width: 0; }
.ps-stock .ps-grid:empty { display: none; }
.ps-stock-credit { margin: .4rem 0 0; }
.ps-thumb.loading { opacity: .55; cursor: progress; }
.ps-vpane .dropzone { min-height: 180px; }
.ps-overlay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: end; margin-top: .6rem; }
.ps-overlay-text { font-size: .8rem; font-weight: 600; }
.ps-overlay-text input { margin-top: .35rem; font-weight: 400; }
.ps-overlay-pos { display: flex; align-items: center; gap: .5rem; }
.ps-when { padding: 1rem 1.2rem; border-radius: 20px; background: #f1f2f6; margin-bottom: 1rem; }
.ps-when-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.ps-when label { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; }
.ps-when input { width: auto; border-radius: 12px; }
.ps-when .btn { border-radius: 99px; display: inline-flex; align-items: center; gap: .35rem; }
.ps-when .btn .icon { width: 15px; height: 15px; }
.ps-draft-btn { background: #fff; }
.ps-preview-col { position: sticky; top: 1rem; }
.ps-preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.ps-phone { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: .9rem; box-shadow: 0 10px 30px rgba(20, 20, 50, .06); }
.ps-phone-top { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; }
.ps-phone-top b { display: block; font-size: .85rem; }
.ps-phone-top small { color: var(--muted); font-size: .72rem; }
.ps-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ac); color: #fff; font-size: .75rem; font-weight: 700; flex: none; }
.ps-prev-badge { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; font-size: .6rem; }
.ps-media { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 35%, #fff), #e6d3c3); display: grid; place-items: center; }
.ps-phone[data-net=FACEBOOK] .ps-media { aspect-ratio: 4 / 3; }
.ps-phone[data-net=FACEBOOK] .ps-prev-text { order: -1; margin-top: 0; } /* Facebook : le texte avant l'image */
.ps-phone-top { order: -2; }
.ps-media img, .ps-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-media-empty { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; color: #fff; font-size: .78rem; font-weight: 600; }
.ps-media-empty .icon { width: 30px; height: 30px; }
.ps-band { position: absolute; left: 4%; right: 4%; top: 3%; z-index: 1; padding: .45rem .6rem; border-radius: 8px; background: rgba(60, 40, 48, .78); color: #fff; font-weight: 600; font-size: .9rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-band.bottom { top: auto; bottom: 3%; }
.ps-prev-text { margin: .7rem 0 .6rem; font-size: .8rem; line-height: 1.55; color: #3b3950; white-space: pre-line; max-height: 18rem; overflow: auto; }
.ps-prev-text b { margin-right: .25rem; }
.ps-prev-actions { display: flex; justify-content: space-between; padding-top: .55rem; border-top: 1px solid #f1f0f5; font-size: .75rem; font-weight: 600; color: var(--muted); }
.ps-prev-note { text-align: center; margin: .6rem 0 0; }
.ps-plum { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-radius: 20px; margin-bottom: 1rem; background: color-mix(in srgb, var(--ac) 10%, #fff); }
.ps-plum p { margin: 0; font-size: .85rem; color: #4a4860; line-height: 1.6; }
.ps-plum-icon { color: var(--act); flex: none; }
.ps-ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ps-idea { display: flex; flex-direction: column; min-height: 185px; padding: 1rem 1.05rem; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.ps-idea.kept { border-color: color-mix(in srgb, var(--ac) 55%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 12%, transparent); }
.ps-idea-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.ps-idea-nets { display: inline-flex; gap: .25rem; }
.ps-idea-nets .net { width: 18px; height: 18px; border-radius: 50%; font-size: .55rem; }
.ps-idea h3 { margin: 0 0 .4rem; font-size: .95rem; font-weight: 600; font-family: inherit; }
.ps-idea p { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.55; flex: 1; }
.ps-tag-pill { display: inline-block; padding: .2rem .6rem; border-radius: 99px; font-size: .72rem; font-weight: 600; background: #f1f2f6; color: #4a4860; }
.ps-tag-pill.t-marronnier, .ps-tag-pill.t-desaison { background: #f4ece4; color: #7a5a3c; }
.ps-tag-pill.t-coulisses, .ps-tag-pill.t-avantapres { background: var(--acs); color: var(--act); }
.ps-tag-pill.t-questionclient, .ps-tag-pill.t-ideedujour { background: #eef0f4; color: #1F1D47; }
.ps-tag-pill.t-savoirfaire, .ps-tag-pill.t-portrait { background: #eaf3ee; color: #2c6247; }
.ps-idea-actions { display: flex; align-items: center; gap: .4rem; margin-top: 1rem; }
.ps-idea-actions form { margin: 0; }
.ps-keep { margin-left: auto !important; }
.ps-round { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: #1F1D47; font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer; text-decoration: none; }
.ps-round:hover { border-color: color-mix(in srgb, var(--ac) 55%, #fff); }
.ps-round .icon { width: 15px; height: 15px; }
.ps-heart[aria-pressed=true] { color: var(--ac); border-color: color-mix(in srgb, var(--ac) 55%, #fff); }
.ps-drafts { padding: 1.2rem 1.3rem; }
.ps-retention { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; font-size: .78rem; color: var(--muted); }
.ps-retention select { width: auto; padding: .25rem .5rem; border-radius: 99px; font-size: .78rem; }
.ps-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ps-table th { text-align: left; font-weight: 500; font-size: .78rem; color: var(--muted); padding: .55rem .5rem; border-bottom: 1px solid #efedf5; }
.ps-table td { padding: .7rem .5rem; border-bottom: 1px solid #f1f0f5; vertical-align: middle; }
.ps-table td b { font-weight: 600; }
.ps-note { display: block; color: #8a5a00; font-size: .74rem; margin-top: .2rem; }
.ps-left { display: inline-block; padding: .2rem .55rem; border-radius: 8px; background: #f1f2f6; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.ps-row-actions { text-align: right; white-space: nowrap; width: 1%; }
.ps-row-actions form { display: inline-block; margin: 0 0 0 .3rem; vertical-align: middle; }
.ps-resume { border-radius: 99px; background: #fff; }
@media (max-width: 1100px) { .ps-gen { grid-template-columns: 1fr; } .ps-preview-col { position: static; max-width: 380px; } .ps-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ps-ideas, .ps-nets { grid-template-columns: 1fr; } .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mes posts : carrousel */
.ps-skels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.ps-skel { position: relative; display: flex; flex-direction: column; gap: .25rem; margin: 0; padding: .75rem .85rem; border: 1px solid var(--line, #e6e8ee); border-radius: 12px; background: #fff; cursor: pointer; }
.ps-skel input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.ps-skel b { font-size: .85rem; }
.ps-skel span { font-size: .78rem; color: var(--muted); }
.ps-skel:has(input:checked) { border-color: color-mix(in srgb, var(--ac) 55%, #fff); background: var(--acs); }
.ps-skel:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.ps-slides { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.ps-slide { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .8rem; align-items: start; padding: .6rem; border: 1px solid transparent; border-radius: 12px; }
.ps-slide.on { border-color: var(--line, #e6e8ee); background: #fafbfc; }
.ps-slide > .ps-slide-picker { grid-column: 1 / -1; }
.ps-slide-img { width: 84px; height: 84px; padding: 0; border: 1px solid var(--line, #e6e8ee); border-radius: 10px; overflow: hidden; background: #f6f7f9; cursor: pointer; }
.ps-slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-slide-img.empty { border-style: dashed; color: var(--muted); font-size: .78rem; font-weight: 600; }
.ps-slide-body label { margin: 0 0 .4rem; font-size: .8rem; font-weight: 600; }
.ps-slide-body input { margin-top: .25rem; }
.ps-slide-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ps-slide-move { display: inline-flex; gap: .3rem; margin-left: auto; }
.ps-slide-move .ps-round:disabled { opacity: .35; cursor: default; }
.ps-slide-picker { margin-top: .4rem; padding: .8rem; border: 1px solid var(--line, #e6e8ee); border-radius: 12px; background: #fff; }
.ps-picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.ps-pick-file { position: relative; margin: .6rem 0 0; }
.ps-pick-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.ps-pill-btn:disabled { opacity: .45; cursor: default; }
.ps-slide-actions { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.ps-phone.is-car .ps-media { aspect-ratio: 1; }
.ps-car-arrow { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); color: #2a2f3b; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.ps-car-arrow.prev { left: 8px; }
.ps-car-arrow.next { right: 8px; }
.ps-car-count { position: absolute; top: 8px; right: 8px; z-index: 2; padding: .15rem .5rem; border-radius: 99px; background: rgba(20, 20, 30, .6); color: #fff; font-size: .72rem; font-weight: 600; }
.ps-car-dots { display: flex; justify-content: center; gap: 4px; margin: .5rem 0 0; }
.ps-car-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d3d6de; }
.ps-car-dots span.on { background: var(--ac); }
.ps-car-tag { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 99px; background: #f1f2f6; color: var(--muted); font-size: .72rem; font-weight: 600; vertical-align: middle; }
@media (max-width: 640px) { .ps-skels { grid-template-columns: 1fr; } }

/* Mes posts : boutons principaux à la couleur de la marque, comme « Créer un post » */
.ps-gen .ps-write, .ps-when .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; font-size: 14px; font-weight: 500; }
.ps-gen .btn-primary { background: var(--ac); border-color: var(--ac); color: var(--aci); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--ac) 70%, transparent); }
.ps-gen .btn-primary:hover:not(:disabled) { background: var(--ac); filter: brightness(.95); }
.ps-gen .btn-primary .icon { width: 17px; height: 17px; }
.ps-gen .btn-primary:disabled, .ps-when .btn:disabled { background: #eceef3; border-color: #eceef3; color: #9aa0ad; box-shadow: none; filter: none; opacity: 1; }
.ps-no-account { margin: .2rem 0 0; color: var(--muted); }
.ps-no-account a { color: var(--act); font-weight: 600; }

/* En-tête : date du jour et cloche (comme la maquette) */
.top-date { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 500; color: var(--text); }
.top-date .icon { width: 15px; height: 15px; }
.top-bell { position: relative; }
.top-bell > summary { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; list-style: none; }
.top-bell > summary::-webkit-details-marker { display: none; }
.top-bell > summary .icon { width: 19px; height: 19px; }
.top-bell[open] > summary, .top-bell > summary:hover { border-color: color-mix(in srgb, var(--ac) 50%, #fff); }
.top-pip { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 9px; background: var(--ac); }
.top-menu { position: absolute; right: 0; top: 52px; z-index: 60; display: flex; flex-direction: column; gap: 2px; width: 290px; padding: 8px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px -12px rgba(20, 20, 50, .25); }
.top-menu a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 12px; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.top-menu a:hover, .top-menu a:focus-visible { background: #f6f7f9; }
.top-menu a .icon { flex: none; width: 18px; height: 18px; }
.top-menu small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }

/* ---------- Accueil (comme la maquette : grille de 12 colonnes, 7 cartes ; --ac = couleur de la marque) ---------- */
.hm { --sunk: #f6f7f9; --line: #edf0f4; --ac2: #2f3a4a; --ac2s: color-mix(in srgb, var(--ac2) 16%, #fff); }
.hm-intro { margin-bottom: 20px; }
.hm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.hm-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(20, 24, 36, .02); }
.hm-s4 { grid-column: span 4; }
.hm-s8 { grid-column: span 8; }
.hm-card h2 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.hm-card h3 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 500; }
.hm-card p { margin: 0; }
.hm-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-mut { color: var(--muted); }
.hm-sm { font-size: 13px; }
.hm-b { font-weight: 500; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; }
.hm-btn:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.hm-btn .icon, .hm-btn svg { width: 16px; height: 16px; flex: none; }
.hm-pri { background: var(--ac); border-color: var(--ac); color: var(--aci); }
.hm-pri:hover { border-color: var(--ac); filter: brightness(.95); }
.hm-dk { min-height: 44px; font-size: 14px; background: var(--acs); border-color: transparent; color: var(--act); }
.hm-dk:hover { border-color: transparent; filter: brightness(.97); }
.hm-gh { align-self: flex-start; border-color: transparent; background: transparent; }
.hm-rb { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; }
.hm-rb:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.hm-rb.on { background: var(--ac); border-color: var(--ac); color: var(--aci); }
.hm-rb svg { width: 17px; height: 17px; }
.hm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--sunk); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.hm-chip.ac { align-self: flex-start; background: var(--acs); color: var(--act); }
.hm-chip.warn { background: #f8eedf; color: #9a5600; }
.hm-chip.bad { background: #fbe9e9; color: #b42318; }
.hm .net { width: 20px; height: 20px; font-size: 10px; flex: none; }
.hm-empty { padding: 28px 16px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
/* 1. Semaine */
.hm-ringbox { display: flex; align-items: center; gap: 16px; }
.hm-ring { position: relative; flex: none; width: 104px; height: 104px; }
.hm-ring svg { display: block; }
.hm-av { position: absolute; inset: 14px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--ac); color: var(--aci); font-size: 26px; font-weight: 500; }
.hm-lvl { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--ac); color: var(--aci); font-size: 12px; font-weight: 500; white-space: nowrap; }
.hm-lvl.todo { background: #fff; color: var(--act); box-shadow: inset 0 0 0 1px var(--line); }
.hm-wel h2 { font-size: 22px; }
.hm-count { align-items: baseline; gap: 10px; flex-wrap: nowrap; }
.hm-big { font-size: clamp(34px, 4vw, 46px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.hm-meter { display: flex; gap: 4px; height: 8px; }
.hm-meter i { flex: 1; border-radius: 9px; background: var(--sunk); }
.hm-meter i.f { background: var(--ac); }
.hm-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; border-radius: 18px; background: var(--sunk); }
.hm-trio a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; color: var(--text); text-align: center; text-decoration: none; }
.hm-trio a:hover { background: #fff; }
.hm-trio .ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; }
.hm-trio .ic .icon { width: 18px; height: 18px; }
.hm-trio b { font-size: 22px; line-height: 1; }
.hm-trio span:last-child { color: var(--muted); font-size: 13px; font-weight: 500; }
/* 2. Idées du jour */
.hm-hero { border: 0; background: var(--ac); color: var(--aci); }
.hm-hero h2 { font-size: 24px; }
.hm-sub { opacity: .85; font-size: 14px; font-weight: 500; }
.hm-sub.hm-sm { font-size: 13px; }
.hm-hero-btn, .hm-hero-btn:hover { border-color: #fff; background: #fff; color: var(--text); }
.hm-hero .hm-empty { border: 0; background: #fff; }
.hm-hero .hm-hd { flex-wrap: nowrap; align-items: flex-start; }
.hm-stripw { position: relative; margin: 0 6px; }
.hm-arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; transform: translateY(-50%); box-shadow: 0 6px 18px -8px rgba(20, 24, 36, .35); }
.hm-arrow.l { left: -22px; }
.hm-arrow.r { right: -22px; }
.hm-strip { display: flex; gap: 12px; padding: 2px 2px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hm-idea { flex: 0 0 clamp(228px, 30%, 280px); display: flex; flex-direction: column; gap: 10px; min-height: 236px; padding: 16px; border-radius: 16px; background: #fff; color: var(--text); scroll-snap-align: start; }
.hm-idea.liked { box-shadow: inset 0 0 0 2px var(--ac); }
.hm-idea h3 { font-size: 16px; }
.hm-idea p { color: var(--muted); font-size: 13px; }
.hm-nets { margin-left: auto; gap: 4px; }
.hm-acts { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.hm-acts form { display: contents; }
.hm-acts .hm-like { margin-left: auto; }
/* 3. Résumé d'hier */
.hm-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--sunk); }
.hm-seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; color: #737b8c; font-size: 13px; font-weight: 500; text-decoration: none; }
.hm-seg a.on { background: #fff; color: #2a2f3b; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.hm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.hm-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; }
.hm-kpi b { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.hm-kpi .d { font-size: 13px; font-weight: 500; white-space: nowrap; }
.hm-kpi .up { color: #1f7a4d; }
.hm-kpi .dn { color: #b42318; }
.hm-say { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sunk); font-size: 14px; }
.hm-say .mascot { flex: none; }
.hm-gg { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line, #ebeaf0); color: inherit; text-decoration: none; font-size: 14px; flex-wrap: wrap; }
.hm-gg:hover { background: var(--sunk); }
.hm-gg .net { width: 26px; height: 26px; border-radius: 50%; }
.hm-gg .net svg { width: 16px; height: 16px; }
.hm-gg-warn { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: #fdecea; color: #b3261e; font-size: 12.5px; font-weight: 600; }
/* 4. Plùm, le pense-bête */
.hm-lumi { border: 0; background: linear-gradient(155deg, var(--ac2s), var(--acs) 70%); }
.hm-lumi .mascot { flex: none; }
.hm-note { display: flex; flex-direction: column; gap: 10px; }
.hm-note input { width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; }
.hm-note input:focus { outline: 2px solid color-mix(in srgb, var(--ac) 50%, transparent); border-color: var(--ac); }
/* 5. Mini-calendrier */
.hm-mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.hm-mcal > span { padding: 2px 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.hm-mcal a { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; }
.hm-mcal a:hover { background: var(--sunk); }
.hm-mcal a.t { background: var(--acs); color: var(--act); }
.hm-mcal a.sel { background: var(--ac); color: var(--aci); }
.hm-mcal a.has::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 9px; background: var(--ac); }
.hm-mcal a.sel.has::after { background: var(--aci); }
.hm-mcal a.mar::before { content: ''; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 9px; background: var(--ac2); }
.hm-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.hm-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 4px; vertical-align: -2px; }
/* 6. Post du jour */
.hm-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 62%, #fff), color-mix(in srgb, var(--ac2) 70%, #fff)); }
.hm-photo img, .hm-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-photo .hm-chip { position: absolute; top: 10px; left: 10px; background: #fff; }
.hm-photo .hm-chip.warn, .hm-photo .hm-chip.bad { left: auto; right: 10px; }
.hm-photo .hm-chip.warn { background: #f8eedf; }
.hm-photo .hm-chip.bad { background: #fbe9e9; }
.hm-clamp { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 13px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.hm-dialog { width: min(440px, calc(100vw - 32px)); padding: 16px; border: 0; border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(20, 24, 36, .45); }
.hm-dialog::backdrop { background: rgba(20, 24, 36, .4); }
.hm-dialog form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.hm-full { margin: 12px 2px 0; font-size: 14px; line-height: 1.5; white-space: pre-line; }
/* 7. Recommandation */
.hm-reco .hm-reco-text { margin: 0; font-size: 16px; line-height: 1.45; }
.hm-reco > .hm-row:last-child { margin-top: auto; padding-top: 4px; }
.hm-dots { display: flex; gap: 6px; align-items: center; }
.hm-dots a { width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 18%, #fff); transition: width .2s; }
.hm-dots a:hover { background: color-mix(in srgb, var(--ac) 40%, var(--line)); }
.hm-dots a.on { width: 20px; background: var(--ac); }
.hm-proof { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--sunk); }
.hm-proof-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.hm-proof-row i { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 7%, transparent); overflow: hidden; }
.hm-proof-row b { display: block; height: 100%; border-radius: 99px; background: color-mix(in srgb, var(--text) 25%, #fff); }
.hm-proof-row strong { font-weight: 600; color: var(--text); min-width: 2ch; text-align: right; }
.hm-proof-row.hi { color: var(--text); font-weight: 500; }
.hm-proof-row.hi b { background: var(--ac); }
.hm-proof small { font-size: 12px; color: var(--muted); }
.hm-proof-stat { flex-direction: row; align-items: baseline; gap: 8px; }
.hm-proof-stat strong { font-size: 22px; letter-spacing: -.02em; color: var(--act); }
.hm-proof-stat span { font-size: 13px; color: var(--muted); }
.hm-idea { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--ac) 40%, var(--line)); }
.hm-idea span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--act); text-transform: uppercase; letter-spacing: .04em; }
.hm-idea .icon { width: 14px; height: 14px; }
.hm-idea p { margin: 0; font-size: 14px; line-height: 1.4; }
@media (max-width: 1100px) {
  .hm-s4 { grid-column: span 6; }
  .hm-s8 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .hm-s4, .hm-s8 { grid-column: span 12; }
  .hm-arrow { display: none; }
}

/* Mes posts → Idées : les idées notées (pense-bête de l'Accueil) */
.ps-notes { margin-top: 20px; }
.ps-note-form { display: flex; gap: 8px; margin-bottom: 12px; }
.ps-note-form input { flex: 1; margin: 0; }
.ps-notes-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ps-notes-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; }
.ps-notes-list li > span { flex: 1; min-width: 0; }
.ps-notes-list small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Bulle Plùm (toutes les pages, comme la maquette) ---------- */
.plum-fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border: 1px solid #edf0f4; border-radius: 999px; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 12px 32px -12px rgba(20, 24, 36, .28); }
.plum-fab:hover { border-color: color-mix(in srgb, var(--ac) 45%, #edf0f4); }
.plum-fab .mascot { flex: none; }
.plum-fab b { display: block; font-size: 14px; font-weight: 600; }
.plum-fab small { display: block; color: var(--muted); font-size: 13px; }
.plum-panel { position: fixed; right: 20px; bottom: 20px; z-index: 81; display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 40px)); overflow: hidden; border: 1px solid #edf0f4; border-radius: 22px; background: #fff; box-shadow: 0 18px 48px -16px rgba(20, 24, 36, .35); }
.plum-panel[hidden] { display: none; }
.plum-panel header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #edf0f4; }
.plum-panel header .mascot { flex: none; }
.plum-title { flex: 1; min-width: 0; }
.plum-title b { display: block; font-size: 15px; }
.plum-title span { color: var(--muted); font-size: 13px; }
.plum-panel[data-tab="ideas"] [data-for="help"], .plum-panel[data-tab="help"] [data-for="ideas"],
.plum-panel[data-tab="chat"] [data-for="ideas"], .plum-panel[data-tab="chat"] [data-for="help"],
.plum-panel:not([data-tab="chat"]) [data-for="chat"] { display: none; }
.plum-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #f6f7f9; }
.plum-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #737b8c; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.plum-seg button[aria-selected="true"] { background: #fff; color: #2a2f3b; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.plum-x, .plum-trash { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid #edf0f4; border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; }
.plum-x:hover, .plum-trash:hover { border-color: color-mix(in srgb, var(--text) 30%, #edf0f4); }
.plum-trash { width: 36px; height: 36px; }
.plum-trash .icon { width: 15px; height: 15px; }
.plum-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; overflow: auto; }
.plum-body p { margin: 0; font-size: 13px; line-height: 1.55; }
.plum-sparks { display: flex; flex-wrap: wrap; gap: 8px; }
.plum-spark { min-height: 32px; padding: 0 12px; border: 1px dashed color-mix(in srgb, var(--text) 25%, #edf0f4); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.plum-spark:hover { background: #f6f7f9; }
.plum-note { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #f6f7f9; font-size: 13px; overflow-wrap: anywhere; }
.plum-note-row { display: flex; align-items: center; gap: 8px; }
.plum-note-row small { flex: 1; color: var(--muted); font-size: 13px; }
.plum-note-row form { margin: 0; }
.plum-post { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; background: var(--ac); color: var(--aci); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.plum-post:hover { filter: brightness(.95); }
.plum-help { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 18px; border: 1px solid #edf0f4; border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.plum-help:hover { border-color: color-mix(in srgb, var(--text) 30%, #edf0f4); }
.plum-miss { color: #9a5600; }
.plum-ft { display: flex; gap: 6px; margin: 0; padding: 10px 14px 14px; border-top: 1px solid #edf0f4; }
.plum-ft input { flex: 1; width: auto; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid #edf0f4; border-radius: 14px; font-size: 16px; }
.plum-ft input:focus { outline: 2px solid color-mix(in srgb, var(--ac) 50%, transparent); border-color: var(--ac); }
.plum-send { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: var(--acs); color: var(--act); cursor: pointer; }
/* Discussion avec Plùm */
.plum-panel { width: min(420px, calc(100vw - 32px)); }
.plum-seg button { padding: 0 11px; }
.plum-chat { gap: 8px; min-height: 260px; }
.plum-msg { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 4px 14px 14px 14px;
  background: #f6f7f9; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.plum-msg p { margin: 0; }
.plum-msg ul { margin: 0; padding-left: 18px; }
.plum-msg li + li { margin-top: 2px; }
.plum-msg.me { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: var(--acs); color: var(--act); white-space: pre-line; }
.plum-msg.wait { color: var(--muted); font-style: italic; animation: plum-wait 1.2s ease-in-out infinite; }
.plum-msg.err { background: #fdeeee; color: #9b1c1c; }
.plum-msg .plum-post { align-self: flex-start; gap: 6px; margin-top: 2px; }
.plum-msg .plum-post .icon { width: 15px; height: 15px; }
@keyframes plum-wait { 50% { opacity: .45; } }
.plum-starters .plum-spark { border-style: solid; text-align: left; }
.plum-reset { margin: 4px 0 0; align-self: center; }
.plum-reset button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.plum-off { padding: 10px 12px; border-radius: 14px; background: #fff7e6; color: #8a5a00; }
.plum-ft input:disabled, .plum-send:disabled { opacity: .55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .plum-msg.wait { animation: none; } }
@media print { .plum-fab, .plum-panel { display: none !important; } }

/* ---------- Échanges (comme la maquette : liste par priorité à gauche, message à droite) ---------- */
.ib { --sunk: #f6f7f9; --line: #edf0f4; }
.ib-page-hd { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 4px 2px 18px; }
.ib-page-hd h1 { margin: 0; }
.ib-page-hd p { max-width: 52ch; margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.ib-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ib-between { justify-content: space-between; }
.ib-end { justify-content: flex-end; }
.ib-end-self { align-self: flex-end; }
.ib-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ib-sm { font-size: 13px; }
.ib-mut { color: var(--muted); }
.ib-link { color: var(--act); font-weight: 500; }
.ib-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--sunk); }
.ib-seg a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; color: #737b8c; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.ib-seg a.on { background: #fff; color: #2a2f3b; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ib-rb { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; }
.ib-rb .icon { width: 18px; height: 18px; }
.ib-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; }
.ib-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.ib-btn:disabled { opacity: .6; cursor: progress; }
.ib-btn .icon, .ib-btn svg { width: 16px; height: 16px; flex: none; }
.ib-small { min-height: 36px; padding: 0 13px; font-size: 13px; }
.ib-pri { background: var(--ac); border-color: var(--ac); color: var(--aci); }
.ib-pri:hover:not(:disabled) { border-color: var(--ac); filter: brightness(.95); }
.ib-dk { background: var(--acs); border-color: transparent; color: var(--act); }
.ib-gh { border-color: transparent; background: transparent; }
.ib-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sunk); color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ib-chip .icon { width: 13px; height: 13px; }
.ib-chip.p1 { background: #fbe9e9; color: #b42318; }
.ib-chip.p2 { background: #f8eedf; color: #9a5600; }
.ib-chip.p3 { background: var(--sunk); color: #737b8c; }
.ib-chip.ac { background: var(--acs); color: var(--act); }
.ib-chip.ok { background: #e6f4ec; color: #1f7a4d; }
.ib-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ib-search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px; margin: 0; }
.ib-search input, .ib textarea { width: 100%; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; }
.ib-search input { flex: 1; min-height: 44px; }
.ib textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.ib-search input:focus, .ib textarea:focus { outline: 2px solid color-mix(in srgb, var(--ac) 50%, transparent); border-color: var(--ac); }
.ib-search .ib-btn { width: 44px; padding: 0; }
.ib-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.ib-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.ib-card p { margin: 0; }
.ib-sunk { gap: 6px; padding: 12px 14px; border-color: transparent; background: var(--sunk); }
.ib-group { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ib-group-box { gap: 10px; padding: 14px; }
.ib-label { display: block; margin: 0; font-size: 14px; font-weight: 500; }
.ib-msgs { display: flex; flex-direction: column; gap: 6px; }
.ib-msg { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ib-msg:hover { border-color: color-mix(in srgb, var(--ac) 40%, var(--line)); }
.ib-msg.on { border-color: var(--ac); background: var(--acs); }
.ib-x { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; color: var(--text); text-decoration: none; }
.ib-text { display: -webkit-box; overflow: hidden; font-size: 14px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ib-empty { padding: 28px 16px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.ib-bub { padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--sunk); font-size: 15px; overflow-wrap: anywhere; }
.ib-bub.ib-mine { align-self: flex-end; max-width: 90%; border-radius: 18px 18px 6px 18px; background: var(--acs); }
.ib-reply { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ib-sched { margin: 0; }
.ib-tip { padding: 10px 12px; border-radius: 12px; background: var(--sunk); color: var(--muted); font-size: 13px; }
@media (max-width: 920px) { .ib-grid { grid-template-columns: 1fr; } }
.ib-b { font-weight: 500; }
.ib-auto { gap: 8px; }
.ib-auto form { margin: 0; }
.ib-sw { position: relative; flex: none; width: 48px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 18%, var(--line)); cursor: pointer; }
.ib-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; transition: left .2s; }
.ib-sw.on { background: var(--ac); }
.ib-sw.on::after { left: 23px; }
.ib-sw:focus-visible { outline: 2px solid color-mix(in srgb, var(--ac) 60%, transparent); outline-offset: 2px; }
.ib-variants summary { cursor: pointer; list-style: none; }
.ib-variants summary::-webkit-details-marker { display: none; }
.ib-variants[open] summary { margin-bottom: 8px; }
.ib-variants textarea { min-height: 96px; font-size: 14px; }

/* Échanges : liste comme la maquette (case ronde-carrée, pastille réseau ronde, sélection groupée) */
.ib-net { flex: none; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: -.02em; }
.ib-net.net-fb { font-size: 13px; }
.ib-net.net-ig { background: #c13584; }
.ib .ib-cb { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-content: center; width: 22px; height: 22px; margin: 2px 0 0; padding: 0; border: 2px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.ib .ib-cb:hover { border-color: color-mix(in srgb, var(--ac) 50%, var(--line)); }
.ib .ib-cb:checked { border-color: var(--ac); background: var(--ac); }
.ib .ib-cb:checked::after { content: ''; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--aci); border-bottom: 2px solid var(--aci); transform: rotate(-45deg); }
.ib .ib-cb:focus-visible { outline: 2px solid color-mix(in srgb, var(--ac) 60%, transparent); outline-offset: 2px; }
.ib-msg .ib-x b { font-weight: 600; }
.ib-msg .ib-chip { min-height: 24px; }
.ib-stars { color: #f5a623; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.ib-stars-off { color: var(--line, #d9d9e0); }
.set-google { margin-top: 1rem; }
.set-google-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.set-google-head h2 { margin: 0; }
.set-google .btn .net { width: 20px; height: 20px; margin-right: .35rem; vertical-align: middle; }
.set-google .list .net { width: 22px; height: 22px; vertical-align: middle; }
.ib-group > .ib-row { min-height: 36px; }
.ib-group .ib-dk { min-height: 32px; padding: 0 14px; }


/* Réglages : Utilisateurs et Publication (maquette) */
.set-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--ac); color: var(--aci); font-size: .75rem; font-weight: 600; }
.set-av-alt { background: var(--acs); color: var(--act); }
.set-chip-sunk { background: #f6f7f9; color: var(--text); min-height: 28px; display: inline-flex; align-items: center; }
.set-invite { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-top: .95rem; border-top: 1px solid #f0eff5; }
.set-invite input { flex: 1 1 220px; width: auto; margin: 0; min-height: 44px; border-radius: 14px; }
.set-invite select { width: auto; margin: 0; min-height: 44px; border-radius: 14px; }
.set-invite .btn { min-height: 44px; }
.set-lbl { display: inline; margin: 0; }
.set-ret select { width: auto; margin: 0; min-height: 34px; padding-top: .2rem; padding-bottom: .2rem; border-radius: 99px; background-color: #f6f7f9; font-size: .85rem; }
.set-link { padding: 0; margin-top: .3rem; border: 0; background: none; color: var(--act); font-size: .82rem; font-weight: 500; text-decoration: underline; cursor: pointer; }
.ib-sw:disabled { opacity: .45; cursor: not-allowed; }
.brand-menu .brand-shared { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.set-av-wait { background: #f6f7f9; color: var(--muted); }
.set-av-wait svg { width: 16px; height: 16px; }
.set-member-actions { display: flex; align-items: center; gap: .4rem; flex: none; }
.set-member-actions form { margin: 0; }
.set-pill-select { width: auto; margin: 0; min-height: 34px; padding-top: .2rem; padding-bottom: .2rem; border-radius: 99px; background-color: #f6f7f9; font-size: .85rem; }
.set-copy label { display: block; margin: 0 0 .5rem; }
.set-copy-row { display: flex; gap: .5rem; align-items: center; }
.set-copy-row input { margin: 0; flex: 1; font-size: .82rem; background: #fff; }
.join-page { max-width: 560px; margin: 2rem auto; }
.join-card h1 { font-size: 1.5rem; margin: .2rem 0 .8rem; }
.join-kicker { margin: 0; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--act); }
.join-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.role-note { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: #f6f7f9; font-size: .85rem; color: var(--text); }
.approval-caption { margin: .4rem 0 0; white-space: normal; }

/* ================= Calendrier (maquette Studio Publie) ================= */
.cl { --sunk: #f6f7f9; --line: #edf0f4; --ink: var(--text); --mut: #737b8c; --warn: #9a5600; --ac2: #2f3a4a;
  --ac2s: color-mix(in srgb, var(--ac2) 16%, #fff); display: flex; flex-direction: column; gap: 18px; }
.cl .alert { margin: 0; }
.cl-page-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cl-page-hd p { margin: 6px 0 0; color: var(--mut); font-size: 15px; max-width: 60ch; }
.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; }
.cl-btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.cl-btn.cl-sm { min-height: 36px; padding: 0 13px; font-size: 13px; }
.cl-btn .icon { width: 18px; height: 18px; }
.cl-pri { background: var(--ac); border-color: var(--ac); color: var(--aci); }
.cl-pri:hover { border-color: var(--ac); filter: brightness(.95); }
.cl-rb { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; text-decoration: none; }
.cl-rb:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.cl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cl-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cl-hd h2 { margin: 0 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.cl-count { font-size: 13px; color: var(--mut); font-weight: 500; }
.cl-seg { display: inline-flex; gap: 3px; padding: 4px; background: var(--sunk); border-radius: 999px; flex-wrap: wrap; }
.cl-seg a { min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--mut); font-weight: 500; font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; text-decoration: none; }
.cl-seg a:hover { color: var(--ink); }
.cl-seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.cl-sm { font-size: 13px; }
.cl-mut { color: var(--mut); margin: 0; }
.cl-grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.cl-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--sunk);
  font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.cl-chip.ac { background: var(--acs); color: var(--act); }
.cl-chip.warn { background: color-mix(in srgb, var(--warn) 14%, #fff); color: var(--warn); }
.cl-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.cl-hd2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-hd2 h3 { margin: 0; font-size: 16px; }
.cl-hd2 h3 a { color: inherit; text-decoration: none; }
.cl-warn { margin: 0; color: var(--warn); font-weight: 500; }
.cl-net { width: 20px; height: 20px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.cl-net.fb { background: var(--fb); font-size: 12px; }
.cl-net.ig { background: var(--ig); font-size: 8px; }
.cl-net + .cl-net { margin-left: -10px; box-shadow: 0 0 0 2px #fff; }
.cl-net svg { display: block; width: 62%; height: 62%; }

/* mois */
.cl-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cl-dh { padding: 8px 10px; font-size: 13px; font-weight: 500; color: var(--mut); background: var(--sunk); }
.cl-cell { background: #fff; min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cl-dn { font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cl-dn a { color: inherit; text-decoration: none; }
.cl-dn b { font-weight: 500; padding: 0 7px; border-radius: 999px; }
.cl-dn a:hover b { background: var(--sunk); }
.cl-cell.out { background: var(--sunk); color: var(--mut); }
.cl-cell.today .cl-dn b { background: var(--ac); color: var(--aci); }
.cl-cell.avoid { background: repeating-linear-gradient(135deg, #fff 0 8px, color-mix(in srgb, var(--warn) 11%, #fff) 8px 16px); }
.cl-cell.out.avoid { background: repeating-linear-gradient(135deg, var(--sunk) 0 8px, color-mix(in srgb, var(--warn) 12%, var(--sunk)) 8px 16px); }
.cl-cell.over, .cl-wkd.over, .cl-card.over { outline: 2px dashed var(--ac); outline-offset: -4px; }
.cl-warn-ic { color: var(--warn); display: inline-flex; }
.cl-warn-ic .icon { width: 14px; height: 14px; }
.cl-mk { font-size: 12px; font-weight: 500; line-height: 1.25; color: color-mix(in srgb, var(--ac2) 75%, var(--ink)); background: var(--ac2s);
  border-radius: 6px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cl-mk.u { background: var(--sunk); color: var(--mut); }
.cl-wkd .cl-mk, .cl-card .cl-mk { align-self: flex-start; }
.cl-pc { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 9px; background: var(--acs); color: var(--ink); font: inherit;
  font-size: 13px; font-weight: 500; cursor: pointer; border: 0; text-align: left; width: 100%; line-height: 1.2; min-width: 0; }
.cl-pc[draggable="true"], .cl-wkc[draggable="true"], .cl-hp[draggable="true"] { cursor: grab; }
.cl-pc.pend, .cl-hp.pend { background: color-mix(in srgb, var(--warn) 14%, #fff); }
.cl-pc.done { background: var(--sunk); }
.cl-pc.fail { background: color-mix(in srgb, #b42318 12%, #fff); }
.cl-pc .tm { flex: none; color: var(--mut); white-space: nowrap; }
.cl-pc .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cl-pc:hover, .cl-wkc:hover, .cl-hp:hover { filter: brightness(.97); }
.cl-more { font-size: 12px; color: var(--mut); text-decoration: none; padding: 0 6px; }
.cl-more:hover { color: var(--ink); }

/* semaines */
.cl-wk { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.cl-wkd { background: var(--sunk); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 240px; min-width: 0; }
.cl-wkd.avoid { background: repeating-linear-gradient(135deg, var(--sunk) 0 8px, color-mix(in srgb, var(--warn) 12%, var(--sunk)) 8px 16px); }
.cl-wkh { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--ink); text-decoration: none; font-size: 14px; flex-wrap: wrap; }
.cl-wkh b { font-weight: 600; }
.cl-wkc { background: #fff; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; border: 0;
  text-align: left; width: 100%; font: inherit; color: var(--ink); }
.cl-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: var(--sunk); display: block; }
.cl-reel { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--mut); }

/* jour */
.cl-hours { display: flex; flex-direction: column; }
.cl-hr { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; min-height: 52px; border-top: 1px solid var(--line); padding: 6px 0; }
.cl-hr > span { font-size: 13px; font-weight: 500; color: var(--mut); white-space: nowrap; padding-top: 4px; }
.cl-hr.now > span { color: var(--act); font-weight: 600; }
.cl-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cl-hp { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--acs); border: 0; font: inherit;
  color: var(--ink); text-align: left; width: 100%; cursor: pointer; min-width: 0; }
.cl-hp .cl-chip { background: #fff; }

/* trimestre */
.cl-q3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cl-mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.cl-mcal > span { font-size: 13px; font-weight: 500; color: var(--mut); padding: 2px 0; }
.cl-mcal a { height: 36px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; position: relative;
  display: flex; align-items: center; justify-content: center; }
.cl-mcal a:hover { background: var(--sunk); }
.cl-mcal a.t { background: var(--acs); color: var(--act); }
.cl-mcal a.has::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 9px; background: var(--ac); }
.cl-mcal a.mar::before { content: ''; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 9px; background: var(--ac2); }

/* légende et aperçu */
.cl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--mut); font-weight: 500; }
.cl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.cl-legend .lg-post { background: var(--acs); }
.cl-legend .lg-pend { background: color-mix(in srgb, var(--warn) 14%, #fff); }
.cl-legend .lg-mar { background: var(--ac2s); }
.cl-legend .lg-uni { background: var(--sunk); border: 1px solid var(--line); }
.cl-legend .lg-avoid { background: repeating-linear-gradient(135deg, #fff 0 3px, color-mix(in srgb, var(--warn) 30%, #fff) 3px 6px); border: 1px solid var(--line); }
.cl-dialog { width: min(480px, calc(100vw - 32px)); border: 0; border-radius: 22px; padding: 20px; color: var(--ink); box-shadow: 0 20px 60px rgba(20, 24, 36, .25); }
.cl-dialog::backdrop { background: rgba(20, 24, 36, .35); }
.cl-dlg-top { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.cl-close { margin-left: auto; width: 34px; height: 34px; }
.cl-dlg-media img, .cl-dlg-media video { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; display: block; }
.cl-dlg-cap { white-space: pre-line; font-size: 14px; margin: 12px 0; max-height: 200px; overflow: auto; }
.cl-dlg-move { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--sunk); margin: 0 0 12px; }
.cl-dlg-move input { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cl-dlg-move[hidden], .cl-dlg-media[hidden] { display: none; }
@media (max-width: 860px) { .cl-wk, .cl-q3 { grid-template-columns: 1fr; } .cl-wkd { min-height: 0; } }
@media (max-width: 700px) {
  .cl-cell { min-height: 74px; padding: 4px; }
  .cl-pc .t, .cl-pc .tm, .cl-cell .cl-mk { display: none; }
  .cl-pc { padding: 3px; width: auto; }
  .cl-dh { padding: 6px 4px; text-align: center; }
}

/* Échanges en direct : bandeau « Nouvel échange reçu · Afficher » */
.inbox-live { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.inbox-live .btn { flex: none; }
.live-state { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; }
.live-state::before { content: ""; width: 7px; height: 7px; border-radius: 7px; background: currentColor; }
.live-on { background: #e9f8ef; color: #1b6b3d; }
.live-off { background: #fdf1e7; color: #9a4b12; }
.live-problem { display: block; flex-basis: 100%; color: #9a4b12; font-size: .8rem; margin-top: .2rem; }

/* Boîtes de dialogue (uiAlert / uiConfirm / uiPrompt) aux couleurs de la marque */
.ui-dialog { width: min(420px, calc(100vw - 2rem)); padding: 0; border: 0; border-top: 5px solid var(--ac, var(--primary)); border-radius: 20px;
  background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(20, 20, 50, .25); font: inherit; }
.ui-dialog::backdrop { background: rgba(25, 22, 40, .45); backdrop-filter: blur(2px); }
.ui-dialog[open] { animation: ui-dialog-in .16s ease-out; }
@keyframes ui-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ui-dialog form { padding: 1.4rem 1.5rem 1.2rem; }
.ui-dialog-msg { margin: 0 0 1.2rem; font-size: .98rem; line-height: 1.55; white-space: pre-line; }
.ui-dialog-input { width: 100%; margin: -.4rem 0 1.2rem; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 12px; font: inherit; }
.ui-dialog-input:focus { outline: 2px solid color-mix(in srgb, var(--ac, var(--primary)) 45%, #fff); border-color: var(--ac, var(--primary)); }
.ui-dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.ui-dialog-btn { min-width: 6rem; padding: .6rem 1.2rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; }
.ui-dialog-btn:hover { border-color: color-mix(in srgb, var(--ac, var(--primary)) 50%, #fff); }
.ui-dialog-ok { background: var(--ac, var(--primary)); border-color: var(--ac, var(--primary)); color: var(--aci, #fff); }
.ui-dialog-ok:hover { filter: brightness(.93); }
.ui-dialog-btn:focus-visible { outline: 2px solid var(--ac, var(--primary)); outline-offset: 2px; }

/* Consignes IA (administration) */
.gl-list { display: grid; gap: 1rem; max-width: 860px; }
.gl-card textarea { width: 100%; }
.gl-count { margin: .3rem 0 .6rem; }
.gl-result { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--ac, var(--primary)) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--ac, var(--primary)) 25%, #fff); }
.gl-result p { margin: .4rem 0; white-space: normal; line-height: 1.55; }
.gl-result-error { background: #fff4f2; border-color: #f3c6bd; }
.gl-history { margin-top: 1rem; }
.gl-history summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.gl-history ol { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.gl-history li { padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 12px; }
.gl-version-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); }
.gl-version-text { margin: .4rem 0 0; font-size: .88rem; }
.gl-builtin { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: #f6f7f9; }
.gl-builtin summary { cursor: pointer; font-weight: 600; font-size: .88rem; }
.gl-builtin-text { margin: .6rem 0 .4rem; font-size: .85rem; line-height: 1.55; color: #3b3950; }
