/* =========================================================
   Administration — style chaleureux et coloré (assorti au thème Soley)
   ========================================================= */
:root {
  --bg: #F4F5FC; --panel: #FFFFFF; --ink: #1E2147; --muted: #5E6385; --line: #E4E6F1;
  --brand: #2B2F8F; --brand-dark: #1C1F5A; --brand-2: #FF6B35;
  --sun: #FFC83D; --sea: #19A7B5; --berry: #EC4E86; --leaf: #39B36B; --flame: #FF6B35; --sky: #5B8DEF;
  --ok: #157A47; --ok-bg: #E1F5E8; --warn: #855C00; --warn-bg: #FFF3CC; --bad: #B02A1C; --bad-bg: #FDE5E0; --accent-bg: #E9EBFB;
  --radius: 18px; --shadow: 0 6px 20px rgba(30,33,71,.07); --shadow-lg: 0 14px 34px rgba(30,33,71,.13);
  --f-head: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif; --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.tone-sun   { --tone: var(--sun);   --tone-soft: #FFF3CC; --tone-ink: #6B4A00; }
.tone-sea   { --tone: var(--sea);   --tone-soft: #DDF5F7; --tone-ink: #0B4F56; }
.tone-berry { --tone: var(--berry); --tone-soft: #FDE3EC; --tone-ink: #7A1640; }
.tone-leaf  { --tone: var(--leaf);  --tone-soft: #E1F5E8; --tone-ink: #155C33; }
.tone-flame { --tone: var(--flame); --tone-soft: #FFE6DB; --tone-ink: #7A2A0A; }
.tone-sky   { --tone: var(--sky);   --tone-soft: #E4EDFF; --tone-ink: #1E3F86; }

* { box-sizing: border-box; }
body { margin: 0; font: 400 15.5px/1.55 var(--f-body); color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
h1 { font: 800 1.9rem/1.1 var(--f-head); margin: 0 0 20px; color: var(--brand-dark); }
h2 { font: 800 1.25rem/1.2 var(--f-head); margin: 0 0 12px; color: var(--brand-dark); }
code { background: #EEF0FA; padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .pre { white-space: pre-line; } .req { color: var(--bad); }
.ic, .bi, .nav-ic { display: inline-block; flex-shrink: 0; vertical-align: -0.18em; }
.bi { width: 1.15em; height: 1.15em; }
svg.ic { width: 1.1em; height: 1.1em; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- Barre du haut ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px; background: var(--panel); box-shadow: 0 1px 0 var(--line), var(--shadow); }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--brand-dark); font: 800 1.15rem var(--f-head); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .brand span { overflow: hidden; text-overflow: ellipsis; }
.brand-logo { height: 40px; width: auto; max-width: 120px; object-fit: contain; border-radius: 10px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-actions .who { font-size: .9rem; color: var(--muted); font-weight: 700; display: none; }
.topbar .btn.ghost { color: var(--brand-dark); border-color: var(--line); background: var(--panel); }
.topbar .btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle { background: var(--accent-bg); border: 0; color: var(--brand); cursor: pointer; padding: 8px 10px; border-radius: 12px; display: inline-flex; }
@media (min-width: 760px) { .top-actions .who { display: inline; } }

/* ---------- Menu latéral ---------- */
.shell { display: flex; min-height: calc(100vh - 64px); }
.sidenav { width: 268px; flex-shrink: 0; background: var(--brand-dark); padding: 14px 10px 40px; position: fixed; top: 64px; bottom: 0; left: -280px; overflow-y: auto; transition: left .2s; z-index: 25; }
.sidenav.open { left: 0; box-shadow: 8px 0 30px rgba(0,0,0,.25); }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 1px 0; color: #D9DCF5; text-decoration: none; border-radius: 12px; font-weight: 700; font-size: .95rem; }
.sidenav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidenav a.active { background: var(--brand-2); color: #fff; box-shadow: 0 4px 0 #C54A1E; }
.nav-ic { width: 19px; height: 19px; color: var(--sun); }
.nav-section { padding: 18px 12px 6px; font: 800 .78rem var(--f-body); color: #8F95C9; letter-spacing: .04em; }
.sidenav li:nth-child(4n+1) .nav-ic { color: var(--sun); }
.sidenav li:nth-child(4n+2) .nav-ic { color: #6FD3DD; }
.sidenav li:nth-child(4n+3) .nav-ic { color: #F79BBE; }
.sidenav li:nth-child(4n+4) .nav-ic { color: #84DDA6; }
.sidenav a.active .nav-ic { color: #fff !important; }
.main { flex: 1; min-width: 0; padding: 24px 16px 90px; max-width: 1160px; }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .sidenav { position: sticky; left: 0; top: 64px; height: calc(100vh - 64px); }
  .main { padding: 30px 40px 90px; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); font: 800 .92rem var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, border-color .12s; }
.btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; box-shadow: 0 4px 0 #C54A1E; }
.btn.primary:hover { color: #fff; box-shadow: 0 6px 0 #C54A1E; }
.btn.danger { color: var(--bad); border-color: #F1C2BA; background: #fff; }
.btn.danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 11px; font-size: .84rem; }
.btn.block { width: 100%; justify-content: center; }
.btn.ms { width: 100%; justify-content: center; padding: 12px; font-size: 1rem; border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Messages et badges ---------- */
.flash { padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 700; }
.flash.success { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--bad-bg); color: var(--bad); }
.flash.info { background: var(--accent-bg); color: var(--brand); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #EEF0FA; color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.accent { background: var(--accent-bg); color: var(--brand); }

/* ---------- Bandeau d'accueil ---------- */
.welcome { position: relative; overflow: hidden; background: var(--sun); color: #3A2A00; border-radius: 26px; padding: 26px 26px 24px; margin-bottom: 22px; }
.welcome h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); color: #2A1E00; margin-bottom: 6px; }
.welcome p { margin: 0 0 14px; max-width: 60ch; font-size: 1.05rem; }
.w-text { position: relative; z-index: 1; }
.w-sun { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--brand-2); right: -60px; top: -90px; opacity: .9; }
.w-dot { position: absolute; width: 90px; height: 90px; border-radius: 50%; background: #fff; right: 140px; bottom: -40px; opacity: .45; }
.w-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.w-actions .btn:not(.primary) { border-color: #fff; }

/* ---------- Cartes et panneaux ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); margin-bottom: 22px; }
.card { background: var(--panel); border: 0; border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card.stat .n { font: 800 2.1rem/1 var(--f-head); color: var(--tone-ink, var(--brand-dark)); margin-top: 6px; }
.card.stat .l { color: var(--muted); font-weight: 700; font-size: .9rem; }
.c-ic { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--tone-soft, var(--accent-bg)); color: var(--tone, var(--brand)); }
.c-ic .bi { width: 22px; height: 22px; }
.card.warn { background: #FFF8E1; } .card.accent { background: #F2F4FF; } .card.ok { background: #F0FAF3; }
.panel { background: var(--panel); border: 0; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.site-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; background: var(--panel); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--shadow); border-left: 6px solid var(--leaf); }
.progress { height: 12px; background: #ECEEF7; border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--flame), var(--berry)); border-radius: 999px; }
.checklist { list-style: none; padding: 0; margin: 0; columns: 2 220px; }
.checklist li { padding: 4px 0; } .checklist a { text-decoration: none; font-weight: 700; }
.checklist .ok a { color: var(--ok); } .checklist .todo a { color: var(--ink); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.wrap > * { flex: 1 1 160px; }
.empty { background: var(--panel); border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); font-weight: 700; }
.rules { background: #FFF6D9; border-radius: 14px; padding: 12px 16px; font-size: .92rem; margin: 12px 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 800; background: var(--panel); }
.tabs a.active { background: var(--brand); color: #fff; }
.danger-zone { margin-top: 30px; }
.panel.danger-zone { box-shadow: inset 0 0 0 2px #F6CFC8; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0 0 16px; }
.dl dt { color: var(--muted); font-weight: 700; } .dl dd { margin: 0; }

/* ---------- Tableaux ---------- */
.table-wrap { background: var(--panel); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8rem; color: var(--muted); background: #F8F9FE; font-weight: 800; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFBFF; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { display: flex; gap: 10px; border: 0; padding: 4px 14px; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 700; min-width: 90px; }
  .table td[data-label=""]::before { display: none; }
}

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; }
.form h2 { margin-top: 10px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 800; font-size: .93rem; }
.field.check label { font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.help { margin: 0; font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], input[type=search], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  font: inherit; padding: 10px 13px; border: 2px solid #E1E4F0; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; max-width: 100%;
}
input[type=checkbox], input[type=radio] { accent-color: var(--brand-2); width: 18px; height: 18px; }
.row input, .row select { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); outline: 3px solid #FFE0D3; }
.lang-badge { display: inline-block; font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--brand); color: #fff; margin-left: 6px; vertical-align: 2px; }
.field-pair .field:nth-child(2) .lang-badge { background: var(--leaf); }
.field-pair { display: grid; gap: 16px; }
@media (min-width: 860px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.grid2 { display: grid; gap: 14px 18px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form-actions.sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 20px 0 14px; z-index: 5; }
.ql-toolbar.ql-snow { border-radius: 12px 12px 0 0; border: 2px solid #E1E4F0 !important; border-bottom-width: 1px !important; background: #FAFBFF; }
.ql-container.ql-snow { border-radius: 0 0 12px 12px; border: 2px solid #E1E4F0 !important; border-top: 0 !important; background: #fff; font: inherit; min-height: 140px; }
.ql-editor { min-height: 140px; font-size: 15.5px; }
textarea.code { font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }

/* Images */
.image-field { display: grid; gap: 8px; }
.image-field .current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.image-field .current img { width: 130px; height: 86px; object-fit: cover; border-radius: 12px; }
.image-field input[type=file] { padding: 10px; border: 2px dashed #D6DAEA; border-radius: 14px; background: #FAFBFF; }
.library summary { cursor: pointer; color: var(--brand); font-weight: 800; font-size: .92rem; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 8px; max-height: 280px; overflow-y: auto; }
.lib-grid label { position: relative; cursor: pointer; }
.lib-grid input { position: absolute; top: 5px; left: 5px; }
.lib-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 3px solid transparent; }
.lib-grid input:checked + img { border-color: var(--brand-2); }
.lib-grid .dot { position: absolute; right: 5px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--sun); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.media-item { margin: 0; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.media-item label { position: relative; display: block; }
.media-item label input { position: absolute; top: 10px; left: 10px; }
.media-item figcaption { padding: 10px 12px; display: grid; gap: 6px; }
.media-item summary { cursor: pointer; font-size: .88rem; color: var(--brand); font-weight: 800; }
.stack { display: grid; gap: 8px; }
.inline-upload { grid-template-columns: 1fr; }
@media (min-width: 800px) { .inline-upload { grid-template-columns: 1.2fr 1fr auto; align-items: end; } }

/* Apparence */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.theme-card { display: grid; gap: 6px; background: var(--panel); border: 3px solid transparent; border-radius: var(--radius); padding: 12px; cursor: pointer; box-shadow: var(--shadow); }
.theme-card:has(input:checked) { border-color: var(--brand-2); }
.theme-card img, .theme-card .noshot { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 800 1.3rem var(--f-head); color: #fff;
  background: conic-gradient(from 200deg at 70% 40%, var(--sun), var(--flame), var(--berry), var(--sea), var(--leaf), var(--sun)); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; align-items: center; gap: 4px; border: 3px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; background: #fff; }
.swatch:has(input:checked) { border-color: var(--brand-2); }
.swatch input { position: absolute; opacity: 0; }
.swatch span { width: 24px; height: 24px; border-radius: 50%; }
.swatch em { font-style: normal; font-weight: 700; font-size: .86rem; margin-left: 4px; }

/* Menu et sections */
.menu-editor { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.menu-editor li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; background: var(--panel); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.menu-editor .check { display: flex; gap: 10px; align-items: center; }
.menu-editor .move { display: flex; gap: 3px; }
@media (min-width: 860px) { .menu-editor li { grid-template-columns: auto 1.3fr 1fr 1fr; } }
.sections-editor li { grid-template-columns: auto 1fr auto; }
.sections-editor li.fixed { background: var(--warn-bg); box-shadow: none; }

/* Messages */
.messages { display: grid; gap: 12px; }
.message { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.message.unread { box-shadow: inset 5px 0 0 var(--brand-2), var(--shadow); }
.message header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 6px; }

/* Connexion */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 10%, var(--sun) 0 140px, transparent 141px), radial-gradient(circle at 8% 92%, var(--berry) 0 90px, transparent 91px), radial-gradient(circle at 92% 88%, var(--sea) 0 60px, transparent 61px), var(--brand-dark); }
.login-card { background: #fff; border-radius: 28px; padding: 32px 28px; width: 100%; max-width: 410px; box-shadow: 0 30px 60px rgba(0,0,0,.3); position: relative; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login-logo { display: block; max-height: 72px; max-width: 200px; margin: 0 auto 16px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 16px 0; font-size: .85rem; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }

/* Facture */
.invoice-page { background: #fff; }
.invoice { max-width: 800px; margin: 0 auto; padding: 30px 20px; }
.invoice header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-bottom: 4px solid var(--brand-2); padding-bottom: 16px; margin-bottom: 20px; }
.invoice .right { text-align: right; }
.invoice h1 { font-size: 1.4rem; margin: 0 0 6px; } .invoice h2 { color: var(--brand-2); }
.invoice .table { border: 1px solid var(--line); margin: 20px 0; }
.invoice tfoot th { font-size: 1.05rem; color: var(--ink); }
.invoice-logo { max-height: 70px; max-width: 220px; margin-bottom: 8px; }
.stamp { display: inline-block; border: 3px solid var(--ok); color: var(--ok); font-weight: 800; padding: 8px 16px; border-radius: 10px; transform: rotate(-3deg); margin: 10px 0 20px; }
@media print { .no-print { display: none; } .invoice { padding: 0; } }

/* Double authentification, historique, divers */
.qr { width: 220px; height: 220px; background: #fff; border-radius: 16px; margin: 10px 0; box-shadow: var(--shadow); padding: 6px; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-size: 1rem; letter-spacing: .05em; }
.history summary { cursor: pointer; }
.rev-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.rev-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bulkbar { background: var(--panel); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); }
.cols2 { columns: 2 260px; }
.grid-2col { display: grid; gap: 20px; }
@media (min-width: 980px) { .grid-2col { grid-template-columns: 1.6fr 1fr; align-items: start; } }

/* Graphiques */
.chart { width: 100%; height: auto; display: block; }
.chart .c-title { font: 800 15px var(--f-head); fill: var(--brand-dark); }
.chart .c-total { font: 700 13px var(--f-body); fill: var(--muted); }
.chart .c-axis { font: 600 11px var(--f-body); fill: var(--muted); }
.chart .c-grid { stroke: #ECEEF6; }
.chart .c-bar { fill: var(--brand-2); }
.chart .c-bar:hover { fill: var(--brand); }
.toplist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.toplist li { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr 44px; gap: 10px; align-items: center; font-size: .9rem; font-weight: 700; }
.tl-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-bar { background: #EEF0F8; border-radius: 99px; height: 12px; overflow: hidden; }
.tl-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sea), var(--leaf)); border-radius: 99px; }
.tl-n { text-align: right; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Bibliothèque de thèmes ---------- */
.lib-current { display: grid; gap: 22px; align-items: center; background: linear-gradient(120deg, #FFF3CC 0%, #FFE6DB 60%, #FDE3EC 100%); border-radius: 26px; padding: 18px; margin-bottom: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.lib-current::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); opacity: .35; right: -70px; top: -90px; }
.lib-current > * { position: relative; z-index: 1; }
@media (min-width: 860px) { .lib-current { grid-template-columns: 1.1fr 1fr; padding: 24px 28px 24px 24px; } .lib-current-sm { grid-template-columns: 320px 1fr; } }
.lib-current-shot img { display: block; width: 100%; border-radius: 16px; border: 5px solid #fff; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); }
.lib-current-text h2 { font-size: 2rem; margin-bottom: 6px; }
.lib-current-text p { margin: 0 0 14px; color: #4A4060; }
.lib-current .quick { margin: 0; }
.lib-kicker { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ok) !important; background: #fff; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px !important; font-size: .88rem; }
.lib-kicker .ic { width: 16px; height: 16px; }

.lib-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.lib-head > div:first-child { max-width: 62ch; }
.lib-head p { margin: 0; }
.lib-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: 800 .88rem var(--f-body); cursor: pointer; }
.chip b { display: inline-block; min-width: 1.5em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent-bg); color: var(--brand); font-size: .78rem; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.chip.on b { background: var(--sun); color: #3A2A00; }

.th-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 26px; }
.lib-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; border: 3px solid transparent; transition: transform .15s, box-shadow .15s; }
.lib-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lib-card.is-active { border-color: var(--leaf); }
.lib-card[hidden] { display: none; }
.lib-shot { position: relative; background: linear-gradient(135deg, #EEF0FA, #E1E5F6); padding: 18px 18px 0; height: 230px; overflow: hidden; flex-shrink: 0; }
.lib-desk { display: block; width: 86%; height: auto; border-radius: 10px 10px 0 0; box-shadow: 0 8px 24px rgba(30,33,71,.18); }
.lib-phone { position: absolute; right: 14px; bottom: -40px; width: 25%; max-width: 92px; border-radius: 14px; border: 4px solid #1E2147; box-shadow: 0 10px 22px rgba(30,33,71,.3); background: #fff; aspect-ratio: 9/18; object-fit: cover; object-position: top; }
.lib-noshot { height: 100%; display: flex; align-items: center; justify-content: center; font: 800 1.6rem var(--f-head); color: var(--brand); }
.lib-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--leaf); color: #fff; font-weight: 800; font-size: .84rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.lib-badge .ic { width: 16px; height: 16px; }
.lib-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.lib-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lib-title h3 { margin: 0; font: 800 1.45rem/1.1 var(--f-head); color: var(--brand-dark); }
.lib-style { background: var(--tone-soft); color: var(--tone-ink); font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.lib-desc { margin: 0; color: var(--muted); font-size: .93rem; }
.lib-hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .9rem; font-weight: 700; }
.lib-hl li { display: flex; align-items: center; gap: 6px; }
.lib-hl .ic { width: 16px; height: 16px; color: var(--leaf); }
.lib-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lib-dots { display: flex; gap: 5px; }
.lib-dot { display: inline-flex; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.lib-dot i { width: 12px; height: 22px; }
.lib-usage { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lib-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.lib-actions form { margin: 0; }
.lib-on { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--ok); font-size: .9rem; }
.lib-on .ic { width: 17px; height: 17px; }
.lib-apply { width: 100%; }
.lib-apply summary { list-style: none; }
.lib-apply summary::-webkit-details-marker { display: none; }
.lib-apply-form { margin-top: 10px !important; background: var(--bg); border-radius: 14px; padding: 12px; }
.lib-apply-list { display: grid; gap: 4px; max-height: 180px; overflow: auto; margin-bottom: 10px; }
.lib-note { display: flex; gap: 12px; align-items: flex-start; background: #F0FAF3; }
.lib-note .bi { color: var(--leaf); width: 26px; height: 26px; margin-top: 2px; }

/* ---------- Constructeur de pages (blocs) ---------- */
.btn.big { padding: 13px 22px; font-size: 1rem; }
.btn.icon-only { padding: 6px; width: 34px; height: 34px; justify-content: center; }
.btn.icon-only .bi { margin: 0; }
.btn.icon-only.ghost { border-color: transparent; background: transparent; pointer-events: none; }
.bld-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.bld-top p { margin: 0; max-width: 70ch; }
.bld-locs { margin-bottom: 20px; }
.bld-locs .chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.bld-locs .chip .ic { width: 15px; height: 15px; }
.bld-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 0; }
.bld-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: var(--panel); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); }
.bld-row.fixed { background: #FFF8E1; }
.bld-row.off .bld-thumb, .bld-row.off .bld-info { opacity: .62; } .bld-row.off { background: #FAFAFD; }
.bld-row:has(.bld-more[open]) { position: relative; z-index: 30; }
.bld-thumb { width: 96px; flex-shrink: 0; border-radius: 10px; overflow: hidden; display: block; box-shadow: 0 0 0 1px var(--line); }
.bthumb { display: block; width: 100%; height: auto; }
.bld-info { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.bld-info strong { font: 800 1.05rem var(--f-head); color: var(--brand-dark); overflow: hidden; text-overflow: ellipsis; }
.bld-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bld-acts form { margin: 0; }
.bld-add { display: flex; justify-content: center; padding: 4px 0; }
.bld-add a { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 800; color: var(--muted); text-decoration: none; padding: 3px 12px; border-radius: 999px; border: 2px dashed transparent; opacity: .55; transition: opacity .15s, border-color .15s; }
.bld-add a .ic { width: 14px; height: 14px; }
.bld-add a:hover, .bld-add a:focus-visible { opacity: 1; border-color: var(--brand-2); color: var(--brand-2); }
.bld-empty { text-align: center; background: var(--panel); border: 3px dashed var(--line); border-radius: 22px; padding: 34px 20px; }
.bld-empty .bi { width: 40px; height: 40px; color: var(--brand-2); }
.bld-search { margin-bottom: 12px; }
.bld-search input { width: 100%; max-width: 520px; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--line); font: inherit; background: var(--panel); }
.blk-lib { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 16px 0 28px; }
.blk-lib-card { display: flex; flex-direction: column; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); border: 3px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.blk-lib-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-2); color: var(--ink); }
.blk-lib-card[hidden] { display: none; }
.blk-lib-card.locked { opacity: .7; }
.blk-lib-card.off { opacity: .6; }
.blk-lib-thumb { display: block; padding: 12px 12px 0; background: #EEF0FA; }
.blk-lib-thumb .bthumb { border-radius: 10px 10px 0 0; }
.blk-lib-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.blk-lib-body strong { display: flex; align-items: center; gap: 7px; font: 800 1.05rem var(--f-head); color: var(--brand-dark); }
.blk-lib-body strong .ic { width: 18px; height: 18px; color: var(--brand-2); }
.blk-lib-body > span { font-size: .9rem; color: var(--muted); }
.blk-lib-body em { font-style: normal; align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; }
.blk-lib-body em .ic { width: 13px; height: 13px; }
.blk-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.blk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.blk-acts form { margin: 0; }
.bld-cat { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.bld-type { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; background: var(--panel); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.bld-type .bld-thumb { width: 150px; }
.bld-type > div { flex: 1 1 240px; }
.bld-type h2 { margin: 0 0 4px; }
.bld-type p { margin: 0; }
.bld-type .lib-kicker { color: var(--brand-2) !important; margin-bottom: 6px !important; }
.item-slots { display: grid; gap: 14px; margin-bottom: 14px; }
.item-slot { border: 2px solid var(--line); border-radius: 18px; padding: 8px 16px 6px; margin: 0; background: #FBFBFE; min-width: 0; }
.item-slot[hidden] { display: none; }
.item-slot.removing { opacity: .45; border-style: dashed; }
.item-slot legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; width: 100%; justify-content: space-between; flex-wrap: wrap; }
.item-n { font: 800 1rem var(--f-head); color: var(--brand-dark); }
.item-n b { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-2); color: #fff; align-items: center; justify-content: center; font-size: .85rem; margin-left: 4px; }
.item-tools { display: flex; gap: 6px; }
.it-del input { width: 14px; height: 14px; }
.chip .ic { width: 16px; height: 16px; vertical-align: -3px; }
.blk-lib-body em .ic, .bld-type .lib-kicker .ic { width: 15px; height: 15px; }

/* ---------- Personnalisateur en direct ---------- */
.cz-body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: #E9EBF5; }
.cz-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--brand-dark); color: #fff; flex-shrink: 0; flex-wrap: wrap; }
.cz-top .btn.small:not(.primary) { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.cz-top .btn.ghost { background: transparent; }
.cz-title { font: 800 1.15rem var(--f-head); margin-right: auto; }
.cz-devices { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.cz-devices button { border: 0; background: transparent; color: #C8CCF0; padding: 6px 10px; border-radius: 999px; cursor: pointer; display: inline-flex; }
.cz-devices button.on { background: #fff; color: var(--brand-dark); }
.cz-state { color: #AEB3DC !important; }
.cz-state.pending { color: var(--sun) !important; font-weight: 800; }
.cz-shell { flex: 1; display: flex; min-height: 0; }
.cz-panel { width: 360px; flex-shrink: 0; background: var(--panel); overflow-y: auto; padding: 14px 14px 60px; box-shadow: 4px 0 20px rgba(30,33,71,.1); z-index: 2; }
.cz-collapsed .cz-panel { display: none; }
.cz-stage { flex: 1; min-width: 0; padding: 14px; display: flex; justify-content: center; overflow: auto; }
.cz-frame-wrap { width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); transition: max-width .25s; }
.cz-frame-wrap.device { border: 10px solid #1E2147; border-radius: 30px; }
.cz-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .cz-panel { position: absolute; top: 112px; bottom: 0; left: 0; width: min(360px, 92vw); } .cz-stage { padding: 6px; } }
.cz-sec { border-bottom: 2px solid var(--line); padding: 12px 2px; }
.cz-sec > summary { cursor: pointer; font: 800 1.05rem var(--f-head); color: var(--brand-dark); display: flex; align-items: center; gap: 8px; list-style: none; }
.cz-sec > summary::-webkit-details-marker { display: none; }
.cz-sec > summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.cz-sec:not([open]) > summary::after { content: "▸"; }
.cz-sec > summary + * { margin-top: 12px; }
.cz-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cz-theme div { display: flex; flex-direction: column; } .cz-theme strong { font: 800 1.3rem var(--f-head); color: var(--brand-dark); }
.cz-pals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cz-pal { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 3px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; font-size: .85rem; }
.cz-pal input { position: absolute; opacity: 0; }
.cz-pal:has(input:checked) { border-color: var(--brand-2); background: #FFF6F1; }
.cz-pal-dots { display: flex; border-radius: 8px; overflow: hidden; height: 22px; }
.cz-pal-dots i { flex: 1; }
.cz-color { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; }
.cz-color input[type=color] { width: 46px; height: 46px; border: 3px solid var(--line); border-radius: 14px; padding: 2px; background: #fff; cursor: pointer; }
.cz-color.is-set input[type=color] { border-color: var(--brand-2); }
.cz-color label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); cursor: pointer; }
.cz-color label strong { color: var(--ink); font-size: .95rem; }
.cz-reset { border: 0; background: transparent; color: var(--brand); font: 700 .8rem var(--f-body); cursor: pointer; visibility: hidden; }
.cz-color.is-set .cz-reset { visibility: visible; }
.cz-sample { margin: 8px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.cz-sample-head { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.cz-radius { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cz-radius label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 3px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .8rem; font-weight: 700; }
.cz-radius input { position: absolute; opacity: 0; }
.cz-radius span { width: 40px; height: 26px; background: var(--brand-2); }
.cz-radius label:has(input:checked) { border-color: var(--brand-2); background: #FFF6F1; }
.cz-form input[type=range] { width: 100%; accent-color: var(--brand-2); }
.cz-logo { display: flex; align-items: center; gap: 12px; }
.cz-logo img { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; background: var(--bg); }
.cz-flash { margin-bottom: 10px; }
.bld-cols { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1280px) { .bld-cols { grid-template-columns: minmax(0, 1fr) 420px; } .main:has(.bld-cols) { max-width: 1500px; } }
.bld-preview { display: none; position: sticky; top: 84px; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 1280px) { .bld-preview { display: block; } }
.bld-preview-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 2px solid var(--line); }
.bld-preview-frame { height: calc(100vh - 170px); overflow: hidden; position: relative; }
.bld-preview-frame iframe { width: 1280px; height: calc((100vh - 170px) / .328); border: 0; transform: scale(.328); transform-origin: 0 0; pointer-events: none; }
.bld-tip { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.bld-tip .ic { width: 16px; height: 16px; }
.bld-grip { border: 0; background: transparent; color: #A3A8C9; cursor: grab; padding: 6px 2px; border-radius: 8px; touch-action: none; display: inline-flex; }
.bld-grip:hover, .bld-grip:focus-visible { color: var(--brand-2); background: #FFF1EA; }
.bld-grip .bi { width: 22px; height: 22px; }
.bld-row.dragging { opacity: .3; outline: 3px dashed var(--brand-2); }
.bld-row.picked { outline: 3px solid var(--sun); }
.bld-ghost { position: fixed; z-index: 100; pointer-events: none; box-shadow: 0 20px 50px rgba(30,33,71,.3); transform-origin: center; rotate: -1deg; }
.bld-saving .bld-list { opacity: .6; pointer-events: none; }
.bld-more { position: relative; }
.bld-more summary { list-style: none; font-weight: 900; }
.bld-more summary::-webkit-details-marker { display: none; }
.bld-menu { position: absolute; right: 0; top: 40px; z-index: 20; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 180px; display: grid; }
.bld-menu form { margin: 0; }
.bld-mi { display: flex; width: 100%; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; font: 700 .9rem var(--f-body); color: var(--ink); cursor: pointer; text-align: left; }
.bld-mi:hover { background: var(--bg); }
.bld-mi.danger { color: var(--bad); }
html:has(.cz-body) { overflow: hidden; height: 100%; }
.cz-pal, .cz-radius label, .swatch { position: relative; }
.cz-pal input, .cz-radius input { left: 0; top: 0; width: 1px; height: 1px; }
.cz-pal:has(input:focus-visible), .cz-radius label:has(input:focus-visible) { outline: 3px solid var(--sun); }
.cz-shell { position: relative; }
@media (max-width: 860px) { .cz-panel { top: 0; } }
@media (max-width: 640px) { .cz-top .hide-sm, .cz-devices, .cz-state { display: none !important; } .cz-top { flex-wrap: nowrap; } }

/* ---------- Extensions ---------- */
.ext-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 24px; }
.ext-card { background: var(--panel); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; border: 3px solid transparent; }
.ext-card.on { border-color: var(--leaf); }
.ext-head { display: flex; gap: 12px; align-items: center; }
.ext-head h3 { margin: 0; font: 800 1.2rem var(--f-head); color: var(--brand-dark); }
.ext-ic { width: 48px; height: 48px; border-radius: 15px; background: var(--accent-bg); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ext-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ext-card.on .ext-ic { background: #E1F5E8; color: var(--ok); }
.ext-desc { margin: 0; color: var(--muted); font-size: .93rem; }
.ext-settings { background: var(--bg); border-radius: 14px; padding: 10px 14px; }
.ext-settings summary { cursor: pointer; font-weight: 800; display: flex; gap: 6px; align-items: center; }
.ext-settings form { margin-top: 10px; }

/* ---------- Intégrations ---------- */
.int-layout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 980px) { .int-layout { grid-template-columns: 250px minmax(0, 1fr); } .int-nav { position: sticky; top: 84px; } }
.int-nav { display: flex; flex-wrap: wrap; gap: 6px; background: var(--panel); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); }
@media (min-width: 980px) { .int-nav { flex-direction: column; } }
.int-tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 800; }
.int-tab:hover { background: var(--bg); }
.int-tab.on { background: var(--brand-dark); color: #fff; }
.int-tab span { flex: 1; }
.int-tab .dot { width: 10px; height: 10px; border-radius: 50%; background: #D3D6E6; }
.int-tab .dot.ok { background: var(--leaf); box-shadow: 0 0 0 3px #D7F2E1; }
.int-title { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.int-title > div { flex: 1 1 260px; }
.int-title h2 { margin: 0 0 4px; }
.int-title p { margin: 0; }
.int-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.int-form .wide { grid-column: 1 / -1; }
.int-form [hidden] { display: none !important; }
.int-info { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; background: #FFF8E1; color: #6B4A00; border-radius: 12px; padding: 10px 12px; margin: 0; font-size: .9rem; font-weight: 700; word-break: break-word; }
.int-test { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); }
.int-test form { margin: 0; }
.int-test input { padding: 9px 12px; border: 2px solid var(--line); border-radius: 999px; font: inherit; }

/* ---------- Paiement d'une facture ---------- */
.pay-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pay-sum h2 { margin: 2px 0 0; }
.pay-amount { font: 800 2rem var(--f-head); color: var(--brand-dark); }
.pay-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 18px; }
.pay-card { background: var(--panel); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; border-top: 6px solid var(--brand); }
.pay-card p { margin: 0; }
.pay-card .btn { align-self: flex-start; }
.pay-moncash { border-top-color: #E30613; } .pay-natcash { border-top-color: #F7941D; } .pay-stripe { border-top-color: #635BFF; }
.pay-logo { font: 800 1.4rem var(--f-head); }
.pay-moncash .pay-logo { color: #E30613; } .pay-natcash .pay-logo { color: #D97706; } .pay-stripe .pay-logo { color: #635BFF; }
.pay-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.ext-grid { align-items: start; }
.int-where { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #F0FAF3; }
.int-where .bi { color: var(--ok); width: 22px; height: 22px; margin-top: 2px; }

/* ---------- Traductions en kreyòl ---------- */
.tr-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.tr-head > div:last-child { flex: 1 1 300px; }
.tr-head h2 { margin-bottom: 4px; }
.tr-head .quick { margin: 10px 0 0; }
.tr-ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(var(--leaf) calc(var(--p) * 1%), #E4E6F1 0); display: grid; place-items: center; flex-shrink: 0; }
.tr-ring span { width: 82px; height: 82px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font: 800 1.4rem var(--f-head); color: var(--brand-dark); }
.tr-row { background: var(--panel); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.tr-meta { font-size: .9rem; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tr-pair { display: grid; gap: 12px; }
@media (min-width: 860px) { .tr-pair { grid-template-columns: 1fr 1fr; } }
.tr-fr { background: var(--bg); border-radius: 12px; padding: 10px 12px; position: relative; }
.tr-fr p { margin: 6px 0 0; font-size: .95rem; }
.tr-ht { display: flex; flex-direction: column; gap: 6px; }
.tr-ht textarea, .tr-ht input { width: 100%; }
.lang-badge.ht { background: var(--leaf); }
.tr-fr .lang-badge, .tr-ht .lang-badge { margin-left: 0; align-self: flex-start; }

/* ---------- Facturation ---------- */
.aging { display: grid; gap: 10px; }
.aging-row { display: grid; grid-template-columns: 170px 1fr 110px; gap: 10px; align-items: center; font-size: .92rem; }
.aging-row strong { text-align: right; }
.aging-bar { height: 12px; background: #ECEEF7; border-radius: 999px; overflow: hidden; }
.aging-bar i { display: block; height: 100%; background: var(--tone); border-radius: 999px; min-width: 2px; }
.inv-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: flex-start; }
.inv-amount { font: 800 2.2rem var(--f-head); color: var(--brand-dark); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inv-amount .badge { font-size: .85rem; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-lines input { width: 100%; padding: 9px 10px; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.inv-lines td { vertical-align: middle; }
.inv-lines td:nth-child(2) { width: 90px; } .inv-lines td:nth-child(3), .inv-lines td:nth-child(4) { width: 140px; } .inv-lines td:nth-child(5) { width: 50px; }
.num { text-align: right; }
.inv-totals { margin: 16px 0 0 auto; max-width: 360px; display: grid; gap: 6px; }
.inv-totals div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.inv-totals .big { border-top: 2px solid var(--brand-dark); padding-top: 8px; font: 800 1.25rem var(--f-head); color: var(--brand-dark); }
.inv-totals input { padding: 4px 6px; border: 2px solid var(--line); border-radius: 8px; font: inherit; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 10px; align-items: flex-start; }
.timeline li > .bi { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--accent-bg); color: var(--brand); flex-shrink: 0; }
.timeline .ev-paid > .bi { background: #E1F5E8; color: var(--ok); } .timeline .ev-reminder > .bi { background: #FFF3CC; color: var(--warn); } .timeline .ev-cancelled > .bi { background: var(--bad-bg); color: var(--bad); }
.timeline div { display: flex; flex-direction: column; }
.sub-list { display: grid; gap: 10px; }
.sub-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 12px 14px; }
.sub-row .sub-name { flex: 1 1 200px; display: flex; flex-direction: column; }
.sub-row input, .sub-row select { padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.sub-row input[name=description] { flex: 1 1 200px; } .sub-row input[name=amount] { width: 100px; }
.flash.overdue { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
pre.code { background: #1C1F5A; color: #E9EBFF; padding: 12px 14px; border-radius: 12px; overflow-x: auto; font-size: .85rem; }

/* ---------- Page de facture publique et pages juridiques ---------- */
.hv-body { background: var(--bg); }
.hv { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.hv.legal { max-width: 900px; }
.hv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 800 1.3rem var(--f-head); color: var(--brand-dark); }
.hv-head img { height: 44px; width: auto; border-radius: 10px; background: #fff; }
.hv-head.hv-brand img { height: 46px; border-radius: 0; background: none; }
.login-logo[src$="clochu-mark.svg"] { width: 64px; height: 64px; }
.brand-logo[src$="clochu-mark.svg"] { background: none; padding: 0; }
.hv-card { background: var(--panel); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.hv-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.hv-amount { font: 800 2.6rem var(--f-head); color: var(--brand-dark); line-height: 1.1; margin: 4px 0 6px; }
.hv-st { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .88rem; background: var(--accent-bg); color: var(--brand); }
.hv-st.due { background: var(--warn-bg); color: var(--warn); } .hv-st.late { background: var(--bad-bg); color: var(--bad); } .hv-st.paid { background: var(--ok-bg); color: var(--ok); } .hv-st.review { background: #FFF3CC; color: #6B4A00; }
.hv-dl { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; text-decoration: none; }
.hv-items { width: 100%; border-collapse: collapse; }
.hv-items td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hv-items tfoot td { border: 0; padding-top: 12px; font-size: 1.05rem; }
.hv-items .n { text-align: right; white-space: nowrap; padding-left: 12px; }
.hv-receipts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hv-receipts a { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; padding: 8px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); text-decoration: none; }
.hv-pays { display: grid; gap: 12px; }
.hv-pay { display: grid; gap: 8px; border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; border-left: 6px solid var(--brand); margin: 0; }
.hv-moncash { border-left-color: #E30613; } .hv-natcash { border-left-color: #F7941D; } .hv-stripe { border-left-color: #635BFF; }
.hv-pay-name { font: 800 1.2rem var(--f-head); }
.hv-pay input { padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; }
.hv-btn { justify-self: start; border: 0; background: var(--brand-2); color: #fff; font: 800 1rem var(--f-body); padding: 12px 22px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 0 #C54A1E; }
.hv-msg { padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; font-weight: 700; }
.hv-msg.ok { background: var(--ok-bg); color: var(--ok); } .hv-msg.bad { background: var(--bad-bg); color: var(--bad); }
.hv-foot { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 20px; }
.legal-text h1 { margin-bottom: 14px; }
.legal-text h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal-text p, .legal-text li { line-height: 1.6; }
.terms-box { max-width: 900px; }
.terms-scroll { max-height: 52vh; overflow-y: auto; border: 2px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 12px 0 16px; background: #FBFBFE; }

/* ---------- Noms de domaine ---------- */
.dm-cards { display: grid; gap: 18px; margin-bottom: 18px; }
@media (min-width: 900px) { .dm-cards { grid-template-columns: 1fr 1fr; } }
.dm-cards .panel { margin: 0; }
.dm-card h2 { margin-bottom: 10px; }
.dm-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.dm-search input { flex: 1 1 220px; min-width: 0; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; }
.dm-search input:focus { border-color: var(--brand); outline: none; }
.dm-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dm-res { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dm-res.is-free { border-color: #BFE6CD; background: #F6FCF8; }
.dm-res.is-off { opacity: .8; }
.dm-name { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; min-width: 0; overflow-wrap: anywhere; }
.dm-res.is-free .dm-name .ic { color: var(--ok); } .dm-res.is-off .dm-name .ic { color: var(--muted); }
.dm-tld { color: var(--muted); font-weight: 700; }
.dm-price { text-align: right; display: grid; line-height: 1.25; }
.dm-price strong { font: 800 1.15rem/1.1 var(--f-head); color: var(--brand-dark); }
.dm-price span { font-size: .82rem; color: var(--muted); }
.dm-name > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .dm-res { grid-template-columns: 1fr; gap: 6px; } .dm-price { text-align: left; } .dm-act .btn { width: 100%; justify-content: center; } .dm-act:empty { display: none; } }
.dm-order { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 5px solid var(--sun); }
.dm-order p { margin: 0 0 4px; }
.dm-confirm { border: 2px solid var(--brand); }
.dm-sum { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 6px 0 14px; }
.dm-sum div { background: var(--accent-bg); border-radius: 14px; padding: 10px 14px; display: grid; }
.dm-sum span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.dm-sum strong { font: 800 1.2rem/1.2 var(--f-head); color: var(--brand-dark); overflow-wrap: anywhere; }
.dm-steps { margin: 8px 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.dm-buy .grid2 { margin-bottom: 10px; }
.bad-text { color: var(--bad); }

/* ---------- Agents de paiement ---------- */
.hv-agent-pay { border-left-color: #E2231A; }
.hv-agents { display: grid; gap: 8px; }
.hv-agent { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.hv-agent:has(input:checked) { border-color: var(--brand); background: var(--accent-bg); }
.hv-agent input { width: 20px; height: 20px; padding: 0; accent-color: var(--brand); }
.hv-agent span { display: grid; line-height: 1.25; }
.hv-agent strong { font: 800 1.15rem/1.2 var(--f-head); letter-spacing: .03em; }
.ag-pay { border: 2px solid var(--line); border-left: 6px solid var(--sun); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 10px; }
.ag-pay-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ag-pay-head > div:first-child { display: grid; }
.ag-amount { font: 800 1.6rem/1 var(--f-head); color: var(--brand-dark); display: grid; text-align: right; gap: 4px; }
.ag-dl { margin: 0; grid-template-columns: 190px 1fr; }
@media (max-width: 640px) { .ag-dl { grid-template-columns: 1fr; gap: 2px; } .ag-dl dd { margin-bottom: 8px; } .ag-amount { text-align: left; } }
.ag-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.ag-confirm { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.ag-confirm label { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; color: var(--muted); }
.ag-confirm input, .ag-reject input { padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; min-width: 0; width: 190px; max-width: 100%; }
.ag-reject { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ag-tenants { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 6px; }
.radio-row { display: flex; gap: 8px; align-items: center; font-weight: 700; margin: 4px 0; }
.radio-list { display: grid; gap: 4px; }
.ok-text { color: var(--ok); }
.nowrap { white-space: nowrap; }

/* ---------- Taux BRH ---------- */
.rate-box { display: grid; gap: 14px 24px; margin-bottom: 14px; }
@media (min-width: 760px) { .rate-box { grid-template-columns: 1.2fr 1fr; } }
.rate-now { display: grid; gap: 4px; justify-items: start; background: var(--accent-bg); border-radius: 16px; padding: 14px 16px; }
.rate-now strong { font: 800 1.5rem/1.15 var(--f-head); color: var(--brand-dark); }
.rate-now .btn { margin-top: 6px; }
.rate-plans { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.rate-hist { margin-bottom: 14px; } .rate-hist summary { cursor: pointer; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.sub-follow { display: flex; gap: 6px; align-items: center; }

/* ---------- Inscription en ligne ---------- */
.su { max-width: 760px; }
.su h1 { font-size: 1.8rem; margin-bottom: 8px; }
.su-form h2 { margin-top: 22px; }
.su-form h2:first-of-type { margin-top: 0; }
.su-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.su-plans { display: grid; gap: 10px; }
@media (min-width: 680px) { .su-plans { grid-template-columns: repeat(3, 1fr); } }
.su-plan { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.su-plan:has(input:checked) { border-color: var(--brand); background: var(--accent-bg); }
.su-plan input { margin-top: 5px; accent-color: var(--brand); }
.su-plan > span { display: grid; gap: 4px; }
.su-price { font: 800 1.3rem/1.1 var(--f-head); color: var(--brand-dark); }
.su-price small { font: 700 .8rem var(--f-body); color: var(--muted); }
.su-slug { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.su-slug input { flex: 1 1 180px; min-width: 0; }
.su-slug span { color: var(--muted); font-weight: 700; overflow-wrap: anywhere; }
.su-tel { display: flex; align-items: stretch; }
.su-tel span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line, #D9DCE8); border-right: 0; border-radius: 10px 0 0 10px; background: var(--soft, #F4F5FC); font-weight: 700; white-space: nowrap; }
.su-tel input { flex: 1; min-width: 0; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.su .hv-msg ul { margin: 0; padding-left: 18px; }
.su-done .row { gap: 10px; flex-wrap: wrap; }
.health { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.health li { display: grid; grid-template-columns: auto 160px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); }
.health li.bad { background: var(--bad-bg); }
.health li.ok .bi { color: var(--ok); } .health li.bad .bi { color: var(--bad); }
@media (max-width: 640px) { .health li { grid-template-columns: auto 1fr; } .health li span { grid-column: 1 / -1; } }
.su-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.su-type { display: inline-flex; gap: 6px; align-items: center; border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; }
.su-type:has(input:checked) { border-color: var(--brand); background: var(--accent-bg); }
.su-type input { accent-color: var(--brand); }
.su-msg { background: var(--accent-bg); border-radius: 12px; padding: 10px 14px; font-style: italic; }
.su-cdej[hidden] { display: none !important; }

/* ===== v2.7 : éditeur (photos, documents, vidéos), médiathèque, menus, catégories ===== */
.ql-toolbar .ql-epimage, .ql-toolbar .ql-epdoc, .ql-toolbar .ql-epembed { width: 32px !important; color: var(--brand); }
.ql-toolbar .ql-epimage svg, .ql-toolbar .ql-epdoc svg, .ql-toolbar .ql-epembed svg { width: 18px; height: 18px; }
.ql-editor figure.ep-img { margin: 12px 0; cursor: pointer; outline: 2px dashed transparent; border-radius: 10px; }
.ql-editor figure.ep-img:hover { outline-color: var(--brand); }
.ql-editor figure.ep-img img { display: block; max-width: 100%; border-radius: 10px; }
.ql-editor figure.ep-img figcaption { font-size: .85rem; color: var(--muted); text-align: center; padding-top: 4px; }
.ql-editor .ep-size-small img { width: 33%; } .ql-editor .ep-size-medium img { width: 55%; } .ql-editor .ep-size-large img { width: 80%; } .ql-editor .ep-size-full img { width: 100%; }
.ql-editor .ep-align-center img { margin: 0 auto; } .ql-editor .ep-align-right img { margin-left: auto; }
.ql-editor .ep-embed, .ql-editor .ep-doc { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-bg); border: 1px solid var(--line); line-height: 1.35; }
.ql-editor .ep-embed small, .ql-editor .ep-doc small { color: var(--muted); word-break: break-all; }
.ep-ed-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 1rem; }
.ep-dialog { border: 0; border-radius: 20px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.ep-dialog::backdrop { background: rgba(20, 22, 50, .55); }
.ep-dlg-inner { padding: 20px 22px; display: grid; gap: 12px; }
.ep-dlg-inner h2 { margin: 0; font-family: var(--f-head); font-size: 1.35rem; }
.ep-dlg-inner input[type=search], .ep-dlg-inner input[type=url], .ep-dlg-inner input[name=caption] { width: 100%; }
.ep-lbl { display: grid; gap: 4px; font-weight: 800; margin: 0; font-size: .92rem; }
.ep-hint { margin: 0; color: var(--muted); font-size: .88rem; }
.ep-msg { margin: 0; font-weight: 700; color: var(--brand); min-height: 1em; }
.ep-msg:empty { display: none; }
.ep-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
.ep-pick-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ep-pick-bar input { flex: 1 1 200px; }
.ep-up { cursor: pointer; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 52vh; overflow: auto; padding: 2px; }
.ep-grid.is-doc { grid-template-columns: 1fr; }
.ep-item { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 0; background: #fff; cursor: pointer; overflow: hidden; text-align: left; font: inherit; color: inherit; }
.ep-item:hover, .ep-item:focus-visible { border-color: var(--brand); }
.ep-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ep-item em { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: .7rem; font-style: normal; font-weight: 800; background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 2px 6px; }
.ep-grid.is-doc .ep-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.ep-grid.is-doc .ep-item small { display: block; color: var(--muted); }
.ep-doc-ext { flex: none; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 900; font-size: .8rem; letter-spacing: .03em; }
.ep-img-prev img { display: block; max-height: 200px; max-width: 100%; border-radius: 12px; margin: 0 auto; }
.ep-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ep-pill span { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: .88rem; cursor: pointer; }
.ep-pill input:checked + span { border-color: var(--brand); background: var(--accent-bg); color: var(--brand-dark); }
.ep-pill input:focus-visible + span { outline: 3px solid var(--sun); }
/* Médiathèque */
.ml-zone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 16px; border: 2px dashed #C9CDE6; border-radius: 16px; background: #FAFBFF; cursor: pointer; color: var(--muted); transition: background .15s, border-color .15s; }
.ml-zone .bi { width: 30px; height: 30px; color: var(--brand); }
.ml-zone strong { color: var(--ink); font-size: 1.05rem; }
.ml-zone.is-over, .ml-zone:hover { border-color: var(--brand); background: var(--accent-bg); }
.ml-zone input[type=file] { max-width: 100%; margin-top: 6px; }
.ml-drop .row { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.ml-drop .row input { flex: 1 1 220px; }
.ml-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 18px 0 12px; }
.ml-search { display: flex; gap: 6px; flex: 0 1 340px; }
.ml-search input { flex: 1; min-width: 0; }
.media-item.is-doc { display: flex; flex-direction: column; }
.ml-doc { display: grid; justify-items: center; gap: 6px; padding: 18px 10px; text-align: center; text-decoration: none; color: var(--ink); background: #FAFBFF; aspect-ratio: 4 / 3; align-content: center; }
.ml-doc strong { font-size: .9rem; word-break: break-word; }
.ml-usage a { font-weight: 700; }
/* Constructeur de menus */
.mb-wrap { display: grid; gap: 18px; align-items: start; }
@media (min-width: 980px) { .mb-wrap { grid-template-columns: 320px minmax(0, 1fr); } .mb-side { position: sticky; top: 80px; } }
.mb-side h2, .mb-main h2 { margin-top: 0; }
.mb-add { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.mb-add summary { padding: 10px 14px; font-weight: 800; cursor: pointer; }
.mb-add > div, .mb-add > p { padding: 0 14px 12px; }
.mb-choices { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.mb-choices label { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; }
.mb-tree, .mb-children { list-style: none; margin: 0; padding: 0; }
.mb-children { margin-left: 26px; padding-left: 10px; border-left: 2px dashed var(--line); }
.mb-children:empty { display: none; }
.mb-item { margin: 6px 0; }
.mb-row { display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.mb-item.is-drag > .mb-row { opacity: .45; }
.mb-item.drop-before > .mb-row { box-shadow: 0 -3px 0 var(--brand); }
.mb-item.drop-after > .mb-row { box-shadow: 0 3px 0 var(--brand); }
.mb-item.drop-in > .mb-row { border-color: var(--brand); background: var(--accent-bg); }
.mb-grip { cursor: grab; color: var(--muted); letter-spacing: -2px; padding: 0 4px; user-select: none; }
.mb-name { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 4px; }
.mb-name strong { overflow: hidden; text-overflow: ellipsis; }
.mb-type { font-size: .76rem; font-weight: 800; color: var(--muted); background: #EEF0FA; border-radius: 999px; padding: 1px 8px; }
.mb-btns { display: flex; gap: 2px; flex: none; }
.mb-btns button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; color: var(--brand-dark); }
.mb-btns button:hover { background: var(--accent-bg); }
.mb-btns .mb-del { color: var(--bad); }
.mb-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 4px; }
.mb-edit label { display: grid; gap: 3px; font-size: .82rem; font-weight: 800; }
.mb-edit .wide { grid-column: 1 / -1; }
.mb-edit .mb-chk { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 600px) { .mb-edit { grid-template-columns: 1fr; } .mb-btns button { width: 28px; } .mb-grip { display: none; } .mb-children { margin-left: 10px; } }
/* Catégories */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cat-row { margin-left: calc(var(--d, 0) * 24px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cat-row summary { padding: 10px 14px; cursor: pointer; }
.cat-row form { padding: 0 14px 12px; }
.cat-pick { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.cat-pick legend { font-weight: 800; padding: 0 6px; }
.cat-checks { display: grid; gap: 4px; }
.cat-checks label { padding-left: calc(var(--d, 0) * 20px); font-weight: 600; display: flex; gap: 8px; align-items: center; }
/* Personnaliser : style des photos */
.cz-imgstyle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cz-imgstyle label { display: grid; justify-items: center; gap: 4px; font-size: .78rem; font-weight: 700; cursor: pointer; text-align: center; }
.cz-imgstyle input { position: absolute; opacity: 0; }
.cz-is { width: 54px; height: 40px; background: linear-gradient(135deg, #8EC5FC, #E0C3FC); border: 2px solid transparent; outline: 2px solid transparent; outline-offset: 3px; box-sizing: border-box; }
.cz-imgstyle input:checked + .cz-is { outline-color: var(--brand); }
.cz-is-theme { border-radius: 10px; } .cz-is-carre { border-radius: 0; } .cz-is-arrondi { border-radius: 14px; }
.cz-is-ombre { border-radius: 8px; box-shadow: 0 8px 14px rgba(0,0,0,.25); }
.cz-is-cadre { border-radius: 3px; border: 5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.cz-is-bordure { border-radius: 9px; border: 3px solid var(--brand); }
.mb-edit[hidden], .mb-empty[hidden] { display: none !important; }
.mb-choices label { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; }
.mb-choices label input { margin-top: 4px; }
.mb-choices label .small { grid-column: 2; line-height: 1.2; }
.mb-add > .btn { margin: 4px 14px 12px; }
/* Mode maintenance */
.mt-state { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-left: 6px solid var(--ok); }
.mt-state > div:nth-child(2) { flex: 1 1 320px; }
.mt-state h2 { margin: 0 0 4px; }
.mt-state p { margin: 0; }
.mt-state.is-on { border-left-color: var(--flame); background: linear-gradient(90deg, #FFF4EC, var(--panel) 45%); }
.mt-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 6px var(--ok-bg); flex: none; }
.is-on .mt-dot { background: var(--flame); box-shadow: 0 0 0 6px #FFE2D3; animation: mtPulse 1.6s ease-in-out infinite; }
@keyframes mtPulse { 50% { box-shadow: 0 0 0 11px #FFE2D300; } }
@media (prefers-reduced-motion: reduce) { .is-on .mt-dot { animation: none; } }
.mt-switch { display: grid; gap: 8px; }
.mt-switch label { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 700; }
.mt-switch label:has(input:checked) { border-color: var(--brand); background: var(--accent-bg); }
.mt-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.lbl { font-weight: 800; font-size: .93rem; }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.mt-banner { display: flex; gap: 8px; align-items: center; }
.mt-banner a { color: inherit; font-weight: 800; }
/* Kit de partage marketing */
.share-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .share-grid { grid-template-columns: 1fr 1fr; } }
.share-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #FAFBFF; display: flex; flex-direction: column; gap: 10px; }
.share-card h3 { margin: 0; font-size: 1rem; }
.share-text { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 .9rem/1.5 var(--f-body); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 320px; overflow: auto; }

/* ===== v2.8 : accompagnement par consultant ===== */
.cs-avatar { display: inline-block; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(30,33,71,.18); }
.cs-ini { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--sky)); color: #fff; font-weight: 800; font-family: var(--f-head); }
.cs-card { display: block; border: 2px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.cs-card:hover { border-color: #C9CDE6; box-shadow: var(--shadow); }
.cs-card.is-on { border-color: var(--brand); background: var(--accent-bg); }
.cs-card.is-solo { cursor: default; }
.cs-card-in { display: flex; gap: 14px; align-items: flex-start; }
.cs-card-in > div { display: grid; gap: 3px; min-width: 0; }
.cs-name { font-family: var(--f-head); font-size: 1.2rem; line-height: 1.15; }
.cs-title { color: var(--brand); font-weight: 800; font-size: .92rem; }
.cs-lang { color: var(--muted); font-size: .85rem; }
.cs-bio { margin: 6px 0 4px; color: var(--ink); font-size: .93rem; line-height: 1.5; }
.cs-card .btn { justify-self: start; margin-top: 6px; }
.cs-pick { display: grid; gap: 12px; margin: 14px 0; }
@media (min-width: 700px) { .cs-pick { grid-template-columns: 1fr 1fr; } }
.cs-wiz { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.cs-wiz li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: #EEF0FA; color: var(--muted); font-weight: 800; font-size: .9rem; }
.cs-wiz li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--muted); }
.cs-wiz li.is-now { background: var(--brand); color: #fff; } .cs-wiz li.is-now span { color: var(--brand); }
.cs-wiz li.is-done { background: var(--ok-bg); color: var(--ok); } .cs-wiz li.is-done span { background: var(--ok); color: #fff; }
.cs-explain { background: #FFF8E6; border: 1px solid #F2E6C4; border-radius: 16px; padding: 14px 18px; margin: 10px 0 18px; }
.cs-explain h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cs-explain p, .cs-explain ul { margin: 0 0 8px; line-height: 1.55; }
.cs-explain ul { padding-left: 20px; }
.cs-dom-search label { display: block; font-weight: 800; margin-bottom: 6px; }
.cs-dom-search .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-dom-search input { flex: 1 1 220px; font-size: 1.05rem; }
.cs-dom-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.cs-dom-list li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); }
.cs-dom-list li.is-ok { border-color: #BFE6CD; background: #F4FBF6; }
.cs-dom-list li.is-no { opacity: .7; }
.cs-dom-name { font-weight: 800; font-size: 1.05rem; word-break: break-all; flex: 1 1 180px; }
.cs-dom-price { font-weight: 800; display: grid; } .cs-dom-price small { font-weight: 600; color: var(--muted); }
.cs-dom-alt { display: grid; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cs-dom-alt summary { cursor: pointer; font-weight: 800; }
.cs-dom-alt .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .cs-dom-alt .row input { flex: 1 1 200px; }
.cs-book { display: grid; gap: 14px; margin-top: 16px; }
.cs-book h3 { margin: 0; }
.cs-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.cs-day { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; width: 74px; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .82rem; }
.cs-day strong { font-size: 1.45rem; font-family: var(--f-head); line-height: 1.1; }
.cs-day em { font-style: normal; color: var(--ok); font-weight: 800; font-size: .72rem; }
.cs-day.is-on { border-color: var(--brand); background: var(--brand); color: #fff; } .cs-day.is-on em { color: #FFC83D; }
.cs-times { border: 0; padding: 0; margin: 0; } .cs-times legend { font-weight: 800; margin-bottom: 8px; }
.cs-time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.cs-time input, .cs-mode input { position: absolute; opacity: 0; }
.cs-time span { display: block; text-align: center; padding: 10px 6px; border-radius: 12px; border: 2px solid var(--line); font-weight: 800; cursor: pointer; background: #fff; }
.cs-time input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.cs-time input:focus-visible + span, .cs-mode input:focus-visible + span { outline: 3px solid var(--sun); }
.cs-modes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; } .cs-modes legend { font-weight: 800; margin-bottom: 8px; width: 100%; }
.cs-mode span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; cursor: pointer; background: #fff; }
.cs-mode input:checked + span { border-color: var(--brand); background: var(--accent-bg); color: var(--brand-dark); }
.cs-sum-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.cs-sum-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 14px; border-radius: 14px; background: #F4F5FC; }
.cs-sum-list span { color: var(--muted); font-weight: 700; min-width: 150px; } .cs-sum-list a { margin-left: auto; font-weight: 800; }
.cs-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .cs-steps { grid-template-columns: repeat(5, 1fr); } }
.cs-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: #F4F5FC; }
.cs-steps li small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; margin-top: 2px; }
.cs-step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--muted); font-weight: 800; }
.cs-steps .is-done { background: var(--ok-bg); } .cs-steps .is-done .cs-step-n { background: var(--ok); color: #fff; }
.cs-steps .is-now { background: var(--accent-bg); box-shadow: inset 0 0 0 2px var(--brand); } .cs-steps .is-now .cs-step-n { background: var(--brand); color: #fff; }
.cs-hours { display: grid; gap: 8px; margin-bottom: 14px; }
.cs-hours label { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-weight: 700; }
@media (max-width: 520px) { .cs-hours label { grid-template-columns: 1fr; gap: 4px; } }
.cs-prof-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cs-admin-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .cs-admin-grid { grid-template-columns: 1fr 1fr; } }
.cs-admin-card { text-decoration: none; color: var(--ink); display: block; } .cs-admin-card.is-off { opacity: .6; }
.cs-admin-card:hover { box-shadow: var(--shadow-lg); }
.cs-act textarea { width: 100%; min-width: 220px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cs-mlist li { padding: 10px 12px; background: #F4F5FC; border-radius: 12px; }

/* ===== Corrections du test complet (téléphone) ===== */
.grid-2col > *, .grid2 > *, .int-layout > *, .hv > * { min-width: 0; }
@media (max-width: 979px) { .int-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 979px) { .int-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } .int-tab { flex: none; white-space: nowrap; } }
.cs-dom-alt .btn { white-space: normal; text-align: left; justify-content: flex-start; }
.cs-dom-alt details, .cs-dom-alt form { min-width: 0; }
.cs-dom-alt .row input { min-width: 0; }
.hv-inv-title { font-size: .88rem; font-weight: 400; margin: 0; font-family: var(--f-body); }
@media (max-width: 600px) { .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; } }
/* Documents juridiques */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.legal-nav a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #E3E4F2); text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--brand-dark, #1C1F5A); }
.hv-foot a + a { margin-left: 0; }
.admin-legal { margin: 32px 0 8px; padding-top: 14px; border-top: 1px solid var(--line, #E3E4F2); font-size: .85rem; color: var(--muted, #5E6385); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.admin-legal a { color: inherit; }
.login-legal { margin: 18px 0 0; text-align: center; font-size: .82rem; color: var(--muted, #5E6385); } .login-legal a { color: inherit; }
/* Tarifs */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.price-grid .panel { margin: 0; min-width: 0; }
.pc-now { background: var(--bg, #F4F5FC); border-radius: 12px; padding: 10px 14px; margin: 4px 0 14px; }
.pricing-form[data-mode="usd"] .pm-htg, .pricing-form[data-mode="htg"] .pm-usd { display: none; }
.price-card .grid2 { grid-template-columns: 1fr 1fr; }
.price-card .grid2 .wide { grid-column: 1 / -1; }
.price-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.legal-tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #E3E4F2); text-decoration: none; font-weight: 700; color: var(--brand-dark, #1C1F5A); }
.legal-tabs a.active { background: var(--brand-dark, #1C1F5A); color: #fff; border-color: transparent; }
.legal-tabs a.active .muted { color: #C5CAF5; }
/* Espace de stockage */
.quota { margin: 4px 0; }
.quota-top { margin-bottom: 8px; }
.quota-track { height: 12px; border-radius: 999px; background: var(--bg, #EEF0F8); overflow: hidden; }
.quota-track span { display: block; height: 100%; border-radius: 999px; background: #1F9D55; transition: width .3s; }
.quota-warn .quota-track span { background: #E8A317; }
.quota-bad .quota-track span { background: #D64545; }
.quota-hot { color: #B02A1C; font-weight: 800; }
.dm-free { color: #157A47; } .dm-gift .bi { vertical-align: -3px; }

/* v2.11 : bibliothèque de thèmes — recherche */
.lib-head { flex-direction: column; align-items: stretch; }
.lib-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.lib-search { flex: 1 1 280px; max-width: 460px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); }
.lib-search input { border: 0; outline: 0; background: transparent; font: inherit; padding: 11px 0; width: 100%; min-width: 0; color: inherit; }
.lib-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.lib-count { margin: 0; }
.lib-empty { text-align: center; padding: 30px 0; }
.lib-nova { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(120deg, #6D28D9, #DB2777); color: #fff; font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(109,40,217,.35); }
.lib-nova .ic { width: 15px; height: 15px; }
.chip.chip-nova { border-color: #C4B5FD; }
.chip.chip-nova .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 2px; }
.lib-more { display: flex; margin: 0 auto 30px; }

/* v2.15 : menus et emplacements */
.mb-grid { display: grid; gap: 18px; }
@media (min-width: 1100px) { .mb-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.mloc-wrap { display: grid; gap: 18px; }
@media (min-width: 1500px) { .mloc-wrap { grid-template-columns: 190px 1fr; } }
.mloc-map { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg, #F6F7FB); font-size: .72rem; font-weight: 700; color: var(--muted); align-self: start; }
.mloc-map span { padding: 6px 8px; border-radius: 6px; background: #fff; border: 1px dashed var(--line); text-align: center; }
.mloc-map .m-head { background: #E8EBFA; }
.mloc-map .m-body { padding: 26px 8px; font-weight: 600; }
.mloc-map .m-foot { background: #2D3157; color: #fff; padding: 14px 8px; }
.mloc-map .m-mob { margin-top: 8px; border-style: solid; }
@media (max-width: 1499px) { .mloc-map { flex-direction: row; flex-wrap: wrap; } .mloc-map span { flex: 1 1 120px; } .mloc-map .m-body { padding: 6px 8px; } .mloc-map .m-foot { padding: 6px 8px; } .mloc-map .m-mob { margin-top: 0; } }
.mloc { display: grid; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 640px) { .mloc { grid-template-columns: minmax(0, 1fr) 220px; } }
.mloc-txt { display: grid; gap: 2px; }
.mloc.is-set strong::before { content: "●"; color: var(--leaf, #39B36B); margin-right: 6px; font-size: .8em; }
.mlist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.mlist-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.mlist-item > div:first-child { display: grid; gap: 2px; }
.mlist-item form { margin: 0; }
.mb-settings { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 6px; }
.mb-settings label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.mb-locs { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 8px 0 12px; display: grid; gap: 4px; }
.mb-locs legend { font-weight: 700; padding: 0 6px; }

/* 2.16 : thèmes par métier */
.lib-filters-sep { flex-basis: 100%; margin-top: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chip-sector .ic { width: 15px; height: 15px; margin-right: 4px; vertical-align: -2px; }
.lib-sector { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; background: #0F172A; color: #fff; font-weight: 800; font-size: .78rem; padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(15,23,42,.3); }
.lib-sector .ic { width: 14px; height: 14px; }
.lib-card.is-active .lib-sector { top: 50px; }
.su-type .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--primary, #2B2F8F); }
.ml-av-item audio, .ml-av-item video { width: 100%; max-height: 160px; border-radius: 8px; background: #000; margin-bottom: 6px; }
.media-field .current { display: grid; gap: 6px; }
.media-field .ml-list { display: grid; gap: 6px; max-height: 240px; overflow: auto; padding: 8px 0; }
.media-field .ml-av { display: flex; align-items: center; gap: 6px; }

/* 2.16 : listes paginées (recherche + Charger plus) */
.paged-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.paged-q { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-width: 0; }
.paged-q .bi { width: 18px; height: 18px; color: var(--muted); flex: none; }
.paged-q input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; padding: 10px 0; font: inherit; }
.paged-q:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(43,47,143,.15); }
.paged-more { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 16px 0 4px; }
.paged-btn[aria-busy=true] { opacity: .6; pointer-events: none; }
.paged-count { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Sécurité (2.18) ---------- */
.sec-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.sec-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E3E7EE; }
.sec-card .bi { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.sec-card.ok .bi { color: #1E8E5A; }
.sec-card.bad { box-shadow: inset 0 0 0 2px #F3B8AE; background: #FFF7F5; }
.sec-card.bad .bi { color: #C4321F; }
.sec-card strong { display: block; font-size: .95rem; }
.sec-card span { display: block; color: #5B6575; font-size: .88rem; margin: 2px 0; }
.sec-code-list { columns: 2; font-size: 1.05rem; padding-left: 1.4em; }
.sec-code-list code { letter-spacing: .06em; }
.sec-codes { box-shadow: inset 0 0 0 2px #F2C94C; }
.login-card .center, p.center { text-align: center; }
.login-card details summary { cursor: pointer; color: #5B6575; }
@media print { .sidenav, .topbar, .nav-toggle { display: none !important; } }
.sec-alt { margin-top: 12px; align-items: center; flex-wrap: wrap; }
