:root { --cream: #f7f1e7; --cream-dark: #eadcc9; --paper: #fffaf2; --ink: #30231d; --muted: #806d60; --muted-note: #6b5647; --terracotta: #bd6148; --terracotta-text: #8f4130; --sage: #8b9a76; --line: #ddcdbc; --shadow: 0 22px 60px rgba(68, 42, 24, .13); --urgent: #7a2a1a; --urgent-bg: #f6dcd5; --normal: #6b4e12; --normal-bg: #f3e6c3; --low: #2f5c34; --low-bg: #e0ead9; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); font-family: "Manrope", Arial, sans-serif; font-size: 1rem; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.gm-watermark { position: fixed; right: 18px; bottom: 18px; z-index: 80; margin: 0; color: rgba(48, 35, 29, .38); font-size: .55rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); pointer-events: none; }
.admin-shell { min-height: 100vh; display: flex; }
.admin-sidebar { width: 240px; flex: none; position: sticky; top: 0; height: 100vh; padding: 28px 20px; display: flex; flex-direction: column; gap: 40px; background: var(--paper); border-right: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: .9; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: "DM Serif Display", Georgia, serif; font-size: 1.3rem; font-style: italic; }
.brand strong, .brand em { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 1.05rem; font-weight: 400; font-style: normal; }
.brand em { color: var(--terracotta); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { padding: 11px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: .875rem; font-weight: 600; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.nav-item:hover { background: var(--cream-dark); color: var(--ink); }
.nav-item.is-active { background: var(--ink); color: var(--paper); }
.back-link { margin-top: auto; color: var(--muted); font-size: .8rem; font-weight: 600; transition: color .2s ease; }
.back-link:hover { color: var(--terracotta-text); }
.admin-main { flex: 1; min-width: 0; padding: 40px min(60px, 5vw); }
.admin-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.eyebrow { margin: 0 0 10px; color: var(--terracotta-text); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: 2.4rem; font-weight: 400; }
h2 { margin: 0 0 20px; font-family: "DM Serif Display", Georgia, serif; font-size: 1.6rem; font-weight: 400; }
.fictive-banner { max-width: 340px; margin: 4px 0 0; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--muted-note); font-size: .8rem; line-height: 1.5; }
.fictive-banner span, .ai-disclaimer span { margin-right: 4px; color: var(--terracotta-text); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
.stat-card { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.stat-card p { margin: 0 0 8px; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; font-weight: 400; }
.panel-block { margin-top: 8px; }
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card { display: grid; grid-template-columns: 100px 1fr auto 90px 130px; align-items: center; gap: 16px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: .875rem; }
.order-card .order-id { color: var(--muted); font-size: .8rem; font-weight: 700; }
.order-card .order-client { font-weight: 700; }
.order-card .order-items { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
.order-card .order-slot { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.order-card .order-total { font-weight: 700; white-space: nowrap; text-align: right; }
.order-card .status-badge { justify-self: end; }
.status-badge, .priority-badge { padding: 5px 11px; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.status-badge[data-status="Nouvelle"] { background: var(--normal-bg); color: var(--normal); }
.status-badge[data-status="En préparation"] { background: #ddeaf5; color: #3a6a92; }
.status-badge[data-status="Prête"] { background: var(--low-bg); color: var(--low); }
.status-badge[data-status="Récupérée"] { background: var(--cream-dark); color: var(--muted-note); }
.ai-disclaimer { max-width: 680px; margin: -8px 0 24px; color: var(--muted-note); font-size: .85rem; line-height: 1.6; }
.ai-summary { margin: 0 0 18px; padding: 14px 18px; background: var(--ink); border-radius: 12px; color: var(--paper); font-size: .9rem; line-height: 1.5; }
.email-list { display: flex; flex-direction: column; gap: 12px; }
.email-card { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.email-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.email-head h3 { margin: 0; font-size: .95rem; font-weight: 700; }
.email-sender { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
.priority-badge[data-priority="Urgent"] { background: var(--urgent-bg); color: var(--urgent); }
.priority-badge[data-priority="À traiter"] { background: var(--normal-bg); color: var(--normal); }
.priority-badge[data-priority="Faible"] { background: var(--low-bg); color: var(--low); }
.email-snippet { margin: 10px 0 0; color: var(--muted-note); font-size: .875rem; line-height: 1.6; }
.email-card details { margin-top: 12px; }
.email-card summary { cursor: pointer; color: var(--terracotta-text); font-size: .8rem; font-weight: 700; }
.suggested-reply { margin: 10px 0 0; padding: 12px 14px; background: var(--cream); border-radius: 10px; color: var(--ink); font-size: .875rem; line-height: 1.6; white-space: pre-line; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .order-card { grid-template-columns: 1fr auto; grid-template-areas: "id status" "info info" "slot total"; row-gap: 8px; } .order-card .order-id { grid-area: id; } .order-card .status-badge { grid-area: status; } .order-card .order-info { grid-area: info; } .order-card .order-slot { grid-area: slot; } .order-card .order-total { grid-area: total; } }
@media (max-width: 650px) { .admin-shell { flex-direction: column; } .admin-sidebar { width: auto; position: static; height: auto; padding: 18px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; } .admin-nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; } .nav-item { padding: 9px 11px; font-size: .8rem; } .back-link { margin: 0 0 0 auto; } .admin-main { padding: 28px 16px; } .admin-topbar { margin-bottom: 28px; } h1 { font-size: 2rem; } .stat-grid { gap: 12px; margin-bottom: 32px; } .stat-card { padding: 16px; } .stat-card strong { font-size: 1.6rem; } .email-head { align-items: flex-start; } .gm-watermark { right: 5px; bottom: 10px; font-size: .46rem; } }
