/* =========================================================
   OVALIX — Design system boutique (hors espace membres)
   Couleurs du blason : bleu #214e78, orange #f0401f, blanc
   ========================================================= */
:root {
    --ink:      #07182a;
    --ink-2:    #0e2a45;
    --blue:     #214e78;
    --blue-2:   #2f6ca3;
    --blue-3:   #9cc3e6;
    --orange:   #f0401f;
    --orange-2: #ff6a45;
    --hot:      #ff7a57;
    --paper:    #f2f6fa;
    --card:     #ffffff;
    --text:     #0f2338;
    --muted:    #4a6179;
    --line:     #dbe5ee;
    --ok:       #12805c;
    --ok-bg:    #e3f6ee;
    --err:      #b4231b;
    --err-bg:   #fde8e6;
    --info-bg:  #e6f0fa;
    --radius:   18px;
    --ease:     cubic-bezier(.22, 1, .36, 1);
    --display:  'Bebas Neue', 'Oswald', Impact, sans-serif;
    --body:     'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ovx-page {
    margin: 0; background: var(--paper); color: var(--text);
    font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
    min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
.ovx-page img { max-width: 100%; }
.ovx-page a { color: var(--blue); }
.ovx-page :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.ovx-skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.ovx-skip:focus { left: 8px; }

/* ---------- Barre de navigation ---------- */
.ovx-bar { position: sticky; top: 0; z-index: 60; background: var(--ink); transition: box-shadow .3s; }
.ovx-bar.is-stuck { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }
.ovx-bar__in { width: min(1240px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.ovx-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.ovx-page .ovx-brand { color: #fff; }
.ovx-brand img { width: 40px; height: 46px; object-fit: contain; }
.ovx-brand span { font-family: var(--display); font-size: 1.9rem; letter-spacing: .06em; line-height: 1; }
.ovx-brand small { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .24em; color: var(--hot); font-weight: 700; margin-top: 2px; }
.ovx-menu { display: flex; align-items: center; gap: 4px; }
.ovx-page .ovx-menu a { color: #e8f0f8; text-decoration: none; font-weight: 600; font-size: .96rem; padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 8px; }
.ovx-page .ovx-menu a:hover { background: rgba(255, 255, 255, .09); }
.ovx-page .ovx-menu a[aria-current="page"] { background: rgba(240, 64, 31, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 122, 87, .5); }
.ovx-page .ovx-menu a.ovx-cart { background: var(--orange); color: var(--ink); margin-left: 6px; }
.ovx-page .ovx-menu a.ovx-cart:hover { background: var(--orange-2); }
.ovx-cart svg { width: 20px; height: 20px; }
.ovx-cart__n { background: var(--ink); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .78rem; }
.ovx-page .ovx-menu a.ovx-out { color: var(--blue-3); font-weight: 500; font-size: .88rem; }
.ovx-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); cursor: pointer; padding: 0; position: relative; }
.ovx-burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.ovx-burger i:nth-child(1) { top: 16px; } .ovx-burger i:nth-child(2) { top: 22px; } .ovx-burger i:nth-child(3) { top: 28px; }
.ovx-bar.is-open .ovx-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ovx-bar.is-open .ovx-burger i:nth-child(2) { opacity: 0; }
.ovx-bar.is-open .ovx-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Bandeau de page ---------- */
.ovx-hero-page { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(700px 320px at 85% 0%, rgba(47, 108, 163, .55), transparent 65%), radial-gradient(500px 260px at 0% 100%, rgba(240, 64, 31, .18), transparent 60%), linear-gradient(180deg, var(--ink), var(--ink-2)); color: #fff; padding: clamp(40px, 6vw, 76px) 0 clamp(44px, 6vw, 84px); }
.ovx-hero-page::after { content: ""; position: absolute; right: -40px; bottom: -90px; width: 260px; height: 380px; border-radius: 50%; border: 2px solid rgba(156, 195, 230, .22); transform: rotate(35deg); z-index: -1; }
.ovx-wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.ovx-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--hot); }
.ovx-hero-page h1 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: .95; font-size: clamp(2.8rem, 7vw, 5.4rem); margin: 14px 0 12px; color: #fff; }
.ovx-hero-page h1 em { font-style: normal; color: var(--hot); }
.ovx-hero-page p { margin: 0; max-width: 620px; color: #b9cde0; font-size: 1.1rem; }
.ovx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--blue-3); margin-bottom: 18px; }
.ovx-page .ovx-crumbs a { color: var(--blue-3); text-decoration: none; }
.ovx-page .ovx-crumbs a:hover { color: #fff; text-decoration: underline; }
.ovx-crumbs span[aria-hidden] { opacity: .5; }

main.ovx-main { flex: 1 0 auto; width: min(1240px, 100% - 32px); margin: 0 auto; padding: clamp(28px, 4vw, 56px) 0 clamp(60px, 8vw, 110px); }
main.ovx-main--pull { margin-top: -34px; position: relative; z-index: 2; }

/* ---------- Boutons ---------- */
.ovx-btn, .ovx-page .ovx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 700 .98rem/1 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s; width: auto; text-align: center; }
.ovx-btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.ovx-btn:hover svg { transform: translateX(3px); }
.ovx-btn--orange, .ovx-page .ovx-btn--orange { background: var(--orange); color: var(--ink); box-shadow: 0 10px 26px -10px rgba(240, 64, 31, .7); }
.ovx-btn--orange:hover { background: var(--orange-2); transform: translateY(-2px); }
.ovx-btn--blue, .ovx-page .ovx-btn--blue { background: var(--blue); color: #fff; }
.ovx-btn--blue:hover { background: var(--blue-2); transform: translateY(-2px); }
.ovx-btn--line, .ovx-page .ovx-btn--line { background: transparent; border-color: var(--blue); color: var(--blue); }
.ovx-btn--line:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.ovx-btn--full, .ovx-page .ovx-btn--full { width: 100%; }
.ovx-btn[disabled], .ovx-btn:disabled { background: #cdd8e3; color: #6b7f93; box-shadow: none; cursor: not-allowed; transform: none; }
.ovx-link-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.ovx-link-back:hover { text-decoration: underline; }

/* ---------- Alertes ---------- */
.ovx-alert { padding: 16px 20px; border-radius: 14px; font-weight: 600; margin: 0 0 26px; border: 1px solid transparent; display: flex; gap: 12px; align-items: flex-start; }
.ovx-alert::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ovx-alert--success { background: var(--ok-bg); color: var(--ok); border-color: #b9e5d3; --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='m8 12 3 3 5-6'/></svg>"); }
.ovx-alert--error { background: var(--err-bg); color: var(--err); border-color: #f5c3be; --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 7v6M12 17h.01'/></svg>"); }
.ovx-alert--info { background: var(--info-bg); color: var(--blue); border-color: #c4dbef; --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 11v6M12 7h.01'/></svg>"); }

/* ---------- Formulaires ---------- */
.ovx-field { display: grid; gap: 6px; margin-bottom: 16px; }
.ovx-field label, .ovx-label { font-weight: 700; font-size: .92rem; color: var(--text); }
.ovx-input, .ovx-select, .ovx-field input:not([type=checkbox]):not([type=radio]), .ovx-field select, .ovx-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font: 500 1rem var(--body); transition: border-color .2s, box-shadow .2s; }
.ovx-field textarea { min-height: 110px; resize: vertical; }
.ovx-input:focus, .ovx-select:focus, .ovx-field input:focus, .ovx-field select:focus, .ovx-field textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 108, 163, .18); }
.ovx-select:disabled, .ovx-field input:disabled { background: #eef2f6; color: #7a8da0; cursor: not-allowed; }
.ovx-hint { font-size: .86rem; color: var(--muted); }

/* ---------- Carte générique ---------- */
.ovx-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(7, 24, 42, .35); padding: clamp(20px, 3vw, 34px); }

/* ---------- Catalogue ---------- */
.ovx-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; color: var(--muted); font-weight: 600; }
.ovx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.ovx-prod { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.ovx-prod:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -32px rgba(7, 24, 42, .55); border-color: #b9cfe3; }
.ovx-prod__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.05; background: radial-gradient(circle at 50% 38%, #fff 0, #e6eef6 100%); padding: 22px; text-decoration: none; }
.ovx-prod__media { overflow: hidden; }
.ovx-prod__media img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; transition: transform .6s var(--ease); }
.ovx-prod:hover .ovx-prod__media img { transform: scale(1.06); }
.ovx-tag { position: absolute; top: 14px; left: 14px; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ovx-tag--soon { background: var(--blue); }
.ovx-prod__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.ovx-prod__name { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .03em; font-size: 1.55rem; line-height: 1.05; color: var(--ink); }
.ovx-prod__name a { color: inherit; text-decoration: none; }
.ovx-prod__name a:hover { color: var(--blue-2); }
.ovx-prod__price { font-family: var(--display); font-size: 1.9rem; letter-spacing: .03em; color: var(--orange); line-height: 1; }
.ovx-swatches { display: flex; gap: 8px; flex-wrap: wrap; min-height: 26px; }
.ovx-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; transition: transform .2s, box-shadow .2s; }
.ovx-swatch:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--blue-2); }
.ovx-prod__form { margin-top: auto; display: grid; gap: 10px; }
.ovx-sizebar { display: flex; align-items: center; gap: 10px; }
.ovx-sizebar label { font-weight: 700; font-size: .9rem; }
.ovx-sizebar select { flex: 1; min-height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 0 12px; font: 600 .96rem var(--body); background: #fff; color: var(--text); }
.ovx-sizebar select:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 108, 163, .18); }
.ovx-sizebar .ovx-unique { font-weight: 700; color: var(--blue); }
.ovx-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); }
.ovx-empty h2 { font-family: var(--display); font-weight: 400; font-size: 2.6rem; margin: 0 0 8px; color: var(--ink); }
.ovx-empty p { margin: 0; color: var(--muted); }

/* ---------- Fiche produit ---------- */
.ovx-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.ovx-gallery { position: sticky; top: 92px; display: grid; gap: 14px; }
.ovx-gallery__main { background: radial-gradient(circle at 50% 40%, #fff 0, #e3ecf5 100%); border: 1px solid var(--line); border-radius: 26px; display: grid; place-items: center; aspect-ratio: 1 / 1.08; padding: clamp(18px, 3vw, 40px); }
.ovx-gallery__main { position: relative; overflow: hidden; }
.ovx-gallery__main img { position: absolute; inset: clamp(18px, 3vw, 40px); width: calc(100% - 2 * clamp(18px, 3vw, 40px)); height: calc(100% - 2 * clamp(18px, 3vw, 40px)); object-fit: contain; transition: opacity .2s; }
.thumbnail-container { display: flex; gap: 12px; flex-wrap: wrap; }
.thumbnail { width: 84px; height: 84px; border-radius: 16px; background: #fff; border: 2px solid var(--line); padding: 6px; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, transform .2s; }
.thumbnail:hover { transform: translateY(-3px); border-color: var(--blue-3); }
.thumbnail.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 64, 31, .18); }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.ovx-buy { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 3.2vw, 40px); box-shadow: 0 30px 60px -44px rgba(7, 24, 42, .5); }
.ovx-buy h1 { margin: 6px 0 10px; font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: .98; font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--ink); }
.ovx-buy__price { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--orange); letter-spacing: .03em; }
.ovx-buy__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }
.stock-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; }
.stock-status:empty { display: none; }
.stock-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock-status.in-stock { background: var(--ok-bg); color: var(--ok); }
.stock-status.out-of-stock { background: var(--err-bg); color: var(--err); }
.ovx-desc { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; }
.ovx-block { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.ovx-block__title { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.ovx-swatches--lg .ovx-swatch { width: 36px; height: 36px; }
.ovx-qty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ovx-qty input { width: 92px; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; text-align: center; font: 700 1.05rem var(--body); }
.ovx-qty input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 108, 163, .18); }
.ovx-actions { display: grid; gap: 12px; margin-top: 22px; }
.ovx-reassure { display: grid; gap: 10px; margin-top: 24px; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.ovx-reassure li { display: flex; gap: 10px; align-items: center; }
.ovx-reassure svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ---------- Pied de page ---------- */
.ovx-foot { background: var(--ink); color: #b9cde0; margin-top: auto; padding: clamp(40px, 6vw, 72px) 0 24px; }
.ovx-foot__in { width: min(1240px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.ovx-foot__brand img { width: 64px; height: auto; margin-bottom: 14px; }
.ovx-foot__brand p { margin: 0; max-width: 340px; font-size: .96rem; }
.ovx-foot__col { display: grid; gap: 8px; align-content: start; }
.ovx-foot__col h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; letter-spacing: .08em; font-size: 1.4rem; color: #fff; }
.ovx-page .ovx-foot a { color: #b9cde0; text-decoration: none; }
.ovx-page .ovx-foot a:hover { color: #fff; text-decoration: underline; }
.ovx-foot__copy { width: min(1240px, 100% - 32px); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(156, 195, 230, .2); font-size: .85rem; }

/* ---------- Apparition ---------- */
@keyframes ovx-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.ovx-grid > *, .ovx-detail > * { animation: ovx-up .7s var(--ease) both; }
.ovx-grid > *:nth-child(2) { animation-delay: .06s; } .ovx-grid > *:nth-child(3) { animation-delay: .12s; }
.ovx-grid > *:nth-child(4) { animation-delay: .18s; } .ovx-grid > *:nth-child(n+5) { animation-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .ovx-detail { grid-template-columns: 1fr; }
    .ovx-gallery { position: static; }
    .ovx-foot__in { grid-template-columns: 1fr 1fr; }
    .ovx-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .ovx-burger { display: block; }
    .ovx-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 4px; max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .4s var(--ease), visibility .4s; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6); }
    .ovx-bar.is-open .ovx-menu { max-height: 460px; visibility: visible; }
    .ovx-page .ovx-menu a { padding: 14px 16px; border-radius: 14px; }
    .ovx-page .ovx-menu a.ovx-cart { margin: 6px 0 0; justify-content: center; }
}
@media (max-width: 560px) {
    body.ovx-page { font-size: 16px; }
    .ovx-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ovx-prod__media img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
    .ovx-prod__body { padding: 12px 12px 16px; gap: 8px; }
    .ovx-prod__name { font-size: 1.2rem; }
    .ovx-prod__price { font-size: 1.5rem; }
    .ovx-sizebar { flex-direction: column; align-items: stretch; gap: 4px; }
    .ovx-btn { padding: 0 16px; min-height: 46px; font-size: .9rem; }
    .ovx-foot__in { grid-template-columns: 1fr; }
    .thumbnail { width: 68px; height: 68px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ovx-grid > *, .ovx-detail > * { animation: none; }
    .ovx-prod, .ovx-prod__media img, .ovx-btn, .thumbnail { transition: none; }
}

@media (max-width: 560px) {
    main.ovx-main--pull { margin-top: 0; }
}

/* =========================================================
   PANIER
   ========================================================= */
.ovx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ovx-alert > div { flex: 1; }
.ovx-alert a { color: inherit; text-decoration: underline; }

.ovx-cart-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr); gap: clamp(22px, 3.5vw, 48px); align-items: start; }
.ovx-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ovx-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; gap: 8px 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px 14px 14px; box-shadow: 0 16px 36px -30px rgba(7, 24, 42, .5); }
.ovx-line__img { width: 96px; height: 96px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #fff, #e3ecf5); display: grid; place-items: center; padding: 6px; }
.ovx-line__img { position: relative; overflow: hidden; }
.ovx-line__img img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.ovx-line__info h2 { margin: 0 0 2px; font-family: var(--display); font-weight: 400; letter-spacing: .03em; font-size: 1.5rem; line-height: 1.05; color: var(--ink); }
.ovx-line__meta { margin: 0; color: var(--muted); font-size: .94rem; }
.ovx-line__qty { display: grid; gap: 4px; justify-items: start; }
.ovx-line__qty label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ovx-line__qty input { width: 78px; min-height: 44px; border: 2px solid var(--line); border-radius: 12px; text-align: center; font: 700 1rem var(--body); color: var(--text); }
.ovx-line__qty input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 108, 163, .18); }
.ovx-line__total { font-family: var(--display); font-size: 1.8rem; letter-spacing: .03em; color: var(--ink); min-width: 96px; text-align: right; }
.ovx-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.ovx-iconbtn svg { width: 20px; height: 20px; }
.ovx-iconbtn:hover { color: var(--err); border-color: #f0b3ad; background: var(--err-bg); }

.ovx-summary { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2.6vw, 32px); box-shadow: 0 30px 60px -44px rgba(7, 24, 42, .55); }
.ovx-summary h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: .03em; color: var(--ink); line-height: 1; }
.ovx-summary__block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ovx-summary__block h3 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ovx-promo { display: flex; gap: 8px; }
.ovx-promo input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; font: 500 1rem var(--body); }
.ovx-promo input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 108, 163, .18); }
.ovx-promo .ovx-btn { min-height: 48px; padding: 0 18px; }
.ovx-promo__ok { margin: 10px 0 0; color: var(--ok); font-weight: 700; font-size: .95rem; }
.ovx-deliv { display: grid; gap: 10px; }
.ovx-deliv__opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.ovx-deliv__opt:hover { border-color: var(--blue-3); }
.ovx-deliv__opt:has(input:checked) { border-color: var(--blue); background: #eef5fb; }
.ovx-deliv__opt:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.ovx-deliv__opt input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.ovx-deliv__txt { display: grid; line-height: 1.3; }
.ovx-deliv__txt strong { font-size: 1rem; color: var(--ink); }
.ovx-deliv__txt small { color: var(--muted); font-size: .85rem; }
.ovx-deliv__cost { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ovx-totals { margin: 18px 0 20px; display: grid; gap: 8px; }
.ovx-totals > div { display: flex; justify-content: space-between; gap: 14px; }
.ovx-totals dt { color: var(--muted); }
.ovx-totals dd { margin: 0; font-weight: 700; }
.ovx-totals__promo dd { color: var(--ok); }
.ovx-totals__due { padding-top: 14px; margin-top: 6px; border-top: 2px solid var(--ink); align-items: baseline; }
.ovx-totals__due dt { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.ovx-totals__due dd { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: .03em; color: var(--orange); }
.ovx-summary__safe { margin: 14px 0 0; display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .88rem; }

@media (max-width: 980px) {
    .ovx-cart-grid { grid-template-columns: 1fr; }
    .ovx-summary { position: static; }
}
@media (max-width: 640px) {
    .ovx-line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px 14px; padding: 12px; }
    .ovx-line__img { width: 72px; height: 72px; grid-row: span 2; }
    .ovx-line__info { grid-column: 2 / 3; }
    .ovx-line__rm { grid-column: 3; grid-row: 1; }
    .ovx-line__qty { grid-column: 2; }
    .ovx-line__total { grid-column: 3; text-align: right; min-width: 0; font-size: 1.5rem; align-self: end; }
    .ovx-promo { flex-direction: column; }
}

/* =========================================================
   PAIEMENT / FORMULAIRES DE COMMANDE
   ========================================================= */
.ovx-stack { display: grid; gap: 20px; align-content: start; }
.ovx-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ovx-card h2, .ovx-fieldset legend h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .03em; font-size: 2rem; line-height: 1; color: var(--ink); }
.ovx-infos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.ovx-infos dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.ovx-infos dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.ovx-infos__wide { grid-column: 1 / -1; }
.ovx-fieldset { border: 1px solid var(--line); margin: 0; min-width: 0; display: grid; gap: 12px; }
.ovx-fieldset legend { padding: 0 10px; margin-left: -10px; float: left; width: 100%; margin-bottom: 4px; }
.ovx-fieldset legend + * { clear: both; }
.ovx-paycard { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.ovx-paycard:hover { border-color: var(--blue-3); }
.ovx-paycard:has(input:checked) { border-color: var(--blue); background: #eef5fb; }
.ovx-paycard:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.ovx-paycard input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.ovx-paycard__body { display: grid; gap: 4px; }
.ovx-paycard__body strong { font-size: 1.08rem; color: var(--ink); }
.ovx-paycard__body small { color: var(--muted); font-size: .92rem; }
.ovx-paycard__more { display: none; margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.ovx-paycard:has(input:checked) .ovx-paycard__more { display: block; }
.ovx-paycard__more img { display: block; margin-top: 12px; border-radius: 8px; max-width: 220px; height: auto; }
@supports not selector(:has(*)) { .ovx-paycard__more { display: block; } }
.ovx-sumlist { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 12px; }
.ovx-sumlist li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.ovx-sumlist img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #e9f0f7; padding: 3px; }
.ovx-sumlist__name { font-weight: 600; line-height: 1.25; }
.ovx-sumlist__name small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; }
.ovx-sumlist__price { font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .ovx-infos { grid-template-columns: 1fr; } }

/* =========================================================
   CONFIRMATION
   ========================================================= */
main.ovx-main--narrow { width: min(720px, 100% - 32px); padding-top: clamp(40px, 7vw, 90px); }
.ovx-done { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 60px) clamp(20px, 4vw, 56px); box-shadow: 0 40px 70px -48px rgba(7, 24, 42, .6); }
.ovx-done__badge { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); box-shadow: 0 0 0 10px rgba(18, 128, 92, .08); animation: ovx-pop .7s var(--ease) both; }
.ovx-done__badge svg { width: 42px; height: 42px; }
.ovx-done--error .ovx-done__badge { background: var(--err-bg); color: var(--err); box-shadow: 0 0 0 10px rgba(180, 35, 27, .08); }
.ovx-done h1 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: .98; font-size: clamp(2.6rem, 7vw, 4.4rem); color: var(--ink); }
.ovx-done h1 em { font-style: normal; color: var(--orange); }
.ovx-done__ref { margin: 0 0 18px; display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.ovx-done__ref strong { color: var(--ink); }
.ovx-done .ovx-alert { text-align: left; margin: 14px 0 18px; }
.ovx-done__text { margin: 0 0 6px; color: var(--muted); font-size: 1.08rem; }
.ovx-done__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
@keyframes ovx-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ovx-done__badge { animation: none; } }
@media (max-width: 560px) { .ovx-done__actions .ovx-btn { width: 100%; } }

/* =========================================================
   COMPTE CLIENT
   ========================================================= */
.ovx-account { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr); gap: clamp(22px, 3.5vw, 48px); align-items: start; }
.ovx-account > .ovx-card { position: sticky; top: 92px; }
.ovx-infos--one { grid-template-columns: 1fr 1fr; }
.ovx-orders { display: grid; gap: 16px; }
.ovx-order { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 16px 36px -30px rgba(7, 24, 42, .5); }
.ovx-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.ovx-order__head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .03em; color: var(--ink); line-height: 1.05; }
.ovx-order__head small { color: var(--muted); }
.ovx-status { padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: #e6edf4; color: var(--blue); }
.ovx-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.ovx-status.is-wait { background: #fff0d9; color: #8a5200; }
.ovx-status.is-bad { background: var(--err-bg); color: var(--err); }
.ovx-order__items { list-style: none; margin: 0; padding: 8px 22px; }
.ovx-order__items li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ovx-order__items li:last-child { border-bottom: 0; }
.ovx-order__items .q { color: var(--muted); }
.ovx-order__items .p { font-weight: 700; min-width: 80px; text-align: right; }
.ovx-order__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 22px; border-top: 2px solid var(--ink); }
.ovx-order__total span { font-weight: 700; color: var(--ink); }
.ovx-order__total strong { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--orange); letter-spacing: .03em; line-height: 1; }
@media (max-width: 980px) {
    .ovx-account { grid-template-columns: 1fr; }
    .ovx-account > .ovx-card { position: static; }
}
@media (max-width: 560px) {
    .ovx-order__head { flex-direction: column; }
    .ovx-order__items li { grid-template-columns: 1fr auto; }
    .ovx-order__items .q { grid-column: 1; grid-row: 2; }
    .ovx-order__items .p { grid-column: 2; grid-row: 1 / 3; align-self: center; }
    .ovx-infos--one { grid-template-columns: 1fr; }
}

/* =========================================================
   FORMULAIRES (compte, connexion)
   ========================================================= */
main.ovx-main--form { width: min(860px, 100% - 32px); }
.ovx-form { display: grid; gap: 20px; }
.ovx-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.ovx-field--wide { grid-column: 1 / -1; }
.ovx-formgrid .ovx-field { margin-bottom: 18px; }
.ovx-fieldset { padding-top: clamp(16px, 2vw, 22px); }
.ovx-fieldset > legend + .ovx-formgrid, .ovx-fieldset > legend + p { margin-top: 6px; }
.ovx-pw { position: relative; }
.ovx-pw input { padding-right: 56px !important; }
.ovx-pw__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.ovx-pw__btn:hover { background: #eef2f6; color: var(--ink); }
.ovx-pw__btn svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.ovx-pw__btn .eye-off { display: none; }
.ovx-pw__btn.is-on .eye-on { display: none; }
.ovx-pw__btn.is-on .eye-off { display: block; }
.ovx-form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .ovx-formgrid { grid-template-columns: 1fr; }
    .ovx-form__actions .ovx-btn { width: 100%; }
}

/* Liste des commandes (page dédiée) */
.ovx-orders--list { max-width: 980px; }
.ovx-order--row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px 24px; align-items: center; padding: 18px 22px; }
.ovx-order__ref h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .03em; color: var(--ink); line-height: 1.05; }
.ovx-order__ref small { color: var(--muted); }
.ovx-order__amount { font-family: var(--display); font-size: 1.9rem; letter-spacing: .03em; color: var(--orange); line-height: 1; min-width: 110px; text-align: right; }
.ovx-order__more { padding: 0 22px 18px; }
@media (max-width: 760px) {
    .ovx-order--row { grid-template-columns: 1fr auto; }
    .ovx-order__amount { text-align: left; }
    .ovx-order--row .ovx-order__actions { grid-column: 1 / -1; justify-content: stretch; }
    .ovx-order--row .ovx-order__actions .ovx-btn { flex: 1; }
}

/* Annulation de commande */
.ovx-btn--danger, .ovx-page .ovx-btn--danger { background: #c62828; border-color: #c62828; color: #fff; }
.ovx-btn--danger:hover { background: #a31f1f; border-color: #a31f1f; transform: translateY(-2px); }
.ovx-cancel-btn { color: #c62828 !important; border-color: #c62828 !important; }
.ovx-cancel-btn:hover { background: #c62828 !important; color: #fff !important; }
.ovx-dialog { border: 0; border-radius: 18px; padding: 0; width: min(92vw, 480px); box-shadow: 0 30px 80px rgba(7,24,42,.35); color: var(--ink); font-family: inherit; }
.ovx-dialog::backdrop { background: rgba(7,24,42,.6); backdrop-filter: blur(3px); }
.ovx-dialog form { padding: 28px 26px 24px; }
.ovx-dialog h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .03em; margin: 0 0 10px; line-height: 1; }
.ovx-dialog p { margin: 0 0 22px; line-height: 1.55; color: #3b4d5f; }
.ovx-dialog__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ovx-order__more { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.ovx-order__more .ovx-cancel-btn { padding: 9px 16px; font-size: .9rem; }
.ovx-order--row .ovx-cancel-btn { padding: 11px 18px; }
.ovx-order__actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ovx-order--row > * { min-width: 0; }
@media (max-width: 760px) {
    .ovx-order--row .ovx-status { white-space: normal; text-align: center; }
    .ovx-order--row .ovx-order__actions .ovx-btn { flex: 1 1 140px; padding-left: 12px; padding-right: 12px; }
}
.ovx-order__amount{white-space:nowrap}@media(max-width:760px){.ovx-order--row .ovx-order__amount{min-width:0}}

/* Identification / inscription */
main.ovx-main--auth { width: min(760px, 100% - 32px); }
.ovx-auth { padding: clamp(18px, 3vw, 32px); }
.ovx-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--paper); border-radius: 999px; margin-bottom: 26px; }
.ovx-tab { min-height: 46px; border: 0; border-radius: 999px; background: transparent; color: var(--blue); font: 700 1rem var(--body); cursor: pointer; transition: background .2s, color .2s; }
.ovx-tab:hover:not(.is-active) { background: #e4ecf4; }
.ovx-tab.is-active { background: var(--blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(33,78,120,.8); }
.ovx-tab:focus-visible, .ovx-linkbtn:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.ovx-panel[hidden] { display: none; }
.ovx-panel h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; letter-spacing: .03em; font-size: 2.1rem; line-height: 1; color: var(--ink); }
.ovx-panel__intro { margin: 0 0 22px; color: var(--muted); }
.ovx-panel form .ovx-btn--full { margin-top: 8px; }
.ovx-panel__switch { margin: 20px 0 0; text-align: center; color: var(--muted); }
.ovx-linkbtn { border: 0; background: none; padding: 0; font: 700 1rem var(--body); color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ovx-linkbtn:hover { color: var(--orange); }
@media (max-width: 560px) { .ovx-tab { font-size: .95rem; } }

/* Facture */
main.ovx-main--invoice { width: min(900px, 100% - 32px); }
.ovx-invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(7,24,42,.35); padding: clamp(22px, 4vw, 48px); color: var(--text); }
.ovx-invoice__head { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 3px solid var(--ink); }
.ovx-invoice__brand { display: flex; gap: 16px; align-items: center; }
.ovx-invoice__brand img { height: 74px; width: auto; }
.ovx-invoice__brand strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .04em; color: var(--ink); line-height: 1.1; }
.ovx-invoice__brand span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.ovx-invoice__id { text-align: right; }
.ovx-invoice__id h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 3rem; letter-spacing: .06em; line-height: 1; color: var(--orange); }
.ovx-invoice dl { margin: 0; }
.ovx-invoice__id dl div { display: flex; justify-content: flex-end; gap: 12px; align-items: center; padding: 2px 0; }
.ovx-invoice__id dt { color: var(--muted); }
.ovx-invoice__id dd { margin: 0; font-weight: 700; color: var(--ink); }
.ovx-invoice__notice { margin: 22px 0 0; padding: 12px 16px; background: #fff0d9; border-radius: 10px; color: #6b4200; font-weight: 600; }
.ovx-invoice__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px 0; }
.ovx-invoice__cols h3 { margin: 0 0 6px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ovx-invoice__cols p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.ovx-invoice__table { width: 100%; border-collapse: collapse; }
.ovx-invoice__table th { text-align: left; padding: 12px 10px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ovx-invoice__table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ovx-invoice__table .r { text-align: right; white-space: nowrap; }
.ovx-invoice__totals { margin: 22px 0 0 auto; width: min(100%, 340px); }
.ovx-invoice__totals div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.ovx-invoice__totals dd { margin: 0; font-weight: 700; }
.ovx-invoice__totals .grand { margin-top: 8px; padding-top: 14px; border-top: 3px solid var(--ink); align-items: baseline; }
.ovx-invoice__totals .grand dt { font-family: var(--display); font-size: 1.6rem; letter-spacing: .05em; color: var(--ink); }
.ovx-invoice__totals .grand dd { font-family: var(--display); font-weight: 400; font-size: 2.2rem; letter-spacing: .03em; color: var(--orange); }
.ovx-invoice__foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .95rem; }
.ovx-invoice__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
@media (max-width: 720px) {
    .ovx-invoice__id { text-align: left; }
    .ovx-invoice__id dl div { justify-content: flex-start; }
    .ovx-invoice__cols { grid-template-columns: 1fr; gap: 18px; }
    .ovx-invoice__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ovx-invoice__table, .ovx-invoice__table tbody, .ovx-invoice__table tr, .ovx-invoice__table td { display: block; }
    .ovx-invoice__table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .ovx-invoice__table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 4px 0; white-space: normal; text-align: right; }
    .ovx-invoice__table td::before { content: attr(data-label); color: var(--muted); text-align: left; }
}
@media print {
    @page { size: A4; margin: 14mm; }
    .ovx-bar, .ovx-foot, .ovx-skip, .ovx-noprint { display: none !important; }
    body.ovx-page { background: #fff !important; }
    main.ovx-main--invoice { width: 100%; margin: 0; padding: 0; }
    .ovx-invoice { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
    .ovx-invoice__head, .ovx-invoice__table tr, .ovx-invoice__totals { break-inside: avoid; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.ovx-invoice dl.ovx-invoice__totals { margin: 22px 0 0 auto; }

/* Mentions légales */
.ovx-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1040px; margin: 0 auto; }
.ovx-legal__toc { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; }
.ovx-legal__toc strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .04em; color: var(--ink); margin-bottom: 8px; }
.ovx-legal__toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; }
.ovx-legal__toc a { display: block; padding: 5px 0; color: var(--blue); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ovx-legal__toc a:hover { color: var(--orange); }
.ovx-legal__body section { padding: 6px 0 26px; scroll-margin-top: 96px; }
.ovx-legal__body section + section { padding-top: 26px; border-top: 1px solid var(--line); }
.ovx-legal__body h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: .03em; line-height: 1.1; color: var(--ink); }
.ovx-legal__body h2 span { color: var(--orange); }
.ovx-legal__body h3 { margin: 20px 0 6px; font-size: 1.05rem; color: var(--blue); }
.ovx-legal__body p, .ovx-legal__body li { line-height: 1.7; color: var(--text); max-width: 68ch; }
.ovx-legal__body p { margin: 0 0 12px; }
.ovx-legal__body ul { margin: 0 0 12px; padding-left: 1.2em; }
.ovx-legal__people { list-style: none; padding: 0 !important; display: grid; gap: 4px; }
.ovx-legal__body a { color: var(--blue); text-underline-offset: 3px; }
.ovx-legal__body a:hover { color: var(--orange); }
@media (max-width: 860px) {
    .ovx-legal { grid-template-columns: 1fr; gap: 18px; }
    .ovx-legal__toc { position: static; }
    .ovx-legal__toc ol { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}
@media (max-width: 520px) { .ovx-legal__toc ol { grid-template-columns: 1fr; } }

.ovx-paycard.is-disabled { opacity: .6; cursor: not-allowed; }
.ovx-paycard.is-disabled:hover { border-color: var(--line); }
.ovx-paycard__note { display: block; margin-top: 6px; font-size: .9rem; font-weight: 600; color: #8a5200; }

/* Espace membres */
.ovx-fielderr { color: var(--err); font-weight: 600; font-size: .88rem; }
.ovx-hint { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.ovx-field input[aria-invalid="true"] { border-color: #d9534f; }
.ovx-page--membres .ovx-brand small { letter-spacing: .2em; }

/* Champ mot de passe avec bouton afficher/masquer */
.ovx-pw { position: relative; }
.ovx-pw input { padding-right: 52px !important; }
.ovx-pw__btn { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.ovx-pw__btn::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat; }
.ovx-pw__btn.is-on { color: var(--orange); }
.ovx-pw__btn:hover { background: var(--paper); }
.ovx-pw__btn:focus-visible { outline: 3px solid var(--hot); outline-offset: 1px; }

/* Espace membres : accueil */
.ovx-muted { color: var(--muted); }
.ovx-todo { color: #8a5200; font-weight: 500; font-style: italic; }
.ovx-sub { margin: 22px 0 10px; font: 700 .78rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.ovx-mgrid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.3fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.ovx-mright { display: grid; gap: clamp(20px, 3vw, 28px); min-width: 0; }
.ovx-mleft { position: sticky; top: 92px; min-width: 0; }
.ovx-mcard { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(7,24,42,.55); container-type: inline-size; }
.ovx-mcard > img { display: block; width: 100%; height: auto; }
.ovx-mcard__txt { position: absolute; left: 5%; top: 75%; transform: translateY(-50%); color: #000; font-size: clamp(.62rem, 3.6cqw, .92rem); line-height: 1.4; }
.ovx-mcard__txt p { margin: 0 0 4px; }
.ovx-mcard__photo { position: absolute; top: 15%; right: 5%; width: 30%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ovx-mcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ovx-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.ovx-more summary { cursor: pointer; font-weight: 700; color: var(--blue); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.ovx-more summary::-webkit-details-marker { display: none; }
.ovx-more summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange); }
.ovx-more[open] summary::after { content: "–"; }
.ovx-more summary:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; border-radius: 6px; }
.ovx-more .ovx-infos { margin-top: 14px; }
.ovx-plist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ovx-plist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border-radius: 12px; flex-wrap: wrap; }
.ovx-plist li > strong, .ovx-plist li > label { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.ovx-plist form { margin: 0; }
.ovx-plist--pay input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--orange); flex: none; }
.ovx-plist--pay label { cursor: pointer; }
.ovx-plist__nochk { width: 22px; flex: none; }
.ovx-plist--pay + .ovx-btn, .ovx-plist--pay ~ .ovx-btn { margin-top: 16px; }
.ovx-iconbtn { width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #c62828; cursor: pointer; display: grid; place-items: center; }
.ovx-iconbtn svg { width: 20px; height: 20px; }
.ovx-iconbtn:hover { background: var(--err-bg); }
.ovx-iconbtn:focus-visible { outline: 3px solid var(--hot); }
.ovx-mactions { display: flex; gap: 10px; flex-wrap: wrap; }
.ovx-mactions .ovx-btn { flex: 1 1 200px; }
.ovx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ovx-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 140px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(7,24,42,.35); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
a.ovx-stat:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(7,24,42,.5); }
.ovx-stat span { font-weight: 700; color: var(--blue); }
.ovx-stat small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.ovx-stat b { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--ink); }
.ovx-stat b.ovx-stat__txt { font-size: 2rem; }
.ovx-stat--orange { border-left-color: var(--orange); }
.ovx-stat--ok { border-left-color: #1f9d6b; }
.ovx-stat--bad { border-left-color: #c62828; }
@media (max-width: 900px) { .ovx-mgrid { grid-template-columns: 1fr; } .ovx-mleft { position: static; } }
.ovx-page--membres .ovx-brand { flex: none; white-space: nowrap; }
.ovx-page--membres .ovx-brand small { white-space: nowrap; }
@media (min-width: 981px) { .ovx-page--membres .ovx-menu a { font-size: .92rem; padding-left: 10px; padding-right: 10px; white-space: nowrap; } }

/* Espace membres : profil */
main.ovx-main--wide { width: min(860px, 100% - 32px); }
.ovx-pform { display: grid; gap: clamp(18px, 2.5vw, 26px); }
.ovx-pform .ovx-fieldset { display: block; }
.ovx-pform .ovx-fieldset legend + * { margin-top: 12px; }
.ovx-photo { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ovx-photo__img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 6px 18px -8px rgba(7,24,42,.6); flex: none; }
.ovx-photo__img--empty { display: block; background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8da0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/></svg>") center / 56% no-repeat; }
.ovx-photo__ctl { flex: 1 1 260px; min-width: 0; }
.ovx-field input[type=file] { padding: 9px 12px; min-height: 0; }
.ovx-check { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.ovx-check input { width: 20px; height: 20px; accent-color: var(--orange); }
.ovx-sizes { display: grid; gap: 22px 28px; grid-template-columns: 1fr 1fr; }
.ovx-sizes > .ovx-chips { grid-column: 1 / -1; }
.ovx-chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.ovx-chips legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .92rem; color: var(--text); }
.ovx-chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ovx-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ovx-chips label { min-width: 52px; padding: 0 14px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.ovx-chips label:hover { border-color: var(--blue-2); }
.ovx-chips input:checked + label { background: var(--blue); border-color: var(--blue); color: #fff; }
.ovx-chips input:focus-visible + label { outline: 3px solid var(--hot); outline-offset: 2px; }
@media (max-width: 560px) { .ovx-sizes { grid-template-columns: 1fr; } .ovx-photo { justify-content: center; text-align: center; } }
.ovx-pform .ovx-fieldset > legend { margin-bottom: 16px; }
.ovx-fieldset .ovx-chips legend { float: none; width: auto; margin: 0 0 8px; padding: 0; }

/* Espace membres : packs */
.ovx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(18px, 2.5vw, 28px); align-items: stretch; }
.ovx-pack { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -30px rgba(7,24,42,.35); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.ovx-pack:hover { transform: translateY(-3px); }
.ovx-pack.selected { border-color: var(--orange); box-shadow: 0 22px 44px -26px rgba(240,64,31,.55); }
.ovx-pack.disabled-pack { opacity: .6; }
.ovx-pack.disabled-pack:hover, .ovx-pack.purchased-pack:hover { transform: none; }
.ovx-pack__media { display: block; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.ovx-pack__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.ovx-pack__media:hover img { transform: scale(1.04); }
.ovx-pack__media:focus-visible { outline: 3px solid var(--hot); outline-offset: -3px; }
.ovx-pack__body { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2.5vw, 26px); }
.ovx-pack__body h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .03em; font-size: 1.9rem; line-height: 1.05; color: var(--ink); }
.ovx-pack__price { margin: 6px 0 14px; font-family: var(--display); font-size: 2.3rem; line-height: 1; color: var(--orange); }
.ovx-pack__body h3 { margin: 0 0 8px; font: 700 .76rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.ovx-pack__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; flex: 1; }
.ovx-pack__list li { position: relative; padding-left: 26px; }
.ovx-pack__list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 12 4 4 8-8'/></svg>") center / 70% no-repeat; }
.ovx-pack__state { margin: 0; }
.ovx-pick { min-height: 50px; width: 100%; border-radius: 999px; border: 2px solid var(--blue); background: transparent; color: var(--blue); font: 700 1rem var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ovx-pick:hover { background: var(--blue); color: #fff; }
.ovx-pick:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
.ovx-pick__on { display: none; }
.ovx-pick[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.ovx-pick[aria-pressed="true"] .ovx-pick__off { display: none; }
.ovx-pick[aria-pressed="true"] .ovx-pick__on { display: inline; }
.ovx-packs__submit { margin-top: clamp(24px, 3vw, 36px); justify-content: center; }
.ovx-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(7,24,42,.88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.ovx-lightbox[hidden] { display: none; }
.ovx-lightbox img { max-width: min(1000px, 100%); max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.ovx-lightbox__close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.ovx-lightbox__close:hover { background: var(--orange); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ovx-pack, .ovx-pack__media img { transition: none; } }
.ovx-pack__list { align-content: start; }
.ovx-pack__media { background: #e9f0f7; }
.ovx-pack__media img { object-fit: contain; }

/* Espace membres : paiement des packs */
.ovx-plist__amt { font-family: var(--display); font-size: 1.4rem; letter-spacing: .03em; color: var(--ink); margin-left: auto; }
.ovx-summary .ovx-plist li { padding: 10px 12px; }
.ovx-summary .ovx-plist li > strong { flex-basis: 100%; }

/* Administration : base commune (tableaux, formulaires riches) */
.ovx-btn--sm, .ovx-page .ovx-btn--sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.ovx-acard h2 { margin: 0 0 18px; }
.ovx-acard__count { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font: 700 .9rem var(--body); letter-spacing: 0; color: var(--blue); }
.ovx-afieldset { display: block; margin: 8px 0 22px; border-radius: 14px; padding: clamp(16px, 2vw, 22px); }
.ovx-afieldset > * + * { margin-top: 12px; }
.ovx-afieldset legend { float: none; width: auto; margin: 0 0 6px; padding: 0 8px; margin-left: -8px; }
.ovx-afieldset legend h2 { font-size: 1.5rem; margin: 0; }
.ovx-sizegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.ovx-sizegrid__item { display: grid; gap: 4px; }
.ovx-sizegrid__item label { font: 700 .82rem var(--body); letter-spacing: .08em; color: var(--blue); text-align: center; }
.ovx-sizegrid__item input, .new-size-row input, .ovx-colorcard input[type=text], .ovx-imggrid input[type=file] { width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font: 500 1rem var(--body); }
.ovx-sizegrid__item input { text-align: center; }
.ovx-sizegrid__item input:focus, .new-size-row input:focus, .ovx-colorcard input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(47, 108, 163, .18); }
.new-size-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.new-size-row input[type=text] { flex: 2; } .new-size-row input[type=number] { flex: 1; }
.ovx-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--err-bg); color: var(--err); font: 700 1.3rem/1 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.ovx-x:hover { background: var(--err); color: #fff; }
.ovx-x--inline { position: static; flex: none; }
.ovx-imggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ovx-imggrid__item { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ovx-imggrid__item label { font: 700 .85rem var(--body); color: var(--text); }
.ovx-imggrid input[type=file] { font-size: .82rem; padding: 6px; min-height: 0; }
.ovx-imggrid__cur { display: block; width: 100%; height: 130px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #e9f0f7; }
.ovx-imggrid__cur--empty { display: grid; place-items: center; font-size: .82rem; color: var(--muted); }
.ovx-colorcard { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-bottom: 12px; }
.ovx-colorcard__head { display: flex; align-items: center; gap: 10px; margin: 0 40px 12px 0; flex-wrap: wrap; }
.ovx-colorcard__pick { width: 46px; height: 46px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: none; cursor: pointer; flex: none; }
.ovx-colorcard input[type=text].ovx-colorcard__hex { width: 110px; text-transform: uppercase; }
.ovx-colorcard input[type=text].ovx-colorcard__name { flex: 1; min-width: 160px; width: auto; }
.ovx-atable-wrap { overflow-x: auto; }
.ovx-atable { width: 100%; border-collapse: collapse; }
.ovx-atable th { text-align: left; padding: 10px 12px; font: 700 .76rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); border-bottom: 2px solid var(--line); white-space: nowrap; }
.ovx-atable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ovx-atable tbody tr:hover { background: #f8fbfd; }
.ovx-atable__num { white-space: nowrap; }
.ovx-atable__name strong { display: block; margin-bottom: 4px; color: var(--ink); }
.ovx-atable__act { white-space: nowrap; text-align: right; }
.ovx-atable__act .ovx-btn { margin-left: 4px; }
.ovx-thumb { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #e9f0f7; }
.ovx-thumb--empty { display: grid; place-items: center; font-size: .7rem; color: var(--muted); text-align: center; }
.ovx-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 700 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; }
.ovx-pill--on { background: var(--ok-bg); color: var(--ok); }
.ovx-pill--off { background: #eef2f6; color: #5d7388; }
.ovx-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.ovx-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ovx-acard .ck.ck-editor__editable_inline { min-height: 160px; border-radius: 0 0 12px 12px; font: 500 1rem var(--body); }
.ovx-acard .ck.ck-toolbar { border-radius: 12px 12px 0 0; }
@media (max-width: 860px) {
    .ovx-imggrid { grid-template-columns: 1fr; }
    .ovx-atable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ovx-atable, .ovx-atable tbody, .ovx-atable tr, .ovx-atable td { display: block; }
    .ovx-atable tr { border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; margin-bottom: 14px; }
    .ovx-atable td { display: flex; gap: 14px; justify-content: space-between; align-items: center; border: 0; border-bottom: 1px dashed var(--line); padding: 10px 0; text-align: right; }
    .ovx-atable td:last-child { border-bottom: 0; }
    .ovx-atable td[data-label]::before { content: attr(data-label); flex: none; font: 700 .74rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); text-align: left; }
    .ovx-atable__name strong { display: inline; margin: 0 8px 0 0; }
    .ovx-atable__act { display: flex; flex-wrap: wrap; justify-content: stretch; gap: 8px; }
    .ovx-atable__act .ovx-btn { flex: 1 1 auto; margin: 0; }
}
.ovx-acard__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.ovx-acard__bar h2 { margin: 0; }
.ovx-pill--warn { background: #fff0e0; color: #a85a00; }
.ovx-pill--bad { background: var(--err-bg); color: var(--err); }
.ovx-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.ovx-atable__mail { overflow-wrap: anywhere; }
.ovx-pill { white-space: nowrap; }
@media (max-width: 860px) { .ovx-filters .ovx-btn { flex: 1 1 100%; } .ovx-atable__mail { word-break: normal; overflow-wrap: anywhere; } }
.ovx-srows { display: grid; gap: 10px; }
.ovx-srow { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ovx-srow__pay { color: var(--muted); }
.ovx-srow input:disabled + * , .ovx-srow__pay:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.ovx-newpack { position: relative; margin-bottom: 12px; padding: 16px 48px 16px 16px; border: 1px dashed #9fb5c9; border-radius: 14px; background: var(--paper); }
.ovx-newpack .ovx-field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 500 1rem var(--body); }
.ovx-newpack .ovx-field { margin-bottom: 12px; }
.ovx-block .ovx-block__title { margin-top: 0; }
.ovx-seasonform { display: flex; align-items: center; gap: 8px; margin: 0; }
.ovx-seasonform label { font: 700 .82rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ovx-seasonform select { min-height: 42px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: 700 .95rem var(--body); color: var(--text); }
.ovx-packimg { width: 160px; height: 120px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #e9f0f7; flex: none; display: block; }
.ovx-packimg--empty { display: grid; place-items: center; font-size: .82rem; color: var(--muted); }
.ovx-chips input[type=checkbox] + label { padding: 0 18px; }
.ovx-stats--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .ovx-stats--two { grid-template-columns: 1fr; } }
/* ---- Commandes (admin) ---- */
.ovx-ofilter { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; }
.ovx-ofilter .ovx-field { margin: 0; }
@media (max-width: 860px) { .ovx-ofilter { grid-template-columns: 1fr; } .ovx-ofilter .ovx-btn { width: 100%; } }
.ovx-cmds { display: grid; gap: 16px; }
.ovx-cmd { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(7,24,42,.35); padding: 22px 24px; }
.ovx-cmd--done { border-left-color: var(--ok); }
.ovx-cmd--off { border-left-color: var(--muted); opacity: .92; }
.ovx-cmd__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: flex-start; }
.ovx-cmd__id { font-family: var(--display); font-size: 1.7rem; line-height: 1; letter-spacing: .02em; color: var(--blue); margin: 0; }
.ovx-cmd__who { margin: 4px 0 0; font-weight: 700; }
.ovx-cmd__mail { margin: 0; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.ovx-cmd__pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ovx-cmd__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.ovx-cmd__meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.ovx-cmd__meta dd { margin: 2px 0 0; font-weight: 700; }
.ovx-cmd__form { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 12px; align-items: end; margin-top: 16px; }
.ovx-cmd__form .ovx-field { margin: 0; }
.ovx-cmd__form .ovx-field[hidden] { display: none; }
.ovx-cmd__lock { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .ovx-cmd__form { grid-template-columns: 1fr; } .ovx-cmd__form .ovx-btn { width: 100%; } .ovx-cmd { padding: 18px 16px; } }
.ovx-cmd details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.ovx-cmd summary { cursor: pointer; font-weight: 700; color: var(--blue); min-height: 32px; }
.ovx-cmd__items { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.ovx-cmd__items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--paper); border-radius: 10px; }
.ovx-cmd__items span:last-child { white-space: nowrap; font-weight: 700; }
.ovx-cmd details p { margin: 6px 0; }
.ovx-modal { position: fixed; inset: 0; z-index: 200; background: rgba(7,24,42,.7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ovx-modal[hidden] { display: none; }
.ovx-modal__box { background: #fff; border-radius: var(--radius); padding: 28px; width: 100%; max-width: 480px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.ovx-modal__box h2 { margin: 0 0 12px; }
.ovx-modal__box p { white-space: pre-wrap; margin: 0 0 20px; }

.ovx-alert--warn { background: #fff4e0; color: #8a4b00; border-color: #f2d9a8; --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 11v6M12 7h.01'/></svg>"); }
.ovx-sqlgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .ovx-sqlgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ovx-sqlgrid { grid-template-columns: 1fr; } }
.ovx-sqlcard { border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: 14px; padding: 18px; background: #fff; }
.ovx-sqlcard h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; color: var(--blue); text-transform: capitalize; overflow-wrap: anywhere; }
.ovx-sqlcard p { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.ovx-sqlcard code { background: var(--paper); padding: 1px 6px; border-radius: 6px; font-size: .88rem; color: var(--text); overflow-wrap: anywhere; }
.ovx-sqlcard .ovx-form__actions { margin-top: 12px; }
.ovx-sqlcard .ovx-form__actions .ovx-btn { flex: 1 1 auto; }

/* ---- Relance des impayés ---- */
.ovx-inline { display: inline; margin: 0; }
.ovx-atable__act .ovx-inline .ovx-btn { margin-left: 4px; }
.ovx-relance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 18px; padding: 14px 18px; border: 1px solid #f2d9a8; background: #fff4e0; border-radius: 14px; }
@media (max-width: 860px) { .ovx-atable__act .ovx-inline { flex: 1 1 auto; display: flex; } .ovx-atable__act .ovx-inline .ovx-btn { flex: 1 1 auto; margin: 0; } .ovx-relance .ovx-btn { width: 100%; } }

/* Ordre d'affichage des produits */
.ovx-ord { display: inline-flex; align-items: center; gap: 6px; }
.ovx-ord__n { min-width: 28px; font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 1; color: var(--blue, #0b3d91); text-align: center; }
.ovx-ord__btn { width: 36px; height: 36px; border: 1px solid #cfd8e6; border-radius: 8px; background: #fff; color: var(--blue, #0b3d91); font-size: 13px; cursor: pointer; line-height: 1; }
.ovx-ord__btn:hover:not(:disabled) { background: var(--blue, #0b3d91); color: #fff; }
.ovx-ord__btn:focus-visible { outline: 3px solid #f58220; outline-offset: 2px; }
.ovx-ord__btn:disabled { opacity: .3; cursor: not-allowed; }
