:root {
    --ink: #171817;
    --muted: #6e716d;
    --line: #dedfd9;
    --surface: #f4f4ef;
    --paper: #fbfbf8;
    --night: #111211;
    --night-2: #1c1e1b;
    --accent: #d99a2b;
    --accent-dark: #a56d0d;
    --danger: #c63e35;
    --success: #2d8a5a;
    --radius: 3px;
    --shadow: 0 18px 55px rgba(18, 20, 17, .1);
    --sidebar: 254px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 5vw, 5.7rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 3.1rem); }
h3 { font-size: 1.25rem; }
small { color: var(--muted); }

.brand { display: inline-flex; align-items: baseline; gap: 10px; letter-spacing: -.04em; }
.brand > span, .brand-mark { font-weight: 900; font-size: 1.75rem; line-height: 1; letter-spacing: -.08em; }
.brand small { color: currentColor; font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .58; }
.brand-logo { display: block; width: auto; max-width: min(44vw, 170px); max-height: 68px; object-fit: contain; }
.brand-image { align-items: center; }
.brand-silk { align-items: center; line-height: 1; letter-spacing: 0; }
.admin-brand.brand-image { padding-top: 14px; padding-bottom: 14px; }
.admin-brand .brand-logo { max-width: 178px; max-height: 54px; }
.app-topbar .brand-logo { max-width: 170px; max-height: 54px; }
.auth-visual .brand-logo { max-width: 230px; max-height: 112px; }
.footer-logo { display: block; width: auto; max-width: 230px; max-height: 130px; object-fit: contain; margin-bottom: 14px; }
.brand.light { color: #fff; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #e7b55d; margin: 0 0 14px; font-size: .67rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { width: 25px; height: 1px; background: currentColor; content: ""; }
.eyebrow.dark { color: var(--accent-dark); }
.button { border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #17140d; display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 0 20px; font-size: .77rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { background: #e4aa42; border-color: #e4aa42; transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; filter: grayscale(.75); opacity: .5; transform: none; }
.button-small { min-height: 37px; padding: 0 15px; font-size: .69rem; }
.button-secondary { background: transparent; border-color: #b8bbb3; color: var(--ink); }
.button-secondary:hover { background: #fff; border-color: var(--ink); }
.button-danger { background: transparent; border-color: #d5aaa5; color: var(--danger); }
.button-danger:hover { background: #fff5f3; border-color: var(--danger); }
.full { width: 100%; }
.inline-form { display: inline-flex; margin: 0; }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; }
.text-danger { border: 0; background: transparent; color: var(--danger); padding: 14px 0 0; font-size: .82rem; }
.muted { color: var(--muted); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 82px; padding: 0 clamp(24px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-nav > a:not(.button), .site-nav .text-button { opacity: .78; transition: opacity .2s; }
.site-nav > a:hover, .site-nav .text-button:hover { opacity: 1; }
.nav-toggle { display: none; }
.hero { position: relative; height: min(840px, 100svh); min-height: 630px; color: #fff; background: #101110 url('../images/hero-event-warehouse.png') center/cover no-repeat; overflow: hidden; }
.hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 150px; background: linear-gradient(transparent, rgba(0,0,0,.32)); content: ""; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,5,.88) 0%, rgba(5,6,5,.42) 48%, rgba(5,6,5,.06) 78%); }
.hero-logo-motif { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 790px; margin-left: clamp(24px, 8vw, 150px); padding-top: clamp(165px, 26vh, 250px); }
.hero h1 { max-width: 770px; margin: 0 0 24px; font-size: clamp(3.5rem, 7.2vw, 7.3rem); font-weight: 750; letter-spacing: -.07em; }
.hero-content > p:not(.eyebrow) { max-width: 480px; margin-bottom: 35px; color: rgba(255,255,255,.73); font-size: 1.08rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease var(--delay, 0ms), transform .65s ease var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.availability-panel { position: relative; z-index: 5; width: min(1470px, calc(100% - 48px)); margin: -58px auto 0; padding: clamp(28px, 4vw, 52px); background: var(--paper); box-shadow: var(--shadow); }
.section-intro { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-intro h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); }
.search-form { display: grid; grid-template-columns: 1.08fr 1.08fr .95fr .95fr 1.25fr auto; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.field label { color: #50534f; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field label small { font-weight: 500; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; border: 1px solid #cccec8; border-radius: var(--radius); outline: 0; background: #fff; color: var(--ink); padding: 10px 12px; transition: border-color .18s, box-shadow .18s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(217,154,43,.12); }
.field > small { margin-top: -2px; font-size: .72rem; }
.search-submit { min-height: 45px; white-space: nowrap; }

.catalogue { max-width: 1470px; margin: 0 auto; padding: 110px 24px 130px; }
.catalogue-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.catalogue-heading h2 { margin-bottom: 0; }
.catalogue-heading > p { max-width: 440px; margin: 0 0 6px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
.product-card { min-width: 0; background: var(--paper); box-shadow: 0 6px 20px rgba(18,20,17,.06); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { position: relative; height: 320px; background-position: center; background-size: cover; overflow: hidden; }
.product-media::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 45%, rgba(0,0,0,.45)); content: ""; }
.availability-badge, .product-category { position: absolute; z-index: 2; top: 18px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.28); background: rgba(17,18,17,.76); backdrop-filter: blur(8px); color: #fff; padding: 7px 10px; font-size: .63rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.availability-badge { left: 18px; }
.availability-badge i { width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #5ad58f; box-shadow: 0 0 0 3px rgba(90,213,143,.15); }
.product-category { right: 18px; }
.product-body { padding: 26px 28px 24px; }
.product-title { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.product-title h3 { margin: 0; font-size: 1.4rem; }
.product-title > strong { white-space: nowrap; color: var(--accent-dark); }
.product-body > p { color: var(--muted); margin: 12px 0 18px; }
.variant-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.variant-list span { background: var(--paper); padding: 10px 12px; font-size: .78rem; }
.variant-list small { display: block; margin-top: 2px; color: var(--success); font-size: .65rem; }
.stock-line span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; background: #e6f3eb; color: var(--success); font-weight: 800; }
.product-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-actions a { color: var(--accent-dark); font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.product-actions a span { margin-left: 12px; }
.empty-state { min-height: 330px; display: grid; place-items: center; align-content: center; border: 1px dashed #bfc1bb; text-align: center; }
.empty-state > span { color: var(--accent); font-size: 3rem; font-weight: 900; }
.empty-state h3, .empty-state h2 { margin: 3px 0 8px; }
.empty-state p { color: var(--muted); }
.process-strip { padding: 110px max(24px, calc((100% - 1422px) / 2)); background: var(--night); color: #fff; }
.process-strip h2 { margin-bottom: 70px; }
.process-strip ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-top: 1px solid #3a3b38; list-style: none; }
.process-strip li { padding: 28px 35px 0 0; border-right: 1px solid #3a3b38; }
.process-strip li + li { padding-left: 35px; }
.process-strip li:last-child { border: 0; }
.process-strip li > span { display: block; margin-bottom: 54px; color: var(--accent); font-size: .72rem; }
.process-strip strong { font-size: 1.12rem; }
.process-strip li p { max-width: 300px; margin: 9px 0 0; color: #999c96; }
.site-footer { min-height: 260px; padding: 62px max(24px, calc((100% - 1422px) / 2)); display: grid; grid-template-columns: 1fr 1fr auto; gap: 50px; align-items: start; background: #0b0c0b; color: #fff; }
.site-footer p { color: #878a84; }
.site-footer > div:nth-child(2) { display: flex; flex-direction: column; gap: 8px; }
.site-footer strong { margin-bottom: 5px; color: #777a74; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-meta { align-self: end; font-size: .72rem; }

.auth-page { min-height: 100svh; display: grid; grid-template-columns: minmax(380px, 44%) 1fr; background: var(--paper); }
.auth-visual { display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(32px, 5vw, 80px) 70px; color: #fff; background: linear-gradient(0deg, rgba(8,9,8,.6), rgba(8,9,8,.2)), url('../images/hero-event-warehouse.png') center/cover; }
.auth-visual h1 { max-width: 600px; margin-bottom: 0; font-size: clamp(2.7rem, 5vw, 5.5rem); }
.register-visual { background-position: 60% center; }
.auth-form-wrap { display: grid; place-items: center; padding: 60px 30px; }
.auth-form { width: min(440px, 100%); }
.auth-form.wide { width: min(610px, 100%); }
.auth-form h2 { margin-bottom: 12px; font-size: 2.3rem; }
.auth-form > p:not(.eyebrow):not(.auth-switch) { color: var(--muted); margin-bottom: 30px; }
.auth-form form { display: grid; gap: 18px; }
.auth-switch { margin: 25px 0 0; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--accent-dark); font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.span-full { grid-column: 1 / -1; }
.form-error { margin-bottom: 22px; border-left: 3px solid var(--danger); background: #fff0ee; color: #842820; padding: 13px 16px; }
.form-error ul { margin: 0; padding-left: 18px; }

.reserve-page { padding: 125px 24px 110px; background: var(--surface); }
.reserve-heading, .content-width { width: min(1280px, 100%); margin: 0 auto 45px; }
.reserve-heading > a, .back-link { display: inline-block; margin-bottom: 36px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.reserve-heading h1 { margin: 0 0 14px; font-size: clamp(2.7rem,5vw,5.2rem); }
.reserve-heading > p:last-child { max-width: 670px; color: var(--muted); font-size: 1rem; }
.reserve-layout { width: min(1280px,100%); margin: auto; display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 30px; align-items: start; }
.reserve-main { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.form-section { display: grid; grid-template-columns: 44px 220px 1fr; gap: 22px; background: var(--paper); padding: 34px; }
.form-section[hidden] { display: none; }
.flow-section:not([hidden]) { animation: flow-reveal .24s ease-out; }
@keyframes flow-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-section-number { color: var(--accent-dark); font-size: .74rem; font-weight: 800; }
.form-section h2 { margin: 0 0 7px; font-size: 1.35rem; }
.form-section > div:nth-child(2) > p { margin: 0; color: var(--muted); font-size: .8rem; }
.option-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.option-picker > .muted { grid-column: 1 / -1; margin: 0; }
.standard-configuration { display: grid; border-left: 2px solid var(--accent); padding: 9px 0 9px 16px; }
.standard-configuration small { font-size: .62rem; text-transform: uppercase; }
.standard-configuration strong { margin-top: 2px; }
.option-check { position: relative; display: flex; gap: 10px; align-items: start; min-height: 72px; border: 1px solid var(--line); padding: 13px; cursor: pointer; }
.option-check:has(input:checked) { border-color: var(--accent); background: #fff9eb; }
.option-check input { margin-top: 4px; accent-color: var(--accent-dark); }
.option-check strong { display: block; font-size: .82rem; }
.option-check small { display: block; }
.order-summary { position: sticky; top: 24px; background: var(--paper); padding: 30px; box-shadow: var(--shadow); }
.order-summary h3 { margin-bottom: 25px; }
.order-summary dl, .detail-sidebar dl, .summary-dl { margin: 0 0 25px; }
.order-summary dl div, .detail-sidebar dl div, .summary-dl div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.order-summary dt, .detail-sidebar dt, .summary-dl dt { color: var(--muted); }
.order-summary dd, .detail-sidebar dd, .summary-dl dd { margin: 0; font-weight: 700; }
.order-summary .summary-total { margin-top: 6px; border-top: 1px solid var(--ink); border-bottom: 0; padding: 18px 0 8px; font-size: 1.08rem; }
.order-summary > p { color: var(--muted); font-size: .72rem; }
.availability-state { display: flex; align-items: center; gap: 9px; margin: 18px 0 14px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); }
.availability-state span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #a4a6a1; }
.availability-state strong { font-size: .7rem; }
.availability-state.available { color: var(--success); }
.availability-state.available span { background: var(--success); box-shadow: 0 0 0 3px #dcefe4; }
.availability-state.unavailable { color: var(--danger); }
.availability-state.unavailable span { background: var(--danger); box-shadow: 0 0 0 3px #f8e1de; }
.summary-cart-link { display: block; margin-top: 14px; color: var(--accent-dark); font-size: .72rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.cart-nav { display: inline-flex; align-items: center; gap: 7px; }
.cart-nav span { min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #17140d; font-size: .62rem; }

/* Demande multi-matériel */
body:has(.cart-page) .site-header { background: var(--night); }
.cart-page { min-height: 75vh; padding: 145px max(24px, calc((100% - 1422px) / 2)) 120px; }
.cart-heading { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 50px; align-items: end; margin-bottom: 48px; }
.cart-heading > div > a { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.cart-heading h1 { margin: 0 0 12px; font-size: clamp(2.8rem,6vw,6rem); }
.cart-heading > div > p:last-child { max-width: 680px; color: var(--muted); }
.cart-period-count { min-height: 150px; display: grid; align-content: center; border-left: 1px solid #bfc1ba; padding-left: 35px; }
.cart-period-count small, .cart-period-count span { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.cart-period-count strong { font-size: 3.2rem; line-height: 1; }
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: 28px; align-items: start; }
.cart-lines { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cart-period { min-height: 55px; display: flex; align-items: center; gap: 11px; background: #20221f; color: #fff; padding: 12px 20px; font-size: .76rem; }
.cart-period span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cart-period i { color: var(--accent); font-style: normal; }
.cart-line { display: grid; grid-template-columns: 120px minmax(170px,1fr) minmax(350px,.9fr) 105px; gap: 22px; align-items: center; background: var(--paper); padding: 22px; }
.cart-line-image { align-self: stretch; min-height: 120px; background-position: center; background-size: cover; }
.cart-line-copy small { color: var(--accent-dark); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.cart-line-copy h2 { margin: 5px 0 3px; font-size: 1.25rem; }
.cart-line-copy p { margin: 0 0 6px; color: var(--muted); font-size: .75rem; }
.cart-line-copy span { color: var(--muted); font-size: .67rem; }
.cart-line-edit { display: grid; grid-template-columns: 1fr 1fr 64px; gap: 8px; }
.cart-line-edit .field label { font-size: .58rem; }
.cart-line-edit .field input { min-height: 38px; padding: 6px 8px; font-size: .69rem; }
.cart-line-edit > button { grid-column: 1 / -1; border: 0; background: transparent; color: var(--accent-dark); padding: 4px 0; font-size: .65rem; font-weight: 800; text-align: left; text-transform: uppercase; }
.cart-line-price { display: grid; justify-items: end; gap: 22px; }
.cart-line-price strong { font-size: 1rem; }
.cart-line-price button { border: 0; background: transparent; color: var(--danger); padding: 0; font-size: .67rem; }
.cart-checkout { position: sticky; top: 24px; background: var(--paper); padding: 30px; box-shadow: var(--shadow); }
.cart-checkout h2 { margin-bottom: 24px; font-size: 1.55rem; }
.cart-checkout form { display: grid; gap: 15px; }
.cart-checkout dl { margin: 8px 0 4px; }
.cart-checkout dl div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; }
.cart-checkout dt { color: var(--muted); }
.cart-checkout dd { margin: 0; font-weight: 700; }
.cart-checkout .cart-deposit { margin-top: 4px; border-top: 1px solid var(--ink); padding-top: 15px; color: var(--accent-dark); }
.checkout-address { display: grid; gap: 14px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 17px; }
.checkout-address > strong { font-size: .75rem; }
.cart-empty { background: var(--paper); }

.flash-stack { position: fixed; z-index: 100; top: 92px; right: 24px; width: min(430px,calc(100% - 48px)); display: grid; gap: 8px; }
.flash { border-left: 3px solid #777; background: #fff; padding: 13px 16px; box-shadow: var(--shadow); font-size: .82rem; transition: opacity .3s, transform .3s; }
.flash-success { border-color: var(--success); }
.flash-error { border-color: var(--danger); }
.flash-warning { border-color: var(--accent); }
.flash.hiding { opacity: 0; transform: translateX(20px); }

/* Espace client et administration */
.app-shell, .admin-shell { background: #f2f2ed; }
.app-topbar { height: 76px; padding: 0 clamp(24px,5vw,80px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); }
.app-topbar nav { display: flex; align-items: center; gap: 26px; font-size: .76rem; font-weight: 700; }
.app-topbar nav a.active { color: var(--accent-dark); }
.app-main { width: min(1380px,calc(100% - 48px)); margin: auto; padding: 70px 0 110px; }
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.page-header.compact { align-items: center; }
.page-header h1 { margin: 0 0 8px; font-size: clamp(2.1rem,3.8vw,4.2rem); }
.page-header p:last-child { margin: 0; color: var(--muted); }
.header-meta { display: flex; align-items: center; gap: 12px; }
.status-badge { --status:#64748b; display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; background: color-mix(in srgb, var(--status) 12%, white); color: color-mix(in srgb, var(--status) 80%, black); padding: 5px 9px; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.status-badge::before { width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: var(--status); content: ""; }
.status-badge.large { padding: 8px 12px; font-size: .75rem; }
.reservation-list { display: grid; border-top: 1px solid #c7c9c2; }
.reservation-row { display: grid; grid-template-columns: 1.2fr 1.5fr .8fr .8fr auto 20px; gap: 25px; align-items: center; min-height: 95px; border-bottom: 1px solid #c7c9c2; transition: background .18s,padding .18s; }
.reservation-row:hover { padding: 0 14px; background: var(--paper); }
.reservation-row div { display: grid; }
.reservation-row small { font-size: .68rem; }
.reservation-row strong { font-size: .85rem; }
.app-empty { background: var(--paper); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 30px; align-items: start; }
.detail-main, .detail-sidebar { display: grid; gap: 20px; }
.detail-section, .detail-sidebar > section, .narrow-form, .workspace-section { background: var(--paper); border: 1px solid #e0e1dc; padding: 28px; }
.section-title { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title h2 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -.02em; }
.section-title p { margin: 0; color: var(--muted); font-size: .78rem; }
.section-title > a { color: var(--accent-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.section-title > span { color: var(--muted); font-size: .75rem; }
.item-line { display: grid; grid-template-columns: 74px 1fr auto auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.item-thumb { width: 74px; height: 58px; background-position: center; background-size: cover; }
.item-line p { margin: 3px 0; color: var(--muted); font-size: .78rem; }
.item-line > span { color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.info-grid div { display: grid; }
.info-grid dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.info-grid dd { margin: 3px 0 0; font-weight: 600; }
.note-block { margin-top: 24px; border-left: 2px solid var(--accent); padding: 12px 16px; background: #fffaf0; }
.note-block p { margin: 5px 0 0; }
.date-range { display: grid; gap: 15px; }
.date-range div { display: grid; }
.date-range > span { color: var(--accent-dark); }
.item-period { display: block; margin: 5px 0; color: var(--accent-dark); font-weight: 700; }
.deposit-highlight { color: var(--accent-dark); }
.repeat-box { border-top: 1px solid var(--line); padding-top: 16px; }
.repeat-box summary { font-weight: 700; cursor: pointer; }
.repeat-box form { display: grid; gap: 12px; padding-top: 16px; }
.narrow-form { width: min(720px,100%); }
.narrow-form form { display: grid; gap: 20px; }
.form-subtitle { margin: 8px 0 -4px; border-top: 1px solid var(--line); padding-top: 22px; }

.admin-shell { min-height: 100vh; }
.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; background: #151715; color: #d9dbd5; }
.admin-brand { height: 82px; flex: 0 0 auto; padding: 28px 26px; color: #fff; border-bottom: 1px solid #30322f; }
.admin-nav { padding: 23px 14px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-section { margin: 16px 12px 6px; color: #70736d; font-size: .58rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.nav-section:first-child { margin-top: 0; }
.admin-nav a { display: flex; align-items: center; min-height: 39px; padding: 0 12px; border-radius: 2px; color: #aeb1ab; font-size: .77rem; font-weight: 600; transition: background .15s,color .15s; }
.admin-nav a i { width: 28px; color: #73766f; font-style: normal; }
.admin-nav a:hover { color: #fff; background: #222421; }
.admin-nav a.active { color: #fff; background: #292b27; box-shadow: inset 2px 0 var(--accent); }
.admin-nav a.active i { color: var(--accent); }
.admin-user { margin-top: auto; min-height: 72px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #30322f; padding: 12px 18px; }
.admin-user > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #17130c; font-weight: 900; }
.admin-user div { display: grid; }
.admin-user strong { font-size: .75rem; }
.admin-user small { color: #73766f; font-size: .64rem; }
.admin-user button { border: 0; background: transparent; color: #777a74; }
.admin-workspace { min-height: 100vh; margin-left: var(--sidebar); }
.admin-main { width: min(1500px,calc(100% - 64px)); margin: 0 auto; padding: 56px 0 90px; }
.admin-mobile-header { display: none; }
.app-flashes { top: 24px; }
.metric-row { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid #d7d8d2; background: var(--paper); margin-bottom: 24px; }
.metric-row > div { min-height: 145px; display: grid; align-content: center; padding: 24px 28px; border-right: 1px solid #d7d8d2; }
.metric-row > div:last-child { border-right: 0; }
.metric-row small { text-transform: uppercase; letter-spacing: .08em; font-size: .63rem; }
.metric-row strong { margin: 7px 0 2px; font-size: 2rem; letter-spacing: -.05em; }
.metric-row span { color: var(--muted); font-size: .7rem; }
.metric-row .metric-accent { background: var(--night); color: #fff; }
.dashboard-columns { display: grid; grid-template-columns: 1.45fr .9fr; gap: 24px; }
.dashboard-columns .wide { grid-row: span 2; }
.compact-table { border-top: 1px solid var(--line); }
.compact-table a { min-height: 75px; display: grid; grid-template-columns: 46px 1fr auto 140px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.date-chip { width: 38px; height: 44px; display: grid; place-items: center; align-content: center; background: #eeeee8; color: var(--muted); font-size: .57rem; text-transform: uppercase; }
.date-chip b { color: var(--ink); font-size: 1rem; line-height: 1; }
.compact-table div { display: grid; }
.compact-table time { color: var(--muted); font-size: .68rem; text-align: right; }
.ranking { margin: 0; padding: 0; list-style: none; }
.ranking li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.ranking li > span { color: var(--muted); font-size: .7rem; }
.ranking li div { display: grid; gap: 6px; }
.ranking strong { font-size: .76rem; }
.ranking i { position: relative; height: 2px; background: #e1e2dc; }
.ranking i::after { display: block; width: var(--value); height: 2px; background: var(--accent); content: ""; }
.ranking b { font-size: .8rem; }
.all-good { min-height: 120px; display: grid; place-items: center; align-content: center; color: var(--success); }
.all-good span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e0f2e8; }
.all-good p { margin: 8px 0 0; font-size: .78rem; }
.alert-list { margin: 0; padding: 0; list-style: none; }
.alert-list li { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.alert-list li > span { width: 27px; height: 27px; display: grid; place-items: center; background: #fff3d9; color: var(--accent-dark); font-weight: 900; }
.alert-list li div { display: grid; }

.data-table-wrap { overflow-x: auto; border: 1px solid #d7d8d2; background: var(--paper); }
.data-table-wrap.flush { border: 0; margin: 0 -28px -28px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .77rem; }
.data-table th { height: 45px; padding: 0 15px; background: #e9e9e3; color: #686b66; font-size: .61rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { min-height: 64px; padding: 13px 15px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table td > small, .data-table td > strong { display: block; }
.table-product { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.table-product div { display: grid; }
.mini-thumb { width: 48px; height: 40px; flex: 0 0 auto; background-position: center; background-size: cover; }
.state-dot { display: inline-flex; align-items: center; width: fit-content; font-size: .67rem; white-space: nowrap; }
.state-dot::before { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; content: ""; }
.state-dot.on::before { background: #35a469; }
.state-dot.off::before { background: #a5a7a2; }
.state-dot.neutral::before { background: var(--accent-dark); }
.table-actions { display: flex; align-items: center; gap: 12px; }
.table-actions a { color: var(--accent-dark); font-weight: 700; }
.table-actions form, .table-actions button { display: inline; }
.table-actions button, .category-row button, .simple-list button, .status-list button, .variant-admin-list button { padding: 0; border: 0; background: transparent; color: var(--danger); }
.row-arrow { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cfd0ca; }
.empty-cell { height: 120px; color: var(--muted); text-align: center; }
.sync-state { display: inline-flex; border-radius: 99px; background: #e5e6e1; color: #686b66; padding: 4px 8px; font-size: .62rem; text-transform: capitalize; }
.sync-synced { background: #e1f2e8; color: #257349; }
.sync-error, .sync-desynchronized { background: #f8e5e2; color: #9e332c; }
.filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 20px; padding: 18px; border: 1px solid #d7d8d2; background: var(--paper); }
.filter-bar .field:first-child { flex: 1; }
.filter-bar .field:nth-child(2) { width: 240px; }

.split-workspace { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(290px,.65fr); gap: 24px; align-items: start; }
.split-workspace:has(.option-form-panel) { grid-template-columns: minmax(0,1.3fr) minmax(370px,.8fr); }
.form-panel { position: sticky; top: 24px; }
.form-panel form, .template-form { display: grid; gap: 16px; }
.option-associations { display: grid; gap: 16px; }
.option-associations > div > strong { display: block; margin-bottom: 7px; font-size: .72rem; }
.association-checks { max-height: 190px; overflow-y: auto; border: 1px solid var(--line); background: #f7f7f2; padding: 5px; }
.association-checks label { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 6px 8px; cursor: pointer; font-size: .72rem; }
.association-checks label:has(input:checked) { background: #fff4dc; color: var(--accent-dark); }
.association-checks input { flex: 0 0 auto; accent-color: var(--accent-dark); }
.association-checks label span { display: grid; }
.association-checks label small { color: var(--muted); font-size: .58rem; text-transform: uppercase; }
.association-help { margin: -5px 0 2px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.cancel-link { color: var(--muted); font-size: .75rem; text-align: center; }
.category-list, .simple-list, .status-list, .variant-admin-list { border-top: 1px solid var(--line); }
.category-row { min-height: 60px; display: grid; grid-template-columns: 28px 1fr auto auto auto 18px; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); }
.category-row.child { padding-left: 28px; background: #f8f8f4; }
.category-row > div { display: grid; }
.category-row > b { font-size: .7rem; font-weight: 500; color: var(--muted); }
.category-row > a, .simple-list a, .status-list a, .variant-admin-list a { color: var(--accent-dark); font-size: .7rem; font-weight: 700; }
.toggle { display: flex; align-items: center; gap: 10px; color: #50534f; font-size: .76rem; font-weight: 650; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { position: relative; width: 34px; height: 19px; border-radius: 20px; background: #c6c8c1; transition: background .18s; }
.toggle span::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; content: ""; transition: transform .18s; }
.toggle input:checked + span { background: var(--accent-dark); }
.toggle input:checked + span::after { transform: translateX(15px); }
.toggle-row { display: flex; gap: 28px; margin: 20px 0; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 24px; align-items: start; }
.product-editor-layout { grid-template-columns: minmax(0,1fr) minmax(360px,390px); }
.editor-main { display: grid; gap: 18px; }
.editor-aside { display: grid; gap: 24px; }
.image-preview > div:not(.section-title) { height: 180px; margin: 0 -10px 16px; background-position: center; background-size: cover; }
.image-preview > strong, .image-preview > small { display: block; }
.variants-workspace { margin-top: 24px; }
.variant-admin-list > div { min-height: 64px; display: grid; grid-template-columns: auto 1fr 100px 100px auto auto 16px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.variant-admin-list > div > small { display: none; }
.variant-dialog { width: min(620px,calc(100% - 32px)); max-height: calc(100svh - 40px); border: 0; background: transparent; padding: 0; color: var(--ink); }
.variant-dialog::backdrop { background: rgba(11,12,11,.68); backdrop-filter: blur(3px); }
.variant-dialog[open] { animation: dialog-in .18s ease-out; }
.dialog-panel { background: var(--paper); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; border-bottom: 1px solid var(--line); padding: 26px 28px 22px; }
.dialog-header h2 { margin: 0; font-size: 1.55rem; }
.dialog-header .eyebrow { margin-bottom: 8px; }
.dialog-close { width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 1.25rem; }
.dialog-form { display: grid; gap: 17px; padding: 26px 28px 28px; }
.stock-mode { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 17px; }
.stock-mode small { font-size: .7rem; }
.stock-field { transition: opacity .18s; }
.stock-field.is-disabled { opacity: .42; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 20px; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.simple-list > div { min-height: 62px; display: grid; grid-template-columns: auto 1fr auto auto 16px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.simple-list > div > div { display: grid; }
.durations-list > div { grid-template-columns: auto 1fr auto auto auto 16px; }
.status-list > div { min-height: 62px; display: grid; grid-template-columns: 14px 1fr auto auto auto 16px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.status-list > div > div { display: grid; }
.status-swatch { width: 10px; height: 32px; border-radius: 5px; }

.reservation-editor .editor-main { display: grid; gap: 24px; }
.header-meta { flex-wrap: wrap; justify-content: end; }
.admin-item-list { border-top: 1px solid var(--line); }
.admin-item-list article { display: grid; grid-template-columns: 74px 1fr 65px auto auto; gap: 15px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.admin-item-list .admin-dated-item { grid-template-columns: 74px minmax(150px,1fr) minmax(320px,.9fr) 65px auto; }
.admin-item-period { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-item-period input { min-height: 38px; padding: 7px 8px; font-size: .7rem; }
.admin-dated-item .remove-check { grid-column: 2 / -1; justify-self: end; }
.period-overview { display: grid; align-content: center; border-left: 2px solid var(--accent); padding: 5px 0 5px 18px; }
.period-overview small { font-size: .62rem; text-transform: uppercase; }
.period-overview strong { font-size: .78rem; }
.calendar-event-list { border-top: 1px solid var(--line); }
.calendar-event-list > div { display: grid; grid-template-columns: 12px 1fr; gap: 9px; align-items: start; border-bottom: 1px solid var(--line); padding: 12px 0; }
.calendar-event-list p { display: grid; margin: 0; }
.calendar-event-list strong { font-size: .7rem; }
.calendar-event-list small { font-size: .62rem; }
.admin-item-content > p { margin: 2px 0 9px; color: var(--muted); font-size: .73rem; }
.inline-options { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.inline-options label { font-size: .67rem; }
.inline-options input { accent-color: var(--accent-dark); }
.qty-field input { min-height: 35px; padding: 5px; }
.remove-check { color: var(--danger); font-size: .68rem; }
.add-item { margin-top: 16px; border: 1px dashed #c6c8c1; padding: 14px; }
.add-item summary { color: var(--accent-dark); cursor: pointer; font-weight: 700; }
.add-item .form-grid { margin-top: 15px; }
.sticky-panel { position: sticky; top: 24px; }
.history-list { margin: 0; padding: 0; list-style: none; }
.history-list li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding-bottom: 19px; }
.history-list li > span { position: relative; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.history-list li > span::after { position: absolute; top: 9px; left: 3px; width: 1px; height: 56px; background: var(--line); content: ""; }
.history-list li:last-child span::after { display: none; }
.history-list strong { text-transform: capitalize; font-size: .73rem; }
.history-list p { margin: 2px 0; color: var(--muted); font-size: .7rem; }
.history-list small { font-size: .62rem; }

/* Gestion clients */
.client-editor .editor-main { display: grid; gap: 24px; }
.client-active-toggle { margin: 22px 0; }
.client-meta { margin: 28px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.client-reservation-list { border-top: 1px solid var(--line); }
.client-reservation-list a { min-height: 68px; display: grid; grid-template-columns: minmax(180px,1fr) 100px auto 18px; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); transition: padding .18s,background .18s; }
.client-reservation-list a:hover { background: #f7f7f2; padding: 0 10px; }
.client-reservation-list a > div { display: grid; }
.client-reservation-list small { font-size: .65rem; }
.client-reservation-list b { text-align: right; }
.client-reservation-list i { color: var(--accent-dark); font-style: normal; }
.client-delete-form { margin-top: 16px; text-align: right; }

.settings-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 24px; align-items: start; }
.settings-layout form { display: grid; gap: 16px; }
.connection-state { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d3d4ce; background: var(--paper); padding: 8px 12px; font-size: .7rem; font-weight: 700; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: #a4a6a1; }
.connection-state.connected i { background: #38a66d; box-shadow: 0 0 0 3px #dbefe3; }
.oauth-steps ol { margin: 0 0 25px; padding: 0; list-style: none; }
.oauth-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 10px 0; }
.oauth-steps li span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); font-size: .65rem; }
.oauth-steps li p { margin: 1px 0 0; color: var(--muted); font-size: .74rem; }
.sync-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.sync-actions form { min-height: 165px; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: 1fr auto; gap: 10px; border: 1px solid #d7d8d2; background: var(--paper); padding: 22px; }
.sync-actions form > span { font-size: 1.5rem; color: var(--accent-dark); }
.sync-actions strong { display: block; }
.sync-actions p { margin: 5px 0 0; color: var(--muted); font-size: .73rem; }
.sync-actions .button { grid-column: 1 / -1; }
.source-chip, .log-action { border-radius: 99px; padding: 4px 7px; background: #e8e9e4; font-size: .61rem; text-transform: uppercase; }
.log-error { color: var(--danger); background: #fae5e2; }
.log-create { color: var(--success); background: #e0f2e8; }
.data-table code { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-size: .65rem; }
.template-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 24px; align-items: start; }
.tags-panel { position: sticky; top: 24px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list button { border: 1px solid #d2d3cd; background: #f5f5ef; padding: 6px 8px; color: var(--accent-dark); font: 600 .68rem ui-monospace, monospace; }
.tag-list button:hover { border-color: var(--accent); background: #fff9eb; }
.template-help { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 18px; }
.template-help p { color: var(--muted); font-size: .74rem; }

/* Mises à jour */
.update-header { align-items: center; }
.version-lockup { min-width: 180px; border-left: 1px solid #cfd0ca; padding: 8px 0 8px 24px; }
.version-lockup small, .version-lockup strong { display: block; }
.version-lockup small { font-size: .63rem; letter-spacing: .09em; text-transform: uppercase; }
.version-lockup strong { margin-top: 3px; font-size: 1.8rem; letter-spacing: -.05em; }
.update-readiness { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 24px; border: 1px solid #d7d8d2; background: var(--paper); }
.update-readiness > div { min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-right: 1px solid var(--line); }
.update-readiness > div:last-child { border: 0; }
.update-readiness p { display: grid; margin: 0; }
.update-readiness strong { font-size: .76rem; }
.update-readiness small { font-size: .65rem; }
.readiness-icon { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: .7rem; font-weight: 900; }
.readiness-icon.ready { background: #e0f2e8; color: var(--success); }
.readiness-icon.error { background: #fae5e2; color: var(--danger); }
.update-ready-section { margin-bottom: 24px; border: 1px solid #d7d8d2; background: var(--paper); padding: 28px; }
.ready-update { display: grid; grid-template-columns: 180px 1fr 280px; gap: 30px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.update-version-path { display: flex; align-items: center; gap: 12px; }
.update-version-path span { color: var(--muted); font-size: .78rem; }
.update-version-path i { color: var(--accent-dark); font-style: normal; }
.update-version-path strong { font-size: 1.35rem; }
.ready-update-copy > small { color: var(--accent-dark); font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ready-update-copy h3 { margin: 4px 0 8px; }
.ready-update-copy p { max-width: 620px; margin: 0 0 10px; color: var(--muted); font-size: .78rem; }
.ready-update-copy code { color: #7b7e78; font-size: .62rem; }
.install-confirm { display: grid; gap: 10px; }
.update-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; margin-bottom: 24px; }
.update-upload form { display: grid; gap: 16px; }
.package-drop { min-height: 152px; display: grid; place-items: center; align-content: center; border: 1px dashed #b8bbb3; background: #f8f8f4; cursor: pointer; transition: border-color .18s,background .18s; }
.package-drop:hover { border-color: var(--accent-dark); background: #fffaf0; }
.package-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.package-drop > span { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%; background: #ecece6; color: var(--accent-dark); font-weight: 900; }
.package-drop strong { font-size: .82rem; }
.package-drop small { margin-top: 3px; }
.security-note { display: flex; gap: 12px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.security-note > span { color: var(--accent-dark); font-size: 1.2rem; }
.security-note p { display: grid; margin: 0; }
.security-note strong { font-size: .74rem; }
.security-note small { margin-top: 2px; font-size: .68rem; }
.remote-empty { min-height: 150px; display: grid; place-items: center; align-content: center; text-align: center; }
.remote-empty > span { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%; background: #ecece6; color: var(--success); }
.remote-empty p { margin: 0 0 3px; font-weight: 700; }
.remote-empty small { max-width: 360px; }
.remote-release { margin-bottom: 22px; }
.remote-release > small { text-transform: uppercase; letter-spacing: .08em; }
.remote-release > strong { display: block; margin: 4px 0 10px; font-size: 2rem; }
.remote-release p { color: var(--muted); }
.update-history { margin-top: 0; }
.update-status { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: #e7e8e3; color: #686b66; font-size: .62rem; font-weight: 800; }
.update-status.status-installed { background: #e0f2e8; color: #257349; }
.update-status.status-validated { background: #fff1cf; color: #8f5c09; }
.update-status.status-failed { background: #fae5e2; color: #9e332c; }
.update-status.status-rolled_back { background: #e5ebf5; color: #425f8b; }
.update-error { display: block; max-width: 300px; margin-top: 5px; color: var(--danger); }
.backup-link { color: var(--accent-dark); font-weight: 700; }
.update-actions { min-width: 110px; }
.update-actions details { position: relative; }
.update-actions summary { color: var(--accent-dark); font-size: .7rem; font-weight: 700; cursor: pointer; }
.update-actions details form { position: absolute; z-index: 5; right: 0; width: 220px; display: grid; gap: 8px; margin-top: 6px; border: 1px solid var(--line); background: #fff; padding: 12px; box-shadow: var(--shadow); }
.update-actions details input { width: 100%; border: 1px solid #cfd0ca; padding: 7px; }
.update-actions details button { border: 0; background: var(--danger); color: #fff; padding: 7px; }
.update-actions > form .text-danger { padding-top: 5px; font-size: .68rem; }

/* Apparence */
.theme-settings { display: grid; gap: 24px; }
.theme-settings > form { display: grid; gap: 24px; }
.theme-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.theme-choice { position: relative; display: grid; grid-template-columns: minmax(210px,.8fr) 1fr; gap: 22px; align-items: stretch; border: 1px solid #d7d8d2; background: var(--paper); padding: 18px; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.theme-choice:hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(18,20,17,.08); }
.theme-choice.selected { border-color: var(--accent-dark); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 32%, transparent); }
.theme-choice input { position: absolute; inset: 18px 18px auto auto; accent-color: var(--accent-dark); }
.theme-preview { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 5px; overflow: hidden; }
.theme-preview-default { background: #f4f4ef; color: #171817; }
.theme-preview-default strong { font-size: 3.2rem; line-height: .9; letter-spacing: -.08em; }
.theme-preview-default small { color: #6e716d; font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.theme-preview-silk { background: #050505; }
.theme-preview-silk img { width: min(320px,92%); height: auto; }
.theme-choice-copy { display: grid; align-content: center; gap: 7px; padding-right: 22px; }
.theme-choice-copy strong { font-size: 1.25rem; }
.theme-choice-copy small { color: var(--muted); line-height: 1.5; }
.theme-help ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .82rem; }
.theme-help li + li { margin-top: 8px; }
.theme-help code { color: var(--accent-dark); font-size: .78rem; }
.theme-actions { display: flex; gap: 12px; justify-content: flex-end; }
.logo-settings-grid { display: grid; grid-template-columns: minmax(240px,.72fr) minmax(0,1fr); gap: 24px; align-items: stretch; }
.logo-current-preview { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 12px; background: #0b0c0b; color: #fff; padding: 28px; text-align: center; }
.logo-current-preview > span { color: #aaaea8; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.logo-current-preview img { width: min(340px,100%); max-height: 150px; object-fit: contain; }
.logo-current-preview strong { font-size: 4rem; line-height: .9; letter-spacing: -.08em; }
.logo-current-preview small { color: #aeb1ab; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.logo-current-preview p { margin: 0; color: #aeb1ab; font-size: .74rem; }
.logo-upload-panel { display: grid; align-content: center; gap: 16px; }
.logo-upload-form { display: grid; gap: 16px; }
.logo-upload-form code { color: var(--accent-dark); font-size: .72rem; }
.logo-delete-form { border-top: 1px solid var(--line); padding-top: 4px; }

/* Thème Silk Animation */
.theme-silk {
    --ink: #f9f4f8;
    --muted: #a99faa;
    --line: #2d2730;
    --surface: #070607;
    --paper: #111014;
    --night: #050505;
    --night-2: #171018;
    --accent: #ec1494;
    --accent-dark: #ec1494;
    --danger: #ff6b72;
    --success: #38d98d;
    --shadow: 0 24px 70px rgba(0,0,0,.44);
    color-scheme: dark;
}
.theme-silk.public-shell,
.theme-silk.app-shell,
.theme-silk.admin-shell { background:
    radial-gradient(circle at 82% 4%, rgba(236,20,148,.2), transparent 34rem),
    radial-gradient(circle at 12% 24%, rgba(255,255,255,.08), transparent 30rem),
    var(--surface);
    color: var(--ink);
}
.theme-silk .site-header { background: linear-gradient(180deg, rgba(5,5,5,.72), rgba(5,5,5,.28)); border-bottom-color: rgba(236,20,148,.24); backdrop-filter: blur(10px); }
.theme-silk .site-nav > a:not(.button),
.theme-silk .site-nav .text-button { opacity: .86; }
.theme-silk .hero { background:
    radial-gradient(circle at 73% 35%, rgba(236,20,148,.2), transparent 26rem),
    radial-gradient(circle at 55% 72%, rgba(255,255,255,.08), transparent 26rem),
    #050505 url('../images/hero-event-warehouse.png') center/cover no-repeat; }
.theme-silk .hero::after { height: 220px; background: linear-gradient(transparent, #070607); }
.theme-silk .hero-overlay { background: linear-gradient(90deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.72) 43%, rgba(5,5,5,.18) 78%); }
.theme-silk .hero-logo-motif { position: absolute; z-index: 1; right: clamp(18px,7vw,120px); bottom: clamp(70px,12vh,145px); display: block; width: min(430px,42vw); opacity: .9; filter: drop-shadow(0 28px 70px rgba(236,20,148,.18)); transform: rotate(-2deg); }
.theme-silk .hero-content { z-index: 2; }
.theme-silk .hero h1 { max-width: 820px; text-shadow: 0 24px 70px rgba(0,0,0,.6); }
.theme-silk .eyebrow { color: #ff4eb7; }
.theme-silk .eyebrow.dark { color: #ff4eb7; }
.theme-silk .button { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 14px 35px rgba(236,20,148,.25); }
.theme-silk .button:hover { background: #ff3daf; border-color: #ff3daf; }
.theme-silk .button-secondary { background: transparent; border-color: #4a414e; color: var(--ink); box-shadow: none; }
.theme-silk .button-secondary:hover { background: #18121a; border-color: var(--accent); }
.theme-silk .availability-panel,
.theme-silk .product-card,
.theme-silk .cart-empty,
.theme-silk .cart-checkout,
.theme-silk .order-summary,
.theme-silk .workspace-section,
.theme-silk .detail-section,
.theme-silk .detail-sidebar > section,
.theme-silk .narrow-form,
.theme-silk .auth-form-wrap,
.theme-silk .data-table-wrap,
.theme-silk .metric-row,
.theme-silk .filter-bar,
.theme-silk .update-ready-section,
.theme-silk .theme-choice { background: rgba(17,16,20,.94); border-color: var(--line); box-shadow: var(--shadow); }
.theme-silk .availability-panel { border: 1px solid rgba(236,20,148,.24); }
.theme-silk .catalogue-heading > p,
.theme-silk .product-body > p,
.theme-silk .process-strip li p,
.theme-silk .section-title p,
.theme-silk .page-header p:last-child,
.theme-silk .auth-form > p:not(.eyebrow):not(.auth-switch),
.theme-silk .cart-heading > div > p:last-child { color: var(--muted); }
.theme-silk .field label,
.theme-silk .toggle { color: #d8ccd8; }
.theme-silk .field input,
.theme-silk .field select,
.theme-silk .field textarea { border-color: #3a323d; background: #0b0a0d; color: var(--ink); }
.theme-silk .field input:focus,
.theme-silk .field select:focus,
.theme-silk .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(236,20,148,.18); }
.theme-silk .product-media::after { background: linear-gradient(180deg, rgba(0,0,0,.16), transparent 42%, rgba(0,0,0,.72)); }
.theme-silk .availability-badge,
.theme-silk .product-category { border-color: rgba(236,20,148,.34); background: rgba(5,5,5,.72); }
.theme-silk .availability-badge i { background: var(--success); box-shadow: 0 0 0 3px rgba(56,217,141,.16); }
.theme-silk .product-title > strong,
.theme-silk .product-actions a,
.theme-silk .summary-cart-link,
.theme-silk .table-actions a,
.theme-silk .category-row > a,
.theme-silk .simple-list a,
.theme-silk .status-list a,
.theme-silk .variant-admin-list a,
.theme-silk .auth-switch a,
.theme-silk .back-link,
.theme-silk .cart-line-edit > button,
.theme-silk .theme-help code { color: #ff4eb7; }
.theme-silk .variant-list { background: var(--line); border-color: var(--line); }
.theme-silk .variant-list span,
.theme-silk .option-check,
.theme-silk .dialog-panel,
.theme-silk .cart-line,
.theme-silk .cart-period,
.theme-silk .compact-table a:hover,
.theme-silk .client-reservation-list a:hover,
.theme-silk .category-row.child,
.theme-silk .association-checks,
.theme-silk .package-drop,
.theme-silk .date-chip,
.theme-silk .tag-list button { background: #151218; }
.theme-silk .option-check:has(input:checked),
.theme-silk .association-checks label:has(input:checked),
.theme-silk .package-drop:hover,
.theme-silk .note-block { background: rgba(236,20,148,.1); border-color: rgba(236,20,148,.45); }
.theme-silk .option-check input,
.theme-silk .association-checks input,
.theme-silk .inline-options input { accent-color: var(--accent); }
.theme-silk .process-strip,
.theme-silk .site-footer,
.theme-silk .admin-sidebar { background: #050505; }
.theme-silk .site-footer { border-top: 1px solid rgba(236,20,148,.24); }
.theme-silk .admin-brand { height: 116px; padding: 12px 22px; border-bottom-color: #2a222d; }
.theme-silk .admin-brand .brand-logo { max-width: 190px; max-height: 88px; }
.theme-silk .admin-nav a { color: #b9aeba; }
.theme-silk .admin-nav a:hover,
.theme-silk .admin-nav a.active { background: #171018; color: #fff; }
.theme-silk .admin-nav a.active { box-shadow: inset 2px 0 var(--accent); }
.theme-silk .admin-user { border-top-color: #2a222d; }
.theme-silk .admin-user > span,
.theme-silk .cart-nav span { background: var(--accent); color: #fff; }
.theme-silk .app-topbar,
.theme-silk .admin-mobile-header { background: rgba(17,16,20,.94); border-bottom-color: var(--line); }
.theme-silk .app-topbar nav a.active,
.theme-silk .admin-mobile-header a { color: #ff4eb7; }
.theme-silk .data-table th { background: #19161d; color: #a99faa; }
.theme-silk .data-table td,
.theme-silk .compact-table a,
.theme-silk .reservation-row,
.theme-silk .category-row,
.theme-silk .simple-list > div,
.theme-silk .status-list > div,
.theme-silk .variant-admin-list > div,
.theme-silk .client-reservation-list a,
.theme-silk .item-line,
.theme-silk .admin-item-list article,
.theme-silk .calendar-event-list > div,
.theme-silk .alert-list li,
.theme-silk .cart-checkout dl div,
.theme-silk .order-summary dl div,
.theme-silk .detail-sidebar dl div,
.theme-silk .summary-dl div { border-color: var(--line); }
.theme-silk .flash,
.theme-silk .update-actions details form { background: #151218; color: var(--ink); border-color: var(--line); }
.theme-silk .form-error { background: rgba(255,107,114,.12); color: #ffb4b8; }
.theme-silk .empty-state { border-color: #3a323d; }
.theme-silk .empty-state > span { color: var(--accent); }
.theme-silk .status-badge { background: color-mix(in srgb, var(--status) 22%, #050505); color: color-mix(in srgb, var(--status) 70%, #ffffff); }
.theme-silk .theme-preview-default { background: #f4f4ef; color: #171817; }
.theme-silk .theme-preview-silk { border: 1px solid rgba(236,20,148,.22); }
.theme-silk .theme-choice.selected { border-color: var(--accent); }
.theme-silk .logo-current-preview { background: #050505; border: 1px solid rgba(236,20,148,.2); }
.theme-silk ::selection { background: rgba(236,20,148,.45); color: #fff; }

@media (max-width: 1180px) {
    .search-form { grid-template-columns: repeat(3,1fr); }
    .search-submit { width: 100%; }
    .form-section { grid-template-columns: 36px 170px 1fr; padding: 28px; }
    .admin-sidebar { width: 220px; }
    .admin-workspace { margin-left: 220px; }
    .admin-main { width: calc(100% - 40px); }
    .metric-row { grid-template-columns: repeat(2,1fr); }
    .metric-row > div:nth-child(2) { border-right: 0; }
    .metric-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .dashboard-columns { grid-template-columns: 1fr; }
    .dashboard-columns .wide { grid-row: auto; }
    .split-workspace, .split-workspace:has(.option-form-panel), .settings-layout, .template-layout { grid-template-columns: 1fr; }
    .logo-settings-grid { grid-template-columns: 1fr; }
    .form-panel, .tags-panel { position: static; }
    .sync-actions { grid-template-columns: 1fr; }
    .update-readiness { grid-template-columns: repeat(2,1fr); }
    .update-readiness > div:nth-child(2) { border-right: 0; }
    .update-readiness > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .ready-update { grid-template-columns: 130px 1fr; }
    .install-confirm { grid-column: 1 / -1; grid-template-columns: 1fr 280px; align-items: end; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-checkout { position: static; }
    .cart-line { grid-template-columns: 100px minmax(160px,1fr) minmax(300px,1fr) 95px; }
}

@media (max-width: 900px) {
    .site-header { height: 68px; }
    .site-header .brand-logo { max-width: 150px; max-height: 58px; }
    .nav-toggle { display: block; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; padding: 6px 10px; font-size: .7rem; text-transform: uppercase; }
    .site-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 24px; background: #111; }
    .site-nav.open { display: flex; }
    .site-nav > * { padding: 11px 0; }
    .hero { min-height: 620px; }
    .hero-content { margin-left: 24px; margin-right: 24px; }
    .search-form { grid-template-columns: repeat(2,1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .catalogue-heading { align-items: start; flex-direction: column; gap: 20px; }
    .process-strip ol { grid-template-columns: 1fr; }
    .process-strip li, .process-strip li + li { border-right: 0; border-bottom: 1px solid #3a3b38; padding: 24px 0; }
    .process-strip li > span { margin-bottom: 20px; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .footer-meta { grid-column: 1/-1; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { min-height: 330px; padding-bottom: 40px; }
    .auth-visual h1 { font-size: 2.8rem; }
    .reserve-layout, .detail-layout, .editor-layout { grid-template-columns: 1fr; }
    .form-section { grid-template-columns: 34px 1fr; }
    .form-section > .span-full { grid-column: 2; }
    .order-summary, .sticky-panel { position: static; }
    .admin-sidebar { transform: translateX(-100%); width: 254px; transition: transform .25s; }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 20px 0 45px rgba(0,0,0,.25); }
    .admin-workspace { margin-left: 0; }
    .admin-mobile-header { height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); }
    .admin-mobile-header button { border: 0; background: transparent; }
    .admin-mobile-header a { color: var(--accent-dark); font-size: .7rem; }
    .reservation-row { grid-template-columns: 1fr 1.4fr auto 20px; }
    .reservation-row > div:nth-child(3), .reservation-row > div:nth-child(4) { display: none; }
    .update-columns { grid-template-columns: 1fr; }
    .theme-choice-grid { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 90px 1fr 95px; }
    .cart-line-edit { grid-column: 2 / -1; }
    .admin-item-list .admin-dated-item { grid-template-columns: 74px 1fr auto; }
    .admin-dated-item .admin-item-period { grid-column: 2 / -1; }
    .admin-dated-item .qty-field, .admin-dated-item > b { grid-column: auto; }
}

@media (max-width: 620px) {
    body { font-size: 14px; }
    .hero { height: 650px; }
    .hero-content { padding-top: 165px; }
    .hero h1 { font-size: 3.25rem; }
    .availability-panel { width: calc(100% - 24px); margin-top: -38px; padding: 24px 18px; }
    .section-intro { align-items: flex-start; flex-direction: column; gap: 4px; }
    .section-intro h2 { font-size: 1.75rem; }
    .search-form, .form-grid, .form-grid.three { grid-template-columns: 1fr; }
    .search-keyword, .search-submit { grid-column: 1; }
    .catalogue { padding: 80px 12px; }
    .product-media { height: 220px; }
    .product-body { padding: 20px; }
    .variant-list { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; padding: 50px 24px; }
    .footer-meta { grid-column: auto; }
    .auth-form-wrap { padding: 45px 20px; }
    .auth-visual { min-height: 270px; }
    .reserve-page { padding: 100px 12px 70px; }
    .form-section { grid-template-columns: 26px 1fr; gap: 12px; padding: 22px 16px; }
    .option-picker { grid-template-columns: 1fr; }
    .app-topbar { height: auto; min-height: 70px; flex-wrap: wrap; gap: 12px; padding: 18px 20px; }
    .app-topbar .brand-logo { max-width: 152px; max-height: 52px; }
    .app-topbar nav { width: 100%; gap: 14px; overflow-x: auto; }
    .app-main, .admin-main { width: calc(100% - 24px); padding-top: 38px; }
    .page-header { align-items: start; flex-direction: column; }
    .metric-row { grid-template-columns: 1fr 1fr; }
    .metric-row > div { min-height: 115px; padding: 18px; }
    .metric-row strong { font-size: 1.55rem; }
    .compact-table a { grid-template-columns: 42px 1fr auto; }
    .compact-table time { display: none; }
    .workspace-section, .detail-section, .detail-sidebar > section, .narrow-form { padding: 20px 16px; }
    .reservation-row { grid-template-columns: 1fr auto; padding: 18px 8px; }
    .reservation-row > div:not(:first-child), .reservation-row > b { display: none; }
    .item-line { grid-template-columns: 58px 1fr auto; }
    .item-thumb { width: 58px; height: 50px; }
    .item-line > span { display: none; }
    .info-grid { grid-template-columns: 1fr; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar .field:nth-child(2) { width: 100%; }
    .category-row { grid-template-columns: 22px 1fr auto 16px; padding: 12px 0; }
    .category-row > b, .category-row > .state-dot { display: none; }
    .simple-list > div, .durations-list > div { grid-template-columns: 1fr auto 16px; padding: 12px 0; }
    .simple-list > div > .state-dot, .simple-list > div > span:not(.state-dot), .simple-list > div > b { display: none; }
    .status-list > div { grid-template-columns: 12px 1fr auto 16px; padding: 12px 0; }
    .status-list > div > span:not(.status-swatch) { display: none; }
    .variant-admin-list > div { grid-template-columns: 1fr auto 16px; padding: 12px 0; }
    .variant-admin-list > div > span, .variant-admin-list > div > b { display: none; }
    .admin-item-list article { grid-template-columns: 58px 1fr auto; }
    .admin-item-list .qty-field, .admin-item-list article > b { grid-column: 2; }
    .remove-check { grid-column: 2; }
    .header-meta { justify-content: start; }
    .client-reservation-list a { grid-template-columns: 1fr auto; padding: 12px 0; }
    .client-reservation-list a .status-badge, .client-reservation-list a > i { display: none; }
    .cart-page { padding: 112px 12px 70px; }
    .cart-heading { grid-template-columns: 1fr; gap: 20px; }
    .cart-period-count { min-height: auto; border-left: 0; border-top: 1px solid #bfc1ba; padding: 18px 0 0; }
    .cart-period-count strong { font-size: 2.2rem; }
    .cart-line { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; }
    .cart-line-image { min-height: 85px; }
    .cart-line-edit, .cart-line-price { grid-column: 1 / -1; }
    .cart-line-price { display: flex; justify-content: space-between; }
    .admin-item-list .admin-dated-item { grid-template-columns: 58px 1fr; }
    .admin-dated-item .admin-item-period, .admin-dated-item .qty-field, .admin-dated-item > b, .admin-dated-item .remove-check { grid-column: 2; }
    .admin-item-period { grid-template-columns: 1fr; }
    .version-lockup { border-left: 0; padding-left: 0; }
    .update-readiness { grid-template-columns: 1fr; }
    .update-readiness > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .update-readiness > div:nth-child(3) { border-bottom: 1px solid var(--line); }
    .ready-update { grid-template-columns: 1fr; }
    .install-confirm { grid-column: auto; grid-template-columns: 1fr; }
    .theme-choice { grid-template-columns: 1fr; }
    .theme-actions { align-items: stretch; flex-direction: column; }
    .theme-silk .hero-logo-motif { width: min(280px,70vw); right: 16px; bottom: 72px; opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
