/* Administration Choutek — pensée d'abord pour le téléphone. */
[hidden] { display: none !important; }
:root {
  --ink: #16201f; --ink-2: #51605e; --petrol: #0f3d3e; --petrol-2: #175557;
  --paper: #f3f5f1; --surface: #fff; --line: #dde3dd; --line-2: #c5cec7;
  --sun: #f2b705; --sun-ink: #2b2100; --danger: #b3361f; --ok: #1f7a4d; --warn: #9a5b00;
  --r: 14px; --r-s: 9px; --side: 248px; --tabs: 62px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e9efec; --ink-2: #a3b1ad; --paper: #0e1716; --surface: #16211f; --line: #263532; --line-2: #375049;
          --danger: #ff8a73; --ok: #63d19b; --warn: #f0b860; --petrol: #0b2c2d; --petrol-2: #154849; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--paper); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; font-weight: 650; }
h2 { font-size: 1.18rem; } h3 { font-size: 1rem; margin-top: .4rem; }
p { margin: 0; } a { color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }
.muted { color: var(--ink-2); } .warn { color: var(--warn); font-weight: 600; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Structure ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--petrol); color: #eaf3f0; display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; padding: 4px 8px 18px; line-height: 1.2; }
.brand-mark { flex: none; width: 26px; height: 26px; border-radius: 8px 8px 8px 2px; background: var(--sun); box-shadow: inset -7px -7px 0 rgba(0,0,0,.14); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; color: #cfe0db; min-height: 44px; }
.side nav a:hover { background: var(--petrol-2); color: #fff; }
.side nav a.on { background: #fff; color: #0f3d3e; font-weight: 650; }
.side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 2px; font-size: .92rem; }
.side-foot a { padding: 8px 12px; border-radius: var(--r-s); color: #b9cec8; text-decoration: none; }
.side-foot a:hover { background: var(--petrol-2); color: #fff; }
.top { margin-left: var(--side); padding: 26px 32px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.top h1 { font-size: 1.7rem; letter-spacing: -.02em; }
.top-user { color: var(--ink-2); font-size: .9rem; }
.main { margin-left: var(--side); padding: 14px 32px 60px; max-width: 1080px; display: grid; gap: 18px; align-content: start; }
.tabs, .scrim { display: none; }

@media (max-width: 860px) {
  .side { transform: translateX(-102%); transition: transform .22s ease; width: min(84vw, 320px); padding-bottom: calc(var(--tabs) + 20px); }
  .side.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(8,20,19,.5); z-index: 39; }
  .top { margin: 0; padding: 14px 16px 4px; position: sticky; top: 0; z-index: 20; background: var(--paper); }
  .top h1 { font-size: 1.3rem; }
  .main { margin: 0; padding: 8px 12px calc(var(--tabs) + 86px); gap: 12px; }
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); z-index: 45; }
  .tabs a, .tabs button { display: grid; place-items: center; align-content: center; gap: 2px; font: inherit; font-size: .68rem; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tabs .on { color: var(--petrol); font-weight: 700; }
  .tabs .on svg { stroke-width: 2.2; }
  @media (prefers-color-scheme: dark) { .tabs .on { color: var(--sun); } }
}

/* ---------- Blocs ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; min-width: 0; }
.main, .editor-form, .card, .form, .field { grid-template-columns: minmax(0, 1fr); }
.main > *, .editor-form > * { min-width: 0; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.narrow { max-width: 460px; }
.empty { text-align: center; padding: 44px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r); display: grid; gap: 10px; justify-items: center; color: var(--ink-2); }
.empty h2 { color: var(--ink); }
.back { text-decoration: none; color: var(--ink-2); font-weight: 600; } .back::before { content: "‹ "; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.row-main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.row-main summary { cursor: pointer; }
.row-actions { display: flex; gap: 6px; flex: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .82rem; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: .8rem; font-weight: 500; color: var(--ink-2); vertical-align: middle; }
.chip b { color: var(--ink); } .chip-warn { color: var(--warn); border-color: currentColor; background: none; }
.chip-ok { color: var(--ok); border-color: currentColor; background: none; }
.chip-ok::before { content: "✓"; font-weight: 700; }
.chip-wait { color: var(--ink-2); border-style: dashed; background: none; }
.chip-none { color: var(--ink-2); background: none; opacity: .8; }
.gb-line { margin: 2px 0; font-size: .92rem; }
.gb-line.gb-vu { color: var(--ok); } .gb-line.gb-attente, .gb-line.gb-jamais { color: var(--ink-2); }
.chip-x button { border: 0; background: none; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--danger); padding: 0 2px; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; }
.stars { color: #d99a00; letter-spacing: 2px; }
@media (max-width: 860px) {
  .card { padding: 16px; } .cols { grid-template-columns: 1fr; }
  .row { flex-direction: column; align-items: stretch; } .row-actions { justify-content: flex-end; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.btn-primary:hover { filter: brightness(.95); border-color: var(--sun); }
.btn-ghost { background: none; }
.btn-danger { color: var(--danger); border-color: transparent; background: none; }
.btn-danger:hover { border-color: var(--danger); }
.btn-small { min-height: 38px; padding: 0 12px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; }
label, .label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.hint, .hint-inline { color: var(--ink-2); font-weight: 400; font-size: .86rem; } .hint-inline::before { content: "— "; }
input[type=text], input[type=url], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
textarea { resize: vertical; line-height: 1.5; } .mono { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sun); outline-offset: 0; border-color: var(--ink-2); }
input[type=file] { width: 100%; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: var(--r-s); background: var(--paper); font: inherit; font-weight: 400; color: var(--ink-2); }
input[type=color] { width: 100%; height: 46px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--petrol); flex: none; }
.inline { display: flex; gap: 8px; } .inline input { flex: 1; }
fieldset.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
fieldset.seg legend { font-weight: 600; font-size: .93rem; padding: 0 0 6px; }
.seg label { display: block; } .seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 11px; cursor: pointer; }
.seg input:checked + span { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.seg input:focus-visible + span { outline: 3px solid var(--sun); }
.count { font-weight: 500; font-size: .82rem; color: var(--ink-2); } .count.good { color: var(--ok); } .count.bad { color: var(--warn); }
.fold { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; } .fold[open] { display: grid; gap: 10px; }
.fold summary { font-weight: 600; cursor: pointer; }
.code-preview { width: 100%; height: 260px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 0; background: linear-gradient(transparent, var(--paper) 30%); z-index: 15; }
.editor-form { display: grid; gap: 18px; }
@media (max-width: 860px) { .ed-bar { top: 50px; } .savebar { bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); } .savebar .btn-primary { flex: 1; } .editor-form { gap: 12px; } }

/* ---------- Messages ---------- */
.alert { padding: 12px 16px; border-radius: var(--r-s); border: 1px solid; font-weight: 600; }
.alert-warn { color: var(--warn); } .alert-success { color: var(--ok); } .alert-error { color: var(--danger); } .alert-deleted { color: var(--ink-2); } .alert-info { color: var(--ink-2); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 22px); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Éditeur ---------- */
.field { display: grid; gap: 6px; }
.ed { border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); position: relative; }
.ed-tools { position: absolute; z-index: 4; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.ed-tools[hidden] { display: none; }
.ed-tools button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: 700 1.15rem/1 var(--font); cursor: pointer; display: grid; place-items: center; padding: 0; }
.ed-tools button:hover { background: rgba(255, 255, 255, .26); }
.ed-tools .ed-size { width: auto; padding: 0 12px; border-radius: 99px; font-size: .85rem; }
.ed-tools .ed-size[hidden] { display: none; }
.ed-tools .ed-kill { background: var(--danger); font-size: 1.3rem; padding-bottom: 2px; }
@media (prefers-color-scheme: dark) { .ed-tools { background: #e9efec; } .ed-tools button { color: #16201f; background: rgba(0, 0, 0, .08); } .ed-tools .ed-kill { color: #fff; } }
.ed-area .ed-moved { outline: 3px solid var(--sun); outline-offset: 3px; transition: outline-color .4s; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; overflow: visible; position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); border-radius: var(--r-s) var(--r-s) 0 0; scrollbar-width: none; }
.ed-bar button { flex: none; min-height: 40px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.ed-bar button[aria-pressed=true] { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.ed-area, .ed-source { min-height: 300px; padding: 16px; outline: none; font-size: 1.02rem; line-height: 1.65; overflow-wrap: anywhere; }
.ed-source { width: 100%; border: 0; border-radius: 0 0 var(--r-s) var(--r-s); font-family: ui-monospace, Consolas, monospace; font-size: .86rem; }
.ed-area:empty::before { content: "Écrivez ou collez votre texte ici…"; color: var(--ink-2); }
.ed-area h2 { font-size: 1.3rem; margin: 1em 0 .4em; color: var(--petrol); } @media (prefers-color-scheme: dark) { .ed-area h2 { color: var(--sun); } }
.ed-area img { display: block; height: auto; border-radius: 8px; margin: 8px auto; cursor: pointer; }
.ed-area img:hover { outline: 3px solid var(--sun); }
.ed-area .ck-img-p { width: max(33%, 140px); } .ed-area .ck-img-m { width: 66%; } .ed-area .ck-img-g { width: 100%; }
.ed-area .ck-flex-ici { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: center; margin: 14px 0; padding: 0; min-height: 150px; line-height: 1.6; white-space: pre-line; text-align: left; border-radius: 10px; cursor: default; user-select: all; }
.ed-area .ck-flex-ici::before { content: ""; align-self: stretch; min-height: 150px; border-radius: 10px; background: var(--paper) var(--img, none) center / cover no-repeat; }
.ed-area .ck-flex-ici.droite::before { order: 2; }
.ed-area .ck-flex-ici:hover, .ed-area .ck-flex-ici:focus { outline: 3px solid var(--sun); outline-offset: 3px; }
.ed-area .ck-code-ici { display: grid; gap: 8px; margin: 14px 0; padding: 10px; border: 1.5px dashed var(--line); border-radius: 10px; background: var(--paper); cursor: default; user-select: none; }
.ed-area .ck-code-ici:hover, .ed-area .ck-code-ici:focus { outline: 3px solid var(--sun); outline-offset: 3px; }
.ed-area .ck-code-ici .ed-code-t { font: 600 13px/1.4 system-ui, sans-serif; color: var(--ink-2); }
.ed-area .ck-code-ici.vide .ed-code-t { color: var(--danger); font-weight: 500; }
.ed-area .ck-code-ici .ed-code-edit { justify-self: start; font: 600 13px system-ui, sans-serif; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.ed-area .ck-code-ici .ed-code-pv { display: block; width: 100%; height: 120px; border: 0; border-radius: 8px; background: #fff; pointer-events: none; }
.ed-area .ck-code-ici .ed-code-pv[hidden] { display: none; }
.ed-area .ck-flex-ici.gone { display: block; min-height: 0; padding: 12px; border: 1.5px dashed var(--danger); color: var(--danger); }
.ed-area .ck-flex-ici.gone::before { display: none; }
@media (max-width: 520px) { .ed-area .ck-flex-ici { grid-template-columns: 1fr; } .ed-area .ck-flex-ici.droite::before { order: 0; } }
.flexpick img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: none; } .ed-area a { color: #1a6dcc; }
.ed-area .btn-toggle, .ed-area .ck-btn { display: inline-block; padding: 10px 20px; border-radius: 10px; border: 0; background: var(--petrol); color: #fff; font: inherit; font-weight: 600; }
.ed-area .interp-acc { border: 1px solid var(--line-2); border-radius: 9px; margin: 8px 0; }
.ed-area .interp-accbtn { display: flex; justify-content: space-between; width: 100%; padding: 12px; background: none; border: 0; font: inherit; font-weight: 600; color: inherit; text-align: left; }
.ed-area .interp-panel { padding: 0 12px 12px; color: var(--ink-2); font-size: .95rem; }

/* ---------- Sélecteurs à vignettes ---------- */
.picker { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.pick { flex: none; width: 128px; padding: 0; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; cursor: pointer; overflow: hidden; display: grid; grid-template-rows: 86px auto; text-align: left; position: relative; scroll-snap-align: start; }
.pick img { width: 100%; height: 86px; object-fit: cover; } .pick span { padding: 6px 8px; }
.pick-none { grid-row: 1 / -1; display: grid; place-items: center; color: var(--ink-2); font-size: .95rem; }
.pick.on { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--sun); }
.pick .order { position: absolute; top: 6px; right: 6px; min-width: 26px; height: 26px; border-radius: 99px; background: var(--sun); color: var(--sun-ink); font-style: normal; font-weight: 700; display: none; place-items: center; }
.pick.on .order { display: grid; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.thumb { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 99px; border: 0; background: rgba(15,25,24,.78); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.thumb-add { border: 1.5px dashed var(--line-2); } .thumb-add label { height: 100%; place-items: center; align-content: center; font-size: 1.6rem; color: var(--ink-2); cursor: pointer; gap: 0; }
.thumb-add span { font-size: .8rem; } .thumb-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumb-check { cursor: pointer; }
.thumb-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.thumb-x-ico { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(15,25,24,.82); color: #fff; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; padding-bottom: 2px; }
.thumb-check:has(input:focus-visible) .thumb-x-ico { outline: 3px solid var(--sun); }
.thumb-retiree { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.72); color: var(--danger); font-size: .78rem; font-weight: 700; text-align: center; padding: 8px; place-content: center; gap: 6px; }
.thumb-retiree b { justify-self: center; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.thumb-check:has(input:checked) .thumb-retiree { display: grid; }
.thumb-check:has(input:checked) .thumb-x-ico { display: none; }
.thumb-check:has(input:checked) img { filter: grayscale(1); }
.previews { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.preview { position: relative; } .preview-x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ink); color: var(--surface); font-size: 15px; line-height: 1; padding: 0 0 2px; cursor: pointer; }
.previews-n { flex-basis: 100%; font-size: .85rem; color: var(--ink-2); }
.thumb-video, .hero-prev { width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; background: #000; }
.capgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cap { margin: 0; position: relative; display: grid; gap: 8px; } .cap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.cap-form { display: flex; gap: 6px; } .cap-form input { min-height: 38px; }
.flexlist { display: grid; gap: 12px; }
.flexitem { grid-template-columns: 150px 1fr; align-items: start; } .flexitem.rev { grid-template-columns: 1fr 150px; } .flexitem.rev img { order: 2; }
.flexitem img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; } .flexitem > div { display: grid; gap: 8px; }
@media (max-width: 520px) { .flexitem, .flexitem.rev { grid-template-columns: 96px 1fr; } .flexitem.rev img { order: 0; } }

/* ---------- Référencement ---------- */
.serp { display: grid; gap: 2px; padding: 14px; border-radius: var(--r-s); background: var(--paper); font-family: Arial, sans-serif; overflow-wrap: anywhere; }
.serp-url { font-size: .78rem; color: var(--ink-2); } .serp-title { font-size: 1.12rem; color: #1a0dab; } .serp-desc { font-size: .88rem; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .serp-title { color: #8ab4f8; } }
.score { display: flex; align-items: center; gap: 14px; }
.score::before { content: ""; width: 58px; height: 58px; border-radius: 50%; flex: none; background: radial-gradient(closest-side, var(--surface) 72%, transparent 73%), conic-gradient(var(--ok) calc(var(--pct) * 1%), var(--line) 0); }
.score strong { font-size: 1.5rem; } .score span { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.checks li::before { content: "✓"; grid-row: span 2; font-weight: 700; color: var(--ok); } .checks li.ko::before { content: "!"; color: var(--warn); }
.checks span { grid-column: 2; color: var(--ink-2); font-size: .9rem; }

/* ---------- Fenêtres ---------- */
dialog.sheet { border: 0; border-radius: 18px; padding: 22px; width: min(480px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(8,20,19,.55); }
.faq-list { display: grid; max-height: 46vh; overflow: auto; }
@media (max-width: 860px) { dialog.sheet { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); } }

/* ---------- Connexion ---------- */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--petrol); }
.login-card { width: min(400px, 100%); background: var(--surface); border-radius: 20px; padding: 30px 26px; display: grid; gap: 12px; }
.login-card .brand { padding: 0 0 8px; } .login-card h1 { font-size: 1.6rem; } .login-card form { display: grid; gap: 14px; margin-top: 6px; }
.login-back { text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.goto input { width: 132px; min-height: 44px; } .goto { flex: none; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.row-slot { background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--ink) 4%, transparent) 10px 20px); margin-inline: -8px; padding-inline: 8px; border-radius: 8px; }
.closebar { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); justify-items: start; }

/* ----- Écran Pages ----- */
.finders { display: flex; flex-wrap: wrap; gap: 10px; }
.finders form:first-child { flex: 1 1 280px; }
input[type=search] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; }
.eyebrow { font-size: .82rem; font-weight: 700; color: var(--petrol-2); margin-bottom: 2px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--sun); } }
.pl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pl strong { flex: none; } .pl-titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; flex: 1 1 160px; }
.row-actions.wrap { flex-wrap: wrap; justify-content: flex-end; }
.plist { display: grid; }
.pl-item { border-top: 1px solid var(--line); }
.pl-item > summary { padding: 13px 4px; cursor: pointer; list-style: none; }
.pl-item > summary::-webkit-details-marker { display: none; }
.pl-item > summary::before { content: "›"; display: inline-block; width: 14px; color: var(--ink-2); font-weight: 700; transition: rotate .15s; }
.pl-item[open] > summary::before { rotate: 90deg; }
.pl-body { padding: 0 4px 14px 18px; display: grid; gap: 6px; }

/* ----- Éditeur : les autres articles de la page ----- */
.siblings { gap: 10px; }
.siblings > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sib { list-style: none; margin: 0; padding: 0; display: grid; }
.sib li { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 0; border-top: 1px solid var(--line); }
.sib-n { flex: none; width: 70px; font-size: .85rem; color: var(--ink-2); }
.sib-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sib li.me { font-weight: 650; } .sib li.me .sib-n { color: var(--ink); }
.sib li.slot .sib-t, .sib li.free .sib-t { font-style: italic; color: var(--ink-2); }
.siblings { display: block; } .siblings > summary { margin-bottom: 10px; } .siblings .actions { margin-top: 10px; }
.sib { min-width: 0; width: 100%; }
.closebar { justify-items: stretch; } .closebar > * { min-width: 0; }
.closebar .btn { justify-self: start; white-space: normal; text-align: center; max-width: 100%; height: auto; padding-block: 10px; }
.sib { grid-template-columns: minmax(0, 1fr); }

/* ----- Emojis ----- */
.emo-wrap { display: flex; gap: 6px; align-items: flex-start; }
.emo-wrap > input, .emo-wrap > textarea { flex: 1; min-width: 0; }
.emo-field { flex: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.emo-field:hover { border-color: var(--ink-2); }
dialog.emo { width: min(560px, calc(100vw - 24px)); padding: 16px; display: none; }
dialog.emo[open] { display: grid; gap: 10px; }
.emo-head { display: flex; gap: 8px; }
.emo-head input { flex: 1; min-height: 44px; }
.emo-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.emo-tabs button { flex: 1 0 auto; min-width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; font-size: 1.25rem; cursor: pointer; }
.emo-tabs button:hover { background: var(--paper); }
.emo-body { height: min(46vh, 380px); overflow-y: auto; overscroll-behavior: contain; }
.emo-body h3 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 2px 6px; font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--surface); }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
.emo-b { height: 44px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 1.55rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emo-b:hover, .emo-b:focus-visible { background: var(--paper); }
.emo-b[hidden], .emo-cat[hidden] { display: none; }
.emo-status { min-height: 1.4em; font-size: .88rem; margin: 0; }
@media (max-width: 860px) { dialog.emo { width: 100vw; max-width: 100vw; } }

/* ----- Avant / après (admin) ----- */
.ba-liste { display: grid; gap: 18px; }
.ba-paire { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.ba-liste > .ba-paire:first-child { padding-top: 0; border-top: 0; }
.ba-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-case { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14px; border: 2px dashed var(--line-2); border-radius: 12px; background: var(--paper) center / cover no-repeat; text-align: center; cursor: pointer; overflow: hidden; }
.ba-case:hover { border-color: var(--ink-2); }
.ba-case:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.ba-case input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ba-case.rempli { border-style: solid; border-color: var(--petrol); }
.ba-case.rempli .ba-vide { display: none; }
.ba-vide { font-weight: 400; font-size: .88rem; color: var(--ink-2); padding: 0 6px; }
.ba-etiquette { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 700; z-index: 1; }
.ba-case + .ba-case .ba-etiquette { background: var(--sun); color: var(--sun-ink); }
/* le cadre prend les proportions de la photo « avant » (largeur limitée pour tenir dans 60 % de l'écran) : les deux photos remplissent alors exactement le même cadre */
.ba-cadre { position: relative; overflow: hidden; border-radius: 12px; background: #000; user-select: none; margin: 0 auto; max-width: var(--ba-max, 100%); }
.ba-cadre .ba-av { display: block; width: 100%; height: auto; }
.ba-ap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-ap img { width: 100%; height: 100%; object-fit: cover; }
.ba-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 10px rgba(0, 0, 0, .4); }
.ba-poignee::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #16201f; font: 700 1rem/42px var(--font); text-align: center; letter-spacing: 3px; }
.ba-cadre input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-galerie { display: grid; gap: 10px; }
.ba-ligne { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
.ba-ligne figcaption { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(15, 25, 24, .78); color: #fff; font-size: .75rem; font-weight: 700; }
@media (max-width: 520px) { .ba-ligne { grid-template-columns: 1fr 1fr; } .ba-ligne form { grid-column: 1 / -1; justify-self: end; } }

/* Fiche entreprise : horaires sur deux colonnes au téléphone, sept sur grand écran */
.sd-jours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .sd-jours { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sd-apercu { max-height: 360px; overflow: auto; padding: 12px; background: var(--paper); border-radius: var(--r-s); font-size: 12.5px; white-space: pre-wrap; word-break: break-word; }
.dups { margin: 0 0 8px; padding-left: 1.1em; display: grid; gap: 10px; }
.dups li { line-height: 1.5; }
.dups strong { color: var(--warn); }
.dups-x { display: block; margin-top: 4px; font-size: .88rem; color: var(--ink-2); }
.dups-x q { display: block; margin-top: 4px; padding: 6px 10px; border-left: 3px solid var(--warn); background: var(--paper); border-radius: 0 6px 6px 0; quotes: "« " " »"; }
.liens { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.liens li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.liens li.muted { display: block; border-style: dashed; }
.liens strong { font-weight: 600; }
.liens-mots, .liens li > div > .muted { display: block; font-size: .85rem; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 480px) { .liens li { grid-template-columns: minmax(0, 1fr); } .liens li .btn { justify-self: start; } }

/* ----- Choix du style d'un module ----- */
.styles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
@media (max-width: 560px) {
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .style-opt { padding: 9px; }
  .style-mini { height: 34px; }
  .style-desc { font-size: .78rem; }
  .style-badge { top: 5px; right: 5px; font-size: 10px; padding: 3px 6px; }
}
.style-opt { position: relative; display: grid; gap: 4px; align-content: start; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.style-opt:hover { border-color: var(--ink-2); }
.style-opt input { position: absolute; opacity: 0; pointer-events: none; }
.style-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--sun); }
.style-opt:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.style-opt strong { font-size: .98rem; }
.style-desc { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.style-badge { position: absolute; top: 8px; right: 8px; font: 600 11px/1 system-ui, sans-serif; padding: 4px 7px; border-radius: 999px; background: var(--ok); color: #fff; }
.style-apercu { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--paper); }
.style-apercu-barre { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: none; font: 600 13px system-ui, sans-serif; color: var(--ink-2); padding: 6px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.style-cadre { margin: 0 auto; transition: max-width .25s; background: #fff; }
.style-cadre iframe { display: block; width: 100%; height: 320px; border: 0; }
.style-vide { padding: 30px 14px; text-align: center; margin: 0; }
@media (max-width: 700px) { .seg { display: none; } }
/* Petits schémas : une idée de la forme de chaque style */
.style-mini { display: grid; gap: 3px; height: 44px; margin-bottom: 6px; padding: 5px; border-radius: 6px; background: var(--paper); }
.style-mini i { display: block; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.style-mini--mots-ruban { grid-template-columns: repeat(4, 1fr); align-items: center; } .style-mini--mots-ruban i { height: 6px; }
.style-mini--mots-titre { grid-template-columns: 1.4fr 1fr; align-items: center; } .style-mini--mots-titre i { height: 20px; } .style-mini--mots-titre i:nth-child(even) { background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 40%, transparent); } .style-mini--mots-titre i:nth-child(n+3) { display: none; }
.style-mini--mots-pastilles { grid-template-columns: repeat(3, 1fr); align-items: center; } .style-mini--mots-pastilles i { height: 14px; border-radius: 999px; } .style-mini--mots-pastilles i:nth-child(4) { display: none; }
.style-mini--gal1-defilement { grid-template-columns: repeat(3, 1fr); } .style-mini--gal1-defilement i:nth-child(4) { display: none; }
.style-mini--gal1-une { grid-template-columns: repeat(3, 1fr); grid-template-rows: 2fr 1fr; } .style-mini--gal1-une i:first-child { grid-column: 1 / -1; }
.style-mini--gal1-grille { grid-template-columns: repeat(4, 1fr); }
.style-mini--gal1-mosaique { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; } .style-mini--gal1-mosaique i:first-child { grid-row: span 2; } .style-mini--gal1-mosaique i:nth-child(4) { grid-column: 2 / -1; }
.style-mini--gal1-pile { place-items: center; position: relative; } .style-mini--gal1-pile i { position: absolute; width: 30px; height: 24px; background: var(--surface); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); } .style-mini--gal1-pile i:nth-child(1) { rotate: -10deg; } .style-mini--gal1-pile i:nth-child(2) { rotate: 7deg; } .style-mini--gal1-pile i:nth-child(3) { rotate: -2deg; } .style-mini--gal1-pile i:nth-child(4) { display: none; }
.style-mini--actus-cartes { grid-template-columns: repeat(3, 1fr); } .style-mini--actus-cartes i { background: linear-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 0 55%, transparent 55%), repeating-linear-gradient(transparent 0 3px, color-mix(in srgb, var(--ink) 22%, transparent) 3px 5px, transparent 5px 8px) bottom / 100% 40% no-repeat; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); } .style-mini--actus-cartes i:nth-child(4) { display: none; }
.style-mini--actus-une { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 6px; column-gap: 5px; row-gap: 4px; } .style-mini--actus-une i:first-child { background: color-mix(in srgb, var(--ink) 22%, transparent); } .style-mini--actus-une i:nth-child(2) { background: repeating-linear-gradient(transparent 0 3px, color-mix(in srgb, var(--ink) 22%, transparent) 3px 6px, transparent 6px 9px); } .style-mini--actus-une i:nth-child(n+3) { height: 4px; }
.style-mini--actus-fil { grid-template-columns: 6px 1fr; grid-template-rows: repeat(2, 1fr); column-gap: 6px; } .style-mini--actus-fil i:nth-child(odd) { border-radius: 50%; width: 6px; height: 6px; align-self: center; background: var(--ink); } .style-mini--actus-fil i:nth-child(even) { height: 8px; align-self: center; }
.style-mini--avis-cartes { grid-template-columns: repeat(3, 1fr); } .style-mini--avis-cartes i { background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); } .style-mini--avis-cartes i:nth-child(4) { display: none; }
.style-mini--avis-citation { place-items: center; grid-template-rows: 1fr 1fr; } .style-mini--avis-citation i { width: 70%; height: 6px; } .style-mini--avis-citation i:nth-child(2) { width: 50%; } .style-mini--avis-citation i:nth-child(n+3) { display: none; }
.style-mini--avis-mur { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; } .style-mini--avis-mur i { background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 30%, transparent); } .style-mini--avis-mur i:first-child { grid-row: span 2; }
.cap-move { display: flex; gap: 6px; justify-content: center; } .cap-move form { margin: 0; }
.style-mini--gal1-ba { position: relative; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 34%, transparent) 50%, color-mix(in srgb, var(--ink) 14%, transparent) 50%); } .style-mini--gal1-ba i { display: none; } .style-mini--gal1-ba::after { content: ""; position: absolute; left: calc(50% - 1px); top: 4px; bottom: 4px; width: 2px; background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.ba-home { padding: 0; } .ba-home > summary { padding: 16px 18px; } .ba-home > form { padding: 0 18px 18px; }
.cap-tag { position: absolute; top: 6px; left: 6px; font: 700 11px/1 system-ui, sans-serif; padding: 4px 7px; border-radius: 999px; background: rgba(15,25,24,.82); color: #fff; }
.cap { position: relative; }

/* ----- Tarifs ----- */
.tf-cats { display: grid; gap: 14px; }
.tf-cat { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); display: grid; gap: 10px; min-width: 0; }
.tf-cat-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; }
.tf-titre { font-weight: 700; }
.tf-lignes { display: grid; gap: 8px; }
.tf-ligne { display: grid; grid-template-columns: minmax(0, 2fr) minmax(70px, .7fr) minmax(0, 2fr) 34px; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.tf-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 0 2px; }
.tf-x:hover { color: var(--danger); border-color: var(--danger); }
.tf-plus, .tf-cat-plus { justify-self: start; }
@media (max-width: 640px) {
  .tf-ligne { grid-template-columns: minmax(0, 1fr) 90px 34px; }
  .tf-ligne [data-f=detail] { grid-column: 1 / 3; grid-row: 2; }
  .tf-ligne .tf-x { grid-column: 3; grid-row: 1; }
  .tf-cat-tete { grid-template-columns: minmax(0, 1fr) auto auto; }
  .tf-cat-tete .tf-cat-x { grid-column: 1 / -1; justify-self: start; }
}
.style-mini--tarifs-liste { grid-template-rows: repeat(4, 1fr); } .style-mini--tarifs-liste i { background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 30%, transparent) 0 40%, transparent 40% 82%, color-mix(in srgb, var(--ink) 45%, transparent) 82%); height: 4px; align-self: center; }
.style-mini--tarifs-cartes { grid-template-columns: repeat(3, 1fr); } .style-mini--tarifs-cartes i { background: repeating-linear-gradient(transparent 0 5px, color-mix(in srgb, var(--ink) 22%, transparent) 5px 7px); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--ink) 45%, transparent); } .style-mini--tarifs-cartes i:nth-child(4) { display: none; }
.style-mini--tarifs-onglets { grid-template-columns: repeat(3, 1fr); grid-template-rows: 9px 1fr; } .style-mini--tarifs-onglets i:nth-child(-n+3) { border-radius: 999px; } .style-mini--tarifs-onglets i:first-child { background: color-mix(in srgb, var(--ink) 50%, transparent); } .style-mini--tarifs-onglets i:nth-child(4) { grid-column: 1 / -1; background: repeating-linear-gradient(transparent 0 4px, color-mix(in srgb, var(--ink) 22%, transparent) 4px 7px); }

/* ----- Zone d'intervention ----- */
.zn-lignes { display: grid; gap: 8px; }
.zn-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 34px; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.zn-note { grid-column: 1 / -1; font-size: .8rem; color: var(--warn); }
.zn-plus { justify-self: start; }
@media (max-width: 560px) { .zn-ligne { grid-template-columns: minmax(0, 1fr) 34px; } .zn-ligne select { grid-column: 1; grid-row: 2; } }
.style-mini--zone-pastilles { grid-template-columns: repeat(3, 1fr); align-content: center; } .style-mini--zone-pastilles i { height: 12px; border-radius: 999px; } .style-mini--zone-pastilles i:nth-child(4) { grid-column: 2; }
.style-mini--zone-colonnes { grid-template-columns: repeat(2, 1fr); } .style-mini--zone-colonnes i { background: repeating-linear-gradient(transparent 0 4px, color-mix(in srgb, var(--ink) 25%, transparent) 4px 6px); } .style-mini--zone-colonnes i:nth-child(n+3) { display: none; }
.style-mini--zone-phrase { place-content: center; } .style-mini--zone-phrase i { height: 4px; width: 100%; } .style-mini--zone-phrase i:nth-child(2) { width: 80%; justify-self: center; } .style-mini--zone-phrase i:nth-child(3) { width: 60%; justify-self: center; } .style-mini--zone-phrase i:nth-child(4) { display: none; }

/* ----- Stock de contenu ----- */
.stock-form textarea { min-height: 50vh; font-size: 1rem; line-height: 1.6; }
.stock-compte { margin: 0; font-size: .85rem; }
.stock-lecture { width: 100%; background: var(--paper); font-size: .95rem; line-height: 1.55; }
.top-aide { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--ink); font-weight: 700; text-decoration: none; }
.top-aide:hover { border-color: var(--ink); }
.top-aide + .top-user { margin-left: 10px; }

/* ----- Mode d'emploi ----- */
.aide h2 { margin-bottom: .4em; }
.aide p { margin: 0 0 .8em; line-height: 1.55; }
.aide-intro { color: var(--ink-2); }
.aide-liste { list-style: none; counter-reset: pas; margin: 0; padding: 0; display: grid; gap: 10px; }
.aide-pas { counter-increment: pas; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); }
.aide-pas::before { content: counter(pas); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: #fff; font-weight: 700; align-self: start; }
.aide-pas p { margin: 2px 0 0; font-size: .92rem; color: var(--ink-2); }
.aide-pas .chip { font-size: .78rem; }
@media (max-width: 560px) { .aide-pas { grid-template-columns: 30px minmax(0, 1fr); } .aide-pas .btn { grid-column: 2; justify-self: start; } }
.aide-puces { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; line-height: 1.5; }
.aide-modules { display: flex; flex-wrap: wrap; gap: 8px; }
.aide-modules a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.aide-modules a:hover { border-color: var(--ink); }

/* Logo et partage */
.marque-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 6px 0 16px; }
.marque-champ h3 { margin-top: 0; }
.marque-fichier { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 2px dashed #b9c6c2; border-radius: 12px; cursor: pointer; font-weight: 600; max-width: 100%; overflow: hidden; }
.marque-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.marque-fichier:focus-within { outline: 2px solid #0f3d3e; outline-offset: 2px; }
.apercu-onglet { margin-top: 14px; background: #dfe3e8; border-radius: 10px 10px 0 0; padding: 8px 8px 0; }
.apercu-onglet .onglet { display: flex; align-items: center; gap: 8px; max-width: 230px; background: #fff; border-radius: 8px 8px 0 0; padding: 8px 12px; font-size: 13px; }
.apercu-onglet img { width: 16px; height: 16px; object-fit: contain; }
.apercu-onglet b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apercu-appli { margin-top: 12px; display: inline-grid; justify-items: center; gap: 6px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(160deg, #2b4e6e, #7a5a8c); color: #fff; font-size: 12px; }
.apercu-appli img { width: 58px; height: 58px; border-radius: 14px; background: #fff; object-fit: contain; }
.apercu-partage { margin-top: 14px; max-width: 340px; border-radius: 10px; overflow: hidden; background: #e7f6dd; border: 1px solid #cfe5c0; }
.apercu-partage .ap-img { aspect-ratio: 1200 / 630; background: #d5dad8; display: grid; place-items: center; text-align: center; font-size: 12px; color: #55605d; padding: 0; }
.apercu-partage .ap-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apercu-partage .ap-img span { padding: 10px; }
.apercu-partage .ap-txt { padding: 8px 12px 10px; display: grid; gap: 2px; font-size: 13px; }
.apercu-partage small { color: #5c6b66; }
.marque-retirer { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }

/* Disposition des articles */
.dispo-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.dispo-carte { position: relative; display: grid; gap: 4px; padding: 10px; border: 2px solid #dfe5e1; border-radius: 14px; cursor: pointer; background: #fff; }
.dispo-carte input { position: absolute; opacity: 0; pointer-events: none; }
.dispo-carte svg { width: 100%; height: auto; background: #f3f5f2; border-radius: 8px; }
.dispo-carte svg rect { fill: #c9d2ce; } .dispo-carte svg .m { fill: #8fb3ad; } .dispo-carte svg .t { fill: #334441; } .dispo-carte svg .tb { fill: #fff; }
.dispo-carte strong { font-size: 15px; } .dispo-carte small { color: #5c6b66; font-size: 13px; line-height: 1.35; }
.dispo-carte.on, .dispo-carte:has(input:checked) { border-color: #0f3d3e; box-shadow: 0 0 0 3px rgba(15,61,62,.12); }
.dispo-carte:has(input:focus-visible) { outline: 2px solid #0f3d3e; outline-offset: 2px; }
.dispo-carte .dispo-off { display: none; color: #9a4b00; }
.dispo-carte.off { opacity: .55; cursor: not-allowed; } .dispo-carte.off .dispo-off { display: block; }
.chip-sug { background: #fff4c7; color: #6b5200; font-size: 11px; vertical-align: 1px; }
.dispo-cote { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.dispo-cote legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.dispo-cote[hidden], #dispoChoix[hidden] { display: none !important; }

/* Liens retour */
.liens li .retour-case { grid-column: 1 / -1; font-size: 14px; margin-top: 4px; }
.retours { margin-top: 14px; padding: 12px 14px; border: 1px solid #dfe5e1; border-radius: 12px; display: grid; gap: 6px; }
.retours .hint { margin: 0; }

/* Mode jour / nuit */
.nuit-modes { display: grid; gap: 8px; margin: 4px 0 10px; }
.nuit-mode { align-items: flex-start; padding: 10px 12px; border: 1px solid #dfe5e1; border-radius: 12px; }
.nuit-mode span { display: grid; gap: 2px; } .nuit-mode small { color: #5c6b66; font-size: 13px; line-height: 1.4; }
.nuit-apercu { margin: 6px 0 14px; padding: 16px 18px; border-radius: 14px; background: var(--nf); color: var(--nt); }
.nuit-apercu p { margin: 6px 0 12px; } .nuit-apercu a { color: var(--na); }
.nuit-btn-ex { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--na); color: var(--nf); font-weight: 700; }

/* Vidéos placées dans le texte (éditeur) */
.ed-area .ck-video-ici, .ed-area .ck-yt-ici { display: grid; gap: 6px; margin: 14px 0; padding: 10px; width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); cursor: default; user-select: none; }
.ed-area .ck-video-ici:hover, .ed-area .ck-yt-ici:hover { outline: 3px solid var(--sun); outline-offset: 3px; }
.ed-area .ed-vid-t { font: 600 13px/1.4 system-ui, sans-serif; color: var(--ink-2); }
.ed-area .ed-vid-pv { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; pointer-events: none; margin: 0; }
.vid-ou { text-align: center; color: var(--ink-2); font-weight: 600; margin: 4px 0; }

/* Mode d'emploi : premiers pas et questions */
.aide-premiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aide-premiers li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.aide-premiers li p { margin: 2px 0 0; font-size: .92rem; color: var(--ink-2); }
.aide-coche { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 800; color: #fff; }
.aide-premiers li.fait .aide-coche { background: #1f8a4c; border-color: #1f8a4c; }
.aide-premiers li.fait strong { color: var(--ink-2); }
@media (max-width: 560px) { .aide-premiers li { grid-template-columns: 26px minmax(0, 1fr); } .aide-premiers .btn { grid-column: 2; justify-self: start; } }
.aide-cherche input { width: 100%; min-height: 46px; margin: 4px 0 12px; }
.aide-groupe { margin-top: 14px; } .aide-groupe h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ink-2); }
.aide-q { border-bottom: 1px solid var(--line); }
.aide-q summary { cursor: pointer; padding: 13px 4px; font-weight: 600; list-style-position: inside; }
.aide-q[open] summary { color: var(--ink); }
.aide-r { padding: 0 4px 14px; line-height: 1.55; }
.aide-r ol { margin: 0 0 10px; padding-left: 1.3em; display: grid; gap: 6px; } .aide-r p { margin: 0 0 10px; }
.aide-ici { background: #fff8d6; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bibliothèques Flexbox et FAQ */
.biblio-barre { display: grid; gap: 10px; margin: 6px 0 12px; }
.biblio-cherche input { width: 100%; min-height: 44px; }
.biblio-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.biblio-tags .chip { cursor: pointer; border: 1px solid var(--line); background: var(--surface); min-height: 32px; }
.biblio-tags .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.biblio-compte { margin: 0; font-size: 13px; min-height: 1em; }
ul.biblio { list-style: none; margin: 0; padding: 0; }
ul.biblio > .biblio-ligne { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.biblio-ligne[hidden] { display: none !important; }
ul.biblio > .biblio-ligne--q { grid-template-columns: minmax(0, 1fr) auto; }
ul.biblio .biblio-ligne > img, .biblio-vide { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--paper); }
.biblio-corps { display: grid; gap: 4px; min-width: 0; }
.biblio-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.biblio-txt { margin: 0; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biblio-usage { margin: 0; font-size: 13px; color: var(--ink-2); } .biblio-usage.oui { color: #1f6e43; font-weight: 600; }
.biblio-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip-tag { background: #eef2ff; color: #2c3a8c; }
.biblio-plus { margin-top: 10px; width: 100%; }
.biblio-nouv { border: 1px dashed var(--line-2); border-radius: 12px; padding: 4px 12px; margin: 6px 0 12px; }
.biblio-nouv[open] { padding-bottom: 12px; } .biblio-nouv summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.biblio-nouv label, .biblio-nouv .seg { margin-top: 8px; }
@media (max-width: 560px) { ul.biblio > .biblio-ligne { grid-template-columns: 48px minmax(0, 1fr); } ul.biblio .biblio-ligne > img, .biblio-vide { width: 48px; height: 48px; } .biblio-actions { grid-column: 1 / -1; justify-content: flex-start; } ul.biblio > .biblio-ligne--q { grid-template-columns: 1fr; } }
fieldset.seg.biblio-filtre { border-radius: 0; overflow: visible; gap: 6px; }
.biblio-filtre span { min-height: 38px; padding: 0 14px; font-size: 14px; }
.biblio-nouv fieldset.seg { border-radius: 0; overflow: visible; }

/* Adresse choisie d'une page locale */
.slug-champ { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 11px; overflow: hidden; background: var(--surface); }
.slug-champ:focus-within { border-color: var(--ink); }
.slug-pre { display: flex; align-items: center; padding: 0 4px 0 12px; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
@media (max-width: 700px) { .slug-hote { display: none; } }
.slug-champ input { flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; padding-left: 2px; }
.slug-aide { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: -4px 0 4px; }
.slug-aide .hint { margin: 0; }
.slug-note { color: #8a5a00; }

/* Barre de l'éditeur : tous les boutons visibles, sur plusieurs lignes si besoin (plus de défilement caché). */
@media (max-width: 700px) { .ed-long { display: none; } .ed-bar { gap: 5px; padding: 6px; } .ed-bar button { min-height: 36px; padding: 0 10px; font-size: .84rem; border-radius: 8px; } }

/* Galeries placées dans le texte (éditeur) */
.ed-area .ck-gal-ici { display: grid; gap: 6px; margin: 14px 0; padding: 10px; width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); cursor: default; user-select: none; }
.ed-area .ck-gal-ici:hover { outline: 3px solid var(--sun); outline-offset: 3px; }
.ed-area .ed-gal-pv { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin: 0; pointer-events: none; }
#dlgGal .picker { max-height: 46vh; overflow-y: auto; }

/* Boutons « Voir » : une couleur à part, faciles à repérer */
.btn-voir { background: #e8f0ff; color: #1d4fb8; border: 1.5px solid #9db8ef; }
.btn-voir::before { content: ""; width: 1.05em; height: 1.05em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.7 9.4 1.5 12c1.2 2.6 5 7 10.5 7s9.3-4.4 10.5-7C21.3 9.4 17.5 5 12 5zm0 11.5A4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 0 1 0 9zm0-2.2a2.3 2.3 0 1 0 0-4.6 2.3 2.3 0 0 0 0 4.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.7 9.4 1.5 12c1.2 2.6 5 7 10.5 7s9.3-4.4 10.5-7C21.3 9.4 17.5 5 12 5zm0 11.5A4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 0 1 0 9zm0-2.2a2.3 2.3 0 1 0 0-4.6 2.3 2.3 0 0 0 0 4.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-voir:hover { background: #d6e4ff; color: #163f94; border-color: #7d9fe6; }
.seo-haut { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }

/* Diagnostic des e-mails */
.mail-diag { margin: 6px 0 10px; padding-left: 1.1em; }
.mail-log { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.mail-log li { padding: 8px 10px; border-radius: 10px; background: var(--paper); overflow-wrap: anywhere; }
.mail-log li span { font-weight: 700; } .mail-log li.ok span { color: #1f6e43; } .mail-log li.ko span { color: #b3261e; }

/* Alertes : titre ou description manquants pour Google */
.chip-alerte { background: #fde8e6; color: #9b1c14; font-weight: 700; }
.alerte-meta { color: #9b1c14; font-weight: 600; margin: 4px 0; }
.alerte-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.alerte-bandeau { padding: 12px 14px; border-radius: 12px; background: #fde8e6; border: 1px solid #f3b8b2; margin: 0 0 14px; }

/* Suppression définitive (page en cours) */
.suppr-zone { margin: 28px 0 90px; text-align: center; }
.lien-suppr { background: none; border: 0; padding: 8px; color: #9b1c14; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-plein { background: #b3261e !important; color: #fff !important; border-color: #b3261e !important; }

/* Rédaction assistée (IA) */
.ia-ligne { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 2px 0 8px; }
.ia-ligne .hint { margin: 0; }
.btn-ia { background: #f3eeff; color: #4b2a9b; border: 1.5px solid #c9b6f2; }
.btn-ia:hover { background: #e9e0ff; }
.ia-bandeau { padding: 12px 14px; margin: 0 0 10px; border-radius: 12px; background: #f3eeff; border: 1px solid #c9b6f2; }
.ia-bandeau p { margin: 0 0 8px; }
.ia-bandeau[hidden] { display: none; }

/* Mention de copyright en bas de l'admin */
.admin-copy { margin: 2.5rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.45; color: var(--ink-2); text-align: center; }

/* Réglages IA : une ligne repliable par service */
.ia-cles-titre { margin: .4rem 0 0; font-size: 1rem; }
.ia-four { border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 12px; }
.ia-four > summary { cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ia-four[open] { padding-bottom: 12px; display: grid; gap: 10px; }
.ia-etat { font-weight: 400; font-size: .8rem; color: var(--ink-2); }
.ia-etat.on { color: var(--ok); }
.ia-role { font-weight: 600; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }

/* Séparation dans le menu latéral (entre FAQ et Actualités) */
.side-sep { border: 0; border-top: 1px solid rgba(207,224,219,.22); margin: 8px 12px; }
/* Légendes de la Galerie 1 site : un seul bouton pour toutes */
.cap-input { width: 100%; min-height: 38px; }
.cap-actions { position: sticky; bottom: 8px; justify-content: flex-end; }
@media (max-width: 860px) { .cap-actions { bottom: calc(var(--tabs) + 8px); } }

/* Passages communs avec un autre article (surlignage d'affichage, jamais enregistré) */
::highlight(ck-commun) { background-color: rgba(255, 196, 0, .45); text-decoration: underline 2px #c98a00; }
.comp-bandeau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: var(--r-s); background: rgba(255, 196, 0, .16); border: 1px solid rgba(201, 138, 0, .45); }
.comp-bandeau p { margin: 0; flex: 1 1 260px; }
.comp-bandeau.fini { background: rgba(31, 122, 77, .12); border-color: var(--ok); }
.comp-ex { background: rgba(255, 196, 0, .45); text-decoration: underline 2px #c98a00; padding: 0 2px; font-weight: 600; }

/* Blocs désactivés par le compte principal : grisés dans le menu */
.side nav a.off, .tabs a.off { opacity: .45; }
.side nav a.off.on { opacity: .8; }
.off-tag { margin-left: auto; font-style: normal; font-size: .7rem; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; }
.mod-liste { display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Accordéon du site : écran de saisie */
.acc-lignes { display: grid; gap: 12px; }
.acc-ligne { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); display: grid; gap: 8px; min-width: 0; }
.acc-tete { display: flex; gap: 6px; align-items: center; } .acc-tete input { flex: 1; min-width: 0; }
.acc-ligne textarea { width: 100%; }
.style-mini--acc-lignes { grid-template-rows: repeat(4, 1fr); } .style-mini--acc-lignes i { height: 3px; align-self: end; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.style-mini--acc-cartes { grid-template-rows: repeat(3, 1fr); } .style-mini--acc-cartes i { border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); background: none; } .style-mini--acc-cartes i:nth-child(4) { display: none; }

/* Horaires : fermetures exceptionnelles */
.hf-lignes { display: grid; gap: 10px; }
.hf-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) auto; gap: 8px 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); }
.hf-motif { grid-column: span 2; } @media (max-width: 520px) { .hf-motif { grid-column: 1 / -1; } }
/* Offres */
.of-liste { display: grid; gap: 10px; }
.of-item { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); min-width: 0; }
.of-item.is-finie { opacity: .6; }
.of-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.of-tete img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.of-tete strong { flex: 1 1 140px; }
.of-btns { display: flex; gap: 6px; margin-left: auto; }
.chip-fin { color: var(--warn); border-color: currentColor; background: none; }
.of-edit { margin-top: 8px; } .of-edit summary { cursor: pointer; font-weight: 600; color: var(--petrol, inherit); padding: 4px 0; }
.of-edit[open] { display: grid; gap: 10px; }
/* Miniatures des styles */
.style-mini--horaires-tableau { grid-template-rows: 7px repeat(4, 1fr); } .style-mini--horaires-tableau i { height: 3px; align-self: center; } .style-mini--horaires-tableau i:first-child { width: 45%; height: 7px; border-radius: 99px; background: #1f9d55; }
.style-mini--horaires-carte { grid-template-rows: 1fr; } .style-mini--horaires-carte i { border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); background: linear-gradient(90deg, #1f9d55 0 8px, transparent 8px) 6px 6px / 40% 6px no-repeat; } .style-mini--horaires-carte i:nth-child(n+2) { display: none; }
.style-mini--horaires-ligne { place-items: center; } .style-mini--horaires-ligne i { width: 70%; height: 6px; background: linear-gradient(90deg, #1f9d55 0 6px, color-mix(in srgb, var(--ink) 30%, transparent) 6px); } .style-mini--horaires-ligne i:nth-child(n+2) { display: none; }
.style-mini--annonce-bandeau { grid-template-rows: 9px 1fr; } .style-mini--annonce-bandeau i:first-child { background: color-mix(in srgb, var(--ink) 60%, transparent); } .style-mini--annonce-bandeau i:nth-child(n+3) { display: none; } .style-mini--annonce-bandeau i:nth-child(2) { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.style-mini--annonce-encart { place-items: center; } .style-mini--annonce-encart i { width: 75%; height: 70%; border: 2px solid color-mix(in srgb, var(--ink) 55%, transparent); background: none; } .style-mini--annonce-encart i:nth-child(n+2) { display: none; }
.style-mini--annonce-flottant { position: relative; } .style-mini--annonce-flottant i { background: color-mix(in srgb, var(--ink) 10%, transparent); } .style-mini--annonce-flottant i:first-child { position: absolute; right: 7px; bottom: 7px; width: 45%; height: 12px; background: color-mix(in srgb, var(--ink) 60%, transparent); } .style-mini--annonce-flottant i:nth-child(n+3) { display: none; }
.style-mini--offres-cartes { grid-template-columns: repeat(3, 1fr); } .style-mini--offres-cartes i { background: linear-gradient(color-mix(in srgb, var(--ink) 35%, transparent) 0 55%, color-mix(in srgb, var(--ink) 12%, transparent) 55%); } .style-mini--offres-cartes i:nth-child(4) { display: none; }
.style-mini--offres-liste { grid-template-rows: repeat(3, 1fr); } .style-mini--offres-liste i { background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 35%, transparent) 0 28%, color-mix(in srgb, var(--ink) 12%, transparent) 28%); } .style-mini--offres-liste i:nth-child(4) { display: none; }
.style-mini--offres-une { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1.4fr 1fr; } .style-mini--offres-une i:first-child { grid-column: 1 / -1; background: color-mix(in srgb, var(--ink) 35%, transparent); }

/* Aperçu réel de l'article dans la carte Disposition */
.dispo-apercu { margin-top: 14px; display: grid; gap: 8px; }
.dispo-apercu-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dispo-apercu-l { display: inline-flex; gap: 4px; margin-left: auto; }
.dispo-apercu-l [aria-pressed="true"] { background: var(--petrol, #0f3d3e); color: #fff; border-color: transparent; }
.dispo-apercu-cadre { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; min-height: 120px; }
.dispo-apercu-cadre iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; display: block; }
.dispo-apercu.charge .dispo-apercu-cadre { opacity: .6; transition: opacity .2s; }

/* Bouton « Voir l'article » dans le message vert après enregistrement */
.alert .alert-voir { margin-left: 8px; vertical-align: middle; text-decoration: none; }

/* Demandes de devis */
.nb-tag { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-style: normal; font-size: .75rem; font-weight: 800; }
.tabs .nb-tag { position: absolute; top: 4px; margin-left: 18px; min-width: 18px; height: 18px; font-size: .68rem; }
.seg-liens { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.seg-liens a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.seg-liens a[aria-current="page"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.dv-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dv-item { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-s); display: grid; gap: 6px; }
.dv-item.is-new { border-color: var(--sun); box-shadow: inset 4px 0 0 var(--sun); }
.dv-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dv-date { margin-left: auto; font-size: .85rem; }
.chip-new { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); font-weight: 700; }
.dv-src { margin: 0; font-size: .88rem; color: var(--ink-2); }
.dv-msg { margin: 0; white-space: normal; }
.dv-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .dv-actions form { margin: 0; }
.dv-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dv-sources li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; }
.dv-src-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-barre { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--petrol-2) var(--p), var(--line) var(--p)); }
.style-mini--devis-carte { place-items: center; } .style-mini--devis-carte i { width: 62%; height: 78%; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); background: repeating-linear-gradient(transparent 0 7px, color-mix(in srgb, var(--ink) 18%, transparent) 7px 10px); } .style-mini--devis-carte i:nth-child(n+2) { display: none; }
.style-mini--devis-bande { grid-template-columns: 1fr 1fr; background: color-mix(in srgb, var(--ink) 55%, transparent); } .style-mini--devis-bande i { background: rgba(255,255,255,.75); } .style-mini--devis-bande i:first-child { background: rgba(255,255,255,.35); } .style-mini--devis-bande i:nth-child(n+3) { display: none; }

/* Bouton d'appel */
.ap-mode { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ap-mode legend { font-weight: 600; margin-bottom: 4px; padding: 0; width: 100%; }
.ap-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-stats > div { flex: 1 1 140px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-s); display: grid; gap: 2px; }
.ap-stats strong { font-size: 1.8rem; line-height: 1.1; } .ap-stats span { color: var(--ink-2); font-size: .9rem; }
.style-mini--appel-rond, .style-mini--appel-pulse, .style-mini--appel-pilule, .style-mini--appel-barre, .style-mini--appel-onglet { position: relative; background: color-mix(in srgb, var(--ink) 7%, transparent); }
[class*="style-mini--appel-"] i { display: none; }
[class*="style-mini--appel-"] i:first-child { display: block; position: absolute; background: var(--petrol); }
.style-mini--appel-rond i:first-child, .style-mini--appel-pulse i:first-child { right: 8px; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; }
.style-mini--appel-pulse i:first-child { box-shadow: 0 0 0 4px color-mix(in srgb, var(--petrol) 30%, transparent), 0 0 0 8px color-mix(in srgb, var(--petrol) 12%, transparent); }
.style-mini--appel-pilule i:first-child { right: 8px; bottom: 8px; width: 38%; height: 12px; border-radius: 99px; }
.style-mini--appel-barre i:first-child { left: 0; right: 0; bottom: 0; height: 12px; }
.style-mini--appel-onglet i:first-child { right: 0; top: 30%; width: 9px; height: 40%; border-radius: 5px 0 0 5px; }

/* Miniatures du bouton d'appel : une icône de téléphone sur chaque forme */
[class*="style-mini--appel-"] i:first-child { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 9px 9px; background-position: center; }
.style-mini--appel-rond i:first-child, .style-mini--appel-pulse i:first-child { width: 18px; height: 18px; }
.style-mini--appel-pilule i:first-child, .style-mini--appel-barre i:first-child { background-position: 6px center; height: 14px; }
.style-mini--appel-onglet i:first-child { background-position: center 4px; }

/* Statistiques Google */
.st-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.st-tuiles > div { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-s); }
.st-tuiles strong { font-size: 2rem; line-height: 1.1; } .st-tuiles span { color: var(--ink-2); font-size: .9rem; }
.st-ev { justify-self: start; font-size: .78rem !important; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--paper); }
.st-up { color: var(--ok) !important; } .st-down { color: var(--danger) !important; } .st-neutre { font-weight: 400 !important; }
.st-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.st-ligne { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; } .st-ligne:last-child { border-bottom: 0; }
.st-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; justify-content: space-between; }
.st-page { color: inherit; text-decoration: none; } a.st-page:hover { text-decoration: underline; }
.st-chiffres { color: var(--ink-2); font-size: .92rem; } .st-chiffres b { color: var(--ink); font-size: 1.05rem; }
.st-top { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; }
.st-top li { counter-increment: st; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 14px; padding: 9px 0; border-bottom: 1px solid var(--line); } .st-top li:last-child { border-bottom: 0; }
.st-top .st-q::before { content: counter(st) ". "; color: var(--ink-2); font-weight: 400; }
.st-q { font-weight: 600; overflow-wrap: anywhere; }
.st-p1 { display: inline-block; font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, #1f9d55 15%, transparent); color: #157a41; white-space: nowrap; vertical-align: 1px; }
.chip.chip-p1 { background: color-mix(in srgb, #1f9d55 15%, transparent); color: #157a41; }
.st-req { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .9rem; }
.chip-gsc { background: #e8f0ff; border-color: #9db8ef; color: #1d4fb8; }
.gsc-mail { user-select: all; word-break: break-all; }
.gsc-aide { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-s); } .gsc-aide summary { cursor: pointer; font-weight: 600; } .gsc-aide ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; } .gsc-aide h3 { margin: 14px 0 0; font-size: .95rem; } .gsc-aide code { overflow-wrap: anywhere; }
/* Objectif atteint : point vert (orange si les visites baissent) */
.obj-point { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px color-mix(in srgb, #1f9d55 22%, transparent); margin-right: 8px; vertical-align: 1px; flex: none; }
.obj-point.obj-baisse { background: #e08a00; box-shadow: 0 0 0 3px color-mix(in srgb, #e08a00 25%, transparent); }
.chip.chip-obj { color: #157a41; border-color: #8fd0aa; background: #eaf7ef; }
.chip.chip-obj-baisse { color: #9a5b00; border-color: #f0c27a; background: #fff4e0; }
.btn-obj { background: #eaf7ef; color: #157a41; border: 1.5px solid #8fd0aa; }
.btn-obj .obj-point { width: 9px; height: 9px; margin-right: 6px; }
.obj-alerte .obj-point { margin-right: 6px; }
/* Récupérer mon site */
.exp-points { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); }
.exp-temps { margin: 4px 0 16px; }
.exp-suivi { display: grid; gap: 8px; margin: 0 0 16px; }
.exp-barre { height: 14px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.exp-barre i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--petrol), var(--petrol-2)); transition: width .4s ease; }
.exp-texte { margin: 0; font-weight: 600; }
.exp-pret p { margin: 0 0 10px; }
.exp-err { margin: 0 0 12px; font-size: .9rem; } .exp-err summary { cursor: pointer; color: var(--ink-2); } .exp-err ul { margin: 6px 0 0; padding-left: 20px; }
.exp-effacer { margin-top: 14px; }
/* Blocs du site : activé / retiré du menu */
.mod-item { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); }
.mod-cache { font-size: .85rem; color: var(--ink-2); padding-left: 22px; }
.mod-cache:has(input:disabled) { opacity: .45; }
/* Titres de page trop longs : coupés avec « … » au lieu de sortir de l'écran (la colonne ne s'élargit plus d'après le titre). */
.row-main, .plist, .rows { grid-template-columns: minmax(0, 1fr); }
.row { min-width: 0; }
.pl, .pl-item, .pl-item > summary { min-width: 0; max-width: 100%; }
.page-card .muted, .siblings summary .muted { overflow-wrap: anywhere; }
/* Retravailler le brouillon avec l'IA */
.ia-retravail { display: grid; gap: 6px; margin: 10px 0 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ia-retravail label { font-weight: 600; font-size: .92rem; }
.ia-retravail textarea { width: 100%; }
.ia-retravail-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* Félicitations */
.alert-bravo { color: #6a3fb5; font-weight: 600; background: color-mix(in srgb, #7b4fd0 9%, var(--card, #fff)); border-color: color-mix(in srgb, #7b4fd0 30%, transparent); }
.bonne-nouvelle { border: 1.5px solid color-mix(in srgb, #1f9d55 40%, transparent); background: color-mix(in srgb, #1f9d55 7%, var(--card, #fff)); }
.bonne-nouvelle h2 { color: #157a41; margin-bottom: 6px; }
.bonne-nouvelle p { margin: 4px 0; font-weight: 600; }
.progres-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.progres-grille > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-s, 10px); background: var(--paper); }
.progres-grille strong { font-size: 1.6rem; line-height: 1.1; } .progres-grille small { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.progres-grille span { font-size: .82rem; color: var(--ink-2); }
.progres-suite { margin-top: 12px; display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.progres-barre { height: 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.progres-barre i { display: block; height: 100%; background: linear-gradient(90deg, #1f9d55, #3cc47c); border-radius: 99px; }
