/* AMALDA — préparation éditoriale locale */
:root {
  color-scheme: light;
  --ink: #173c44;
  --ink-deep: #10323a;
  --muted: #526b6a;
  --accent: #3a9690;
  --accent-deep: #246d68;
  --pale: #e1f0eb;
  --cream: #f7f6ef;
  --paper: #fffefa;
  --line: #d9e1dc;
  --shadow: 0 12px 34px rgb(22 58 60 / 5%);
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-size: 15px; line-height: 1.6; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #00847e; outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 10; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; padding: 16px max(5vw, calc((100vw - 1420px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; position: relative; border: 1px solid var(--ink); border-radius: 50%; font: 28px/.9 Georgia, serif; }
.brand-mark span { color: var(--accent-deep); position: absolute; right: 7px; bottom: 7px; font-size: 20px; }
.brand-name { font: 19px/1 Georgia, serif; letter-spacing: .19em; }
.brand-name small { display: block; margin-top: 5px; font: 8px/1 Arial, sans-serif; letter-spacing: .14em; }
.back-link { font-size: 13px; font-weight: 700; text-decoration: none; }
.back-link span { margin-right: 6px; color: var(--accent-deep); font-size: 20px; vertical-align: -1px; }
.back-link:hover { text-decoration: underline; }
.page-shell { width: min(1420px, 90%); margin: 0 auto; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 66px 0 40px; }
.eyebrow, .section-number, .notice-kicker, .sidebar-label { margin: 0 0 14px; font-size: 10px; line-height: 1.4; letter-spacing: .16em; font-weight: 700; }
.eyebrow { color: var(--accent-deep); }
.eyebrow span { display: inline-block; width: 24px; height: 1px; margin: 0 9px 3px 0; background: var(--accent-deep); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 15px; font: 400 clamp(43px, 5vw, 66px)/1.02 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
h1 em { color: var(--accent-deep); font-weight: 400; }
.intro-copy { max-width: 570px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.intro-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; max-width: 485px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 50px; color: var(--ink); background: #e2eee8; font-size: 12px; font-weight: 700; }
.status-pill::before { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent-deep); }
.status-pill.is-dirty { background: #fff0d4; color: #674513; }
.status-pill.is-dirty::before { background: #a15f12; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 45px; padding: 11px 18px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; line-height: 1.35; font-weight: 700; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.button span { font-size: 19px; line-height: .8; }
.button-primary { background: var(--ink); color: white; }
.button-primary:not(:disabled):hover { background: var(--accent-deep); }
.button-quiet { background: transparent; color: var(--ink); border-color: #b9cbc3; }
.button-quiet:not(:disabled):hover, .button-outline:not(:disabled):hover { background: #e8f2ed; border-color: var(--accent-deep); }
.button-outline { background: transparent; color: var(--ink); border-color: #9bb8ad; }
.notice { display: flex; gap: 19px; padding: 25px 28px; border-left: 4px solid var(--accent-deep); background: #e8f3ed; }
.notice-icon { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border: 1px solid var(--accent-deep); border-radius: 50%; color: var(--accent-deep); font: 700 18px Georgia, serif; }
.notice-kicker { margin-bottom: 6px; color: var(--accent-deep); }
.notice h2 { margin-bottom: 6px; font: 400 25px/1.2 Georgia, serif; }
.notice p:not(.notice-kicker) { max-width: 1020px; margin-bottom: 12px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; }
.steps li { max-width: 360px; }
.steps span { margin-right: 5px; color: var(--accent-deep); }
code { overflow-wrap: anywhere; font-size: .95em; }
.load-message, .error-message { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.load-message.is-error, .error-message { padding: 12px 16px; border-left: 3px solid #a64d3b; background: #fbedeb; color: #773525; }
.workspace { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: clamp(35px, 5vw, 78px); align-items: start; padding: 36px 0 24px; }
.sidebar-inner { position: sticky; top: 24px; padding: 5px 0 20px; }
.sidebar-label { color: #67807a; font-size: 9px; }
.sidebar-title { margin-bottom: 22px; font: 400 27px/1.12 Georgia, serif; }
.sidebar-title span { color: var(--accent-deep); }
.sidebar nav { display: grid; border-top: 1px solid var(--line); }
.sidebar nav a { display: flex; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 700; }
.sidebar nav a span { color: #6a8980; font-size: 10px; letter-spacing: .04em; }
.sidebar nav a:hover { color: var(--accent-deep); }
.sidebar-summary { margin-top: 27px; padding: 18px; background: #ecf2eb; }
.sidebar-summary p { margin-bottom: 11px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.sidebar-summary div { display: flex; align-items: baseline; gap: 10px; }
.sidebar-summary strong { min-width: 20px; font: 400 22px Georgia, serif; }
.sidebar-summary div span { color: var(--muted); font-size: 12px; }
.editor-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.editor-section { margin-bottom: 54px; scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-number { margin-bottom: 7px; color: var(--accent-deep); }
.section-heading h2, .bottom-callout h2 { margin: 0; font: 400 clamp(29px, 3vw, 38px)/1.12 Georgia, serif; letter-spacing: -.025em; }
.section-heading > p { max-width: 265px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.section-intro { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.panel { padding: 24px; margin: 0 0 14px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 18px; font: 400 22px/1.25 Georgia, serif; }
.panel-note { margin-bottom: 18px; padding: 12px 14px; background: #f0f6f1; color: #405b54; font-size: 13px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 17px; }
.field { min-width: 0; margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field-grid > .field { margin-bottom: 15px; }
.field-grid > .field:nth-last-child(-n+2) { margin-bottom: 0; }
label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 12px; line-height: 1.4; font-weight: 700; }
input, textarea { display: block; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #bdccc6; border-radius: 2px; background: #fff; color: #173c44; line-height: 1.4; }
input { min-height: 44px; }
textarea { min-height: 92px; resize: vertical; }
input:hover, textarea:hover { border-color: #739c91; }
input:focus, textarea:focus { border-color: var(--accent-deep); }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.entry-head, .lot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.entry-head h3 { margin-bottom: 4px; }
.entry-subtitle { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.count-tag { flex-shrink: 0; padding: 5px 9px; background: #e5f1eb; color: var(--accent-deep); font-size: 11px; font-weight: 700; }
.lots-title { margin: 20px 0 10px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.empty-state { padding: 16px; margin-bottom: 14px; border: 1px dashed #bbcec5; background: #f8fbf8; color: var(--muted); font-size: 13px; }
.lot-card { margin-bottom: 14px; padding: 18px; border: 1px solid #dae6df; background: #f8fbf8; }
.lot-head { align-items: center; margin-bottom: 16px; }
.lot-head h4 { margin: 0; font: 400 19px Georgia, serif; }
.remove-button { min-height: 40px; padding: 7px 9px; border: 0; background: transparent; color: #8a4538; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.remove-button:hover { color: #61261d; }
.add-faq { margin-top: 4px; }
.bottom-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 10px 0 70px; padding: 30px; background: #dceee5; }
.bottom-callout h2 { font-size: 30px; }
.bottom-callout p:last-child { margin: 9px 0 0; color: #435d56; font-size: 14px; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 5%; border-top: 1px solid var(--line); color: #5c756e; background: var(--paper); font-size: 12px; }
@media (max-width: 850px) {
  .page-intro { align-items: flex-start; flex-direction: column; padding-top: 44px; }
  .intro-actions { justify-content: flex-start; max-width: none; }
  .workspace { grid-template-columns: 1fr; gap: 30px; }
  .sidebar-inner { position: static; }
  .sidebar-title { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .sidebar nav a { padding: 7px 10px; border: 1px solid var(--line); background: var(--paper); }
  .sidebar-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 14px; }
  .sidebar-summary p { width: 100%; margin: 0; }
}
@media (max-width: 600px) {
  .topbar { min-height: 72px; padding: 12px 5%; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 7px; }
  .back-link { font-size: 12px; }
  .page-intro { padding-bottom: 30px; }
  .intro-actions { width: 100%; }
  .status-pill { width: 100%; }
  .notice { padding: 20px 16px; gap: 12px; }
  .steps { display: grid; gap: 7px; }
  .workspace { padding-top: 28px; }
  .sidebar-summary { padding: 14px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: none; margin-top: 8px; text-align: left; }
  .panel { padding: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid > .field:nth-last-child(2) { margin-bottom: 15px; }
  .bottom-callout, .footer { align-items: flex-start; flex-direction: column; }
  .bottom-callout { padding: 22px; margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
