/* Mémoire d’atelier — sobre, tons pastel, lisible. */

:root {
  --paper: #FAF7F2;
  --paper-2: #F3EEE6;
  --card: #FFFFFF;
  --line: #EAE3D8;
  --line-2: #DED5C8;
  --ink: #2F2B29;
  --ink-2: #5C5550;
  --muted: #8A817A;

  --sauge: #DCE8DE;   --sauge-ink: #48644F;
  --rose: #F4DEDA;    --rose-ink: #8E4F48;
  --lavande: #E3DEF0; --lavande-ink: #5A4F7C;
  --ciel: #DDE9F1;    --ciel-ink: #3F6177;
  --sable: #F2E8D5;   --sable-ink: #7A6236;
  --abricot: #F8E1CC; --abricot-ink: #8A5527;

  --primary: #4F4A5E;
  --primary-hover: #3E3A4B;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(70, 50, 30, .04), 0 10px 30px rgba(70, 50, 30, .06);
  --shadow-lg: 0 2px 6px rgba(70, 50, 30, .06), 0 24px 60px rgba(70, 50, 30, .14);
}

html { font-size: 17px; -webkit-text-size-adjust: 100%; }
html.large { font-size: 20px; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #B9AEDB; outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
.muted { color: var(--muted); }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 28px 18px 20px; background: var(--paper-2); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 10px 26px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, #fff 0 12%, transparent 13%), conic-gradient(from 200deg, var(--rose), var(--lavande), var(--ciel), var(--sauge), var(--sable), var(--rose));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; font-weight: 600; }
.brand-name em { font-weight: 500; color: var(--ink-2); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a, .nav span.disabled {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 14px;
  border-radius: 14px; text-decoration: none; color: var(--ink-2); font-weight: 600;
}
.nav a:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.nav a.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nav a.active .ico { background: var(--lavande); color: var(--lavande-ink); }
.nav .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.nav .ico svg { width: 20px; height: 20px; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 14px; }
.nav span.disabled { opacity: .45; cursor: not-allowed; }
.soon { margin-left: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--line); padding: 2px 8px; border-radius: 99px; }

.side-foot { margin-top: auto; padding: 0 6px; }
.text-size {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-weight: 600; color: var(--ink-2);
}
.text-size[aria-pressed="true"] { background: var(--lavande); border-color: transparent; color: var(--lavande-ink); }
.aa { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.aa small { font-size: .8rem; }
.offline-note { font-size: .78rem; color: var(--muted); margin: 12px 4px 0; display: flex; gap: 8px; align-items: center; }
.offline-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9CC2A6; }
.offline-note.off::before { background: #D9B07B; }

.main { padding: 44px clamp(16px, 4vw, 56px) 80px; max-width: 1360px; width: 100%; outline: none; }

/* ---------- En-têtes de page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 2.6rem; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-soft { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-soft:hover { border-color: #CFC4B5; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sauge { background: var(--sauge); color: var(--sauge-ink); }
.btn-sauge:hover { background: #CDE0D1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Cartes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 26px; }

/* ---------- Accueil ---------- */
.hello h1 { font-size: 3rem; }
.hello p { font-size: 1.1rem; color: var(--ink-2); margin: 8px 0 34px; }
.big-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 44px; }
.big-action {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 32px; min-height: 230px; border-radius: 24px; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(0,0,0,.03); transition: transform .2s, box-shadow .2s;
}
.big-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.big-action.a1 { background: linear-gradient(140deg, var(--lavande), #EFE9F6 60%, var(--rose)); }
.big-action.a2 { background: linear-gradient(140deg, var(--sauge), #EDF3EC 60%, var(--ciel)); }
.big-action .num { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--ink-2); }
.big-action h2 { font-size: 2rem; }
.big-action p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.big-action .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.big-action .deco { position: absolute; right: -30px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.45); }
.big-action .deco::after { content: ""; position: absolute; inset: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.06); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 16px; gap: 12px; }
.section-title h2 { font-size: 1.7rem; }
.section-title a { font-weight: 700; color: var(--ink-2); text-decoration: none; }
.section-title a:hover { color: var(--ink); text-decoration: underline; }
.home-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { border-top: 1px solid var(--line); }
.todo-list li:first-child { border-top: 0; }
.todo-list button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px 4px; }
.todo-list button:hover .t { text-decoration: underline; }
.todo-list .thumb { width: 52px; height: 64px; border-radius: 8px; overflow: hidden; flex: none; background: var(--paper-2); }
.todo-list .thumb > svg, .todo-list .thumb > img { width: 100%; height: 100%; object-fit: cover; }
.todo-list .t { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.todo-list .s { font-size: .86rem; color: var(--muted); }

/* ---------- Galerie ---------- */
.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.search {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0 20px; min-height: 56px; max-width: 560px;
}
.search svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 1.05rem; min-width: 0; }
.filters { display: flex; flex-direction: column; gap: 10px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-row .lbl { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; width: 86px; flex: none; }
.chip {
  border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 7px 15px;
  cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: .94rem; min-height: 40px;
}
.chip:hover { border-color: #CFC4B5; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.c-sauge[aria-pressed="true"] { background: var(--sauge); border-color: #BFD5C4; color: var(--sauge-ink); }
.chip.c-abricot[aria-pressed="true"] { background: var(--abricot); border-color: #EDC9A8; color: var(--abricot-ink); }
.chip.c-lavande[aria-pressed="true"] { background: var(--lavande); border-color: #CEC6E5; color: var(--lavande-ink); }
.result-line { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .95rem; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.linkish[hidden] { display: none; }
.linkish { all: unset; cursor: pointer; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 26px 22px; }
.tile { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.tile .frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--paper-2);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.tile .frame > svg, .tile .frame > img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .frame, .tile:focus-visible .frame { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .badge { position: absolute; left: 10px; top: 10px; }
.tile .badge.pos-tr { left: auto; right: 10px; }
.tile .badge.pos-bl { top: auto; bottom: 10px; }
.tile .cap .t { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.15; font-style: italic; }
.tile .cap .a { color: var(--ink-2); font-size: .93rem; margin-top: 2px; }
.tile .cap .d { color: var(--muted); font-size: .85rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.b-validee { background: rgba(220, 232, 222, .95); color: var(--sauge-ink); }
.b-a_valider { background: rgba(248, 225, 204, .95); color: var(--abricot-ink); }
.b-en_cours { background: rgba(227, 222, 240, .95); color: var(--lavande-ink); }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty h3 { font-size: 1.6rem; margin-bottom: 8px; }

/* ---------- Modale (fiche œuvre) ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(47, 43, 41, .32); backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.dialog {
  position: relative; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-lg);
  width: min(1100px, 100%); max-height: calc(100vh - 48px); overflow: auto;
}
.dialog.narrow { width: min(640px, 100%); }
.close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); cursor: pointer;
  display: grid; place-items: center;
}
.close svg { width: 20px; height: 20px; }
.detail { display: grid; grid-template-columns: minmax(280px, 5fr) 6fr; gap: 36px; padding: 36px; }
.detail .frame { border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); background: var(--paper-2); position: sticky; top: 0; }
.detail .frame > svg, .detail .frame > img { width: 100%; height: 100%; object-fit: cover; }
.detail h2 { font-size: 2.4rem; font-style: italic; margin: 10px 0 6px; }
.detail .who { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 20px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.kv dd { margin: 0; }
.detail h3 { font-size: 1.3rem; margin: 22px 0 6px; }
.detail p { margin: 0 0 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.src-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.src-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.src-list a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.src-list .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--ciel); color: var(--ciel-ink); display: grid; place-items: center; flex: none; }
.src-list .ico svg { width: 18px; height: 18px; }
.src-list .st { font-weight: 700; line-height: 1.3; }
.src-list .sm { font-size: .86rem; color: var(--muted); }
.notice-box { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; margin: 18px 0; }
.notice-box svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.notice-box p { margin: 0; }
.notice-box.warn { background: var(--abricot); color: #6C4524; }
.notice-box.ok { background: var(--sauge); color: #3A5541; }
.notice-box.info { background: var(--lavande); color: #463E63; }
.notice-box.sky { background: var(--ciel); color: #33536A; }
.detail .actions { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label { font-weight: 700; }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: -2px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 12px 14px; min-height: 50px;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: 3px solid #DCD4F0; border-color: #B9AEDB; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }

/* ---------- Identification ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-weight: 700; }
.step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-family: var(--serif); font-size: 1.1rem; }
.step.on { background: var(--lavande); color: var(--lavande-ink); }
.step.done { background: var(--sauge); color: var(--sauge-ink); }
.ident-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  aspect-ratio: 4/3; border: 2px dashed #D3C8B8; border-radius: 22px; background: repeating-linear-gradient(45deg, #FBF9F5, #FBF9F5 12px, #F7F3EC 12px, #F7F3EC 24px);
  cursor: pointer; padding: 24px; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: #B9AEDB; background: #F6F3FA; }
.drop .ico { width: 70px; height: 70px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); }
.drop .ico svg { width: 32px; height: 32px; color: var(--lavande-ink); }
.drop strong { font-size: 1.2rem; font-family: var(--serif); }
.preview-photo { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.preview-photo img { width: 100%; max-height: 520px; object-fit: contain; background: #f1ece4; }
.preview-photo .btn { position: absolute; right: 14px; bottom: 14px; }
.swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; color: var(--ink-2); }
.swatches i { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); display: inline-block; }
.type-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-tile {
  border: 1px solid var(--line-2); background: var(--card); border-radius: 14px; padding: 14px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2);
}
.type-tile svg { width: 26px; height: 26px; }
.type-tile[aria-pressed="true"] { background: var(--lavande); border-color: #CEC6E5; color: var(--lavande-ink); }
.type-tile.unk { grid-column: span 3; flex-direction: row; justify-content: center; }
.sugg-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sugg-chips button { border: 1px dashed var(--line-2); background: transparent; border-radius: 99px; padding: 4px 12px; cursor: pointer; font-size: .88rem; color: var(--ink-2); }
.sugg-chips button:hover { background: var(--card); border-style: solid; }

.hyp { padding: 26px; margin-bottom: 18px; }
.hyp.best { border-color: #CEC6E5; box-shadow: 0 0 0 3px rgba(227, 222, 240, .6), var(--shadow); }
.hyp-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.hyp h3 { font-size: 1.6rem; margin: 4px 0; }
.hyp .lead { font-size: 1.05rem; color: var(--ink-2); margin: 10px 0 16px; }
.conf { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.conf .dots { display: flex; gap: 5px; }
.conf .dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.conf .dots i.on { background: #A99BD6; }
.conf .lbl { font-size: .86rem; font-weight: 700; color: var(--lavande-ink); }
.hyp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.hyp h4 { margin: 0 0 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hyp ul { margin: 0; padding-left: 20px; }
.hyp li { margin-bottom: 6px; }
.hyp .src-list a { padding: 10px 12px; }

/* Résultats : documentation interne / internet */
.step-title { display: flex; gap: 16px; align-items: flex-start; margin: 34px 0 16px; }
.step-title .n { width: 42px; height: 42px; border-radius: 50%; background: var(--lavande); color: var(--lavande-ink); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; flex: none; }
.step-title .n svg { width: 22px; height: 22px; }
.step-title h2 { font-size: 1.8rem; }
.step-title p { margin: 4px 0 0; color: var(--ink-2); }
.step-title.web { padding-top: 26px; border-top: 2px dashed #BBD3E3; }
.step-title.web .n { background: var(--ciel); color: var(--ciel-ink); }
.hyp.web { border: 1.5px dashed #9FC0D6; background: linear-gradient(180deg, #F5F9FC, #fff 140px); }
.hyp.web.best { box-shadow: 0 0 0 3px rgba(221, 233, 241, .9), var(--shadow); }
.hyp.web .conf .dots i.on { background: #8FB3CB; }
.hyp.web .conf .lbl { color: var(--ciel-ink); }
.badge.b-web { background: rgba(221, 233, 241, .97); color: var(--ciel-ink); }
.badge.b-web::before { display: none; }
.badge svg { width: 13px; height: 13px; flex: none; }
.tile .frame .badge { white-space: nowrap; }
.src-list .ico.web { background: var(--ciel); color: var(--ciel-ink); }
.web-pages h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.g-suggest { width: 100%; height: 70px; border: 0; margin-top: 12px; }
.ia-line { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--lavande-ink); margin: 0 0 14px; }
.ia-line.web { color: var(--ciel-ink); }
.ia-line svg { width: 18px; height: 18px; }
.loader-card { text-align: center; padding: 56px 20px; }
.loader-card h2 { font-size: 1.6rem; }
.loader-card .brand-mark { margin: 0 auto 18px; width: 56px; height: 56px; }
.spin { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.web-check { background: var(--ciel); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; color: #33536A; }

.badge.b-ia { background: rgba(227, 222, 240, .97); color: var(--lavande-ink); }
.badge.b-ia::before, .badge.b-est::before { display: none; }
.badge.b-est { background: rgba(242, 232, 213, .97); color: var(--sable-ink); }
.hyp.est { border: 1.5px dashed #D9C6A0; background: linear-gradient(180deg, #FCF8F1, #fff 140px); }
.hyp.est .conf .lbl { color: var(--sable-ink); }
.ia-chip { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--lavande-ink); background: var(--lavande); border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.input.ia-filled, .textarea.ia-filled, .select.ia-filled { background: #FAF8FE; border-color: #D6CDEE; }
.ia-banner { margin: 6px 0 24px; }
.ia-check { background: var(--lavande); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; color: #463E63; }

/* ---------- Visuels ---------- */
.vis-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; }
.vis-panel { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 22px; }
.vis-panel h3 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.oeuvre-pick { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); }
.oeuvre-pick:hover { box-shadow: var(--shadow); }
.oeuvre-pick .thumb { width: 64px; height: 80px; border-radius: 10px; overflow: hidden; flex: none; }
.oeuvre-pick .thumb > svg, .oeuvre-pick .thumb > img { width: 100%; height: 100%; object-fit: cover; }
.oeuvre-pick .t { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; font-style: italic; line-height: 1.15; }
.oeuvre-pick .s { font-size: .86rem; color: var(--muted); }
.oeuvre-pick .chg { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.type-list { display: flex; flex-direction: column; gap: 6px; }
.type-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; }
.type-btn:hover { background: var(--card); border-color: var(--line); }
.type-btn[aria-pressed="true"] { background: var(--card); border-color: #CEC6E5; box-shadow: 0 0 0 3px rgba(227, 222, 240, .6); }
.type-btn .ico { width: 38px; height: 38px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.type-btn[aria-pressed="true"] .ico { background: var(--lavande); color: var(--lavande-ink); }
.type-btn .ico svg { width: 20px; height: 20px; }
.type-btn .n { font-weight: 700; line-height: 1.2; }
.type-btn .d { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.lang-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.stage { min-width: 0; background: #EFE9E0; border-radius: 24px; padding: clamp(16px, 3vw, 40px); min-height: 520px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stage-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage-bar .hint { font-size: .9rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.stage-bar .hint svg { width: 18px; height: 18px; }
.print-area { width: 100%; display: flex; justify-content: center; }
.print-area .a4 { max-width: none; flex: none; }
.print-area [contenteditable]:focus { outline: 2px dashed #B9AEDB; outline-offset: 6px; }
.tr-note { width: 100%; }

/* Feuilles (aperçu des visuels) */
.sheet { background: #fff; color: #2A2624; box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 16px 40px rgba(60,40,20,.12); }
.sheet p { margin: 0 0 .9em; }
.v-img { position: relative; overflow: hidden; background: #F3EEE6; }
.v-img > svg, .v-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.v-cartel { width: 360px; max-width: 100%; padding: 30px 30px 22px; font-family: var(--sans); border-radius: 4px; }
.c-artiste { font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.c-titre { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.15; margin: 4px 0 6px; }
.c-date { font-size: .95rem; margin-bottom: 8px; }
.c-tech { font-size: .88rem; color: #5C5550; }
.c-phrase { font-size: .88rem; margin-top: 12px !important; color: #4a4440; }
.c-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 10px; border-top: 1px solid #EAE3D8; font-size: .76rem; color: #8A817A; gap: 10px; }
.c-mention { margin-top: 10px; font-size: .74rem; font-style: italic; color: #8A5527; }

.v-courte { width: 520px; max-width: 100%; padding: 40px 44px; border-radius: 4px; font-size: 1rem; }
.v-courte .v-title { font-size: 2rem; font-style: italic; margin-bottom: 12px; }
.sheet p.mention { font-size: .85rem; font-style: italic; color: #8A5527; }

.a4 { width: 794px; max-width: 100%; min-height: 1123px; padding: 64px 70px; border-radius: 2px; }
.v-head { display: flex; justify-content: space-between; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8A817A; border-bottom: 1px solid #EAE3D8; padding-bottom: 12px; margin-bottom: 36px; }
.v-detaillee .v-title { font-size: 2.6rem; font-style: italic; }
.v-sub { font-size: 1.15rem; color: #5C5550; margin-top: 6px !important; }
.v-row { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin: 26px 0 10px; align-items: start; }
.v-img.small { aspect-ratio: 4/5; }
.fiche { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; font-size: .95rem; }
.fiche dt { color: #8A817A; }
.fiche dd { margin: 0; }
.v-detaillee h3 { font-size: 1.3rem; margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid #F0EAE1; }
.v-sources { padding-left: 20px; font-size: .92rem; }
.v-sources li { margin-bottom: 6px; }
.cote { color: #8A817A; font-size: .85em; }
.statut { padding: 12px 16px; border-radius: 10px; font-size: .92rem; }
.statut.ok { background: #EDF4EE; color: #3A5541; }
.statut.wait { background: #FBEEE2; color: #6C4524; }

.v-catalogue { display: flex; flex-direction: column; }
.cat-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
.v-img.tall { aspect-ratio: 4/5; }
.cat-text { display: flex; flex-direction: column; justify-content: flex-end; }
.cat-num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: #C9BFB2; margin-bottom: auto; }
.cat-artiste { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: #5C5550; }
.cat-titre { font-size: 2.3rem; font-style: italic; margin: 6px 0 14px; }
.cat-meta { font-size: .95rem; line-height: 1.6; }
.cat-mention { font-size: .82rem; font-style: italic; color: #8A5527; }
.cat-body { columns: 2; column-gap: 34px; margin-top: 40px; font-size: .95rem; text-align: justify; hyphens: auto; }
.cat-biblio { break-inside: avoid; font-size: .82rem; border-top: 1px solid #EAE3D8; padding-top: 12px; text-align: left; }
.cat-biblio h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; color: #8A817A; }
.cat-biblio ul { padding-left: 16px; margin: 0; }
.cat-foot { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; font-size: .78rem; color: #8A817A; letter-spacing: .08em; text-transform: uppercase; }

.v-news { width: 620px; max-width: 100%; border-radius: 10px; overflow: hidden; }
.news-objet { background: #F7F4EF; font-size: .88rem; padding: 10px 22px; border-bottom: 1px solid #EAE3D8; color: #5C5550; }
.news-objet span { font-weight: 700; }
.news-head { text-align: center; padding: 30px 20px 24px; background: linear-gradient(180deg, #F4DEDA, #FBF3F1); }
.news-nom { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.news-lettre { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #8E4F48; margin-top: 4px; }
.v-img.wide { aspect-ratio: 16/10; }
.news-body { padding: 30px 44px 10px; }
.news-body h2 { font-size: 2rem; font-style: italic; }
.news-meta { color: #8A817A; font-size: .92rem; margin: 4px 0 20px !important; }
.news-mention { font-size: .82rem; font-style: italic; color: #8A5527; }
.news-cta { text-align: center; margin: 26px 0 30px; }
.news-cta span { display: inline-block; background: #4F4A5E; color: #fff; padding: 14px 28px; border-radius: 99px; font-weight: 700; }
.news-foot { background: #F7F4EF; text-align: center; font-size: .8rem; color: #8A817A; padding: 18px; }

.post-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 340px); gap: 26px; align-items: start; }
.v-post { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.post-img { position: absolute; inset: 0; }
.post-img > svg, .post-img > img { width: 100%; height: 100%; object-fit: cover; }
.post-band { position: absolute; left: 22px; right: 22px; bottom: 22px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); padding: 16px 20px; border-radius: 4px; }
.post-titre { font-family: var(--serif); font-size: 1.7rem; font-style: italic; font-weight: 600; line-height: 1.1; }
.post-art { font-size: .88rem; color: #5C5550; margin-top: 4px; }
.post-logo { position: absolute; top: 18px; left: 22px; font-family: var(--serif); font-size: 1rem; font-weight: 600; background: rgba(255,255,255,.8); padding: 4px 12px; border-radius: 99px; }
.post-caption { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(60,40,20,.08); font-size: .95rem; }
.post-user { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.post-user .dot { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--rose), var(--lavande), var(--ciel), var(--sauge), var(--rose)); }
.post-mention { margin-top: 10px; font-size: .8rem; font-style: italic; color: #8A5527; }

.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; width: 100%; }
.tr-card .tr-lang { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-2); margin: 0 0 8px 4px; }
.tr-card .v-courte { width: 100%; padding: 28px 30px; }
.tr-card .v-courte .v-title { font-size: 1.6rem; }

/* ---------- Base documentaire ---------- */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc { padding: 0; overflow: hidden; }
.doc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 46px 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary:hover { background: #FDFBF8; }
.doc .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.doc .ico svg { width: 22px; height: 22px; }
.doc .t { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.doc .s { font-size: .9rem; color: var(--muted); }
.doc .where { text-align: right; font-size: .88rem; color: var(--ink-2); }
.doc .where strong { display: block; font-size: .95rem; }
.doc .chev { transition: transform .2s; width: 20px; height: 20px; color: var(--muted); }
.doc[open] .chev { transform: rotate(180deg); }
.doc[open] { box-shadow: 0 0 0 3px rgba(221, 233, 241, .8), var(--shadow); }
.doc .body { padding: 0 20px 20px 84px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.doc .body h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.doc .linked { display: flex; flex-direction: column; gap: 8px; }
.doc .linked button { all: unset; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.doc .linked .thumb { width: 38px; height: 46px; border-radius: 6px; overflow: hidden; flex: none; }
.doc .linked .thumb > svg, .doc .linked .thumb > img { width: 100%; height: 100%; object-fit: cover; }
.doc .linked button:hover span { text-decoration: underline; }
.doc.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px #C9BDE6; } 100% { box-shadow: var(--shadow); } }
.t-Archive { background: var(--sable); color: var(--sable-ink); }
.t-Livre { background: var(--rose); color: var(--rose-ink); }
.t-Catalogue { background: var(--lavande); color: var(--lavande-ink); }
.t-Article { background: var(--ciel); color: var(--ciel-ink); }
.t-Photographies { background: var(--sauge); color: var(--sauge-ink); }
.t-Audio { background: var(--abricot); color: var(--abricot-ink); }

/* ---------- Paramètres ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs button { all: unset; cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: #A99BD6; }
.set-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.set-side { display: flex; flex-direction: column; gap: 4px; }
.placeholders { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.placeholders button { border: 1px solid var(--line-2); background: var(--paper-2); border-radius: 8px; padding: 3px 10px; font-size: .84rem; cursor: pointer; font-family: ui-monospace, Menlo, monospace; }
.placeholders button:hover { background: var(--lavande); }
.mini-preview { transform-origin: top left; }
.set-preview { background: #EFE9E0; border-radius: 18px; padding: 20px; display: flex; justify-content: center; overflow: hidden; }
.save-bar[hidden] { display: none; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; z-index: 5; }
.save-bar .card { display: flex; gap: 12px; align-items: center; padding: 10px 10px 10px 20px; border-radius: 999px; }

/* ---------- Clients (à venir) ---------- */

/* ---------- Divers ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600; z-index: 60;
  transition: opacity .25s, transform .25s; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 30px; }
.picker .tile .cap .t { font-size: 1.05rem; }

/* ---------- Mobile / tablette ---------- */
@media (max-width: 1100px) {
  .home-cols { grid-template-columns: 1fr; }
  .vis-layout { grid-template-columns: 1fr; }
  .vis-panel { position: static; }
  .post-wrap { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed; z-index: 40; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
    background: rgba(243, 238, 230, .96); backdrop-filter: blur(8px);
  }
  .brand, .side-foot, .nav .sep, .soon, .nav span.disabled { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
  .nav a, .nav span.disabled { flex-direction: column; gap: 2px; min-height: 0; padding: 6px 4px; font-size: .7rem; flex: 1; text-align: center; }
  .nav a.active { box-shadow: none; background: transparent; }
  .main { padding-top: 28px; padding-bottom: 110px; }
  .page-head h1, .hello h1 { font-size: 2.1rem; }
  .big-actions, .ident-grid, .detail, .hyp-cols, .grid-2 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .detail { padding: 22px; gap: 22px; }
  .detail .frame { position: static; }
  .doc summary { grid-template-columns: 40px 1fr; }
  .doc .where { grid-column: 2; text-align: left; }
  .doc .body { padding-left: 20px; grid-template-columns: 1fr; }
  .filter-row .lbl { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .modal { padding: 0; }
  .dialog { border-radius: 0; max-height: 100vh; height: 100vh; }
}

/* ---------- Impression : seul le visuel est imprimé ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .side, .page-head, .vis-panel, .stage-bar, .tr-note, .toast, .modal { display: none !important; }
  .main { padding: 0; max-width: none; }
  .vis-layout { display: block; }
  .stage { background: none; padding: 0; min-height: 0; }
  .sheet { box-shadow: none; }
  .a4 { width: 100%; min-height: 0; padding: 0; zoom: 1 !important; }
  .print-fiche .sheet { box-shadow: none; }
  body.printing-modal .main { display: none; }
  body.printing-modal .modal { display: block !important; position: static; background: none; padding: 0; }
  body.printing-modal .dialog { box-shadow: none; max-height: none; overflow: visible; }
  body.printing-modal .close, body.printing-modal .no-print { display: none !important; }
}
