/*
 * Feuille de style du site stiens.be (pages publiques, espace client, espace vendeurs).
 * Couleurs : variables --brand, --bg... du theme (Php/theme.php), declarees dans chaque page.
 * Sans ressource externe (compatible avec la Content-Security-Policy du site).
 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.5 Arial, Helvetica, sans-serif; min-height:100vh; display:flex; flex-direction:column; }
body > main { flex:1 0 auto; width:100%; }
a { color:var(--brand); }
img { max-width:100%; height:auto; }
.wrap { max-width:1200px; margin:0 auto; padding:0 16px; }
main { max-width:1200px; margin:0 auto; padding:20px 16px 40px; }

/* ---------- En-tete des espaces vendeurs (ui_page_start) ---------- */
header.top { background:var(--header-bg); color:var(--header-text); border-bottom:4px solid var(--brand); }
header.top .in { max-width:1200px; margin:0 auto; padding:10px 16px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
header.top img { height:56px; width:auto; display:block; }
header.top h1 { margin:0; font-size:20px; color:var(--brand); flex:1; min-width:180px; }
header.top .who { font-size:13px; text-align:right; }
header.top .who a { color:inherit; }

/* ---------- En-tete du site (ui_site_start) ---------- */
.site-top { background:var(--header-bg); color:var(--header-text); position:relative; z-index:30; }
.site-top .in { display:flex; align-items:center; gap:16px; padding:10px 16px; flex-wrap:wrap; }
.burger { display:inline-flex; flex-direction:column; justify-content:center; gap:5px; width:42px; height:42px; padding:0 10px; border:1px solid currentColor; border-radius:6px; cursor:pointer; flex:0 0 auto; }
.burger span { display:block; height:2px; background:currentColor; border-radius:2px; }
.burger:hover { background:rgba(0,0,0,.06); }
.site-logo { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.site-logo img { height:58px; width:auto; display:block; background:#fff; border-radius:6px; padding:2px; }
.site-logo .name { font-size:20px; font-weight:bold; line-height:1.1; }
.site-logo .name small { display:block; font-size:12px; font-weight:normal; opacity:.8; }
.site-search { flex:1; min-width:220px; display:flex; gap:6px; }
.site-search input { flex:1; min-width:0; }
.site-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-size:14px; }
.site-actions a { color:inherit; }
.site-actions .btn { color:#fff; }
.site-lang { font-weight:bold; text-decoration:none; border:1px solid currentColor; border-radius:4px; padding:2px 7px; }
.site-basket { display:inline-flex; align-items:center; gap:6px; text-decoration:none; font-weight:bold; }
.site-basket .count { display:inline-block; min-width:22px; padding:0 6px; border-radius:999px; background:var(--brand); color:#fff; text-align:center; font-size:13px; }

/* ---------- Menu : barre horizontale sur PC, panneau lateral ouvert par ☰ sur mobile ---------- */
.site-nav { background:var(--nav-bg); }
.site-nav .in { display:flex; flex-wrap:wrap; gap:2px 6px; padding:0 16px; }
.site-nav a { color:var(--nav-text); text-decoration:none; font-weight:bold; font-size:14px; padding:11px 10px; border-bottom:3px solid transparent; }
.site-nav a:hover { background:rgba(255,255,255,.1); }
.site-nav a.on { border-bottom-color:var(--nav-text); }
.site-nav a.nav-admin { margin-left:auto; }	/* Administration (comptes @stiens.be) : a droite de la barre */
.nav-toggle { position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.site-body { display:block; flex:1 0 auto; }
.site-body.catalog { display:grid; grid-template-columns:280px minmax(0, 1fr); }
.site-aside { display:none; background:var(--card); border-right:1px solid var(--line); min-width:0; }
.site-body.catalog .site-aside { display:block; }
.aside-menu { display:none; }
.aside-in { position:sticky; top:0; max-height:100vh; overflow-y:auto; padding:10px 0 24px; }
.aside-nav a { display:block; padding:8px 18px; text-decoration:none; color:var(--text); font-weight:bold; font-size:14px; }
.aside-nav a:hover { background:#F3F4F6; }
.aside-nav a.on { color:var(--brand); background:#F3F4F6; background:color-mix(in srgb, var(--brand) 10%, #fff); border-left:3px solid var(--brand); padding-left:15px; }
.aside-title { margin:16px 18px 6px; font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); }
.site-aside .families { border:0; border-radius:0; padding:0; background:transparent; }
.aside-close, .nav-backdrop { display:none; }
.site-main { min-width:0; display:flex; flex-direction:column; }
.site-main > main { flex:1 0 auto; width:100%; }
@media (min-width: 1001px) {
  /* PC : pas de bouton ☰ ; familles du catalogue a gauche sur les pages du catalogue */
  .burger { display:none; }
}
@media (max-width: 1000px) {
  /* Mobile et tablette : barre remplacee par le panneau, qui s'ouvre par-dessus la page */
  .site-nav { display:none; }
  .site-body, .site-body.catalog { display:block; }
  .aside-menu { display:block; }
  .site-aside, .site-body.catalog .site-aside { display:block; position:fixed; top:0; bottom:0; left:0; width:300px; max-width:86vw; z-index:50; transform:translateX(-105%); transition:transform .2s ease; box-shadow:0 0 24px rgba(0,0,0,.25); }
  .aside-in { position:static; max-height:none; height:100%; }
  .nav-toggle:checked ~ .site-body .site-aside { transform:none; }
  .nav-toggle:checked ~ .site-body .nav-backdrop { display:block; position:fixed; top:0; right:0; bottom:0; left:0; background:rgba(0,0,0,.45); z-index:40; }
  .aside-close { display:block; padding:12px 18px; font-weight:bold; cursor:pointer; border-bottom:1px solid var(--line); }
}
/* ---------- Pied de page (ui_site_end) ---------- */
.site-foot { background:var(--header-bg); color:var(--header-text); margin-top:32px; font-size:14px; line-height:1.6; }
.site-foot a { color:inherit; text-decoration:none; opacity:.85; }
.site-foot a:hover { opacity:1; text-decoration:underline; }
.site-foot .btn { opacity:1; color:#fff; text-decoration:none; }
.foot-cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:28px 32px; padding:32px 0 24px; }
.foot-col h2 { margin:0 0 12px; font-size:13px; text-transform:uppercase; letter-spacing:.6px; }
.foot-col h2::after { content:''; display:block; width:28px; height:2px; margin-top:6px; background:var(--brand); }
.foot-col p { margin:0 0 10px; }
.foot-col ul { list-style:none; margin:0 0 12px; padding:0; }
.foot-col li { margin-bottom:6px; }
.foot-brand { display:flex; align-items:center; gap:10px; margin-bottom:10px; font-size:16px; }
.foot-brand img { background:#fff; border-radius:4px; padding:2px; width:auto; height:40px; }
.foot-muted, .foot-hours li { opacity:.75; }
.foot-hours strong { opacity:1; }
.foot-bottom { display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between; align-items:center; padding:14px 0 18px; border-top:1px solid rgba(127,127,127,.3); font-size:12px; opacity:.8; }
.theme-pick { font-size:12px; }
.theme-pick a { margin-right:6px; text-decoration:underline; }

/* ---------- Composants ---------- */
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:16px; margin-bottom:16px; }
.card h2 { margin:0 0 12px; font-size:13px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); }
/* min-height : hauteur d'un bouton btn-small, pour que le titre soit a la meme hauteur avec ou sans bouton a droite */
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; min-height:30px; }
.card-head h2 { margin:0; }
.card > p:last-child { margin-bottom:0; }	/* note en bas d'une carte : meme marge basse que la carte (padding) */

/* ---------- Administration : menu a gauche (staff_nav, option 'side' de ui_site_start) ---------- */
.side-layout { display:grid; grid-template-columns:240px minmax(0, 1fr); gap:24px; align-items:start; }
.side-main { min-width:0; overflow-x:auto; }
main:has(> .side-layout) { max-width:1480px; }	/* administration : tableaux larges a cote du menu */
@media (min-width: 761px) {
  table.orders td[data-label="Relance"] { min-width:170px; }	/* Paniers en cours : compteur et bouton lisibles */
  table.orders td[data-label="Dates"] { min-width:110px; }
  table.orders td[data-label="Client"] { min-width:170px; }	/* Commandes : nom du client lisible a cote des articles */
}
.nowrap { white-space:nowrap; }
.admin-side { position:sticky; top:16px; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:6px 0 10px; }
.admin-side-title { margin:12px 16px 4px; font-size:11px; font-weight:bold; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); }
.admin-side a { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 16px 8px 13px; border-left:3px solid transparent;
  color:var(--text); text-decoration:none; font-weight:bold; font-size:14px; }
.admin-side a:hover { background:#F3F4F6; }
.admin-side a.on { color:var(--brand); border-left-color:var(--brand); background:#F3F4F6; background:color-mix(in srgb, var(--brand) 10%, #fff); }
.admin-side .alert { flex:0 0 auto; min-width:20px; padding:0 6px; border-radius:999px; background:var(--danger); color:#fff; font-size:12px; text-align:center; }
@media (max-width: 1000px) {
  /* Mobile et tablette : menu en boutons au-dessus du contenu */
  .side-layout { grid-template-columns:minmax(0, 1fr); gap:14px; }
  /* une ligne qu'on fait glisser (le menu complet prendrait la moitie de l'ecran sur un telephone) */
  .admin-side { position:static; display:flex; flex-wrap:nowrap; gap:6px; padding:8px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
  .admin-side a { flex:0 0 auto; white-space:nowrap; }
  .admin-side-group { display:contents; }
  .admin-side-title { display:none; }
  .admin-side a { padding:6px 12px; border:1px solid var(--line); border-radius:999px; font-size:13px; }
  .admin-side a.on { background:var(--brand); border-color:var(--brand); color:#fff; order:-1; }	/* page en cours toujours visible */
  .admin-side a.on .alert { background:#fff; color:var(--brand); }
}
/* Messages (tickets) : fil de la conversation, client a gauche, Stiens a droite */
.thread { display:flex; flex-direction:column; gap:12px; }
.msg { max-width:80%; padding:10px 14px; border-radius:10px; background:#F3F4F6; border:1px solid var(--line); }
.msg-stiens { align-self:flex-end; background:#F3F4F6; background:color-mix(in srgb, var(--brand) 9%, #fff); border-color:color-mix(in srgb, var(--brand) 25%, #fff); }
.msg-head { font-size:13px; margin-bottom:4px; }
.msg-head span { color:var(--muted); }
.msg-text { overflow-wrap:anywhere; }
.msg-basket { margin-top:8px; padding-top:8px; border-top:1px dashed var(--line); font-size:13px; }
.msg-basket ul { margin:4px 0 0; padding-left:18px; }
@media (max-width: 760px) { .msg { max-width:100%; } }

/* Demandes de modification : detail avant -> apres */
.changes { list-style:none; margin:0; padding:0; }
.changes li { margin-bottom:4px; }
.changes .old { color:var(--muted); text-decoration:line-through; }
.changes .new { font-weight:bold; }
.focus-card { border-left:4px solid var(--brand); }

/* ---------- Administration (/admin) : chiffres du tableau de bord, deux colonnes ---------- */
.admin-stats { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; margin:0 0 20px; }
.admin-stat { display:flex; flex-direction:column; gap:2px; padding:14px 16px; border:1px solid var(--line); border-left:4px solid var(--line); border-radius:8px;
  background:var(--card); color:var(--text); text-decoration:none; }
.admin-stat:hover { border-color:var(--brand); }
.admin-stat .n { font-size:28px; font-weight:bold; line-height:1.1; }
.admin-stat .l { font-weight:bold; }
.admin-stat.alert { border-left-color:var(--brand); }
.admin-stat.alert .n { color:var(--brand); }
.admin-cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); gap:16px; align-items:start; }
.admin-cols > .card { min-width:0; margin-bottom:0; }	/* espacement : celui de la grille */
.admin-cols { margin-bottom:16px; }
@media (max-width: 760px) {
  /* Telephone : chiffres du tableau de bord plus compacts (neuf cartes) */
  .admin-stats { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-bottom:14px; }
  .admin-stat { padding:10px 12px; }
  .admin-stat .n { font-size:22px; }
  .admin-stat .l { font-size:14px; line-height:1.3; }
  .admin-stat .small { font-size:12px; }
}
.card-head a.small { color:var(--brand); white-space:nowrap; }
/* Listes compactes du tableau de bord : nom et detail a gauche, montant et etat a droite (jamais hors du cadre) */
.feed { list-style:none; margin:0; padding:0; }
.feed li { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.feed li:first-child { border-top:0; padding-top:0; }
.feed-main { min-width:0; overflow-wrap:anywhere; line-height:1.35; }
.feed-main a { text-decoration:none; }
.feed-main a:hover { text-decoration:underline; }
.feed-main .small { margin-top:2px; }
.feed-side { flex:0 1 auto; max-width:48%; display:flex; flex-direction:column; align-items:flex-end; gap:4px; text-align:right; }
.feed-side .badge { white-space:normal; text-align:center; line-height:1.3; border-radius:8px; }

/* Administration > Serveur : resume et listes de controles (point vert / orange / rouge / gris) */
.srv-summary { display:flex; align-items:flex-start; gap:14px; line-height:24px; padding:16px 18px; margin-bottom:16px; border-radius:8px; border:1px solid var(--line); background:var(--card); }
.srv-summary strong { font-size:17px; }
.srv-summary .dot, .check .dot { flex:0 0 auto; width:12px; height:12px; border-radius:50%; background:#9CA3AF; }
.srv-summary .dot { width:16px; height:16px; margin-top:4px; }	/* centre sur la ligne du titre */
.srv-summary .small { line-height:1.4; }
.srv-summary.st-ok, .check.st-ok .dot { --st:var(--ok); }
.srv-summary.st-warn, .check.st-warn .dot { --st:var(--warn); }
.srv-summary.st-ko, .check.st-ko .dot { --st:var(--danger); }
.srv-summary { border-left:5px solid var(--st, var(--line)); }
.srv-summary .dot, .check .dot { background:var(--st, #9CA3AF); }
.srv h2 { font-size:17px; margin:0 0 6px; }
.checks { list-style:none; margin:0; padding:0; }
.check { display:grid; grid-template-columns:12px minmax(180px, 280px) minmax(0, 1fr); gap:6px 14px; align-items:start; padding:11px 0; border-top:1px solid var(--line); line-height:22px; }
.check:first-child { border-top:0; }
.check .dot { margin-top:5px; }	/* centre sur la premiere ligne de texte (hauteur de ligne 22px) */
.check .val small { line-height:1.4; }
.check .lbl { font-weight:bold; }
.check .val small { display:block; color:var(--muted); font-size:13px; margin-top:2px; }
.check.st-ko .val small { color:var(--danger); }
@media (max-width: 760px) {
  .check { grid-template-columns:12px minmax(0, 1fr); }
  .check .val { grid-column:2; }
}
h1.page { font-size:24px; margin:0 0 16px; color:var(--text); }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.chip { display:inline-block; padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--text); text-decoration:none; font-size:14px; }
.chip.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.chip .n { opacity:.75; margin-left:4px; }

/* ---------- Filtres des listes d'articles (shop_filters.php) : bouton, puces, panneau lateral droit ---------- */
.list-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.list-head h1.page { margin:0; }
.list-head .filter-btn { margin-left:auto; }
.filter-btn { display:inline-flex; align-items:center; gap:6px; cursor:pointer; user-select:none; }
.filter-btn .count { display:inline-block; min-width:20px; padding:0 6px; border-radius:999px; background:var(--brand); color:#fff; font-size:12px; text-align:center; }
.filter-chips { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 14px; }
.filter-chips .chip { cursor:pointer; padding:4px 10px; font-size:13px; }
.link-btn, button.link-btn { background:none; border:0; padding:0; color:var(--brand); text-decoration:underline; cursor:pointer; font:inherit; font-size:13px; }
.link-btn:hover, button.link-btn:hover { background:none; color:var(--brand-dark); }
/* Calque de la taille de l'ecran qui coupe le panneau ferme (sinon Chrome Android elargit la page) */
.filter-layer { position:fixed; top:0; right:0; bottom:0; left:0; overflow:hidden; pointer-events:none; z-index:60; }
.filter-panel { position:absolute; top:0; right:0; bottom:0; width:360px; max-width:92%; background:var(--card); box-shadow:0 0 24px rgba(0,0,0,.25);
  transform:translateX(105%); visibility:hidden; transition:transform .2s ease, visibility .2s; pointer-events:auto; }
.filter-panel form { display:flex; flex-direction:column; height:100%; }
.filter-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--line); font-size:17px; }
.filter-close { font-size:26px; line-height:1; cursor:pointer; padding:0 4px; color:var(--muted); }
.filter-body { flex:1; overflow-y:auto; padding:18px 18px 20px; }
.filter-body fieldset { border:0; margin:0 0 32px; padding:0; min-width:0; }
.filter-body fieldset:last-child { margin-bottom:0; }
.filter-body legend { padding:0; margin-bottom:10px; font-size:15px; font-weight:bold; color:var(--text); }
.filter-body input[type=search], .filter-body select { width:100%; }
.filter-body small { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.filter-check { display:flex; gap:10px; align-items:flex-start; padding:6px 0; cursor:pointer; }
.filter-check input { width:18px; height:18px; margin:2px 0 0; accent-color:var(--brand); flex:0 0 auto; }
.filter-check small { margin-top:0; display:block; color:var(--muted); font-size:12px; }
.filter-presets { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.filter-presets .chip { cursor:pointer; padding:5px 11px; font-size:13px; }
.filter-presets .chip:not(.on):hover { background:#F3F4F6; border-color:var(--brand); color:var(--brand); }
.filter-range { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:10px; }
.filter-range label { font-size:13px; color:var(--muted); }
.filter-money { display:flex; align-items:center; margin-top:4px; border:1px solid #D1D5DB; border-radius:6px; background:#fff; }
.filter-money:focus-within { border-color:var(--brand); }
.filter-money input { flex:1; width:100%; min-width:0; border:0; background:transparent; outline:0; }
.filter-money span { padding:0 10px 0 2px; color:var(--muted); }
.filter-default { position:absolute; width:1px; height:1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); }
.filter-foot { display:flex; gap:10px; padding:12px 18px; border-top:1px solid var(--line); background:var(--card); }
.filter-foot button { flex:1; }
#filter-toggle:checked ~ .filter-layer .filter-panel { transform:none; visibility:visible; }
#filter-toggle:checked ~ .filter-backdrop { display:block; position:fixed; top:0; right:0; bottom:0; left:0; background:rgba(0,0,0,.45); z-index:55; }
.filter-backdrop { display:none; }
body:has(#filter-toggle:checked), body:has(#nav-toggle:checked) { overflow:hidden; }
form.search { display:flex; gap:8px; margin-bottom:16px; }
input[type=search], input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { font:inherit; padding:8px 10px; border:1px solid #D1D5DB; border-radius:6px; background:#fff; color:#111827; }
input[type=search] { flex:1; min-width:0; }
textarea { width:100%; min-height:70px; }
button, .btn { font:inherit; padding:8px 16px; border-radius:6px; border:1px solid var(--brand); background:var(--brand); color:#fff; cursor:pointer; text-decoration:none; display:inline-block; }
button:hover, .btn:hover { background:var(--brand-dark); border-color:var(--brand-dark); }
.btn-light, button.btn-light { background:#fff; color:var(--brand); }
.btn-light:hover, button.btn-light:hover { background:#F3F4F6; color:var(--brand-dark); }
.btn-small { padding:4px 10px; font-size:13px; }
.btn-danger, button.btn-danger { background:#fff; color:var(--danger); border-color:var(--danger); }
.btn-danger:hover, button.btn-danger:hover { background:#FEF2F2; color:var(--danger); border-color:var(--danger); }
button:disabled { opacity:.5; cursor:not-allowed; }
/* Bouton grise (action refusee au role) : explication au survol (title) ; span role=button, aria-disabled */
.btn.off, .btn.off:hover { opacity:.5; cursor:not-allowed; background:var(--brand); border-color:var(--brand); color:#fff; }
table.list { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
table.list th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); background:#F9FAFB; padding:10px 12px; border-bottom:1px solid var(--line); }
table.list td { padding:12px; border-bottom:1px solid var(--line); vertical-align:top; }
table.list tr:last-child td { border-bottom:0; }
table.list tr:hover td { background:#F9FAFB; }
table.list .num, .num { text-align:right; white-space:nowrap; }
table.roles th.ck, table.roles td.ck { text-align:center; }	/* Collaborateurs et Roles : "Ce que permet chaque role", une colonne par role */
table.roles td:first-child { min-width:280px; }	/* libelle de la permission : lisible sur une ou deux lignes */
.small { font-size:13px; color:var(--muted); }
.badge { display:inline-block; padding:3px 10px; border-radius:999px; color:#fff; font-size:12px; font-weight:bold; white-space:nowrap; }
.badge-default { background:var(--ok); }
.grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:16px; }
dl { margin:0; display:grid; grid-template-columns:auto 1fr; gap:4px 12px; }
dt { color:var(--muted); font-size:13px; }
dd { margin:0; }
/* Liste d'informations avec icone (site_info_list) : coordonnees de Stiens, informations du compte */
.info-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:16px 24px; }
.info-list li { display:flex; align-items:flex-start; gap:12px; min-width:0; }
.info-list li > div { min-width:0; }
.info-ico { flex:0 0 36px; width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:var(--brand); background:#EEF0FA; background:color-mix(in srgb, var(--brand) 12%, transparent); }
.info-label { display:block; font-size:12px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); line-height:1.4; }
.info-value { overflow-wrap:anywhere; }
.info-value a { text-decoration:none; font-weight:bold; }
.info-value a.small { font-weight:normal; color:var(--brand); }
.info-value a:hover { text-decoration:underline; }
.card .info-list + p, .card .info-list + .comment { margin-top:16px; }	/* passe avant .intro p */
.flash { padding:12px 16px; border-radius:6px; margin-bottom:16px; font-weight:bold; }
.flash-ok { background:#ECFDF5; color:#065F46; border:1px solid #A7F3D0; }
.flash-error { background:#FEF2F2; color:#991B1B; border:1px solid #FECACA; }
.flash-info { background:#EFF6FF; color:#1E3A8A; border:1px solid #BFDBFE; }
.empty { padding:32px; text-align:center; color:var(--muted); background:var(--card); border:1px dashed var(--line); border-radius:8px; }
.comment { white-space:pre-wrap; background:#F9FAFB; border-left:3px solid var(--brand); padding:10px 14px; }
ol.history { margin:0; padding-left:18px; }
ol.history li { margin-bottom:8px; }
nav.tabs { background:var(--card); border-bottom:1px solid var(--line); }
nav.tabs .in { max-width:1200px; margin:0 auto; padding:0 16px; display:flex; flex-wrap:wrap; gap:0 4px; }
nav.tabs a { padding:12px 14px; text-decoration:none; color:var(--muted); border-bottom:3px solid transparent; white-space:nowrap; font-weight:bold; }
nav.tabs a.on { color:var(--brand); border-bottom-color:var(--brand); }
nav.tabs .alert { display:inline-block; min-width:20px; padding:0 6px; margin-left:6px; border-radius:999px; background:var(--danger); color:#fff; font-size:12px; text-align:center; }
.ok { color:var(--ok); font-weight:bold; } .ko { color:var(--danger); font-weight:bold; }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px 16px; }
.form-grid label { display:block; font-size:13px; color:var(--muted); }
.form-grid input[type=text], .form-grid input[type=email], .form-grid input[type=password], .form-grid select { display:block; width:100%; margin-top:4px; }
.form-grid .wide { grid-column:1 / -1; }
.form-narrow { max-width:520px; }
.inline { display:inline; margin:0; }
/* ---------- Boutons icones et menu deroulant (Mon panier, order.php) ---------- */
.icon-btn, button.icon-btn { padding:6px; line-height:0; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; }
.icon-text { display:inline-flex; align-items:center; gap:6px; }
.icon-bar { display:inline-flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:flex-end; }
.menu { position:relative; display:inline-block; }
.menu > summary { list-style:none; cursor:pointer; }
.menu > summary::-webkit-details-marker { display:none; }
.menu[open] > summary.btn-light { background:#F3F4F6; }	/* bouton plein (Se connecter) : garde sa couleur */
.menu-list { position:absolute; right:0; top:calc(100% + 4px); z-index:30; min-width:220px; max-width:280px; background:var(--card); border:1px solid var(--line);
  border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.15); padding:4px; text-align:left; white-space:normal; }
.menu-title { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; padding:6px 10px 4px; }
.menu-list button { display:block; width:100%; text-align:left; background:none; border:0; border-radius:6px; color:var(--text); padding:8px 10px; font-size:14px; }
.menu-list button:hover { background:#F3F4F6; color:var(--brand); }
/* Vrais boutons dans un menu (Passer a cette societe, Supprimer) : style de bouton, pas de ligne de liste */
.menu-list button.btn-small { display:block; width:100%; text-align:center; background:var(--brand); border:1px solid var(--brand); color:#fff; font-size:13px; padding:6px 10px; }
.menu-list button.btn-small:hover { background:var(--brand-dark); color:#fff; }
.menu-list button.btn-small.btn-danger { background:#fff; color:var(--danger); border-color:var(--danger); }
.menu-list button.btn-small.btn-danger:hover { background:#FEF2F2; color:var(--danger); }
table.list.basket { overflow:visible; }	/* le menu "Deplacer vers" depasse du tableau */
table.list.basket thead th:first-child { border-top-left-radius:8px; }
table.list.basket thead th:last-child { border-top-right-radius:8px; }
table.list.basket td { padding:8px 10px; vertical-align:middle; }
table.list.basket .qty-form { display:inline-flex; gap:4px; align-items:center; }
table.list.basket .qty-form input { width:64px; padding:5px 6px; text-align:right; }
table.list.basket tr.total-row td { background:#F9FAFB; }
.add-line { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; margin-top:14px; }
.add-line label { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); }
.add-line input { padding:5px 8px; }
.add-line input[name=code] { width:140px; }
.add-line input[name=qty] { width:64px; text-align:right; }
/* ---------- Commander (commande.php) : etapes a gauche, recapitulatif fixe a droite ---------- */
.checkout { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:0 16px; align-items:start; }	/* les cartes ont deja leur marge basse */
.checkout-main { grid-column:1; grid-row:1; }
.checkout-side { grid-column:2; grid-row:1; position:sticky; top:16px; }
.card h2.step { display:flex; align-items:center; gap:10px; color:var(--text); font-size:14px; }
.step-num { flex:0 0 auto; width:24px; height:24px; border-radius:50%; background:var(--brand); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:13px; letter-spacing:0; }
.choice-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:10px; }
.choice-card { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1px solid var(--line); border-radius:8px; cursor:pointer; background:var(--card); }
.choice-card:hover { border-color:var(--brand); }
.choice-card:has(input:checked) { border-color:var(--brand); box-shadow:0 0 0 1px var(--brand); }
.choice-card input { margin:3px 0 0; accent-color:var(--brand); flex:0 0 auto; }
.choice-card strong { display:block; }
.choice-card small { display:block; color:var(--muted); font-size:13px; margin-top:2px; }
.summary-list { list-style:none; margin:0; padding:0; }
.summary-list li { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); font-size:14px; }
.summary-list li strong { white-space:nowrap; }
.summary-list .sub { color:var(--muted); font-size:12px; margin-top:2px; }
.summary-total { display:flex; justify-content:space-between; gap:12px; padding-top:12px; font-weight:bold; font-size:16px; }
.btn-block, button.btn-block { display:block; width:100%; padding:12px 16px; font-size:16px; }
.switch-list { list-style:none; margin:0; padding:0; }
.switch-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-top:1px solid var(--line); }	/* Mon compte : autres acces avec la meme adresse */
details.tip { margin-top:12px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:#F9FAFB; font-size:13px; }
details.tip summary { cursor:pointer; font-weight:bold; color:var(--brand); }
details.tip p { margin:8px 0 0; color:var(--text); }	/* Mon compte : conseil une adresse par societe */
/* ---------- Mes commandes (mescommandes.php) : barre de recherche, etats, liste ---------- */
.orders-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }
.orders-bar input[type=search] { flex:1 1 260px; }
.orders-bar select { max-width:240px; }
table.list.orders { overflow:visible; }	/* menu "Supprimer" (administration) qui depasse du tableau */
table.list.orders thead th:first-child { border-top-left-radius:8px; }
table.list.orders thead th:last-child { border-top-right-radius:8px; }
table.list.orders td { vertical-align:top; }
table.list.orders .order-cell a strong { white-space:nowrap; }
@media (max-width: 900px) {
  .checkout { grid-template-columns:1fr; }
  .checkout-main, .checkout-side { grid-column:1; grid-row:auto; }
  .checkout-side { position:static; }
}
.row-actions { display:inline-flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }	/* boutons d'une ligne de tableau */
.row-offer { margin:6px 0 0; }
.row-actions.one-line { flex-wrap:nowrap; }
/* Utilisateurs : une ligne par societe (proprietaire, bouton Inviter), puis ses utilisateurs en sous-lignes */
table.users-table tr.group-row td { background:#F9FAFB; background:color-mix(in srgb, var(--brand) 6%, #fff); border-top:2px solid var(--line); }
table.users-table tr.group-row:hover td { background:color-mix(in srgb, var(--brand) 6%, #fff); }
.group-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:8px 16px; }
.group-head > div:first-child { min-width:0; overflow-wrap:anywhere; }
.invite-inline > summary { list-style:none; cursor:pointer; }
.invite-inline > summary::-webkit-details-marker { display:none; }
.invite-inline[open] { flex-basis:100%; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px; }
.invite-inline[open] > summary { margin-bottom:12px; }
.invite-inline select { display:block; width:100%; margin-top:4px; }
table.users-table tr.sub-row td:first-child { padding-left:28px; }
code { font-size:12px; color:var(--muted); word-break:break-all; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Liste des articles dans une cellule (Mes commandes) : quantite, code, description, montant */
ul.items { list-style:none; margin:0; padding:0; }
ul.items li { display:grid; grid-template-columns:4.5em 9em 1fr auto; gap:0 14px; padding:4px 0; border-bottom:1px dashed var(--line); }
ul.items li:last-child { border-bottom:0; }
ul.items li.more { display:block; padding-top:6px; }
ul.items .q { text-align:right; white-space:nowrap; font-weight:bold; }
ul.items .c { color:var(--muted); font-size:13px; overflow-wrap:anywhere; padding-top:1px; }
ul.items .a { text-align:right; white-space:nowrap; color:var(--muted); }
table.list td.wide-cell { width:55%; }
.mobile-only, ul.items li.mobile-only { display:none; }
/* Mon compte : adresses de livraison (nom, adresse, contact ; le reste pour les boutons, a droite) */
table.addresses th:nth-child(1) { width:28%; }
table.addresses th:nth-child(2) { width:32%; }
table.addresses th:nth-child(3) { width:16%; }

/* ---------- Accueil ---------- */
.hero { background:var(--header-bg); border-radius:10px; overflow:hidden; margin-bottom:16px; display:flex; justify-content:center; }
.hero img { display:block; width:100%; max-width:1000px; }
.notice { background:#FFFBEB; border:1px solid #FDE68A; color:#78350F; border-radius:8px; padding:12px 16px; margin-bottom:16px; font-weight:bold; }
.intro { display:grid; grid-template-columns:2fr 1fr; gap:16px; }
.intro h3 { margin:14px 0 4px; color:var(--accent); font-size:16px; }
.intro h3:first-child { margin-top:0; }
.intro p { margin:0 0 6px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px 16px; }
.tile h3 { margin:0 0 8px; font-size:16px; }
.tile h3 a { color:var(--text); text-decoration:none; }
.tile ul { list-style:none; margin:0; padding:0; columns:1; }
.tile li { padding:2px 0; font-size:14px; }
.tile li a { text-decoration:none; }
.tile li a:hover { text-decoration:underline; }

/* Annonces de l'accueil (announcement_view.php) : une bande par annonce, teintee de son ton (couleur du theme),
   pastille puis texte ; meme rendu dans l'apercu de l'editeur (vendeur_annonces.php) */
.announcements { display:flex; flex-direction:column; gap:8px; margin:0 0 16px; }
.announcement { background:#EFF6FF; background:color-mix(in srgb, var(--tone) 12%, var(--card)); border:1px solid color-mix(in srgb, var(--tone) 30%, transparent);
  border-left:4px solid var(--tone); border-radius:8px; color:var(--text); animation:announcement-in .45s ease-out both; }
.announcement + .announcement { animation-delay:.08s; }
.announcement-line { margin:0 auto; max-width:72rem; display:flex; align-items:center; justify-content:center; gap:10px; padding:10px 16px; font-weight:bold; font-size:15px; line-height:1.45; }
.announcement-text { min-width:0; max-width:75ch; text-align:left; overflow-wrap:anywhere; text-wrap:pretty; }
.announcement-dot { flex:0 0 auto; width:10px; height:10px; border-radius:50%; background:var(--tone); box-shadow:0 0 0 3px color-mix(in srgb, var(--tone) 25%, transparent); }
.announcement-link { margin-left:6px; color:inherit; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.announcement-link:hover { color:var(--tone); }
@keyframes announcement-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .announcement { animation:none; } }
/* Gestion des annonces */
.announce-cell { display:flex; gap:10px; align-items:flex-start; }
.announce-cell .announcement-dot { margin-top:6px; }
.announce-text { font-weight:bold; overflow-wrap:anywhere; }
.announce-editor fieldset { border:0; border-top:1px solid var(--line); margin:0 0 6px; padding:14px 0 6px; min-width:0; }
.announce-editor fieldset:first-of-type { border-top:0; padding-top:0; }
.announce-editor legend { font-weight:bold; padding:0 8px 0 0; color:var(--text); }
.announce-editor input[type=datetime-local], .announce-editor input[type=number] { display:block; width:100%; margin-top:4px; font:inherit; padding:8px 10px; border:1px solid #D1D5DB; border-radius:6px; background:#fff; color:#111827; }
.announce-editor label.announce-opt { display:block; margin:6px 0; font-weight:normal; }
.announce-editor [aria-invalid="true"] { border-color:var(--danger); box-shadow:0 0 0 1px var(--danger); }
.field-error { display:block; margin-top:4px; color:var(--danger); font-size:13px; font-weight:bold; }
.tone-picks { display:flex; flex-wrap:wrap; gap:8px; }
.tone-pick { display:inline-flex; align-items:center; gap:8px; padding:6px 12px 6px 8px; border:1px solid var(--line); border-radius:999px; cursor:pointer; font-size:14px; background:var(--card); }
.tone-pick input { margin:0; accent-color:var(--brand); }
.tone-pick:has(input:checked) { border-color:var(--brand); box-shadow:0 0 0 1px var(--brand); font-weight:bold; }
.announce-preview { display:flex; flex-direction:column; gap:6px; padding:12px; border:1px dashed var(--line); border-radius:8px; background:var(--bg); }
.announce-preview .announcements { margin:0; }
.announce-empty { margin:0; font-style:italic; }
/* Interrupteur a oeil Visible / Masquee : bouton de la liste (aria-checked) ou case a cocher de l'editeur */
.eye-switch { display:inline-flex; align-items:center; gap:8px; padding:2px 0; border:0; background:none; color:var(--text); font:inherit; font-size:14px; cursor:pointer; text-align:left; }
button.eye-switch:hover { background:none; border:0; color:var(--text); }
.eye-switch .switch-track { position:relative; flex:0 0 auto; width:46px; height:26px; border-radius:999px; background:#D1D5DB; transition:background .2s; }
.eye-switch .switch-knob { position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; color:#6B7280;
  display:flex; align-items:center; justify-content:center; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:transform .2s, color .2s; }
.eye-switch[aria-checked="true"] .switch-track, .eye-check:has(input:checked) .switch-track { background:var(--ok); }
.eye-switch[aria-checked="true"] .switch-knob, .eye-check:has(input:checked) .switch-knob { transform:translateX(20px); color:var(--ok); }
.eye-switch[aria-checked="false"] .switch-text { color:var(--muted); }
.eye-switch:focus-visible .switch-track, .eye-check:has(input:focus-visible) .switch-track { outline:2px solid var(--brand); outline-offset:2px; }
.eye-check { margin:6px 0 10px; }
.eye-check input { position:absolute; opacity:0; width:1px; height:1px; }
.eye-check .eye:nth-child(1), .eye-check .when-on { display:none; }
.eye-check:has(input:checked) .eye:nth-child(1), .eye-check:has(input:checked) .when-on { display:inline; }
.eye-check:has(input:checked) .eye:nth-child(2), .eye-check:has(input:checked) .when-off { display:none; }
.eye-check .switch-text { font-size:15px; }
@media (prefers-reduced-motion: reduce) { .eye-switch .switch-track, .eye-switch .switch-knob { transition:none; } }
.announce-preview.is-masked .announcements { opacity:.4; filter:grayscale(.6); }
.announce-preview.is-masked::before { content:"Masquée : cet aperçu ne s'affiche pas sur l'accueil"; font-size:13px; font-weight:bold; color:var(--muted); }
.form-actions { margin:16px 0 0; display:flex; gap:8px; flex-wrap:wrap; }

/* Securite : double authentification (securite.php, mfa_login.php) */
.mfa-options, .mfa-manage { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:16px; margin-top:12px; }
.mfa-option, .mfa-manage > div { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:8px; padding:14px 16px; background:var(--bg); }
.mfa-option > :last-child, .mfa-manage > div > :last-child { margin-top:auto; }	/* bouton en bas de la carte : meme hauteur dans les deux cartes, quelle que soit la longueur du texte */
.mfa-option h3, .mfa-manage h3 { margin:0 0 6px; font-size:16px; }
.mfa-option.is-on { border-color:var(--ok); background:color-mix(in srgb, var(--ok) 6%, var(--card)); }
.mfa-option-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:4px; }
.mfa-option-head h3 { margin:0; }
.mfa-off { margin-top:6px; }
.mfa-off summary { list-style:none; cursor:pointer; display:inline; }
.mfa-off summary::-webkit-details-marker { display:none; }
.mfa-off[open] summary { display:block; margin-bottom:8px; }
.mfa-step-title { margin:12px 0 4px; font-size:16px; }
.mfa-setup { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:16px 28px; align-items:start; margin-top:8px; }
.mfa-qr { width:220px; max-width:100%; padding:8px; background:#fff; border:1px solid var(--line); border-radius:8px; }
.mfa-qr svg { display:block; width:100%; height:auto; }
.mfa-secret { display:inline-block; font-size:16px; color:var(--text); letter-spacing:1px; padding:6px 10px; background:var(--bg); border-radius:6px; word-break:break-all; }
.mfa-confirm { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin:6px 0; }
.mfa-confirm label, .mfa-code-label { display:block; font-size:13px; color:var(--muted); }
input.mfa-code { display:block; margin-top:4px; width:12ch; font-family:Consolas, monospace; font-size:22px; letter-spacing:4px; text-align:center; }
.mfa-card input.mfa-code { width:100%; }
.mfa-links { margin-top:10px; font-size:13px; color:var(--muted); }
.mfa-code-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px 16px; margin:12px 0; padding-left:24px; }
.mfa-code-list code { font-size:17px; color:var(--text); letter-spacing:1px; }
.mfa-codes { border:2px solid var(--warn); }
.mfa-recovery { margin-top:14px; }
.mfa-recovery summary { cursor:pointer; }
@media (max-width: 760px) { .mfa-setup { grid-template-columns:1fr; } .mfa-qr { margin:0 auto; } }
@media print {
  body * { visibility:hidden; }
  .mfa-codes, .mfa-codes * { visibility:visible; }
  .mfa-codes { position:absolute; top:0; left:0; right:0; border:0; }
  .mfa-codes .mfa-actions, .mfa-codes form { display:none; }
}

/* Fermetures (closure_view.php) : liste et calendrier mois / annee */
.closures-grid { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr); gap:16px 28px; align-items:start; }
.closures-list { list-style:none; margin:0; padding:0; }
.closures-list li { padding:5px 0 5px 12px; border-left:3px solid var(--danger); margin-bottom:5px; background:#FEF2F2; background:color-mix(in srgb, var(--danger) 6%, #fff); border-radius:0 6px 6px 0; }
.closures-list .when { display:block; font-weight:bold; }
.closures-more summary { cursor:pointer; color:var(--brand); font-weight:bold; margin:4px 0 8px; }
.cal-bar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
.cal-nav, .cal-views { display:flex; align-items:center; gap:6px; }
.cal-nav .btn-small { min-width:34px; font-size:16px; line-height:1.1; }
.cal-title { min-width:9.5em; text-align:center; font-size:16px; }
.cal-views button[aria-pressed="true"] { background:var(--brand); border-color:var(--brand); color:#fff; }
table.cal-month { width:100%; border-collapse:separate; border-spacing:3px; table-layout:fixed; }
table.cal-month caption { font-weight:bold; text-transform:capitalize; padding-bottom:4px; }
table.cal-month th { font-size:12px; color:var(--muted); font-weight:normal; text-transform:capitalize; padding:2px 0; }
table.cal-month td { text-align:center; padding:6px 0; border-radius:6px; font-size:15px; background:#F9FAFB; }
table.cal-month td:empty { background:transparent; }
table.cal-month td.we { color:var(--muted); }
table.cal-month td.past { color:#B8B8B8; }
table.cal-month td.closed { background:var(--danger); color:#fff; font-weight:bold; cursor:help; }
table.cal-month td.closed.past { background:#F3C4C4; color:#fff; }
table.cal-month td.today { box-shadow:inset 0 0 0 2px var(--brand); font-weight:bold; }
.closures-grid:has(.cal-year) { grid-template-columns:minmax(0, 1fr); }	/* vue annee : toute la largeur, sous la liste */
.cal-year .cal-months { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:10px 16px; }
.cal-year table.cal-month td { padding:3px 0; font-size:12px; border-radius:4px; }
.cal-year table.cal-month th { font-size:11px; }
button.cal-open { background:none; border:0; padding:0; color:var(--brand); font-weight:bold; text-transform:capitalize; text-decoration:underline; cursor:pointer; }
button.cal-open:hover { background:none; color:var(--brand-dark); }
.cal-list { margin:10px 0 0; padding-left:18px; font-size:14px; }
.cal-legend { margin:10px 0 0; }
.cal-key { display:inline-block; width:12px; height:12px; border-radius:3px; vertical-align:-1px; margin-left:8px; }
.cal-key.closed { background:var(--danger); margin-left:0; }
.cal-key.today { box-shadow:inset 0 0 0 2px var(--brand); background:#F9FAFB; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; border:0; }
.form-grid input[type=date] { display:block; width:100%; margin-top:4px; font:inherit; padding:8px 10px; border:1px solid #D1D5DB; border-radius:6px; background:#fff; color:#111827; }

/* ---------- Catalogue ---------- */
.families { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:8px 0; font-size:14px; }
.families details { border-bottom:1px solid var(--line); }
.families details:last-child { border-bottom:0; }
.families summary { cursor:pointer; padding:8px 14px; font-weight:bold; list-style:none; display:flex; justify-content:space-between; gap:8px; }
.families summary::-webkit-details-marker { display:none; }
.families summary::after { content:'+'; color:var(--muted); flex:0 0 auto; }
.families details[open] summary::after { content:'–'; }
.families ul { list-style:none; margin:0; padding:0 0 8px; }
.families li a { display:block; padding:4px 14px 4px 24px; text-decoration:none; color:var(--text); }
.families li a:hover { background:#F3F4F6; }
.families li a.on { color:var(--brand); font-weight:bold; background:#F3F4F6; background:color-mix(in srgb, var(--brand) 10%, #fff); border-left:3px solid var(--brand); padding-left:21px; }
.crumbs { font-size:13px; color:var(--muted); margin-bottom:6px; }
.crumbs a { color:var(--muted); }
table.articles td { vertical-align:middle; }
table.articles .ph { width:84px; }
table.articles .ph img { width:auto; max-width:72px; max-height:96px; border-radius:4px; border:1px solid var(--line); display:block; background:#fff; }
/* Article sans photo : pictogramme "photo absente" en fond (ni selectionnable, ni requete supplementaire) */
table.articles .ph .noimg { width:72px; height:54px; border-radius:4px; border:1px dashed #D1D5DB; user-select:none; pointer-events:none;
  background:#F3F4F6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E") center / 26px no-repeat; }
table.articles .code { white-space:nowrap; font-family:Consolas, monospace; font-size:13px; }
table.articles .desc .alt { color:var(--danger); font-size:13px; }
table.articles .price { font-weight:bold; white-space:nowrap; text-align:right; }
table.articles .stock { text-align:right; white-space:nowrap; }
table.articles .add form { display:flex; gap:6px; justify-content:flex-end; }
table.articles .add input { width:64px; text-align:right; }
.pager { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.pager a, .pager span { display:inline-block; min-width:36px; padding:6px 10px; border:1px solid var(--line); border-radius:6px; text-align:center; text-decoration:none; background:var(--card); font-size:14px; }
.pager span.on { background:var(--brand); border-color:var(--brand); color:#fff; font-weight:bold; }
.pager span.gap { border:0; background:transparent; min-width:auto; padding:6px 2px; }
.prose { max-width:900px; }
.prose p { margin:0 0 8px; }
.media { display:grid; grid-template-columns:260px 1fr; gap:16px; align-items:start; }
.media img { border-radius:6px; display:block; }
.links-list { list-style:none; margin:0; padding:0; }
.links-list li { padding:8px 0; border-bottom:1px solid var(--line); }
.links-list li:last-child { border-bottom:0; }
.links-list .sub { font-size:13px; color:var(--muted); }

/* ---------- Petits ecrans ---------- */
@media (max-width: 900px) {
  .intro, .media, .closures-grid { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .foot-cols { grid-template-columns:1fr 1fr; gap:24px 20px; padding-top:24px; }
  .foot-col:first-child { grid-column:1 / -1; }
  nav.tabs .in { flex-wrap:wrap; gap:0; padding:0 6px; }
  nav.tabs a { padding:10px; }
  table.list thead { display:none; }
  table.list, table.list tbody, table.list tr, table.list td { display:block; width:100%; }
  table.list tr { border-bottom:1px solid var(--line); padding:8px 0; }
  table.list td { border:0; padding:4px 12px; }
  /* Fiche par ligne : libelle dans une colonne fixe a gauche, valeur alignee a cote (meme si elle tient sur plusieurs lignes) */
  /* Libelle flottant dans la marge gauche (et non en position absolue) : la cellule s'agrandit a la hauteur d'un libelle
     sur plusieurs lignes, sans deborder sur la ligne suivante */
  table.list td[data-label]:not([data-label=""]) { display:flow-root; padding-left:118px; min-height:30px; overflow-wrap:anywhere; }
  table.list td[data-label]:not([data-label=""])::before { content:attr(data-label); float:left; width:98px; margin-left:-106px; padding-top:1px;
    color:var(--muted); font-size:12px; line-height:1.35; overflow-wrap:break-word; }
  table.list td[data-label=""]:not(:empty) { padding-top:8px; }
  table.list td[data-label]:not([data-label=""]):empty { display:none; }	/* cellule vide (Contact...) : pas de libelle seul sur sa ligne */
  table.list .num, .num { text-align:left; }
  table.roles td.ck { text-align:left; }
  table.roles td:first-child { min-width:0; }
  table.list.basket .icon-bar { justify-content:flex-start; }
  .menu-list { right:auto; left:0; }
  /* Mon panier : une ligne compacte par article (description, puis quantite | montant | icones) ; prix unitaire masque */
  table.list.basket tr { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:6px 12px; padding:10px 12px; }
  table.list.basket td, table.list.basket td[data-label]:not([data-label=""]) { padding:0; min-height:0; }
  table.list.basket td[data-label]:not([data-label=""])::before { content:none; }
  table.list.basket td:first-child { grid-column:1 / -1; }
  table.list.basket td.price { display:none; }
  table.list.basket td.amount { text-align:right; }
  table.list.basket tr.total-row { display:flex; justify-content:space-between; background:#F9FAFB; }
  table.list.basket tr.total-row td { background:none; }
  table.list.basket tr.total-row td:last-child { display:none; }
  header.top .who { text-align:left; width:100%; }
  table.list td.wide-cell { width:100%; }
  table.users-table tr.sub-row td:first-child { padding-left:118px; }	/* telephone : colonne des libelles */
  table.users-table tr.sub-row td[colspan] { padding-left:12px; }	/* ligne sans colonnes ("Aucun ...") */
  table.users-table tr.group-row { padding:0; }
  table.users-table tr.group-row td { padding:12px; }
  ul.items li { grid-template-columns:auto 1fr; gap:0 8px; padding:2px 0; border:0; }
  ul.items .c, ul.items .a, ul.items .pc-only, ul.items li.pc-only { display:none; }
  ul.items li.mobile-only { display:block; }
  /* Catalogue : une carte par article (photo a gauche, prix et commande en bas) */
  table.articles tr { display:grid; grid-template-columns:84px 1fr; gap:4px 12px; padding:12px; }
  table.articles td { padding:0; }
  table.articles td[data-label]:not([data-label=""])::before { content:none; }
  table.articles td[data-label]:not([data-label=""]) { padding-left:0; min-height:0; }	/* catalogue : pas de colonne de libelles */
  table.articles td[data-label]:not([data-label=""])::before { position:static; width:auto; float:none; margin-left:0; padding-top:0; }
  table.articles .ph { grid-row:1 / span 4; }
  table.articles .code { font-size:12px; color:var(--muted); }
  table.articles .price, table.articles .stock { text-align:left; }
  table.articles .stock::before { content:attr(data-label) " : " !important; color:var(--muted); font-size:13px; }
  table.articles .add form { justify-content:flex-start; }
  .site-top .in { gap:10px; }
  .site-logo img { height:44px; }
  .site-logo .name { font-size:17px; }
  .site-search { order:3; flex-basis:100%; }
  .site-actions { margin-left:auto; }
  .site-actions .hide-sm, .site-basket .tot, .site-logo .name small { display:none; }
  .tiles { grid-template-columns:1fr; }
}
