/* Zeta mail : lever de soleil à l'encre de Chine, cartes de papier arrondies. Mode clair. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/garamond.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f4efe6; --card: rgba(255, 253, 249, .94); --card-solid: #fffdf9; --wash: #f3eee5; --hover: #efe9de;
  --ink: #1f1d1b; --ink-2: #45413c; --muted: #827a70; --line: #e6ddcf; --line-2: #d6cbbb;
  --sun: #c8402f; --sun-soft: #f8e3dc;
  --ok: #2f6b47; --ok-soft: #e4efe5; --warn: #8a5a12; --warn-soft: #f8edd6;
  --logo-dots: #9c958c;
  --shadow: 0 1px 2px rgba(31, 29, 27, .05), 0 18px 50px -18px rgba(31, 29, 27, .28);
  --serif: "EB Garamond", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 12px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.inline { display: inline; margin: 0; }
.right { text-align: right; }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

/* ---------- décor : lever de soleil à l'encre */
.scene { position: fixed; inset: 0; z-index: -1; background: var(--paper) url("sunrise.webp?v=2") center 70% / cover no-repeat; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244, 239, 230, .15), rgba(244, 239, 230, 0) 40%, rgba(244, 239, 230, .35)); }

/* ---------- marque */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 36px; height: 36px; color: var(--ink); }
.wm { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.wm em { font-style: italic; font-weight: 400; color: var(--muted); margin-left: 4px; }

/* ---------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
       border: 1px solid var(--line-2); background: var(--card-solid); color: var(--ink); font: 500 14px var(--sans); cursor: pointer;
       text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fffdf9; padding: 0 26px; }
.btn.primary:hover { background: #3a3632; }
.btn.danger { color: var(--sun); }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: var(--sun-soft); }
.btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.big { height: 48px; padding: 0 28px; font-size: 15px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.copied { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); }
.link.small { font-size: 13px; }

/* ---------- en-tête de l'application */
.topbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 24px; max-width: 980px; margin: 0 auto; padding: 18px 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; margin-left: auto; background: rgba(255, 253, 249, .75); border: 1px solid var(--line); border-radius: 999px;
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; }
.tabs a:hover { background: var(--hover); }
.tabs a.on { background: var(--ink); color: #fffdf9; }
.tabs b { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: var(--sun); color: #fff; font-size: 11px; }
.account { position: relative; }
.account summary { list-style: none; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wash); color: var(--ink-2);
          font: 600 15px var(--serif); text-transform: uppercase; flex: none; }
.avatar.me { background: var(--ink); color: #fffdf9; }
.menu { position: absolute; right: 0; top: 46px; width: 260px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; z-index: 50; }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-head span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; color: var(--ink); background: none; border: 0; font: 14px var(--sans); cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--hover); }
.menu form { margin: 0; }

/* ---------- scène et cartes */
.stage { max-width: 860px; margin: 0 auto; padding: 8px 20px 120px; display: grid; gap: 28px; }
.card { background: var(--card); border: 1px solid rgba(214, 203, 187, .7); border-radius: var(--r); box-shadow: var(--shadow);
        backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); padding: 28px 32px; }
.back { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.toast { background: var(--ink); color: #fffdf9; border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow); }
.toast.in { margin: -8px 0 20px; background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.empty { text-align: center; padding: 56px 32px; display: grid; justify-items: center; gap: 8px; }
.empty h2 { font-size: 28px; }
.empty p { color: var(--muted); }
.logo-empty { width: 110px; height: 110px; color: var(--ink); }

/* mail d'origine */
.orig-head { display: flex; align-items: center; gap: 12px; }
.who { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.who strong { font-weight: 600; }
.who span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject { font-size: 30px; margin: 18px 0 12px; }
.orig.earlier { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--line-2); opacity: .8; }
.orig.earlier .text { margin-top: 10px; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: 15.5px; line-height: 1.7; }
.text .inline-img { max-width: 100%; height: auto; vertical-align: middle; margin: 2px; }
.text .img-link { display: inline-block; text-decoration: none; }
.text .lnk.arrow { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 2px; border-radius: 4px; background: var(--wash); color: var(--muted); font-size: 11px; text-decoration: none; vertical-align: 1px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.thumbs a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumbs img { display: block; height: 130px; width: auto; max-width: 280px; object-fit: cover; }
.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.file { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 12px 8px 8px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
a.file:hover { border-color: var(--line-2); background: var(--hover); }
.file.signed { border-color: var(--ok); background: var(--ok-soft); }
.file .ext { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sun-soft); color: var(--sun); font-size: 10.5px; font-weight: 700; text-transform: uppercase; flex: none; }
.file.signed .ext { background: #fff; color: var(--ok); }
.f-name { display: grid; min-width: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.f-name small { color: var(--muted); font-weight: 400; font-size: 12px; }
.f-name small.ok-txt { color: var(--ok); font-weight: 600; }

/* trait de séparation */
.divider { display: flex; align-items: center; gap: 14px; margin: 30px -32px 22px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line-2); }
.divider::before { width: 32px; } .divider::after { flex: 1; }
.note { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); margin: -6px 0 16px; }
.notice { padding: 10px 14px; border-radius: 12px; background: var(--wash); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

/* réponse */
.fields { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card-solid); }
.fields label { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.fields label:last-child { border-bottom: 0; }
.fields span { width: 46px; flex: none; color: var(--muted); font-size: 13px; }
.fields input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; font: 15px var(--sans); color: var(--ink); outline: none; }
.fields input:disabled { color: var(--ink-2); }
.body { display: block; width: 100%; margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-solid);
        font: 15.5px/1.7 var(--sans); color: var(--ink); resize: vertical; min-height: 140px; outline: none; }
.body:focus, .fields:focus-within, .instruct textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(31, 29, 27, .06); }
.reply .files { margin-top: 14px; }
.lock { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.lock::before { content: "Pour envoyer : "; font-weight: 600; }
.instruct { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.instruct textarea { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px; font: 14px var(--sans); color: var(--ink); background: var(--card-solid); resize: vertical; outline: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px -32px -28px; padding: 18px 32px; border-top: 1px solid var(--line); background: rgba(243, 238, 229, .6); border-radius: 0 0 var(--r) var(--r); }
.card.closed { opacity: .92; }

/* ---------- pages (agents, signature) */
.page { display: grid; gap: 20px; }
.page-title { font-size: 40px; margin: 6px 0 0; }
.page .lead { color: var(--ink-2); font-size: 16px; margin: 0; }
.panel { background: var(--card); border: 1px solid rgba(214, 203, 187, .7); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 28px;
         backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { flex: 1; font-size: 22px; }
.panel h3 { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 8px; }
.step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: #fff; font: 600 15px var(--serif); }
.key-form { display: flex; gap: 10px; flex-wrap: wrap; }
.key-form input { flex: 1 1 240px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font: 14px var(--sans); color: var(--ink); background: var(--card-solid); outline: none; }
.prompt { display: block; width: 100%; min-height: 320px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); color: var(--ink);
          font: 12.5px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; resize: vertical; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.seg { display: inline-flex; padding: 4px; background: var(--wash); border-radius: 999px; margin-bottom: 14px; }
.seg button { height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fffdf9; }
.pad { display: block; width: 100%; height: auto; aspect-ratio: 900 / 320; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; touch-action: none; cursor: crosshair;
       background-image: linear-gradient(transparent calc(76% - 1px), #e6ddcf calc(76% - 1px), #e6ddcf 76%, transparent 76%); }
.pad-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.drop { display: grid; place-items: center; min-height: 120px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--muted); cursor: pointer; text-align: center; padding: 16px; }
.sig-preview { min-height: 100px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; color: var(--muted); }
.sig-preview img, .sig-current { max-height: 110px; max-width: 100%; }
.form-bar { display: flex; justify-content: flex-end; margin-top: 18px; }
.pages { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.pages a { min-width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card-solid); color: var(--ink); text-decoration: none; }
.pages a.on { background: var(--ink); border-color: var(--ink); color: #fffdf9; }
.sheet { position: relative; width: 100%; max-width: 620px; margin: 8px auto; background: #fff; cursor: crosshair; touch-action: manipulation; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; }
.sheet img:first-child { width: 100%; height: 100%; display: block; user-select: none; }
.sig { position: absolute; pointer-events: none; outline: 1.5px dashed var(--sun); outline-offset: 2px; }
.sign-tools { max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.size { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.size input { flex: 1; accent-color: var(--ink); }

/* ============ SITE PUBLIC ============ */
.pub-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.pub-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pub-top .pub-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.pub-top nav { display: flex; align-items: center; gap: 26px; }
.pub-top nav a:not(.btn) { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.pub-main { padding: 110px 20px 40px; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: start; padding: 150px 0 80px; }
.hero .scene { position: absolute; }
.hero-in { text-align: center; }
.hero-copy { max-width: 760px; margin: 0 auto; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); line-height: 1.02; font-weight: 500; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--sun); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 600px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.demo { max-width: 680px; margin: 64px auto 0; text-align: left; }
.demo .divider { margin-left: -32px; margin-right: -32px; }
.demo .fields input { pointer-events: none; }
.pub-section { padding: 96px 0; background: var(--paper); }
.pub-section.alt { background: #efe8dc; }
.pub-section h2 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.pub-section .lead { font-size: 17px; color: var(--ink-2); max-width: 680px; margin-bottom: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.feat svg { width: 30px; height: 30px; color: var(--sun); margin-bottom: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3, .sec h3, .steps h3 { font-size: 22px; margin-bottom: 8px; }
.feat p, .sec p, .steps p { color: var(--ink-2); margin: 0; }
.grid3.sec { gap: 20px; }
.sec > div { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.steps b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: #fff; font: 600 18px var(--serif); margin-bottom: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: -18px 0 28px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(-45deg); }
.code { margin: 0; padding: 24px 26px; background: var(--ink); color: #efe8dc; border-radius: var(--r); font: 13px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.code .c { color: #a39a8e; }
.cta-band { position: relative; text-align: center; padding: 120px 0; overflow: hidden; }
.cta-band .scene { position: absolute; }
.cta-band h2 { max-width: 640px; margin: 0 auto 28px; }
.logo-big { width: 110px; height: 110px; color: var(--ink); margin-bottom: 14px; }
.pub-foot { background: var(--paper); border-top: 1px solid var(--line); padding: 26px 0 34px; }
.pub-foot .pub-in { display: flex; justify-content: space-between; align-items: center; }
.pub-foot .wm { font-size: 18px; }
.auth { max-width: 420px; margin: 6vh auto; text-align: center; background: var(--card); border: 1px solid rgba(214, 203, 187, .7); border-radius: 28px; padding: 40px 34px; box-shadow: var(--shadow);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.auth h1 { font-size: 34px; margin: 4px 0 6px; }
.auth form { margin: 26px 0 14px; }
.logo-auth { width: 96px; height: 96px; color: var(--ink); }
.btn.google { width: 100%; height: 48px; font-weight: 600; }
.btn.google .g { width: 18px; height: 18px; stroke: none; }

/* ============ MOBILE ============ */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; }
  .wm { font-size: 21px; }
  .tabs { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .tabs a { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; }
  .account { margin-left: auto; }
  .stage { padding: 4px 10px 80px; gap: 18px; }
  .card { padding: 20px 18px; border-radius: 18px; }
  .divider { margin: 24px -18px 18px; } .divider::before { width: 18px; }
  .actions { margin: 20px -18px -20px; padding: 14px 18px; border-radius: 0 0 18px 18px; }
  .actions .btn.primary { flex: 1 1 100%; }
  .actions .spacer { display: none; }
  .subject { font-size: 25px; }
  .instruct { flex-direction: column; } .instruct .btn { width: 100%; }
  .panel { padding: 20px 18px; }
  .page-title { font-size: 32px; }
  .hide-sm { display: none !important; }
  .grid3, .steps, .split { grid-template-columns: 1fr; }
  .pub-section { padding: 64px 0; }
  .pub-in { padding: 0 18px; }
  .hero { padding-top: 120px; }
  .cta .btn { flex: 1 1 100%; }
  .demo .divider { margin-left: -18px; margin-right: -18px; }
}

/* ---------- version épurée */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; background: rgba(255, 253, 249, .8);
        border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; text-decoration: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill b { color: var(--sun); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.folder-title { font-size: 34px; margin: 4px 4px -6px; }
.orig .text { margin-top: 16px; }
hr.divider { display: block; height: 1px; border: 0; background: var(--line-2); margin: 28px -32px 24px; }
.reply-to { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.reply-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.7; }
.note { font-size: 15px; margin: 0 0 12px; }
.edit { margin-top: 4px; }
.edit .body { margin-top: 0; }
.ask { display: grid; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.ask input, .more input { height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; font: 14px var(--sans); color: var(--ink); background: var(--card-solid); outline: none; }
.more { margin-top: 14px; }
.more summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.more label { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.edit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.file .f-name small { color: var(--sun); font-weight: 600; }
@media (max-width: 760px) { hr.divider { margin: 22px -18px 20px; } .pill { font-size: 13px; padding: 0 12px; } }
.page > h1 { font-size: 40px; margin: 4px 0 0; } .page > .lead, .page > p.muted { margin: 0; }

/* ================= VERRE (façon Apple) ================= */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.scene { background: #2b2c4f url("dawn.webp") center 62% / cover no-repeat; }
.scene::after { background: radial-gradient(120% 80% at 50% 0%, rgba(20, 22, 50, .25), transparent 60%); }
.app, .public .hero, .public .cta-band { color: var(--ink); }

.glass, .card, .panel, .auth, .pill {
  --g-bg: rgba(255, 255, 255, .58);
  position: relative; isolation: isolate;
  background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .58));
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35), inset 1px 0 0 rgba(255, 255, 255, .45),
              inset -1px 0 0 rgba(255, 255, 255, .25), 0 1px 1px rgba(20, 16, 40, .06), 0 28px 60px -22px rgba(20, 16, 40, .55);
}
html.lens .card, html.lens .panel, html.lens .auth { backdrop-filter: url(#lens) blur(24px) saturate(1.8); }
/* reflet spéculaire : lumière rasante en haut à gauche */
.card::before, .panel::before, .auth::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 60% at 12% -10%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 55%),
              radial-gradient(80% 50% at 100% 110%, rgba(255, 214, 180, .35), rgba(255, 255, 255, 0) 60%);
}
.card::after, .panel::after, .auth::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px; background: linear-gradient(140deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .15) 35%, rgba(255, 255, 255, .05) 60%, rgba(255, 255, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card { border-radius: 28px; }

/* éléments internes : verre plus léger */
.fields, .body, .ask input, .more input, .instruct textarea, .key-form input, .prompt, .drop, .seg { background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .7); }
.file { background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .75); box-shadow: 0 1px 2px rgba(20, 16, 40, .06); }
.file .ext { background: rgba(200, 64, 47, .12); }
.avatar { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
.btn { background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(20, 16, 40, .08);
       -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn:hover { background: rgba(255, 255, 255, .85); }
.btn.primary { background: linear-gradient(180deg, #2c2a33, #17161c); border-color: #17161c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -6px rgba(20, 16, 40, .6); }
.btn.quiet { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.actions { background: rgba(255, 255, 255, .28); border-top-color: rgba(255, 255, 255, .6); }
hr.divider { background: linear-gradient(90deg, rgba(31, 29, 27, 0), rgba(31, 29, 27, .18) 12%, rgba(31, 29, 27, .18) 88%, rgba(31, 29, 27, 0)); }
.toast.in { background: rgba(228, 239, 229, .8); }
.empty h2, .empty p { color: var(--ink); }

/* en-tête clair sur le ciel */
.topbar .brand, .topbar .brand .mark { color: #fffaf2; }
.topbar .wm em { color: rgba(255, 250, 242, .7); }
.topbar { --logo-dots: rgba(255, 250, 242, .65); }
.pill { color: var(--ink); }
.avatar.me { background: rgba(255, 255, 255, .25); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.folder-title, .back { color: #fffaf2; }

/* site public : accueil sur le ciel */
.public .pub-top { --logo-dots: rgba(255, 250, 242, .65); }
.public .pub-top .brand, .public .pub-top .brand .mark, .public .pub-top nav a:not(.btn) { color: #fffaf2; }
.public .pub-top .wm em { color: rgba(255, 250, 242, .7); }
.hero h1, .hero .lead, .cta-band h2 { color: #fffaf2; text-shadow: 0 2px 30px rgba(20, 16, 40, .35); }
.hero h1 em { color: #ffd2a6; }
.hero .kicker { color: #ffd2a6; }
.cta-band { --logo-dots: rgba(255, 250, 242, .6); }
.cta-band .logo-big { color: #fffaf2; }
.hero .btn:not(.primary), .cta-band .btn:not(.primary) { color: var(--ink); }
.public .auth h1, .public .auth p { color: var(--ink); }
.public > .scene { display: block; }
.menu { background: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); }
