/* Essor : vrai noir, gris neutres, beige et or. Typographie reprise du site de vide-dressing. */
:root {
  --bg: #000000;
  --surface: #0f0f0f;
  --surface-2: #181818;
  --line: #2b2b2b;
  --line-strong: #4a4a4a;
  --beige: #e6dcc8;
  --beige-dim: #b4aea0;
  --gold: #c9a45c;
  --gold-bright: #ddbb77;
  --gold-deep: #b08f48;
  --gold-wash: #1c1c1c;
    --paper: #e3d9c3;
  --paper-ink: #0e0e0e;
  --danger: #e8a08b;
  --danger-deep: #b5503a;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --field-bg: #050505;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--beige);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 500; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.muted { color: var(--beige-dim); }
.muted-note { color: var(--beige-dim); padding: 24px 0; }

/* ---------- Structure ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.shell.single { display: block; }
.side {
  position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; overflow-y: auto;
  padding: 36px 24px 28px; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.brandmark { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--beige); text-decoration: none; line-height: 1; }
.brandmark:hover { color: var(--gold-bright); }
.side-sub { color: var(--beige-dim); font-size: 0.9rem; margin: 8px 0 30px; line-height: 1.45; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 14px; border: 0; border-radius: 4px; background: none; cursor: pointer;
  color: var(--beige-dim); font-size: 0.98rem; text-decoration: none;
}
.nav-link:hover { background: var(--surface-2); color: var(--beige); }
.nav-link.on { background: var(--gold-wash); color: var(--gold-bright); box-shadow: inset 2px 0 0 var(--gold); }
.side-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 4px; }
.side-contact { font-size: 0.92rem; color: var(--beige-dim); padding: 0 14px 14px; line-height: 1.6; }
.foot-link { padding: 6px 14px; font-size: 0.85rem; color: var(--beige-dim); text-decoration: none; }
.foot-link:hover { color: var(--gold-bright); }
.col { min-width: 0; }
.main { padding: 64px clamp(20px, 5vw, 72px) 140px; max-width: 1080px; }
.main.narrow { max-width: 980px; }
.mbar { display: none; }

.demo-bar, .preview-bar {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center;
  padding: 9px 16px; font-size: 0.86rem; background: var(--gold-wash); color: var(--beige); border-bottom: 1px solid var(--line-strong);
}
.bar-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bar-links a { padding: 3px 14px; border-radius: 999px; border: 1px solid var(--gold-deep); color: var(--gold-bright); text-decoration: none; font-size: 0.86rem; }
.bar-links a:hover { background: rgba(201, 164, 92, 0.16); }
.bar-links a.on { background: #c9a45c; border-color: #c9a45c; color: #0a0a0a; font-weight: 500; }
.btn-text { background: none; border: 0; color: var(--gold-bright); cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; }
.btn-text:hover { color: var(--beige); }

/* ---------- Boutons, pastilles, champs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--gold-deep);
  background: transparent; color: var(--gold); font-size: 0.95rem; font-weight: 500; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: rgba(201, 164, 92, 0.12); color: var(--gold-bright); border-color: var(--gold); }
.btn-primary { background: #c9a45c; border-color: #c9a45c; color: #0a0a0a; }
.btn-primary:hover { background: #ddbb77; border-color: #ddbb77; color: #0a0a0a; }
.btn-danger { color: var(--danger); border-color: rgba(232, 160, 139, 0.55); }
.btn-danger:hover { background: rgba(232, 160, 139, 0.12); color: var(--danger); border-color: var(--danger); }
.btn-danger-solid { background: var(--danger-deep); border-color: var(--danger-deep); color: #fff7f3; }
.btn-danger-solid:hover { background: #c95e47; border-color: #c95e47; color: #fff; }
.btn:disabled, .icon-btn:disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: none; color: var(--beige-dim); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { color: var(--gold-bright); border-color: var(--gold-deep); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.ico { flex-shrink: 0; }

.pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--beige-dim); font-size: 0.8rem; white-space: nowrap; background: rgba(255, 255, 255, 0.03);
}
.pill.st-valide, .pill.sg-en_cours { border-color: var(--gold); color: var(--gold-bright); }
.pill.st-encours, .pill.sg-suivi_gratuit { background: var(--gold-wash); border-color: var(--gold-deep); color: var(--gold-bright); }
.pill.st-lance, .pill.sg-termine { background: #c9a45c; border-color: #c9a45c; color: #0a0a0a; font-weight: 500; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; color: var(--beige-dim); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input:not([type]), select, textarea {
  width: 100%; background: var(--field-bg); border: 1px solid var(--line); border-radius: 4px; color: var(--beige);
  padding: 11px 13px; font: inherit; font-size: 1rem;
}
textarea { resize: vertical; line-height: 1.55; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 1px solid var(--gold); outline-offset: 0; }
::placeholder { color: #858585; }
.hint { font-size: 0.84rem; color: var(--beige-dim); margin: 6px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid2 .span { grid-column: 1 / -1; }
.form-error { color: var(--danger); min-height: 1.4em; font-size: 0.92rem; margin: 0 0 10px; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 6px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; color: var(--beige); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: #262626; border: 1px solid var(--line-strong); position: relative; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--beige-dim); }
.switch input:checked + .track { background: var(--gold-deep); border-color: var(--gold); }
.switch input:checked + .track::after { left: 20px; background: #0a0a0a; }
.switch input:focus-visible + .track { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* ---------- En-têtes de page, onglets, barre d'outils ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head .sub { color: var(--beige-dim); margin: 10px 0 0; max-width: 56ch; }
.head-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.crumb { font-size: 0.9rem; color: var(--beige-dim); margin-bottom: 14px; }
.crumb a { color: var(--beige-dim); }
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; max-width: 100%; overflow-x: auto; }
.tab {
  padding: 7px 16px; border-radius: 999px; border: 0; background: none; color: var(--beige-dim);
  font-size: 0.92rem; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.tab:hover { color: var(--beige); }
.tab.on { background: #262626; color: var(--beige); }
.tab .count { color: var(--gold); font-size: 0.82rem; margin-left: 4px; }
.sub-tabs { margin: 8px 0 32px; }
.search { flex: 1 1 240px; max-width: 360px; border-radius: 999px !important; border-color: var(--line-strong) !important; padding: 10px 18px !important; }
.urlbox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin-bottom: 8px; }
.urlbox code { color: var(--beige); word-break: break-all; }

/* ---------- Cartes et listes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-align: left; color: inherit; text-decoration: none; }
.card[role=button], a.card { cursor: pointer; }
.card[role=button]:hover, a.card:hover { border-color: var(--gold-deep); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cat { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.08rem; color: var(--gold); }
.card h3 { margin: 2px 0 0; }
.card .desc { color: var(--beige-dim); font-size: 0.95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 0.9rem; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.pagebadge { margin: 0; font-size: 0.84rem; color: var(--beige-dim); }
.pagebadge.live { color: var(--gold-bright); }
.card-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

.clients { display: grid; gap: 12px; }
.client {
  display: grid; grid-template-columns: 1.3fr 1fr 1.3fr auto; gap: 8px 22px; align-items: center;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.client:hover { border-color: var(--gold-deep); }
.client h3 { font-size: 1.3rem; }
.client p { margin: 2px 0 0; font-size: 0.92rem; }
.c-info { display: flex; flex-direction: column; gap: 2px; font-size: 0.92rem; min-width: 0; overflow-wrap: anywhere; }

.rows { display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.row-main { min-width: 0; }
.row-main h3 { font-size: 1.25rem; }
.row-main h3 a { color: var(--beige); text-decoration: none; }
.row-main h3 a:hover { color: var(--gold-bright); }
.row-main p { margin: 4px 0 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 40px 0 16px; }
.tab-panel .section-head:first-child { margin-top: 0; }
.panel-form { max-width: 820px; }
.panel-form + .section-head { margin-top: 56px; }

.empty { text-align: center; padding: 72px 20px; border: 1px dashed var(--line-strong); border-radius: 6px; max-width: 640px; margin: 24px auto; }
.empty p { color: var(--beige-dim); max-width: 46ch; margin: 12px auto 24px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pubbox { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 6px; margin-top: 8px; background: var(--surface-2); }
.pubbox .hint { margin: 4px 0 0; }

/* ---------- Fenêtres ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.86); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: fade 0.12s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; width: 100%; max-width: 660px; display: flex; flex-direction: column; margin: auto; }
.modal.wide { max-width: 1040px; }
.modal.small { max-width: 480px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 28px 0; }
.modal-head h2 { font-size: 1.7rem; }
.modal-body { padding: 22px 28px 8px; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px 24px; border-top: 1px solid var(--line); margin-top: 8px; }
.foot-right { display: flex; gap: 10px; margin-left: auto; }
.confirm-text { color: var(--beige); margin: 0; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.preview-label { display: block; font-size: 0.88rem; color: var(--beige-dim); margin-bottom: 6px; }
.preview { border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; max-height: 420px; overflow-y: auto; background: #050505; }
.preview .link-card { pointer-events: none; }

#toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #181818; color: var(--beige); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 10px 22px; font-size: 0.94rem; }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* ---------- Écrans simples ---------- */
.splash { max-width: 520px; margin: 18vh auto; padding: 0 24px; text-align: center; }
.splash p { color: var(--beige-dim); margin-top: 14px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; padding: 40px 34px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.login-card h1 { font-size: 2.6rem; }
.login-card .sub { color: var(--beige-dim); margin: 10px 0 28px; }
.login-card .side-sub { margin: 22px 0 0; text-align: center; }

/* ---------- Côté public ---------- */
.hero { margin-bottom: 36px; }
.hero h1 { margin-bottom: 18px; }
.lede { white-space: pre-line; font-size: 1.18rem; color: var(--beige-dim); max-width: 58ch; line-height: 1.6; margin: 0; }

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 0 0 56px; }
.offer { background: var(--paper); color: var(--paper-ink); border-radius: 6px; border-top: 4px solid var(--gold); padding: 32px 30px 30px; display: flex; flex-direction: column; }
.offer h3 { color: var(--paper-ink); font-size: 1.55rem; }
.offer .price, .stat-chip .n, .tab .count { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.offer .price { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.1; margin: 16px 0 4px; color: var(--paper-ink); }
.offer .price-note { color: #55524a; font-size: 0.92rem; margin: 0; }
.offer ul { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid rgba(14, 14, 14, 0.2); }
.offer li { padding: 11px 0 11px 20px; position: relative; border-bottom: 1px solid rgba(14, 14, 14, 0.12); font-size: 0.97rem; }
.offer li:last-child { border-bottom: 0; }
.offer li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 1px; background: rgba(14, 14, 14, 0.55); }

.toc { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 20px 26px 14px; margin: 0 0 12px; }
.toc-title { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--beige-dim); margin: 0 0 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 36px; }
.toc li { break-inside: avoid; }
.toc-link { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 0; color: var(--beige); font-size: 0.97rem; cursor: pointer; }
.toc-link:hover { color: var(--gold-bright); }
.guide-section { scroll-margin-top: 16px; }

.prose { max-width: 66ch; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; padding-left: 0.2em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--beige); font-weight: 700; }
.prose h4.sub { font-size: 1.35rem; margin: 1.6em 0 0.5em; }
.prose figure { margin: 1.4em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; display: block; }
.prose .source { font-size: 0.86rem; color: var(--beige-dim); margin-top: -0.4em; }
.prose .source a { color: var(--beige-dim); }
.box { border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px 8px; margin: 1.2em 0; background: var(--surface); }
.box.good { border-color: var(--gold-deep); }
.box p { margin: 0 0 0.6em; }
.box ul { margin-bottom: 0.8em; }
.link-card { display: inline-block; padding: 13px 24px; border-radius: 999px; background: #c9a45c; color: #0a0a0a; text-decoration: none; font-weight: 500; }
.link-card:hover { background: #ddbb77; color: #0a0a0a; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 1.2em 0; }
.stat-chip { border: 1px solid var(--line-strong); border-radius: 6px; padding: 16px 18px; background: var(--surface); }
.stat-chip .n { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-bright); line-height: 1; }
.stat-chip .l { font-size: 0.88rem; color: var(--beige-dim); margin-top: 8px; line-height: 1.4; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--beige-dim); font-weight: 500; font-size: 0.86rem; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tag { flex-shrink: 0; min-width: 8.5em; font-size: 0.8rem; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--gold-deep); color: var(--gold-bright); text-align: center; }

/* ---------- Adaptation mobile ---------- */
@media (max-width: 880px) {
  .shell { display: block; }
  .side { display: none; }
  .mbar {
    display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  }
  .mbar .nav-link { width: auto; flex-shrink: 0; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; }
  .mbar .nav-link.on { border-color: var(--gold-deep); box-shadow: none; }
  .main { padding: 36px 20px 100px; }
  .client { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .editor { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .modal-head, .modal-body, .modal-foot { padding-left: 20px; padding-right: 20px; }
  .modal-foot { flex-wrap: wrap; }
  .row { flex-direction: column; align-items: flex-start; }
  .checklist li { flex-direction: column; gap: 6px; }
  .pubbox { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Zones de travail en fond blanc (projets, clients, listes, fenêtres, formulaires) ---------- */
.card, .row, .client, .modal, .urlbox, .pubbox, .empty, .login-card, .panel-form, .help-sheet, .shell.public .main {
  --surface: #fbfbf9;
  --surface-2: #f0f0ea;
  --field-bg: #ffffff;
  --line: #dcdcd4;
  --line-strong: #b4b4aa;
  --beige: #161616;
  --beige-dim: #5c5c57;
  --gold: #8a6a12;
  --gold-bright: #6f540c;
  --gold-deep: #8a6a12;
  --gold-wash: #f3ead0;
  --danger: #a63a22;
  --danger-deep: #a63a22;
  background: var(--surface);
  color: var(--beige);
}
.panel-form { padding: 28px 28px 22px; border: 1px solid var(--line); border-radius: 6px; }
.pubbox { background: var(--surface-2); }
.empty { border-style: solid; }
.btn-danger { border-color: var(--danger); }
.card[role=button]:hover, a.card:hover, .client:hover { border-color: #8a6a12; }
/* l'aperçu d'une section imite le côté public : il reste noir */
.preview {
  --surface: #0f0f0f; --surface-2: #181818; --field-bg: #050505; --line: #2b2b2b; --line-strong: #4a4a4a;
  --beige: #e6dcc8; --beige-dim: #b4aea0; --gold: #c9a45c; --gold-bright: #ddbb77; --gold-deep: #b08f48; --gold-wash: #1c1c1c;
  background: #000; color: var(--beige);
}
.modal ::placeholder, .panel-form ::placeholder, .login-card ::placeholder { color: #6b6b66; }

/* ---------- Côté public : page blanche, menu noir, offres en cartes noires ---------- */
.shell.public .col { background: #fbfbf9; }
.shell.public .main { background: transparent; }
.shell.public .box, .shell.public .stat-chip, .shell.public .toc { background: var(--surface-2); }
.shell.public .box.good { background: var(--gold-wash); }
.shell.public .offer { background: #0b0b0b; color: #e6dcc8; border-top: 4px solid #c9a45c; }
.shell.public .offer h3 { color: #e6dcc8; }
.shell.public .offer .price { color: #ddbb77; }
.shell.public .offer .price-note { color: #b4aea0; }
.shell.public .offer ul { border-top-color: rgba(230, 220, 200, 0.22); }
.shell.public .offer li { border-bottom-color: rgba(230, 220, 200, 0.12); }
.shell.public .offer li::before { background: #c9a45c; }
/* le schéma des piliers est dessiné pour un fond sombre : il garde son cadre noir */
.prose img[src^="data:image/svg+xml"], .prose img[src$=".svg"] { background: #0a0a0a; padding: 14px; border-radius: 6px; }

.cta { margin: -24px 0 52px; }

/* ---------- Mode d'emploi d'Essor (page blanche) ---------- */
.help-sheet { padding: 36px clamp(20px, 4vw, 48px) 48px; border-radius: 6px; max-width: 860px; }
.help-sheet .box, .help-sheet .toc, .help-sheet .stat-chip { background: var(--surface-2); }
.help-sheet .box.good { background: var(--gold-wash); }
.help-sheet code { background: var(--surface-2); padding: 2px 6px; border-radius: 3px; overflow-wrap: anywhere; }

.nav-link.sub { padding-left: 30px; font-size: 0.92rem; }
.mbar .nav-link.sub { padding-left: 16px; }

.pubbox.banner { margin: 0 0 28px; }
.side-sub.also { margin: 18px 14px 4px; font-size: 0.8rem; }
.guide-cards { margin-bottom: 48px; }

/* ---------- Sections repliables ---------- */
.acc-tools { display: flex; gap: 20px; justify-content: flex-end; margin: 22px 0 6px; font-size: 0.9rem; }
.acc-list { border-bottom: 1px solid var(--line); }
.acc { border-top: 1px solid var(--line); }
.acc > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 4px; font-family: var(--serif); font-weight: 600; line-height: 1.2;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.acc > summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform 0.15s;
}
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc > summary:hover h2 { color: var(--gold-bright); }
.acc-body { padding: 4px 4px 34px; }
.fold { border: 1px solid var(--line); border-radius: 6px; margin: 1.2em 0; background: var(--surface-2); }
.fold > summary { cursor: pointer; padding: 14px 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.fold[open] > summary::after { content: "\2212"; }
.fold-body { padding: 0 18px 8px; }
.preview .fold { background: #181818; }

.cta.end { margin: 44px 0 0; }

/* ---------- Formulaire d'inscription ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup { border: 1px solid var(--line-strong); border-radius: 6px; padding: 22px 24px; margin: 1.6em 0; background: var(--surface-2); max-width: 560px; }
.signup-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 14px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row input { flex: 1 1 220px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.9rem; color: var(--beige-dim); }
.check input { margin-top: 4px; flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; }
.signup-msg { margin: 10px 0 0; min-height: 1.2em; color: var(--danger); font-size: 0.92rem; }
.signup-done { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
.signup-demo p:last-child { margin: 0; color: var(--beige-dim); }

/* ---------- Marketing et communication ---------- */
.mk-prev { margin: 6px 0 0; font-size: 0.92rem; color: var(--beige-dim); max-width: 70ch; }
.mk-row { cursor: pointer; }
.mk-row .row-actions { gap: 12px; flex-shrink: 0; }
.mk-block { display: block; }
.mk-block-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.mk-block-head h3 { margin: 0; }
.mk-text > :first-child { margin-top: 0; }
.mk-text > :last-child { margin-bottom: 0; }
.toolbar select { margin-left: auto; }

/* ---------- Centre de contrôle ---------- */
.ctrl-banner { display: block; margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--beige); text-decoration: none; font-size: 0.95rem; }
a.ctrl-banner:hover { border-color: var(--gold); }
.ctrl-banner.bad { border-color: #c4584d; color: #f0b3ac; }
.ctrl-banner.ok { color: var(--gold); }
.ctrl-h { font-size: 1.4rem; margin: 30px 0 12px; }
.ctrl-row .row-actions { gap: 12px; flex-shrink: 0; }
.pill.lv-todo { border-color: #b3261e; color: #b3261e; }
.pill.lv-watch { border-color: var(--gold-deep); color: var(--gold-bright); }
.ctrl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ctrl-checks li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--beige-dim); }
.ctrl-checks .good { color: var(--gold); }
.ctrl-checks .bad { color: #f0b3ac; }

/* ---------- Guides payants et fiches PDF ---------- */
.locked { margin: 36px 0 0; padding: 26px 28px; border: 1px solid var(--gold-deep); border-radius: 6px; background: #f4ead4; color: #111; }
.locked h2 { font-size: 1.5rem; margin: 0 0 8px; }
.locked p { margin: 0 0 6px; }
.sheet-card { margin: 28px 0 0; }
.sheet-panel { margin: 24px 0; }
.sheet-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.file-btn { cursor: pointer; }
.modal .check.dark, .sheet-panel .check.dark { color: #333; margin: 12px 0 0; }

/* Numéros des projets, guides et sections */
.num { color: var(--gold-deep); font-variant-numeric: tabular-nums; margin-right: 2px; }

/* ---------- Mot de passe : œil pour afficher la saisie ---------- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; width: 100%; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 4px; color: var(--beige-dim); cursor: pointer;
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--gold); }

/* ---------- Identité Essor OS (charte graphique v1.1) ---------- */
:root { --script: "Allura", "Snell Roundhand", cursive; --gold-title: #a8843f; }
.essor-lock { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1; }
.essor-lock-row { display: inline-flex; align-items: center; gap: 10px; }
.essor-mark { display: block; flex-shrink: 0; }
.essor-name { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: #e6dcc8; letter-spacing: 0.01em; }
.essor-slogan { font-family: var(--script); font-size: 1.25rem; color: #c9a45c; line-height: 1.2; }
.essor-slogan.big { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0.4em 0 0; color: var(--gold-title); }
a.essor-home, a.mhead { text-decoration: none; }
.essor-home { display: block; margin-bottom: 22px; }
.essor-home:hover .essor-name { color: #ddbb77; }
.offer-of { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #c9a45c; margin: 0 0 8px; }
.mhead { display: none; }
@media (max-width: 880px) {
  .mhead { display: flex; justify-content: center; padding: 16px 16px 12px; background: #000; border-bottom: 1px solid #2b2b2b; }
}

/* Titres en or : or #c9a45c sur fond noir, or profond #a8843f sur fond clair */
.shell.public .hero h1, .shell.public .acc > summary h2, .shell.public .prose h2, .shell.public .prose h3, .shell.public .prose h4,
.shell.public .signup-title, .shell.public .locked h2 { color: var(--gold-title); }
.shell.public .acc > summary:hover h2 { color: #8a6a2c; }
.shell.public .offer h3 { color: #c9a45c; }
.shell.public .brandmark { color: #c9a45c; }

/* Le sens du mot « essor » */
.essor-meaning {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start;
  margin: 64px 0 0; padding: 30px 30px 26px; border: 1px solid #c9a45c; border-radius: 6px; max-width: 66ch;
}
.essor-meaning-mark { background: #000; border-radius: 6px; padding: 18px 16px; }
.essor-meaning .kicker { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-title); margin: 0 0 6px; }
.essor-meaning h2 { color: var(--gold-title); margin: 0 0 14px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.essor-meaning p { font-size: 1.02rem; }
@media (max-width: 560px) { .essor-meaning { grid-template-columns: 1fr; padding: 24px 20px; } .essor-meaning-mark { justify-self: start; } }

/* Pied de page public : bande noire */
.essor-foot { background: #000; border-top: 1px solid #2b2b2b; }
.essor-foot-in { max-width: 880px; padding: 34px clamp(20px, 5vw, 56px) 30px; }
.essor-foot .essor-name { font-size: 1.6rem; }
.essor-foot .essor-slogan { font-size: 1.4rem; margin-top: 4px; }
.essor-phrase { color: #e6dcc8; font-size: 0.95rem; margin: 18px 0 6px; max-width: 52ch; }
.essor-copy { color: #8f897d; font-size: 0.82rem; margin: 0; }
.shell.public .col { display: flex; flex-direction: column; min-height: 100vh; }
.shell.public .main { flex: 1 0 auto; padding-bottom: 80px; }
.essor-foot-in { padding-left: clamp(20px, 5vw, 72px); }
