:root {
  /* Single-theme light site with a deep-green brand band; the cards themselves carry their own themes. */
  --bg: #f1f4f2;
  --panel: #ffffff;
  --ink: #12201a;
  --soft: #5c6b65;
  --line: #dbe3df;
  --brand: #0a2e23;
  --accent: #1d9a63;
  --accent-2: #22c47a;
  --danger: #b4232f;
  --warn: #b45309;
  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
h1, h2 { font-family: var(--display); line-height: 1.15; text-wrap: balance; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--soft); } .small { font-size: 13px; }

/* navigation */
.nav { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 18px var(--display); }
.brand img { border-radius: 8px; }
.nav nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav nav a { color: #d6ebe1; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: #fff; }
.nav form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; cursor: pointer; text-decoration: underline; }
.nav .linklike { color: #d6ebe1; text-decoration: none; font-size: 15px; }

main { flex: 1; width: 100%; margin: 0 auto; padding: 28px 16px 48px; }
main.narrow { max-width: 520px; }
main.wide { max-width: 1240px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px clamp(16px, 4vw, 40px); font-size: 13px; color: var(--soft); border-top: 1px solid var(--line); }
.foot a { color: var(--soft); }

/* boutons et formulaires */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font: 700 15px var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: #17824f; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); font-weight: 600; }
.btn.ghost:hover { background: #f4f7f5; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger { background: #fff; color: var(--danger); }
.btn.small { padding: 7px 14px; font-size: 14px; background: var(--accent-2); color: #04231a; }
.btn.big { padding: 15px 26px; font-size: 17px; }
.btn:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 32px); }
.panel.center { text-align: center; }
.panel h1 { margin: 0 0 8px; font-size: 26px; }
.lead { color: var(--soft); margin: 0 0 18px; }
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--soft); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
label.inline { flex-direction: row; align-items: center; gap: 10px; }
input, textarea, select { font: 15px var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
input[type=checkbox] { width: auto; margin-top: 3px; }
input[type=color] { width: 46px; height: 36px; padding: 2px; }
textarea { min-height: 80px; resize: vertical; }
.error { color: var(--danger); background: #fdecee; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-weight: 600; font-size: 14px; }
.flash { max-width: 1240px; margin: 16px auto 0; width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: #e3f6ec; color: #0b5132; font-weight: 600; }
.flash.err { background: #fdecee; color: var(--danger); }
.prose { max-width: 760px; margin: 0 auto; } .prose p { max-width: 68ch; }

/* accueil */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 60px); align-items: center; padding: clamp(10px, 4vw, 40px) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; }
.hero .lead { font-size: 18px; max-width: 56ch; }
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.price { font-weight: 700; color: var(--brand); }
.hero-phone { justify-self: center; width: 300px; max-width: 100%; aspect-ratio: 9 / 18; background: #111; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px rgba(10, 46, 35, .25); }
.mini { height: 100%; border-radius: 30px; background: linear-gradient(180deg, #f6e1e6, #f7e9ec 40%); padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; color: #3a1d26; }
.mini-id { display: flex; gap: 10px; align-items: center; background: #fffafb; border-radius: 16px; padding: 12px; }
.mini-av { width: 46px; height: 46px; border-radius: 50%; background: #c2416b; color: #fff; display: grid; place-items: center; font: 700 16px var(--display); flex: none; }
.mini-id b { display: block; font-family: var(--display); } .mini-id small { color: #c2416b; font-weight: 600; font-size: 12px; }
.mini-links { list-style: none; margin: 0; padding: 0 4px; font-size: 13px; font-weight: 600; }
.mini-links li { padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.mini-btn { background: #c2416b; color: #fff; border-radius: 12px; text-align: center; padding: 10px; font-weight: 700; font-size: 13px; }
.mini-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .mini-gal i { aspect-ratio: 1; border-radius: 10px; }
.mini-qr { margin-top: auto; align-self: center; width: 84px; height: 84px; border-radius: 10px; background: #fff repeating-conic-gradient(#3a1d26 0 25%, #fff 0 50%) 0 0 / 14px 14px; border: 8px solid #fff; }
.steps, .features { padding: 28px 0; }
.steps h2, .features h2 { font-size: 28px; margin: 0 0 18px; }
.steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 15px var(--display); }
.steps li span { color: var(--soft); font-size: 15px; }
.features ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.features li { padding-left: 26px; position: relative; } .features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .steps ol, .features ul { grid-template-columns: 1fr; } }

/* espace client */
.statusbar { position: sticky; top: 0; z-index: 4; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.st-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.st-left a { font-weight: 700; overflow-wrap: anywhere; }
.st-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.st-help { margin: 10px 4px 0; font-size: 14px; color: var(--soft); }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.st-brouillon { background: #eef1f0; color: #42504a; }
.st-en_attente { background: #fef1d9; color: var(--warn); }
.st-publiee { background: #dff5e9; color: #0b5132; }
.st-suspendue { background: #fdecee; color: var(--danger); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 22px; margin-top: 18px; align-items: start; }
.left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#form { display: flex; flex-direction: column; gap: 16px; }
fieldset { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { font: 700 15px var(--display); padding: 0 6px; }
.hint { margin: -4px 0 0; font-size: 13.5px; color: var(--soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-btns select { width: auto; }
.photo-row { display: flex; align-items: center; gap: 14px; }
.photo-row img, .photo-row .ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #e6ece9; display: grid; place-items: center; color: var(--soft); font-weight: 700; flex: none; }
.list { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: grid; grid-template-columns: 150px 1fr 150px auto; gap: 8px; align-items: center; }
.moves { display: flex; gap: 4px; }
.icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; color: var(--ink); }
.icon:hover { background: #f4f7f5; } .icon.del { color: var(--danger); }
.item-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.item-row .thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #e6ece9; display: block; }
.item-row .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
.item-row .moves { flex-direction: column; }
.kind { font-size: 11px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.item-row.loading { opacity: .6; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; align-self: flex-start; }
.seg button { border: 0; border-right: 1px solid var(--line); background: #fff; padding: 9px 14px; font: 600 14px var(--body); cursor: pointer; color: var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed=true] { background: var(--brand); color: #fff; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; font-size: 14px; }
.drop.over { border-color: var(--accent); background: #effaf4; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 92px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: 600 12px var(--body); color: var(--ink); }
.sw .chipc { height: 34px; border-radius: 8px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 4px; border: 1px solid rgba(0,0,0,.08); }
.sw .chipc i { width: 14px; height: 14px; border-radius: 50%; }
.sw[aria-pressed=true] { outline: 3px solid var(--accent); }
.preview { position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone { width: 390px; max-width: 100%; height: 780px; max-height: calc(100vh - 140px); border-radius: 44px; background: #111; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #fff; display: block; }
.preview p { margin: 0; font-size: 13px; text-align: center; }
.danger-zone { border: 1px solid #f3c7cc; background: #fff; border-radius: 16px; padding: 14px 18px; }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; display: none; z-index: 20; max-width: 90vw; }
.toast.on { display: block; }
@media (max-width: 960px) { .editor { grid-template-columns: 1fr; } .preview { position: static; order: -1; } .phone { height: 640px; } }
@media (max-width: 620px) { .grid2, .item-row .fields { grid-template-columns: 1fr; } .link-row { grid-template-columns: 1fr 1fr; } .link-row .val { grid-column: 1 / -1; order: 3; } .link-row .lab { order: 4; } .link-row .moves { order: 5; justify-content: flex-end; } }

/* administration */
.admin h1 { margin: 0 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters a { text-decoration: none; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.filters a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.ac-main h2 { margin: 8px 0 2px; font-size: 19px; }
.ac-main p { margin: 2px 0; overflow-wrap: anywhere; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ac-actions form { margin: 0; }
.ac-actions details { padding: 9px 12px; border: 1px solid #f3c7cc; border-radius: 12px; }
.ac-actions summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.ac-actions details .form { margin-top: 10px; min-width: 240px; }
