/* Charte Vinotake (d'après le logo) : bleu marine, écume, bleu mer — police Poppins */
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff") format("woff"); font-weight: 600 700; font-display: swap; }
:root {
  --navy: #251f4a;
  --navy-2: #3a3170;
  --mer: #98bcca;
  --mer-fonce: #23627d;
  --ecume: #faf5e8;
  --ink: #1f1c33;
  --muted: #6f6d85;
  --line: #e4e0d4;
  --bg: #f6f3ea;
  --title-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --card: #fff;
  --ok: #2f7a45;
  --warn: #a66a00;
  --danger: #b3261e;
  --radius: 10px;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; }
a { color: var(--navy); }
h1 { font-size: 1.55rem; margin: 0 0 .25rem; font-family: var(--title-font); font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; color: var(--navy); font-family: var(--title-font); font-weight: 500; }
h3 { font-family: var(--title-font); font-weight: 500; }
h3 { font-size: 1rem; margin: 1.2rem 0 .6rem; }

.topbar { background: var(--navy); border-bottom: 3px solid var(--mer); color: #fff; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; position: sticky; top: 0; z-index: 20; }
.topbar .brand { color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; margin-right: auto; letter-spacing: .02em; display: flex; align-items: center; }
.topbar .brand img { height: 34px; width: auto; display: block; }
.topbar nav a, .tabs a, .btn { font-family: var(--title-font); font-weight: 500; }
.login-logo { display: block; width: 210px; max-width: 70%; margin: .2rem auto 1.2rem; }
.topbar nav { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.topbar nav a, .topbar nav .linklike { color: #d6e5ec; text-decoration: none; padding: .4rem .7rem; border-radius: 6px; font-size: .95rem; }
.topbar nav a.active, .topbar nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 1.2rem; }
.narrow-page { max-width: 640px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.card.narrow { max-width: 460px; margin: 3rem auto; }
.card.empty { text-align: center; color: var(--muted); padding: 2rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.actions, .row-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.row-actions { margin-top: .8rem; }
.count { font-size: .95rem; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ok { color: var(--ok); }
.danger { color: var(--danger); }
.up { color: var(--danger); }
.down { color: var(--ok); }
.pad { padding: .7rem; }

.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.two-cols .card { margin-bottom: 0; }
.two-cols + .card, .two-cols + section { margin-top: 1rem; }

/* Formulaires */
label { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: #4f4d66; margin-bottom: .7rem; }
input, select, textarea { font: inherit; font-size: 1rem; padding: .55rem .65rem; border: 1px solid #d3d0c6; border-radius: 7px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37,31,74,.25); border-color: var(--navy); }
input[type=checkbox] { width: auto; }
label.check { flex-direction: row; align-items: center; gap: .45rem; color: var(--ink); font-size: .95rem; }
label.check.disabled { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 1rem; }
.grid.mapping { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.checks { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .6rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; align-items: center; margin: 1rem 0 2rem; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(246,243,239,.96); padding: .8rem 0; border-top: 1px solid var(--line); z-index: 5; }
.grand-total { margin-right: auto; font-size: 1.05rem; }
.inline { display: inline; }
.inline-upload { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.inline-upload input, .inline-upload select { width: auto; flex: 1 1 160px; }
.siret-lookup { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: .4rem; }
.siret-lookup label { flex: 0 1 260px; }
.siret-lookup .btn { margin-bottom: .7rem; }
.siret-lookup span { margin-bottom: 1rem; }
details.add-block { margin-top: .8rem; }
details.add-block > summary, details > summary { cursor: pointer; color: var(--navy); font-weight: 600; margin-bottom: .6rem; }
input.num, input.qty { text-align: right; }
input.qty { width: 5.2rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; background: var(--navy); color: #fff; border: 1px solid var(--navy); padding: .55rem 1rem; border-radius: 7px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--navy-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--navy); }
.btn-ghost:hover, .btn-ghost.active { background: #f6ecee; }
.btn-danger { background: #fff; color: var(--danger); border-color: #e4b6b2; }
.btn-danger:hover { background: #fbeceb; }
.linklike { background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; font: inherit; text-decoration: underline; }
.danger-zone { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: #fdfbfa; }

/* Messages */
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: .8rem; border: 1px solid; }
.flash-success { background: #edf7ef; border-color: #bfe0c6; color: #1d5b30; }
.flash-error { background: #fbeceb; border-color: #efc2bd; color: #8c1d16; }
.flash-warning { background: #fff7e6; border-color: #f0d9a8; color: #7a4f00; }
.flash-info { background: #eef3fb; border-color: #c9d8f0; color: #23426e; }
.flash.small { padding: .4rem .7rem; font-size: .85rem; margin: .4rem 0; }

/* Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.table th, .table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #f8f6f0; }
.table th.right, .table td.right { text-align: right; }
.table tfoot td { border-bottom: 0; background: #f8f6f0; }
.table tr.row-link { cursor: pointer; }
.table tr.row-link:hover td { background: #f1f6f8; }
.table tr.archived td { opacity: .55; }
.table tr.free td { background: #f4faf2; }
.table.preview td, .table.preview th { font-size: .8rem; white-space: nowrap; }
.price-grid input { max-width: 8rem; margin-left: auto; display: block; }
.card > .table-wrap .table, .card .table { border: 1px solid var(--line); border-radius: 8px; }

dl { margin: 0; }
.kv { display: grid; grid-template-columns: 11rem 1fr; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; }

/* Pastilles */
.badge, .pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; vertical-align: middle; background: #eee; color: #555; }
.badge-prospect { background: #eef3fb; color: #23426e; }
.badge-client, .badge-confirmee, .badge-accepte, .badge-livree { background: #e3f2e7; color: #1d5b30; }
.badge-inactif, .badge-annulee, .badge-refuse { background: #f0eceb; color: #7a6f6b; }
.badge-brouillon { background: #f5f0e6; color: #7a5a00; }
.badge-envoyee, .badge-envoye { background: #eef3fb; color: #23426e; }
.badge-facturee { background: #efe7f5; color: #55307a; }
.pill-ok { background: #e3f2e7; color: #1d5b30; }
.pill-warn { background: #fff1d6; color: #7a4f00; }
.pill-missing { background: #fbeceb; color: #8c1d16; }
.stock { display: inline-block; min-width: 2.2rem; text-align: center; font-weight: 700; padding: .1rem .4rem; border-radius: 6px; }
.stock-ok { background: #e3f2e7; color: #1d5b30; }
.stock-zero { background: #f0eceb; color: #7a6f6b; }
.stock-alerte { background: #fbeceb; color: #8c1d16; }

/* Filtres, onglets, stats */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; flex: 1 1 170px; }
.filters input[type=search] { flex: 2 1 240px; }
.tabs { display: flex; gap: .3rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem .9rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; }
.tabs a.active { color: var(--navy); border-color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.stat strong { font-size: 1.3rem; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat-warn { border-color: #f0d9a8; background: #fffaf0; }

/* Saisie de commande */
.product-search { position: relative; display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.product-search select { flex: 0 1 220px; width: auto; }
.product-search input { flex: 1 1 280px; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(40,20,20,.15); max-height: 380px; overflow-y: auto; z-index: 30; }
.search-results .result { display: flex; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .6rem .8rem; cursor: pointer; font: inherit; color: var(--ink); }
.search-results .result:hover, .search-results .result:focus { background: #fbf6f4; }
.search-results .price { white-space: nowrap; font-weight: 600; }
.order-group { border: 1px solid var(--line); border-radius: 8px; padding: .8rem; margin-bottom: 1rem; background: #fdfcfb; }
.order-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.order-group-head h3 { margin: 0 .4rem 0 0; color: var(--navy); }
.order-group-foot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; align-items: center; margin-top: .6rem; }
.order-group-foot label { flex-direction: row; align-items: center; margin: 0; }
.order-group-foot input { width: 7rem; }
.order-table td.options { min-width: 180px; }
.order-table td.options select { margin-bottom: .3rem; font-size: .85rem; padding: .3rem; }
.order-table details.more summary { font-size: .8rem; font-weight: 500; margin: .2rem 0; }
.order-table details.more label { margin-bottom: .3rem; }
.order-table details.more input { padding: .3rem; font-size: .9rem; }

.product-picker { border: 1px solid var(--line); border-radius: 8px; padding: .6rem; margin-bottom: .8rem; }
.picker-tools { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.picker-tools input { flex: 1 1 220px; width: auto; }
.picker-list { max-height: 320px; overflow-y: auto; }
.picker-list label { margin: 0; padding: .15rem 0; }
.picker-cat { font-weight: 700; font-size: .8rem; text-transform: uppercase; color: var(--muted); margin: .5rem 0 .2rem; }
ul.log { font-size: .84rem; color: var(--muted); padding-left: 1.1rem; margin: .8rem 0 0; }
ul.log li.danger { color: var(--danger); }
ul.compact { padding-left: 1.1rem; }
code { background: #f3eeea; padding: .05rem .3rem; border-radius: 4px; font-size: .88em; }

@media (max-width: 760px) {
  .container { padding: .8rem; }
  .two-cols { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .topbar { flex-wrap: wrap; }
  .topbar nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  body.nav-open .topbar nav { display: flex; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  h1 { font-size: 1.3rem; }
  .table { font-size: .9rem; }
  .sticky-actions { flex-wrap: wrap; }
  .sticky-actions .grand-total { width: 100%; }
  /* Lignes de commande en cartes */
  .order-table, .order-table tbody { display: block; border: 0 !important; }
  .order-table thead { display: none; }
  .order-table tr { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "prod prod prod rm" "qty pu total total" "opt opt opt opt";
    gap: .3rem .6rem; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: .6rem; margin-bottom: .6rem; background: #fff; }
  .order-table td { display: block; border: 0; padding: 0; text-align: left !important; }
  .order-table td:nth-child(1) { grid-area: prod; }
  .order-table td:nth-child(2) { grid-area: qty; }
  .order-table td:nth-child(3) { grid-area: pu; color: var(--muted); }
  .order-table td:nth-child(4) { grid-area: opt; min-width: 0; }
  .order-table td:nth-child(5) { grid-area: total; text-align: right !important; }
  .order-table td:nth-child(6) { grid-area: rm; text-align: right !important; }
  .order-table tr.free { background: #f4faf2; }
  .order-table td.options select { width: 100%; }
  .order-group { padding: .5rem; }
  .order-group-foot { justify-content: space-between; }
}
@media print {
  .topbar, .actions, .form-actions, .filters, .danger-zone { display: none !important; }
  body { background: #fff; }
}

/* Dégustations */
.degu-line { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; margin-bottom: .6rem; background: #fff; }
.degu-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.degu-cond { background: #f1f7f9; border-left: 3px solid var(--navy); padding: .35rem .6rem; margin: .45rem 0; border-radius: 0 6px 6px 0; }
.degu-avis { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.degu-avis .note { flex-direction: row; align-items: center; gap: .35rem; margin: 0; color: var(--ink); }
.degu-avis .note input { width: 4.2rem; text-align: right; }
.degu-avis .comm { flex: 1 1 220px; }
.seg { display: inline-flex; border: 1px solid #d3d0c6; border-radius: 8px; overflow: hidden; }
.seg button { background: #fff; border: 0; padding: .5rem .8rem; font: inherit; font-size: .9rem; cursor: pointer; min-height: 40px; }
.seg button + button { border-left: 1px solid #d6ccc5; }
.seg button.on.ok { background: #e3f2e7; color: #1d5b30; font-weight: 600; }
.seg button.on.no { background: #fbeceb; color: #8c1d16; font-weight: 600; }
.inline-label { flex-direction: row; align-items: center; gap: .4rem; margin: 0; }
.badge-a_relancer { background: #fff1d6; color: #7a4f00; }
.badge-relancee { background: #eef3fb; color: #23426e; }
.badge-commande { background: #e3f2e7; color: #1d5b30; }
.badge-sans_suite, .badge-pas_relance { background: #f0eceb; color: #7a6f6b; }

/* Fiche client */
.livraison-banner { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; background: #fff4dc; border: 1px solid #f0d9a8; border-left: 5px solid #c98a00; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: 1.05rem; }
.livraison-banner strong { color: #7a4f00; }
.addr { font-style: normal; line-height: 1.55; margin-bottom: .6rem; }
.highlight-box { background: #fff9ec; border: 1px solid #f0d9a8; border-radius: 8px; padding: .8rem .9rem .2rem; margin-top: .6rem; }
.contact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0 .8rem; align-items: end; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.contact-row label { margin-bottom: .4rem; }
.contact-row.archived { opacity: .55; }
.contact-meta { display: flex; flex-direction: column; gap: .2rem; padding-bottom: .5rem; white-space: nowrap; }
.contact-meta label { margin: 0; }
#contacts + template + .btn { margin-top: .6rem; }
@media (max-width: 760px) {
  .contact-row { grid-template-columns: 1fr 1fr; }
  .contact-meta { grid-column: 1 / -1; flex-direction: row; gap: 1rem; align-items: center; }
}
.card.internal { background: #f7f4f8; border: 1px dashed #b9a6c4; }
.card.internal h2 { color: #4f3566; }

/* ---------- Avis client : étoiles et notes sur 100 ---------- */
.stars { color: #d9a400; letter-spacing: .05em; white-space: nowrap; }
.stars .stars-off { color: #d8d5cc; }
.note100 { font-family: var(--title-font); font-weight: 700; color: var(--navy); }
.note100 small { font-weight: 500; color: var(--muted); font-size: .75em; margin-left: 1px; }
.avis-table { width: 100%; border-collapse: collapse; }
.avis-table td, .avis-table th { padding: .45rem .3rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.avis-table .avis-dom th { font-family: var(--title-font); font-weight: 500; color: var(--navy); background: var(--ecume); }
.copy-link { display: flex; gap: .5rem; margin-top: .8rem; }
.copy-link input { flex: 1; font-size: .85rem; color: var(--muted); }

.avis-page .narrow-page { max-width: 720px; }
.avis-domaine h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.avis-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.avis-label { font-weight: 600; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.1rem; line-height: 1; color: #d8d5cc; cursor: pointer; margin: 0; padding: 0 .05rem; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #e0a800; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--mer); border-radius: 4px; }
.avis-produit { border-top: 1px solid var(--line); padding: .8rem 0 .2rem; margin-top: .6rem; }
.avis-produit-head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .4rem; }
.note-input { display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; }
.note-input input[type=range] { flex: 1; accent-color: var(--navy); padding: 0; border: 0; }
.note-input input[type=range].unset { opacity: .4; }
.note-input input[type=number] { width: 4.6rem; text-align: center; font-family: var(--title-font); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.avis-form textarea { min-height: 2.4rem; }

/* ---------- Gestion ---------- */
.gestion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gestion-tile { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.gestion-tile:hover { border-color: var(--mer); box-shadow: 0 4px 18px rgba(37,31,74,.08); }
.gestion-tile strong { font-family: var(--title-font); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.gestion-tile span { color: var(--muted); font-size: .92rem; }
.gestion-tile em { font-style: normal; font-weight: 600; color: var(--mer-fonce); font-size: .9rem; margin-top: auto; padding-top: .4rem; }
.gt-icon { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--ecume); color: var(--navy) !important; display: grid; place-items: center; font-size: 1.15rem !important; font-weight: 700; }
.commission-group { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.commission-group:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.commission-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.commission-head h3 { margin: 0; }
.facture-form { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; margin-top: .8rem; }
.facture-form label { margin: 0; flex: 1 1 180px; }
.facture-form label.label-xs { flex: 0 0 90px; }
.inline-pay { display: inline-flex; gap: .3rem; align-items: center; }
.inline-pay input { width: auto; padding: .3rem .4rem; font-size: .85rem; }
.btn-sm { padding: .3rem .6rem; font-size: .85rem; }
.pill-warn { background: #fff1d6; color: #7a4f00; }
.stat-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.stat-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 .9rem; }
.stat-form-grid .stat-n1 { align-self: end; margin-bottom: 1rem; }
.dim { opacity: .55; }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .88rem; text-decoration: none; color: var(--navy); }
.chip:hover { border-color: var(--mer); background: var(--ecume); }
.stat-table th a { color: inherit; text-decoration: none; }
.stat-table th.on, .stat-table td.on { background: rgba(152,188,202,.14); }
.stat-table th.on a { color: var(--navy); }
.bar-col { width: 22%; min-width: 120px; position: relative; }
.bar { display: block; height: .62rem; border-radius: 0 4px 4px 0; background: var(--navy); margin-top: .35rem; }
.bar-n1 { background: var(--mer); height: .35rem; margin-top: .15rem; opacity: .85; }
.evol { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.evol.up { color: var(--ok); }
.evol.down { color: var(--danger); }

/* ---------- Produits : type de client puis filtres ---------- */
.type-client-bar { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; margin-bottom: .8rem; }
.type-client-label { font-family: var(--title-font); font-weight: 600; color: var(--navy); }
.seg-lg a { display: inline-flex; align-items: center; padding: .5rem 1.1rem; min-height: 40px; text-decoration: none; color: var(--ink); background: #fff; font-family: var(--title-font); font-weight: 500; }
.seg-lg a + a { border-left: 1px solid #d3d0c6; }
.seg-lg a.on { background: var(--navy); color: #fff; }
.seg-lg a:not(.on):hover { background: var(--ecume); }
.produits-filters select, .produits-filters input { flex: 1 1 150px; }
.produits-filters input[type=search] { flex: 2 1 240px; }
.produits-filters .input-prix { flex: 0 1 120px; }
.produits-filters .linklike { align-self: center; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link:hover { color: var(--navy); }
@media (max-width: 640px) {
  .type-client-bar .seg-lg { display: flex; width: 100%; }
  .seg-lg a { flex: 1; justify-content: center; padding: .5rem .3rem; font-size: .9rem; }
}
