/* 360 TECH — Démo du créateur de site */
:root {
  --ds-gold: var(--brand);
  --ds-gold-dark: var(--brand-strong);
  --ds-gold-pale: var(--brand-light);
  --ds-black: var(--ink);
  --ds-black-2: var(--ink);
  --ds-ink: #1d1d1f;
  --ds-muted: #6b6b70;
  --ds-line: #e2e8f0;
  --ds-panel-bg: #f8fafc;
  --ds-red: #e5484d;
  --ds-radius: 12px;
  --ds-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body.ds-body { height: 100%; }
body.ds-body { margin: 0; background: var(--ds-black-2); font-family: var(--ds-font); color: var(--ds-ink); overflow: hidden; display: flex; flex-direction: column; }
.ds-body #demo-app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ds-app, .ds-app * { box-sizing: border-box; }
.ds-app { flex: 1; min-height: 0; display: flex; flex-direction: column; font-family: var(--ds-font); position: relative; }
.ds-app button { font-family: inherit; }
.ds-app fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------------------------------------------------------------- Boutons */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.1; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; background: #fff; color: var(--ds-ink); border-color: var(--ds-line); }
.ds-btn:active:not(:disabled) { transform: translateY(1px); }
.ds-btn:disabled { opacity: .5; cursor: not-allowed; }
.ds-btn--gold { background: var(--ds-gold); color: var(--on-brand); border-color: var(--ds-gold); }
.ds-btn--gold:hover:not(:disabled) { background: var(--ds-gold-dark); border-color: var(--ds-gold-dark); }
.ds-btn--ghost { background: transparent; color: #f2efe6; border-color: rgba(255,255,255,.18); }
.ds-btn--ghost:hover:not(:disabled) { border-color: var(--ds-gold); color: var(--ds-gold); }
.ds-btn--ghost-dark { background: transparent; color: var(--ds-ink); border-color: var(--ds-line); }
.ds-btn--ghost-dark:hover { border-color: var(--ds-gold); }
.ds-btn--outline { background: #fff; border: 1px dashed var(--ds-gold); color: var(--brand-text); }
.ds-btn--outline:hover:not(:disabled) { background: #fffaf0; }
.ds-btn--danger { color: #b42318; border-color: #f3c7c3; background: #fff; }
.ds-btn--danger:hover:not(:disabled) { background: #fef3f2; }
.ds-btn--sm { padding: 6px 11px; font-size: 12.5px; }
.ds-btn--block { display: flex; width: 100%; }
.ds-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--ds-line); background: #fff; color: var(--ds-ink); cursor: pointer; flex-shrink: 0; }
.ds-icon-btn:hover:not(:disabled) { border-color: var(--ds-gold); color: var(--brand-text); }
.ds-icon-btn--danger:hover:not(:disabled) { border-color: #f3c7c3; color: #b42318; }
.ds-link { background: none; border: 0; padding: 0; color: var(--brand-text); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ds-link:hover { color: var(--ds-black-2); text-decoration: underline; }

/* ---------------------------------------------------------------- Top bar */
.ds-topbar { flex-shrink: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 62px; padding: 8px 16px; background: var(--ds-black); color: #f2efe6; border-bottom: 1px solid rgba(var(--brand-rgb),.28); position: relative; z-index: 30; }
.ds-topbar__left, .ds-topbar__right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ds-topbar__right { justify-content: flex-end; }
.ds-topbar__center { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.ds-topbar__brand img { height: 30px; display: block; }
.ds-topbar__sep { width: 1px; height: 26px; background: rgba(255,255,255,.15); }
.ds-topbar__site { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ds-gold); font-size: 12px; }
.ds-topbar__name { background: transparent; border: 1px solid transparent; border-radius: 8px; color: #fff; font: 600 15px var(--ds-font); padding: 6px 8px; width: 190px; min-width: 0; }
.ds-topbar__name:hover { border-color: rgba(255,255,255,.15); }
.ds-topbar__name:focus { outline: none; border-color: var(--ds-gold); background: rgba(255,255,255,.04); }
.ds-topbar__name:disabled { opacity: .7; }
.ds-topbar__title { font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-drawer-btn { display: none; background: transparent; color: var(--ds-gold); border-color: rgba(var(--brand-rgb),.4); }

.ds-tabs { display: flex; background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px; gap: 2px; }
.ds-tab { border: 0; background: transparent; color: #cfcabb; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ds-tab:hover { color: #fff; }
.ds-tab.is-active { background: var(--ds-gold); color: var(--on-brand); }
.ds-device { display: flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 4px; }
.ds-device__btn { border: 0; background: transparent; color: #cfcabb; width: 34px; height: 30px; border-radius: 7px; cursor: pointer; }
.ds-device__btn:hover { color: #fff; }
.ds-device__btn.is-active { background: rgba(var(--brand-rgb),.2); color: var(--ds-gold); }

.ds-timer { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(var(--brand-rgb),.5); color: var(--ds-gold); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: .03em; }
.ds-timer.is-low { background: var(--ds-red); border-color: var(--ds-red); color: #fff; animation: ds-pulse 1s ease-in-out infinite; }
.ds-timer.is-over { animation: none; }
@keyframes ds-pulse { 50% { box-shadow: 0 0 0 5px rgba(229,72,77,.25); } }
.ds-save { font-size: 12px; color: #9a968a; white-space: nowrap; }
.ds-save--error { color: #ff9a8f; }
.ds-ro-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(var(--brand-rgb),.15); color: var(--ds-gold); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }

/* -------------------------------------------------------------- Workspace */
.ds-workspace { flex: 1; min-height: 0; display: flex; position: relative; transition: filter .3s; }
.ds-panel { width: 340px; flex-shrink: 0; background: var(--ds-panel-bg); border-right: 1px solid var(--ds-line); overflow-y: auto; z-index: 20; }
.ds-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ds-muted); font-weight: 600; }
.ds-drawer-close { display: none; }
.ds-panel__inner { padding: 6px 14px 24px; }
.ds-backdrop { display: none; }

.ds-block { background: #fff; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); margin-bottom: 12px; overflow: hidden; }
.ds-block__title { display: flex; align-items: center; gap: 8px; padding: 13px 14px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; user-select: none; }
.ds-block__title::-webkit-details-marker { display: none; }
.ds-block__title > .fa-solid:first-child { color: var(--ds-gold-dark); width: 18px; text-align: center; }
.ds-block__title span { flex: 1; }
.ds-block__chev { font-size: 12px; color: var(--ds-muted); transition: transform .2s; }
.ds-block[open] .ds-block__chev { transform: rotate(180deg); }
.ds-block__body { padding: 2px 14px 16px; }

.ds-field { display: block; margin-bottom: 14px; }
.ds-field__label { display: block; font-size: 12.5px; font-weight: 600; color: #4a4a4f; margin-bottom: 6px; }
.ds-field__hint { display: block; color: var(--ds-muted); font-size: 12px; margin-top: 5px; }
.ds-field__error { display: block; color: #b42318; font-size: 12px; margin-top: 4px; }
.ds-field input[type=text], .ds-field input[type=email], .ds-field input[type=tel], .ds-field input[type=date], .ds-field textarea {
  width: 100%; border: 1px solid #ddd8ca; border-radius: 9px; padding: 9px 11px; font: 14px var(--ds-font); color: var(--ds-ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.ds-field textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.ds-field input:focus, .ds-field textarea:focus { outline: none; border-color: var(--ds-gold); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.2); }
.ds-field .is-invalid { border-color: #e5484d !important; }
.ds-panel fieldset:disabled input, .ds-panel fieldset:disabled textarea { background: #f4f2ec; }
.ds-mt { margin-top: 12px; }
.ds-muted { color: var(--ds-muted); font-size: 13px; margin: 0 0 12px; line-height: 1.45; }
.ds-hint { font-size: 12.5px; color: var(--brand-text); background: #fdf8e8; border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; line-height: 1.4; }
.ds-tip { display: flex; gap: 10px; font-size: 12.5px; color: #6f5a12; background: #fdf6df; border: 1px solid #f0e2b0; border-radius: 10px; padding: 10px 12px; line-height: 1.4; }
.ds-tip .fa-solid { margin-top: 2px; }

.ds-color-row { display: flex; align-items: center; gap: 10px; }
.ds-color { width: 46px; height: 36px; border: 1px solid #ddd8ca; border-radius: 9px; padding: 2px; background: #fff; cursor: pointer; }
.ds-color__hex { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #4a4a4f; }
.ds-swatches { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ds-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d8d3c4; cursor: pointer; padding: 0; }
.ds-swatch:hover:not(:disabled) { transform: scale(1.12); }

.ds-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ds-img { position: relative; }
.ds-img img { display: block; max-width: 100%; max-height: 150px; border-radius: 9px; border: 1px solid var(--ds-line); background: repeating-conic-gradient(#f2f0ea 0 25%, #fff 0 50%) 50% / 14px 14px; }
.ds-img--logo img { max-height: 70px; padding: 6px; }
.ds-img__actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ds-img__actions label { position: relative; }
.ds-img__drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1.5px dashed #d9cfa9; border-radius: 10px; padding: 16px 10px; color: var(--brand-text); font-size: 13px; font-weight: 600; cursor: pointer; background: #fffdf6; text-align: center; }
.ds-img__drop .fa-solid { font-size: 20px; color: var(--ds-gold); }
.ds-img__drop:hover { background: #fdf6df; }
fieldset:disabled .ds-img__drop, fieldset:disabled .ds-img__actions label { cursor: not-allowed; opacity: .6; }

.ds-lib { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds-lib__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; border: 1px solid var(--ds-line); background: #fff; border-radius: 10px; padding: 11px 10px; font-size: 13px; font-weight: 600; color: var(--ds-ink); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ds-lib__item > .fa-solid:first-child { color: var(--ds-gold-dark); font-size: 16px; }
.ds-lib__plus { position: absolute; top: 9px; right: 9px; font-size: 11px; color: #b9b3a1; }
.ds-lib__item:hover:not(:disabled) { border-color: var(--ds-gold); box-shadow: 0 4px 14px rgba(var(--brand-rgb),.18); transform: translateY(-1px); }
.ds-lib__item:hover .ds-lib__plus { color: var(--ds-gold-dark); }
.ds-lib__item:disabled { opacity: .55; cursor: not-allowed; }
.ds-seclist { list-style: none; margin: 0; padding: 0; counter-reset: sec; }
.ds-seclist li { counter-increment: sec; }
.ds-seclist__item { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: transparent; padding: 6px 8px; border-radius: 7px; font-size: 13px; color: #4a4a4f; cursor: pointer; text-align: left; }
.ds-seclist__item::before { content: counter(sec); font-size: 11px; color: #a39d8a; width: 14px; }
.ds-seclist__item .fa-solid { color: var(--ds-gold-dark); width: 16px; }
.ds-seclist__item:hover { background: #f6f2e4; }

.ds-artlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ds-artlist__item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ds-line); border-radius: 10px; padding: 8px; background: #fff; }
.ds-artlist__item img, .ds-artlist__ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ds-artlist__ph { display: flex; align-items: center; justify-content: center; background: #f4f0e2; color: #b9a868; }
.ds-artlist__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ds-artlist__txt strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-artlist__txt small { color: var(--ds-muted); font-size: 12px; }
.ds-panel .ds-link { margin-bottom: 14px; }

/* ------------------------------------------------------------------ Stage */
.ds-stage { flex: 1; min-width: 0; overflow: auto; padding: 26px; background: #ebe7dc radial-gradient(circle at 1px 1px, rgba(0,0,0,.07) 1px, transparent 0) 0 0 / 18px 18px; scroll-behavior: smooth; }
.ds-frame { margin: 0 auto; max-width: 1180px; min-height: 100%; background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06); overflow: hidden; container-type: inline-size; transition: max-width .35s ease, border-radius .35s; }
.ds-stage--mobile .ds-frame { max-width: 390px; border-radius: 30px; border: 10px solid var(--ds-black); min-height: 720px; }
.ds-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ds-muted); background: #f6f4ee; padding: 40px; text-align: center; }
.ds-empty .fa-solid { font-size: 38px; color: var(--ds-gold); }

/* =========================================================== Site visiteur */
.site { --sp-dark: color-mix(in srgb, var(--sp) 78%, #000); --sp-soft: color-mix(in srgb, var(--sp) 10%, #fff); --sp-mid: color-mix(in srgb, var(--sp) 30%, #fff);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #1f2328; font-size: 16px; line-height: 1.6; background: #fff; min-height: 100%; display: flex; flex-direction: column; }
.ds-frame { --sp: var(--brand); --sp-on: var(--ink); }
.site a { color: inherit; text-decoration: none; }
.site h1, .site h2, .site h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.site-main { flex: 1; }
.site-container { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.site-pad { padding-top: 48px; padding-bottom: 64px; }
.site-center { text-align: center; }
.site-muted { color: #6b7280; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid #eef0f2; background: #fff; position: sticky; top: 0; z-index: 5; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #111; min-width: 0; }
.site-brand__logo { height: 40px; max-width: 150px; object-fit: contain; }
.site-brand__mark { width: 38px; height: 38px; border-radius: 10px; background: var(--sp); color: var(--sp-on); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.site-brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { padding: 7px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: #4b5563; cursor: pointer; }
.site-nav a:hover { color: #111; background: #f5f6f7; }
.site-nav a.is-active { color: var(--sp-dark); background: var(--sp-soft); }

.site-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--sp); color: var(--sp-on); border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer; }
.site-btn--light { background: #fff; color: #111; }

.site-h2 { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 34px !important; color: #111; }
.site-h2::after { content: ''; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--sp); margin: 14px auto 0; }
.site-h2--left { text-align: left; }
.site-h2--left::after { margin-left: 0; }
.site-text { white-space: pre-line; color: #4b5563; font-size: 16.5px; }

.site-sec { position: relative; padding: 64px 0; }
.site-sec:nth-child(even):not(.site-sec--hero):not(.site-sec--cta) { background: #fafaf9; }
.site-sec.site-sec--hero, .site-sec.site-sec--cta { padding: 0; }
.site-hero { background: linear-gradient(135deg, var(--sp) 0%, var(--sp-dark) 100%); color: var(--sp-on); padding: 96px 0 104px; text-align: center; position: relative; overflow: hidden; }
.site-hero::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.08); top: -260px; right: -120px; }
.site-hero::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(0,0,0,.06); bottom: -170px; left: -60px; }
.site-hero .site-container { position: relative; z-index: 1; }
.site-hero__title { font-size: 48px; font-weight: 800; max-width: 780px; margin: 0 auto 18px !important; }
.site-hero__sub { font-size: 19px; opacity: .9; max-width: 620px; margin: 0 auto 30px; white-space: pre-line; }

.site-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.site-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.site-card { background: #fff; border: 1px solid #eceef1; border-radius: 16px; padding: 28px 24px; box-shadow: 0 4px 18px rgba(17,24,39,.04); }
.site-card__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--sp-soft); color: var(--sp-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.site-card__icon.is-clickable { cursor: pointer; outline: 1px dashed transparent; }
.site-card__icon.is-clickable:hover { outline-color: var(--sp); }
.site-card__title { font-size: 19px; font-weight: 700; margin-bottom: 8px !important; color: #111; }
.site-card__text { margin: 0; color: #6b7280; font-size: 15px; white-space: pre-line; }
.site-ph { aspect-ratio: 4 / 3; border-radius: 18px; background: linear-gradient(135deg, var(--sp-soft), var(--sp-mid)); color: var(--sp-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; }
.site-ph .fa-solid { font-size: 40px; opacity: .7; }

.site-post { display: flex; flex-direction: column; background: #fff; border: 1px solid #eceef1; border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.site-post:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(17,24,39,.09); }
.site-post__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.site-post__img--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--sp-soft), var(--sp-mid)); color: var(--sp-dark); font-size: 30px; }
.site-post__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.site-post__date { color: #9ca3af; font-size: 13px; font-weight: 500; }
.site-post__title { font-size: 18px; font-weight: 700; color: #111; }
.site-post__excerpt { margin: 0; color: #6b7280; font-size: 14.5px; flex: 1; }
.site-post__more { color: var(--sp-dark); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }

.site-quote { margin: 0; background: #fff; border: 1px solid #eceef1; border-radius: 16px; padding: 30px 28px; position: relative; }
.site-quote__mark { color: var(--sp); font-size: 26px; opacity: .55; }
.site-quote__text { margin: 12px 0 18px; font-size: 17px; font-style: italic; color: #374151; white-space: pre-line; }
.site-quote figcaption { display: flex; flex-direction: column; }
.site-quote figcaption strong { color: #111; }
.site-quote__role { color: #9ca3af; font-size: 14px; }

.site-stat { text-align: center; padding: 26px 16px; border-radius: 16px; background: var(--sp-soft); }
.site-stat__value { font-size: 42px; font-weight: 800; color: var(--sp-dark); line-height: 1.1; }
.site-stat__label { color: #4b5563; font-weight: 600; margin-top: 6px; }

.site-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.site-contact li { display: flex; align-items: center; gap: 14px; font-size: 16.5px; color: #374151; }
.site-contact__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sp-soft); color: var(--sp-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.site-form { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #eceef1; border-radius: 16px; padding: 22px; }
.site-form input, .site-form textarea { border: 1px solid #e5e7eb; border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: inherit; background: #fafafa; resize: none; }
.site-form .site-btn { align-self: flex-start; }
.site-form__note { color: #6b7280; font-size: 13px; }
.site-form__note:empty { display: none; }

.site-cta { background: #111; color: #fff; padding: 56px 0; }
.site-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-cta__title { font-size: 28px; font-weight: 800; flex: 1; }
.site-cta .site-btn { background: var(--sp); color: var(--sp-on); }

.site-pagehead { background: linear-gradient(135deg, var(--sp-soft), #fff); border-bottom: 1px solid #eef0f2; padding: 56px 0 44px; }
.site-pagehead h1 { font-size: 40px; font-weight: 800; color: #111; }
.site-pagehead p { margin: 8px 0 0; color: #6b7280; font-size: 17px; }
.site-article { max-width: 760px; }
.site-back { display: inline-flex; align-items: center; gap: 8px; color: var(--sp-dark) !important; font-weight: 700; font-size: 14px; margin-bottom: 26px; cursor: pointer; }
.site-article__title { font-size: 38px; font-weight: 800; color: #111; margin: 6px 0 14px !important; }
.site-article__lead { font-size: 19px; color: #4b5563; margin: 0 0 26px; white-space: pre-line; }
.site-article__img { width: 100%; border-radius: 16px; margin-bottom: 28px; display: block; }
.site-about__img { width: 100%; border-radius: 18px; display: block; }
.site-empty { padding: 90px 28px; text-align: center; color: #6b7280; }
.site-empty .fa-solid { font-size: 40px; color: var(--sp); margin-bottom: 10px; }

.site-footer { background: #111317; color: #c9ccd1; margin-top: auto; }
.site-footer__inner { max-width: 1040px; margin: 0 auto; padding: 36px 28px 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-brand--footer { color: #fff; }
.site-footer__contact { margin: 10px 0 0; font-size: 14px; color: #9aa0a8; }
.site-footer__links { display: flex; gap: 18px; font-size: 14px; }
.site-footer__links a { cursor: pointer; }
.site-footer__links a:hover { color: var(--sp); }
.site-footer__copy { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 16px; font-size: 13px; color: #8a9099; }

/* Édition sur place */
.site--edit .site-sec { outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; }
.site--edit .site-sec:hover, .site--edit .site-sec:focus-within { outline-color: color-mix(in srgb, var(--sp) 70%, transparent); }
.site--edit .site-sec.is-flash { outline-color: var(--sp); animation: ds-flash 1.2s ease; }
@keyframes ds-flash { 0%, 60% { box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--sp) 8%, transparent); } }
.site-sec.is-ghost { opacity: .35; }
.site-sec.is-chosen { box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.site-tb { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; align-items: center; gap: 2px; background: var(--ds-black); border: 1px solid rgba(var(--brand-rgb),.35); border-radius: 10px; padding: 3px; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; font-family: var(--ds-font); }
.site--edit .site-sec:hover > .site-tb, .site--edit .site-sec:focus-within > .site-tb { opacity: 1; transform: none; }
.site-tb__label { color: var(--ds-gold-pale); font-size: 12px; font-weight: 600; padding: 0 8px 0 2px; white-space: nowrap; }
.site-tb__handle, .site-tb__btn { width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: #e8e4d8; background: transparent; border: 0; font-size: 13px; cursor: pointer; }
.site-tb__handle { cursor: grab; color: var(--ds-gold); }
.site-tb__handle:active { cursor: grabbing; }
.site-tb__btn:hover:not(:disabled), .site-tb__handle:hover { background: rgba(255,255,255,.1); }
.site-tb__btn:disabled { opacity: .3; cursor: default; }
.site-tb__btn--danger:hover:not(:disabled) { background: #b42318; color: #fff; }
@media (hover: none) { .site--edit .site-sec > .site-tb { opacity: 1; transform: none; } }

.ds-ed[contenteditable="true"] { outline: 1px dashed transparent; outline-offset: 3px; border-radius: 3px; cursor: text; transition: outline-color .15s, background .15s; min-width: 1ch; }
.ds-ed[contenteditable="true"]:hover { outline-color: color-mix(in srgb, currentColor 45%, transparent); }
.ds-ed[contenteditable="true"]:focus { outline: 2px solid var(--sp); background: color-mix(in srgb, var(--sp) 6%, transparent); }
.ds-ed[contenteditable="true"]:empty::before { content: attr(data-placeholder); opacity: .45; font-style: italic; }
span.ds-ed:empty { display: inline-block; }

/* Aperçu étroit (mobile ou petit écran) */
@container (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; padding: 12px 18px; gap: 8px; }
  .site-nav { gap: 2px; margin-left: -10px; flex-wrap: wrap; }
  .site-nav a { padding: 6px 10px; font-size: 14px; }
  .site-container { padding: 0 18px; }
  .site-sec { padding: 46px 0; }
  .site-hero { padding: 64px 0 70px; }
  .site-hero__title { font-size: 32px; }
  .site-hero__sub { font-size: 16.5px; }
  .site-h2 { font-size: 24px; margin-bottom: 24px !important; }
  .site-grid3, .site-grid2, .site-split { grid-template-columns: 1fr; gap: 18px; }
  .site-cta__inner { flex-direction: column; text-align: center; }
  .site-cta__title { font-size: 23px; }
  .site-pagehead { padding: 36px 0 28px; }
  .site-pagehead h1, .site-article__title { font-size: 28px; }
  .site-stat__value { font-size: 34px; }
  .site-footer__inner { flex-direction: column; padding: 28px 18px 18px; }
  .site-tb__label { display: none; }
}

/* ------------------------------------------------------------- Verrouillé */
.ds-app.is-locked .ds-workspace { filter: blur(4px) saturate(.8); pointer-events: none; user-select: none; }
.ds-app.is-locked .ds-topbar__center, .ds-app.is-locked .ds-btn--ghost { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------ Modale */
.ds-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(var(--ink-rgb),.5); opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.ds-modal--locked { background: rgba(var(--ink-rgb),.62); }
.ds-modal.is-open { opacity: 1; }
.ds-modal__box { position: relative; width: 100%; max-width: 660px; max-height: calc(100vh - 36px); overflow-y: auto; background: #fff; border-radius: 20px; padding: 34px 34px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4); border-top: 5px solid var(--ds-gold); transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ds-modal.is-open .ds-modal__box { transform: none; }
.ds-modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f4f2ec; color: #4a4a4f; cursor: pointer; font-size: 16px; }
.ds-modal__x:hover { background: var(--ds-gold-pale); }
.ds-modal__head { text-align: center; margin-bottom: 24px; }
.ds-modal__badge { width: 60px; height: 60px; border-radius: 18px; background: var(--ds-black); color: var(--ds-gold); display: inline-flex; align-items: center; justify-content: center; font-size: 25px; margin-bottom: 14px; }
.ds-modal__head h2, .ds-modal__success h2 { font-size: 25px; margin: 0 0 8px; color: var(--ds-black-2); font-weight: 700; }
.ds-modal__head p, .ds-modal__success p { margin: 0 auto; color: #55555b; max-width: 500px; line-height: 1.55; }
.ds-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ds-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; background: #fff; border: 1.5px solid var(--ds-line); border-radius: 16px; padding: 20px 18px; cursor: pointer; color: #55555b; font-size: 14px; line-height: 1.45; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ds-choice strong { font-size: 16.5px; color: var(--ds-black-2); }
.ds-choice__icon { width: 44px; height: 44px; border-radius: 12px; background: #fdf6df; color: var(--ds-gold-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 6px; }
.ds-choice__go { margin-top: auto; padding-top: 8px; color: var(--brand-text); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.ds-choice:hover { border-color: var(--ds-gold); box-shadow: 0 10px 28px rgba(var(--brand-rgb),.2); transform: translateY(-2px); }
.ds-choice:first-child { background: linear-gradient(160deg, #fffaf0, #fff 60%); }
.ds-modal__foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #efece3; }
.ds-modal__foot .ds-btn { margin-left: auto; }
.ds-modal__success { text-align: center; padding: 8px 0; }
.ds-modal__okicon { width: 64px; height: 64px; border-radius: 50%; background: #e8f6ee; color: #16803c; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }
.ds-modal__actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.ds-form__choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fdf8e8; border: 1px solid #f0e2b0; border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; color: #6f5a12; font-size: 14px; }
.ds-form__choice .ds-link { margin: 0; }
.ds-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ds-form__note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: #55555b; background: #f7f6f2; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; line-height: 1.45; }
.ds-form__note .fa-solid { color: var(--ds-gold-dark); margin-top: 3px; }
.ds-form__error { color: #b42318; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.ds-form__error:empty { display: none; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 1400px) { .ds-save { display: none; } }
@media (max-width: 1180px) {
  .ds-topbar__name { width: 140px; }
}
@media (max-width: 900px) {
  .ds-topbar { grid-template-columns: 1fr auto; grid-template-areas: 'left right' 'center center'; row-gap: 8px; padding: 8px 12px; }
  .ds-topbar__left { grid-area: left; }
  .ds-topbar__right { grid-area: right; gap: 8px; }
  .ds-topbar__center { grid-area: center; justify-content: space-between; }
  .ds-drawer-btn { display: inline-flex; }
  .ds-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); transform: translateX(-105%); transition: transform .28s ease; box-shadow: 10px 0 40px rgba(0,0,0,.25); z-index: 40; }
  .ds-app.drawer-open .ds-panel { transform: none; }
  .ds-app.drawer-open .ds-backdrop { display: block; position: absolute; inset: 0; background: rgba(var(--ink-rgb),.4); z-index: 35; }
  .ds-drawer-close { display: inline-flex; }
  .ds-stage { padding: 14px; }
  .ds-hide-sm { display: none; }
  .ds-btn--ghost { padding: 9px 11px; }
}
@media (max-width: 600px) {
  .ds-topbar__sep, .ds-topbar__site { display: none; }
  .ds-topbar__brand img { height: 24px; }
  .ds-timer { padding: 6px 10px; font-size: 14px; }
  .ds-topbar__right .ds-btn--gold { padding: 9px 12px; font-size: 13px; }
  .ds-tab { padding: 6px 10px; font-size: 13px; }
  .ds-tab .fa-solid { display: none; }
  .ds-stage { padding: 8px; }
  .ds-stage--mobile .ds-frame { border-width: 0; border-radius: 10px; }
  .ds-modal__box { padding: 26px 18px 18px; border-radius: 16px; }
  .ds-choices, .ds-form__row { grid-template-columns: 1fr; }
  .ds-modal__head h2, .ds-modal__success h2 { font-size: 21px; }
  .ds-modal__foot .ds-btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .ds-topbar__right .ds-btn--gold span { display: none; }
}

/* Aperçu back-office (lecture seule) */
.ds-admin-bar { flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--ds-gold); color: var(--on-brand); font-family: var(--ds-font); font-size: 14.5px; }
.ds-admin-bar a { color: var(--ds-black-2); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ds-admin-bar a:hover { text-decoration: underline; }
.ds-admin-bar__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-admin-bar__meta { font-size: 13px; opacity: .8; white-space: nowrap; }
.ds-topbar--readonly { min-height: 54px; }
@media (max-width: 700px) { .ds-admin-bar__meta { display: none; } }
