/* Fotorder — feuille de style application
   La palette officielle est centralisée dans assets/variables.css.
   Ce fichier ne contient aucune couleur de marque : il ne consomme que
   les variables officielles (--coral, --blue, --sun, --ink, --white).
   variables.css est chargé par les gabarits (layout.php, admin.php,
   document.php) avant cette feuille. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-texte);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-texte);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; object-fit: cover; display: block; }
a { color: inherit; text-decoration: none; }
/* liens du contenu : bleu officiel (actions secondaires), soulignes dans le texte */
.card p a, .card li a, .notice a, .page-sub a, .muted a, .kv a, .foot-tag a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.card p a:hover, .card li a:hover, .notice a:hover, .muted a:hover, .kv a:hover { color: var(--blue-deep); }
/* titres : Poppins ExtraBold, échelle commune à toutes les pages */
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-titre); letter-spacing: -.02em; font-family: var(--font-titre); font-weight: var(--fw-titre); }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
/* focus clavier visible partout (accessibilité, navigation au clavier) */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
/* icônes : même échelle optique et même alignement sur le texte, partout.
   La taille vient du contexte (échelle --icon-* de variables.css) : plus
   aucune page ne décide d'une taille d'icône au cas par cas. */
.ic { flex: none; display: inline-block; vertical-align: -.16em; width: var(--icon); height: var(--icon); }
.tag .ic, .badge .ic, .chip .ic { width: var(--icon-xs); height: var(--icon-xs); }
.btn .ic, .notice .ic, .foot-info .ic, .foot-social .ic { width: var(--icon-sm); height: var(--icon-sm); }
.tab-ic .ic, .admin-top .tab-ic .ic { width: var(--icon-lg); height: var(--icon-lg); }
.menu-btn .ic, .modal-close .ic { width: var(--icon-xl); height: var(--icon-xl); }
.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; }

/* ---------- logos de marque ---------- */
.brand-logo, .sidebar-logo, .foot-logo, .admin-top-logo, .drawer-logo { border-radius: 0 !important; }
/* les logos Fotorder incluent les reperes de recadrage photo : les largeurs
   ci-dessous sont calibrees sur ce cadrage pour garder une hauteur constante.
   Le client peut envoyer son propre logo depuis l'administration : on borne
   donc aussi la HAUTEUR, pour qu'un visuel carre ou tres haut n'ecrase jamais
   la barre de navigation ni le pied de page. */
.brand-logo { width: min(160px, 46vw); height: auto; max-height: 78px; object-fit: contain; }
.sidebar-logo { width: 142px; height: auto; max-height: 64px; object-fit: contain; }
.foot-logo { width: 141px; height: auto; max-height: 72px; object-fit: contain; }
.admin-top-logo { width: 118px; height: auto; max-height: 44px; flex: none; object-fit: contain; }
.drawer-logo { width: 46px; height: 46px; object-fit: contain; }
/* logos un peu plus grands sur grand ecran (ordinateur), en restant discrets */
@media (min-width: 900px) {
  .brand-logo { width: min(196px, 24vw); }
  .sidebar-logo { width: 157px; }
  .foot-logo { width: 155px; }
  .admin-top-logo { width: 148px; }
}
@media (min-width: 1400px) {
  .brand-logo { width: min(216px, 18vw); }
}

/* ---------- ecran d ouverture ---------- */
#app-splash {
  display: none; position: fixed; inset: 0; z-index: 99999; pointer-events: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--ink); color: var(--white); font-weight: 700; letter-spacing: .04em;
}
#app-splash img { width: min(330px, 70vw); height: auto; border-radius: 0; }
#app-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------- bouton menu + tiroir ---------- */
.menu-btn {
  position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); left: 12px; z-index: 60;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--blue); cursor: pointer; border-radius: var(--radius-btn);
  transition: background var(--t-base);
}
.menu-btn:hover { background: var(--blue-soft); }
.drawer-scrim {
  position: fixed; inset: 0; background: var(--fot-anthracite-45); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: 82%; max-width: 320px; z-index: 95;
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; transform: translateX(-100%); visibility: hidden; pointer-events: none;
  transition: transform .28s ease, visibility .28s ease; box-shadow: 0 20px 50px var(--fot-anthracite-20);
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
}
.drawer.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--ink-line); }
.drawer-head img { border-radius: var(--radius-sm); }
.drawer-head strong { display: block; font-family: var(--font-titre); font-weight: var(--fw-marque); font-size: var(--fs-h3); }
.drawer-head span { font-size: var(--fs-mini); color: var(--ink-soft); }
.drawer-close { margin-left: auto; background: none; border: 0; color: var(--ink-soft); width: 40px; height: 40px; border-radius: var(--radius-btn); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--t-base), color var(--t-base); }
.drawer-close:hover { background: var(--ink-tint); color: var(--ink); }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; overflow-y: auto; flex: 1; }
/* menus : Poppins SemiBold, hauteur confortable au doigt, état actif/survol */
.drawer-link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px 6px; font-family: var(--font-titre); font-weight: 600; font-size: var(--fs-body); color: var(--ink); border-radius: var(--radius-sm); transition: background var(--t-base), color var(--t-base); }
.drawer-link:hover { background: var(--ink-tint); }
.drawer-link:active { background: var(--blue-soft); }
.drawer-link.active { background: var(--blue-soft); color: var(--blue-deep); }
.drawer-foot { border-top: 1px solid var(--ink-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.drawer-user { font-size: var(--fs-small); margin: 0 0 6px; }
.drawer-user small { color: var(--ink-soft); font-size: var(--fs-mini); }

/* ---------- conteneur ---------- */
.page { padding: 0 18px 40px; }
.page-title { font-size: var(--fs-display); font-weight: var(--fw-titre); margin: 0 0 6px; padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
.page-sub { color: var(--ink-soft); font-size: var(--fs-small); margin: 0 0 20px; }
.brand-row { display: flex; align-items: center; gap: 12px; padding-top: calc(60px + env(safe-area-inset-top, 0px)); margin-bottom: 18px; }
.brand-row img { border-radius: var(--radius-sm); }
.brand-name { font-size: var(--fs-display); font-weight: var(--fw-titre); line-height: var(--lh-titre); }
.brand-sub { font-size: var(--fs-label); color: var(--ink-soft); margin: 2px 0 0; }
/* mise en avant : jaune officiel (11.6:1 avec l'anthracite, AAA) */
.notice-line { display: inline-flex; align-items: center; gap: 8px; background: var(--sun-soft); border: 1px solid var(--sun-line); color: var(--ink); font-size: var(--fs-label); padding: 8px 12px; border-radius: var(--radius-pill); margin-bottom: 16px; }

/* ---------- cartes ---------- */
/* Cartes : surface blanche, angles doux cohérents, ombre discrète.
   La sélection (carte cliquable) et le survol sont visibles. */
.card { background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-fast); }
.card:hover { border-color: var(--fot-anthracite-20); }
.card.is-selected, .card.selected { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral-soft), var(--shadow); }
.card.soft { background: var(--ink-tint); box-shadow: none; border-color: transparent; }
.card-title { font-size: var(--fs-h3); font-weight: var(--fw-sous-titre); margin-bottom: 14px; }
.card-sub { font-size: var(--fs-body); font-weight: var(--fw-sous-titre); margin-bottom: 8px; }
.muted { color: var(--ink-soft); font-size: var(--fs-label); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-head h2 { font-size: var(--fs-h2); font-weight: var(--fw-titre); }
.section-head a { font-size: var(--fs-label); color: var(--blue); }
.section-head a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.section-title { font-size: var(--fs-h2); font-weight: var(--fw-titre); margin: 28px 0 14px; }

/* ---------- boutons ---------- */
/* Boutons : angles doux (rectangulaires), hauteur svelte, tous les états.
   Corail = action principale / commerciale · Bleu = action secondaire.
   Jaune réservé aux mises en avant (jamais une action de vente). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; height: 40px; padding: 0 18px; border-radius: var(--radius-btn); border: 1px solid transparent; font-family: var(--font-titre); font-weight: 600; font-size: var(--fs-body); text-align: center; cursor: pointer; transition: background var(--t-base), color var(--t-base), border-color var(--t-base), box-shadow var(--t-base), transform var(--t-fast); }
.btn:hover { box-shadow: 0 4px 14px var(--fot-anthracite-12); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* action principale et éléments commerciaux : corail officiel */
.btn-primary { background: var(--coral); color: var(--ink-on-coral); }
.btn-primary:hover { background: var(--coral-deep); color: var(--white); }
/* action secondaire : bleu officiel */
.btn-ghost { background: var(--white); border-color: var(--ink-line); color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); border-color: var(--blue-line); }
.btn-blue { background: var(--blue); color: var(--ink-on-blue); }
.btn-blue:hover { background: var(--blue-deep); }
/* mise en avant uniquement (jamais une action de vente) */
.btn-accent { background: var(--sun); color: var(--ink-on-sun); }
.btn-accent:hover { background: var(--sun); box-shadow: 0 4px 14px var(--fot-jaune-28); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; height: 34px; padding: 0 12px; font-size: var(--fs-label); border-radius: var(--radius-btn); }
.btn-sm:focus-visible { outline-offset: 1px; }
/* désactivé, y compris pendant un envoi (état de chargement) */
.btn[disabled], .btn.is-loading, .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: var(--radius-pill); border: 2px solid var(--fot-anthracite-20); border-top-color: var(--ink); animation: btnSpin .7s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ---------- formulaires ---------- */
.form label { display: block; font-family: var(--font-titre); font-size: var(--fs-label); font-weight: 600; margin-bottom: 12px; color: var(--ink); }
/* 16px : évite le zoom automatique des champs sur iPhone */
.form input, .form select, .form textarea { width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid var(--ink-line); border-radius: var(--radius-sm); background: var(--white); font-size: var(--fs-body); font-weight: var(--fw-texte); transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base); }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-soft); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--fot-anthracite-30); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.form input[disabled], .form select[disabled], .form textarea[disabled] { background: var(--ink-tint); color: var(--ink-soft); cursor: not-allowed; }
.form textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; gap: 10px; }
/* deux champs côte à côte : uniquement à partir de la tablette.
   Sur téléphone (moins de 768 px) ils restent empilés, jamais écrasés. */
.form-row.two { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 10px 12px; font-size: var(--fs-label); margin: 4px 0 12px; }
.form-alt { font-size: var(--fs-label); color: var(--ink-soft); text-align: center; margin: 14px 0 0; }
.form-alt a { color: var(--blue); font-weight: 600; }
.auth-wrap { max-width: 460px; margin: 0 auto; }
.check-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 4px 0 14px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); background: var(--ink-tint); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color var(--t-base), background var(--t-base); }
.check-item:hover { border-color: var(--blue-line); }
.check-item:has(input:checked) { background: var(--coral-soft); border-color: var(--coral-line); }
.check-item input { width: 18px; height: 18px; margin: 0; accent-color: var(--coral); }

/* ---------- hero galerie ---------- */
.hero { margin: 0 -18px 22px; position: relative; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden; }
.hero-slide img { width: 100%; height: min(66vh, 520px); object-fit: cover; animation: heroZoom 6s ease forwards; }
.hero-slide:not(.active) img { opacity: .7; animation: none; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; color: var(--white); background: linear-gradient(to top, var(--fot-anthracite-82), var(--fot-anthracite-00)); pointer-events: none; }
.hero-caption h2 { font-size: var(--fs-h2); font-weight: var(--fw-titre); }
.hero-caption p { font-size: var(--fs-small); opacity: .92; margin: 6px 0 0; }
.hero-dots { position: absolute; top: 16px; left: 22px; display: flex; gap: 6px; }
.hero-dots i { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--fot-blanc-55); display: block; transition: width .3s ease, background .3s ease; }
.hero-dots i.on { width: 22px; background: var(--white); }
.hero-cta { padding: 0 18px; margin-top: 14px; }
.hero-cta .btn { width: 100%; }

/* ---------- pages qui se tournent ---------- */
.band { margin-bottom: 30px; }
.book-wrap { position: relative; }
.book { position: relative; perspective: 1600px; height: 320px; overflow: hidden; touch-action: pan-y; }
.book-page { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
.book-face, .book-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--ink-line); }
.book-back { transform: rotateY(180deg); background: var(--ink-tint); }
.book-face img { width: 100%; height: 200px; object-fit: cover; }
.book-body { padding: 12px 14px; }
.book-body strong { display: block; font-size: var(--fs-body); }
.book-body span { display: block; font-size: var(--fs-label); color: var(--ink-soft); margin: 2px 0 8px; }
.book-price-row { display: flex; align-items: center; justify-content: space-between; }
.book-price { font-weight: var(--fw-sous-titre); font-size: var(--fs-lead); color: var(--coral-deep); }
.book-add { width: 40px; height: 40px; border-radius: var(--radius-btn); border: 1px solid var(--ink-line); background: var(--white); color: var(--coral); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast); }
.book-add:hover { background: var(--coral-soft); border-color: var(--coral-line); }
.book-add:active { transform: scale(.95); }
.book-shadow { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to right, var(--fot-anthracite-35), var(--fot-anthracite-00)); border-radius: var(--radius); }
.band-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.band-nav button { width: 40px; height: 40px; border-radius: var(--radius-btn); border: 1px solid var(--ink-line); background: var(--white); color: var(--blue); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast); }
.band-nav button:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--blue-line); }
.band-nav button:active:not(:disabled) { transform: scale(.95); }
.band-nav button:disabled { opacity: .4; cursor: not-allowed; }
.band-nav button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.band-count { font-size: var(--fs-label); color: var(--ink-soft); min-width: 60px; text-align: center; }
/* mise en avant : jaune officiel (11.6:1 avec l'anthracite, AAA) */
.band-hint { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 10px auto 0; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--sun-soft); border: 1px solid var(--sun-line); color: var(--ink); font-size: var(--fs-label); }

/* ---------- grilles produits ---------- */
.cat-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 14px; }
.cat-strip::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border-radius: var(--radius-btn); border: 1px solid var(--ink-line); background: var(--white); font-family: var(--font-titre); font-size: var(--fs-label); font-weight: 600; color: var(--blue); white-space: nowrap; cursor: pointer; transition: background var(--t-base), color var(--t-base), border-color var(--t-base); }
.chip:hover { background: var(--blue-soft); border-color: var(--blue-line); }
.chip.on { background: var(--blue); color: var(--ink-on-blue); border-color: var(--blue); }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; }
.prod-card { border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-fast); }
.prod-card:hover { box-shadow: var(--shadow); border-color: var(--fot-anthracite-20); }
.prod-card:active { transform: scale(.99); }
.prod-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prod-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-body strong { font-size: var(--fs-label); font-family: var(--font-titre); font-weight: 600; }
.prod-body .cat { font-size: var(--fs-mini); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.prod-body .desc { font-size: var(--fs-label); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
/* prix : élément commercial, corail officiel (5.99:1 sur blanc, AA) */
.price { font-weight: var(--fw-sous-titre); font-size: var(--fs-body); color: var(--coral-deep); }
.list-rows { display: flex; flex-direction: column; gap: 10px; }

/* ---------- boutiques ---------- */
.shop-card { border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; background: var(--white); margin-bottom: 14px; transition: box-shadow var(--t-base), border-color var(--t-base); }
.shop-card:hover { box-shadow: var(--shadow); border-color: var(--fot-anthracite-20); }
.shop-card img.cover { width: 100%; height: 160px; object-fit: cover; }
.shop-overlay { padding: 14px 16px 16px; }
.shop-overlay h3 { font-size: var(--fs-h3); font-weight: var(--fw-sous-titre); }
.shop-meta { font-size: var(--fs-mini); color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-mini); font-family: var(--font-titre); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--ink-tint); color: var(--blue); }
/* circuit commercial = corail · circuit professionnel = bleu */
.tag.official { background: var(--coral); color: var(--ink-on-coral); }
.tag.pro { background: var(--blue-soft); color: var(--blue-deep); }
.tag.locked { background: var(--warn-soft); color: var(--warn); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- personnalisation ---------- */
.photo-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 10px; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-thumb { flex: none; width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--ink-tint); cursor: pointer; padding: 0; transition: border-color var(--t-base); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb.on { border-color: var(--blue); }
.preview { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-tint); margin-bottom: 14px; }
.preview img.base { width: 100%; height: 300px; object-fit: cover; }
.preview .overlay-photo { position: absolute; top: var(--py, 50%); left: var(--px, 50%); width: var(--pw, 34%); transform: translate(-50%, -50%) scale(var(--ps, 1)); border-radius: var(--radius-btn); box-shadow: 0 6px 18px var(--fot-anthracite-35); border: 4px solid var(--fot-blanc-85); }
.mock-note { font-size: var(--fs-label); color: var(--ink-soft); margin: 0 0 14px; }
.variant-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--ink-line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--white); cursor: pointer; transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base), transform var(--t-fast); }
.variant:hover { border-color: var(--blue-line); background: var(--blue-soft); }
.variant:active { transform: scale(.99); }
.variant:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.variant.on { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.variant small { display: block; color: var(--ink-soft); font-size: var(--fs-label); }
.sticky-actions { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; gap: 10px; align-items: center; background: var(--fot-blanc-96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 8px 10px; box-shadow: var(--shadow-lg); }
.sticky-actions .price { font-size: var(--fs-h3); }

/* ---------- panier / commande ---------- */
.cart-line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 74px; height: 74px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info strong { font-size: var(--fs-label); display: block; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 40px; height: 40px; border-radius: var(--radius-btn); border: 1px solid var(--ink-line); background: var(--white); color: var(--blue); font-weight: 600; cursor: pointer; transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast); }
.qty button:hover { background: var(--blue-soft); border-color: var(--blue-line); }
.qty button:active { transform: scale(.95); }
.qty button:disabled { opacity: .5; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; font-size: var(--fs-small); padding: 6px 0; }
.summary-row.total { font-weight: var(--fw-sous-titre); font-size: var(--fs-lead); color: var(--coral-deep); padding-top: 10px; border-top: 1px solid var(--ink-line); margin-top: 8px; }
.summary-row.total span { color: var(--coral-deep); }
.steps { display: flex; gap: 8px; align-items: center; font-size: var(--fs-label); color: var(--ink-soft); margin-bottom: 16px; flex-wrap: wrap; }
.steps b { color: var(--blue); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; border-left: 2px solid var(--ink-line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: var(--radius-pill); background: var(--ink-line); }
.timeline li.done::before { background: var(--ok); }
.timeline li.current::before { background: var(--coral); }
.timeline b { font-size: var(--fs-small); }
.timeline span { display: block; font-size: var(--fs-label); color: var(--ink-soft); }

/* ---------- divers ---------- */
.empty { text-align: center; padding: 34px 18px; color: var(--ink-soft); border: 1px dashed var(--ink-line); border-radius: var(--radius); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* accent graphique jaune officiel : mise en avant des chiffres cles */
.tile { background: var(--white); border: 1px solid var(--ink-line); border-top: 3px solid var(--sun); border-radius: var(--radius); padding: 16px; transition: box-shadow var(--t-base); }
.tile:hover { box-shadow: var(--shadow); }
.tile span { font-size: var(--fs-label); color: var(--ink-soft); display: block; }
/* le chiffre, la legende et le detail occupent chacun leur propre ligne :
   aucun chevauchement possible, quelle que soit la longueur du libelle */
.tile b { display: block; font-family: var(--font-titre); font-size: var(--fs-h2); font-weight: var(--fw-titre); line-height: 1.15; margin: 2px 0 4px; }
.tile small { display: block; }
/* Notifications : angles doux, état fonctionnel lisible (AA) */
.notice { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 14px; font-size: var(--fs-label); margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; }
.notice svg { flex: none; margin-top: 1px; }
.notice.info { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-deep); }
.notice.warn { background: var(--warn-soft); border-color: var(--warn-soft); color: var(--warn); }
.notice.ok { background: var(--ok-soft); border-color: var(--ok-soft); color: var(--ok); }
.notice.danger { background: var(--danger-soft); border-color: var(--danger-soft); color: var(--danger); }
/* Notification flottante : corail (action commerciale) et angles doux */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 26px); max-width: calc(100vw - 32px); background: var(--coral); color: var(--ink-on-coral); padding: 12px 18px; border-radius: var(--radius-btn); font-size: var(--fs-small); font-weight: 600; z-index: 200; box-shadow: var(--shadow-lg); animation: toastIn var(--t-base) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.modal { position: fixed; inset: 0; background: var(--fot-anthracite-50); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: var(--white); border-radius: var(--radius); padding: 22px; max-width: 420px; width: 100%; position: relative; box-shadow: var(--shadow-lg); }
.modal-card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.modal-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-btn); background: none; border: 0; color: var(--ink-soft); cursor: pointer; transition: background var(--t-base), color var(--t-base); }
.modal-close:hover { background: var(--ink-tint); color: var(--ink); }
.modal-icons { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.brand-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--ink-tint); border-radius: var(--radius-pill); padding: 8px 14px; font-size: var(--fs-label); font-weight: 600; }
/* Onglets et filtres : angles doux, hauteur confortable au doigt */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border-radius: var(--radius-btn); border: 1px solid var(--ink-line); background: var(--white); font-family: var(--font-titre); font-size: var(--fs-label); font-weight: 600; color: var(--blue); cursor: pointer; transition: background var(--t-base), color var(--t-base), border-color var(--t-base); }
.tab-btn:hover { background: var(--blue-soft); border-color: var(--blue-line); }
.tab-btn.on { background: var(--blue); color: var(--ink-on-blue); border-color: var(--blue); }
.tab-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-small); padding: 7px 0; border-bottom: 1px dashed var(--ink-line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--ink-soft); }
/* sur telephone les paires libelle / valeur sont empilees : deux colonnes
   serrees rendaient la lecture penible (mission typographie, point 7) */
@media (max-width: 767px) {
  .kv { flex-direction: column; gap: 3px; }
}

/* ---------- footer ---------- */
.site-foot { background: var(--bg-soft); border-radius: var(--radius) var(--radius) 0 0; padding: 28px 20px calc(var(--tabbar-h) + 28px); margin-top: 34px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot-brand img { border-radius: var(--radius-sm); }
.foot-tag { font-size: var(--fs-label); color: var(--ink-soft); max-width: 520px; }
.foot-info { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.foot-info li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-label); color: var(--blue); }
.foot-social { display: flex; gap: 10px; margin-bottom: 14px; }
.foot-social a { width: 40px; height: 40px; border-radius: var(--radius-btn); border: 1px solid var(--ink-line); display: flex; align-items: center; justify-content: center; color: var(--blue); background: var(--white); transition: background var(--t-base), border-color var(--t-base), color var(--t-base); }
.foot-social a:hover { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-deep); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-label); margin-bottom: 14px; }
.foot-links a { color: var(--blue); padding: 4px 0; transition: color var(--t-base); }
.foot-links a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.foot-links .foot-admin { font-size: var(--fs-mini); color: var(--ink-soft); }
.foot-copy { font-size: var(--fs-mini); color: var(--ink-soft); margin: 0; }

/* ---------- barre du bas ---------- */
/* Barre du bas : hauteur automatique pour que les libellés longs
   (« Mes photos ») ne soient jamais coupés, quelle que soit la largeur. */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; justify-content: space-around; align-items: stretch; height: auto; min-height: 62px; padding: 6px 4px;
  background: var(--fot-blanc-88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ink-line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-soft); font-size: var(--fs-mini); padding: 2px; border-radius: var(--radius-sm); transition: transform var(--t-fast), background var(--t-base), color var(--t-base); }
.tab:hover { color: var(--blue); }
.tab:active { transform: scale(.96); }
.tab.active { color: var(--blue); }
.tab.active .tab-ic { background: var(--blue); color: var(--ink-on-blue); }
.tab-ic { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 30px; border-radius: var(--radius-btn); transition: background var(--t-base), color var(--t-base); }
.tab-lb { font-family: var(--font-titre); font-weight: 600; line-height: 1.1; text-align: center; }
.badge { position: absolute; top: -4px; right: -2px; background: var(--coral); color: var(--ink-on-coral); font-size: var(--fs-mini); font-weight: var(--fw-sous-titre); border-radius: var(--radius-pill); padding: 2px 5px; font-style: normal; }

/* ---------- vue ordinateur ---------- */
.sidebar { display: none; }
@media (min-width: 900px) {
  .menu-btn, .drawer, .drawer-scrim, .tabbar { display: none !important; }
  body.app-body { padding-left: 260px; }
  .sidebar { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: 260px; background: var(--white); border-right: 1px solid var(--ink-line); padding: 22px 16px; z-index: 50; }
  .sidebar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-titre); font-weight: var(--fw-marque); font-size: var(--fs-h3); margin-bottom: 22px; }
  .sidebar-brand img { border-radius: var(--radius-sm); }
  .sidebar-links { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .side-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); font-family: var(--font-titre); font-weight: 600; font-size: var(--fs-small); color: var(--blue); transition: background var(--t-base), color var(--t-base); }
  .side-link:hover { background: var(--ink-tint); }
  .side-link.active { background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; }
  .side-link .badge { position: static; margin-left: auto; }
  .side-sep { height: 1px; background: var(--ink-line); margin: 12px 4px; }
  .sidebar-foot { border-top: 1px solid var(--ink-line); padding-top: 10px; }
  .page { max-width: 1100px; margin: 0 auto; padding: 34px 40px 60px; }
  .page-title { padding-top: 0; font-size: var(--fs-display); }
  .brand-row { padding-top: 0; }
  .hero { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; }
  .hero-slide img { height: 460px; }
  .hero-cta { padding: 0; }
  .hero-cta .btn { width: auto; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .book { height: 380px; }
  .book-face img { height: 240px; }
  .band-next { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sticky-actions { position: static; background: transparent; box-shadow: none; border: 0; padding: 0; margin-top: 16px; }
  .site-foot { margin-top: 40px; border-radius: var(--radius); padding-bottom: 28px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero-slide img { animation: none; }
}

/* ---------- administration ---------- */
.admin-body { background: var(--bg-soft); }
.admin-body .card { box-shadow: none; border-color: var(--pro-line); }
.admin-body .card-title { font-family: var(--font-titre); }
/* les blocs de l'administration restent neutres : aucun accent Pop Art */
.admin-wrap .tile { border-top-color: var(--pro-line-strong); }
.admin-top { background: var(--ink); color: var(--white); padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 16px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; }
.admin-top img { border-radius: var(--radius-sm); }
.admin-top .who { margin-left: auto; font-size: var(--fs-mini); opacity: .9; display: flex; align-items: center; gap: 10px; }
.admin-top button { background: var(--fot-blanc-14); border: 0; color: var(--white); height: 36px; border-radius: var(--radius-btn); padding: 0 14px; font-size: var(--fs-label); cursor: pointer; transition: background var(--t-base); }
.admin-top button:hover { background: var(--fot-blanc-55); }
.admin-top button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.admin-wrap { padding: 18px 16px calc(var(--tabbar-h) + 40px); max-width: 1200px; margin: 0 auto; }
.admin-panel[hidden] { display: none !important; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 16px; transition: box-shadow var(--t-base), border-color var(--t-base); }
.stat:hover { box-shadow: var(--shadow); border-color: var(--fot-anthracite-20); }
.stat span { font-size: var(--fs-label); color: var(--ink-soft); display: block; }
.stat b { font-family: var(--font-titre); font-size: var(--fs-h2); font-weight: var(--fw-titre); display: block; margin-top: 4px; }
.stat small { font-size: var(--fs-mini); color: var(--ink-soft); }
/* Tableaux : angles doux, en-tête lisible, survol de ligne, scroll vertical doux.
   Le défilement horizontal reste confiné au tableau (jamais la page entière). */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-label); min-width: 620px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--ink-line); white-space: nowrap; }
th { font-size: var(--fs-mini); font-family: var(--font-titre); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); background: var(--ink-tint); position: sticky; top: 0; z-index: 1; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--blue-soft); }
tbody tr:last-child td { border-bottom: 0; }
td .btn + .btn, td .btn + a.btn, td a.btn + .btn { margin-left: 6px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.chart-box { position: relative; background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 12px; }
.chart-box canvas { width: 100%; display: block; height: 240px; }
.chart-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.chart-head strong { font-size: var(--fs-body); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-label); color: var(--ink-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: var(--radius-pill); display: inline-block; flex: none; }
.dot-accounts { background: var(--blue); }
.dot-elements { background: var(--sun); }
.dot-orders { background: var(--coral); }
.stat-head { display: flex; align-items: baseline; gap: 8px; }
.stat-head b { font-family: var(--font-titre); font-size: var(--fs-h2); font-weight: var(--fw-titre); }
.stat-delta { font-size: var(--fs-mini); font-weight: 600; border-radius: var(--radius-pill); padding: 2px 8px; }
.stat-delta.up { background: var(--ok-soft); color: var(--ok); }
.stat-delta.flat { background: var(--ink-tint); color: var(--ink-soft); }
.stat-split { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: var(--fs-mini); color: var(--ink-soft); }
.stat-split i { font-style: normal; color: var(--ink); font-weight: 600; }
.admin-tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; justify-content: space-around; align-items: center; height: 62px; background: var(--fot-blanc-92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--ink-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.admin-tabbar .tab.active .tab-ic { background: var(--blue); color: var(--white); }
/* ---------- tableau de bord : alertes, statistiques, journal ---------- */
.alert-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.alert-card { display: block; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 16px; cursor: pointer; font: inherit; color: inherit; transition: transform var(--t-fast), border-color var(--t-base), box-shadow var(--t-base); }
.alert-card:hover { box-shadow: var(--shadow); border-color: var(--fot-anthracite-20); }
.alert-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.alert-card:active { transform: scale(.985); }
.alert-card.has { border-left: 4px solid var(--coral); }
.alert-card.clear { border-left: 4px solid var(--ok); }
.alert-card .alert-count { font-family: var(--font-titre); font-size: var(--fs-h2); font-weight: var(--fw-titre); display: block; margin-bottom: 2px; }
.alert-card.has .alert-count { color: var(--warn); }
.alert-card.clear .alert-count { color: var(--ok); }
.alert-card .alert-label { font-size: var(--fs-label); font-weight: 600; color: var(--blue); display: block; }
.alert-card .alert-hint { font-size: var(--fs-mini); color: var(--ink-soft); display: block; margin-top: 2px; }
.alert-card .alert-go { font-size: var(--fs-mini); font-weight: 600; color: var(--blue); display: block; margin-top: 10px; }

.bar-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--ink-line); }
.rows-box { background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.bar-row:last-child { border-bottom: 0; }
.bar-row .bar-label { flex: 1; min-width: 0; font-size: var(--fs-label); font-weight: 600; }
.bar-row .bar-label small { display: block; font-size: var(--fs-mini); font-weight: 400; color: var(--ink-soft); }
.bar-row .bar-value { font-size: var(--fs-label); font-weight: 600; white-space: nowrap; }
.bar-track { flex: none; width: 84px; height: 8px; border-radius: var(--radius-pill); background: var(--ink-tint); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--blue); }
.bar-track i.accent { background: var(--sun); }

.feed { background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.feed-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ink-line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; cursor: pointer; transition: background var(--t-fast); }
.feed-item:hover { background: var(--blue-soft); }
.feed-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .feed-tag { flex: none; font-size: var(--fs-mini); font-family: var(--font-titre); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--ink-tint); color: var(--blue); }
.feed-item .feed-body { flex: 1; min-width: 0; }
.feed-item .feed-body strong { font-size: var(--fs-label); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item .feed-body small { font-size: var(--fs-mini); color: var(--ink-soft); display: block; }
.feed-item .feed-when { flex: none; font-size: var(--fs-mini); color: var(--ink-soft); white-space: nowrap; }

@media (min-width: 480px) {
  .alert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* barre de navigation haute, ordinateur uniquement */
.admin-topnav { display: none; }

@media (min-width: 900px) {
  .admin-tabbar:not(.admin-topnav) { display: none !important; }
  .admin-top { position: static; }
  .admin-topnav {
    display: flex; position: sticky; top: 0; bottom: auto; left: 0; right: 0;
    height: auto; justify-content: flex-start; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 0; border-left: 0; border-right: 0; border-top: 0;
    background: var(--white); box-shadow: 0 2px 10px var(--fot-anthracite-07);
    overflow-x: auto; scrollbar-width: none; z-index: 45;
  }
  .admin-topnav::-webkit-scrollbar { display: none; }
  .admin-topnav .tab { flex: none; flex-direction: row; gap: 8px; min-height: 40px; font-size: var(--fs-small); font-weight: 600; padding: 9px 16px; border-radius: var(--radius-btn); white-space: nowrap; transition: background var(--t-base), color var(--t-base); }
  .admin-topnav .tab:active { transform: none; }
  .admin-topnav .tab:hover { background: var(--ink-tint); }
  .admin-topnav .tab .tab-ic { width: 22px; height: 22px; border-radius: 0; background: transparent; }
  .admin-topnav .tab.active { background: var(--blue); color: var(--white); }
  .admin-topnav .tab.active .tab-ic { background: transparent; color: var(--white); }
  .admin-wrap { padding-bottom: 60px; }
  .admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- avis clients (note, liste, formulaire) ---- */
.stars { display: inline-flex; gap: 1px; line-height: 1; }
.stars .star { font-style: normal; color: var(--fot-anthracite-50); font-size: var(--fs-label); }
.stars .star.on { color: var(--sun); }
.stars .star.half { color: var(--sun); opacity: .55; }
.rev-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; font-size: var(--fs-small); }
.rev-summary strong { font-family: var(--font-titre); font-weight: var(--fw-sous-titre); color: var(--ink); }
.rev-line { display: flex; align-items: center; gap: 6px; margin: 2px 0 4px; }
.rev-count { color: var(--ink-soft); font-size: var(--fs-mini); }
.rev-box { margin-top: 6px; }
.rev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; background: var(--ink-tint); border-radius: var(--radius-sm); margin-bottom: 14px; }
.rev-head strong { font-family: var(--font-titre); font-weight: var(--fw-sous-titre); }
.rev-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.rev-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--white); transition: border-color var(--t-base), box-shadow var(--t-base); }
.rev-item:hover { border-color: var(--fot-anthracite-20); box-shadow: var(--shadow); }
.rev-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rev-top strong { font-family: var(--font-titre); font-weight: 600; font-size: var(--fs-small); }
.rev-top .muted { font-size: var(--fs-mini); margin-left: auto; }
.rev-text { margin: 6px 0 0; color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.55; }
.rev-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.rev-star { cursor: pointer; padding: 4px 2px; line-height: 1; }
.rev-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rev-star span[aria-hidden] { font-size: 26px; color: var(--fot-anthracite-50); transition: color .12s ease; }
.rev-star.on span[aria-hidden], .rev-star:hover span[aria-hidden] { color: var(--sun); }
.rev-stars .muted { margin-left: 6px; font-size: var(--fs-small); }
.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; }
/* administration : moderation des avis */
.rev-admin-stars { display: inline-flex; gap: 1px; }
.rev-admin-stars i { font-style: normal; color: var(--fot-anthracite-50); }
.rev-admin-stars i.on { color: var(--sun); }
.rev-admin-comment { margin: 6px 0 0; color: var(--ink-soft); font-size: var(--fs-small); }
.rev-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* pastille du nombre d'avis en attente de validation (onglet admin) */
.tab-btn .rev-pending {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px;
  border-radius: var(--radius-pill); background: var(--coral); color: var(--ink-on-coral);
  font-size: var(--fs-mini); font-weight: 700; line-height: 1;
}

/* ==================================================================
   GALERIES PHOTOGRAPHIQUES ET INTERFACES DE VENTE
   Identité Fotorder appliquée aux galeries : la photographie passe
   devant, ses proportions et sa qualité sont préservées, la légende
   se pose en surimpression. Les actions commerciales portent le corail
   officiel ; le bleu reste l'interface ; le jaune est un accent discret.
   Éléments Pop Art discrets : liseré jaune et ombre franche décalée.
   ================================================================== */

/* ---------- grille de galerie : la photo occupe toute la surface ---------- */
.grid-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-card { position: relative; display: block; overflow: hidden; border: 1px solid var(--ink-line); border-radius: var(--radius); background: var(--ink-tint); transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-fast); }
/* proportions réelles préservées (portrait), aucune déformation */
.photo-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .35s ease; }
/* Pop Art discret : ombre franche décalée au survol */
.photo-card:hover { border-color: var(--fot-anthracite-20); box-shadow: 5px 5px 0 var(--fot-jaune-28), var(--shadow); transform: translate(-1px, -1px); }
.photo-card:hover img { transform: scale(1.03); }
.photo-card:active { transform: none; box-shadow: var(--shadow); }
.photo-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* liseré jaune officiel, repris du logo : accent graphique discret */
.photo-card::before { content: ""; position: absolute; top: 0; left: 0; z-index: 2; width: 44px; height: 4px; background: var(--sun); }
.photo-card .photo-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 38px 12px 11px; color: var(--white); text-align: left; background: linear-gradient(to top, var(--fot-anthracite-82), var(--fot-anthracite-00)); pointer-events: none; }
.photo-card .photo-meta strong { display: block; font-family: var(--font-titre); font-weight: 600; font-size: var(--fs-label); line-height: 1.3; }
.photo-card .photo-meta span { display: block; font-size: var(--fs-mini); opacity: .9; margin-top: 1px; }
/* action de vente posée sur la photo : corail officiel */
.photo-card .photo-go { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 36px; height: 36px; border-radius: var(--radius-btn); background: var(--coral); color: var(--ink-on-coral); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px var(--fot-anthracite-30); transition: background var(--t-base), transform var(--t-fast); }
.photo-card:hover .photo-go { background: var(--coral-deep); color: var(--white); transform: scale(1.06); }

/* ---------- vignettes de sélection (fiche produit) ---------- */
.photo-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 10px; }
.photo-thumb { position: relative; flex: none; width: 78px; height: 78px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--ink-line); background: var(--ink-tint); cursor: pointer; padding: 0; transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-fast); }
.photo-thumb:hover img { transform: scale(1.07); }
.photo-thumb:active { transform: scale(.97); }
.photo-thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* sélection visible (interface = bleu officiel) + coche */
.photo-thumb.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.photo-thumb.on::after { content: "\2713"; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: var(--radius-pill); background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }

/* ---------- aperçu sur l'objet (interface de vente) ---------- */
.preview { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-tint); border: 1px solid var(--ink-line); margin-bottom: 14px; }
.preview img.base { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* l'étiquette « Aperçu » ne s'applique qu'à la simulation de personnalisation,
   pas à la photo de présentation de l'objet */
.preview-overlay::after { content: "Aperçu"; position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--fot-blanc-92); color: var(--ink); font-size: var(--fs-mini); font-weight: 600; }

/* ---------- étapes : distinguer consulter, choisir, personnaliser, commander ---------- */
.vsteps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; padding: 10px 12px; background: var(--ink-tint); border-radius: var(--radius-sm); font-size: var(--fs-mini); color: var(--ink-soft); }
.vsteps b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-titre); font-weight: 600; color: var(--ink); }
.vsteps i { width: 20px; height: 20px; flex: none; border-radius: var(--radius-pill); background: var(--blue); color: var(--white); font-style: normal; font-size: var(--fs-mini); font-weight: 700; line-height: 20px; text-align: center; }
.vsteps .sep { color: var(--fot-anthracite-30); }
.vsteps .on i { background: var(--coral); color: var(--ink-on-coral); }

/* ---------- variantes : informations tarifaires harmonisées ---------- */
.variant { position: relative; overflow: hidden; }
.variant:hover { border-color: var(--blue-line); background: var(--blue-soft); }
.variant.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.variant .price { font-size: var(--fs-body); }

/* ---------- cartes d'objet : même langage graphique que les photos ---------- */
.prod-card { position: relative; }
.prod-card::before { content: ""; position: absolute; top: 0; left: 0; z-index: 2; width: 44px; height: 4px; background: var(--sun); }
.prod-card:hover { box-shadow: 5px 5px 0 var(--fot-jaune-28), var(--shadow); border-color: var(--fot-anthracite-20); transform: translate(-1px, -1px); }
.prod-card img { transition: transform .35s ease; }
.prod-card:hover img { transform: scale(1.03); }

/* ---------- boutiques : la couverture photographique respire ---------- */
.shop-card:hover { box-shadow: 5px 5px 0 var(--fot-jaune-28), var(--shadow); }
.shop-card img.cover { height: 200px; }

/* ---------- mes photographies : la vignette passe devant ---------- */
.photo-row { display: flex; gap: 14px; align-items: flex-start; }
.photo-row > .photo-thumb { flex: none; width: 96px; height: 122px; border: 1px solid var(--ink-line); }
.photo-row > .photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-row .photo-row-body { min-width: 0; flex: 1; }

/* ---------- galerie privée : accès sur invitation ---------- */
.private-box { text-align: center; padding: 30px 20px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.private-box .private-ic { width: 56px; height: 56px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--sun-soft); color: var(--ink); }
.private-box h2 { font-size: var(--fs-h3); margin-bottom: 6px; }
.private-box p { color: var(--ink-soft); font-size: var(--fs-small); max-width: 420px; margin: 0 auto 16px; }
.private-box form { text-align: left; max-width: 360px; margin: 0 auto; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-titre); font-weight: 700; letter-spacing: .08em; background: var(--ink-tint); border: 1px dashed var(--fot-anthracite-30); border-radius: var(--radius-sm); padding: 4px 10px; }

/* ---------- bloc de partage : lien direct + QR code ---------- */
.share-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.share-qr { flex: none; padding: 8px; background: var(--white); border: 1px solid var(--ink-line); border-radius: var(--radius-sm); line-height: 0; }
.share-qr img { width: 132px; height: 132px; display: block; }
.share-info { flex: 1; min-width: 220px; }
.share-info > strong { display: block; font-family: var(--font-titre); font-weight: 600; margin-bottom: 8px; }
.share-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-link input { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid var(--ink-line); border-radius: var(--radius-sm); background: var(--ink-tint); font-size: var(--fs-label); }
.share-link input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.share-info .btn { margin-top: 8px; }
/* sur telephone, le QR passe au-dessus et tout reste empile */
@media (max-width: 767px) {
  .share-box { flex-direction: column; align-items: stretch; }
  .share-qr { align-self: center; }
}

/* ---------- tablette et ordinateur : galeries plus larges ---------- */
@media (min-width: 768px) {
  .grid-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .photo-thumb { width: 92px; height: 92px; }
  .photo-row > img { width: 128px; }
  .shop-card img.cover { height: 240px; }
}
@media (min-width: 1400px) {
  .grid-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- visionneuse : consulter une photographie en grand ---------- */
/* La photo garde ses proportions (object-fit: contain) : jamais recadrée
   ni étirée. Les actions de vente restent en corail. */
.lightbox-card { background: var(--white); border-radius: var(--radius); padding: 12px; max-width: 900px; width: 100%; position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; }
.lightbox-card img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--ink-tint); }
.lightbox-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.lightbox-foot .lightbox-title { flex: 1; min-width: 180px; font-family: var(--font-titre); font-weight: 600; }
.lightbox-foot .lightbox-title small { display: block; font-family: var(--font-texte); font-weight: 400; font-size: var(--fs-mini); color: var(--ink-soft); }

/* ==================================================================
   INTERFACES PROFESSIONNELLES ET ADMINISTRATIVES
   Harmonisation avec la charte Fotorder, présentation PLUS SOBRE que
   les pages commerciales : surfaces neutres, traits fins, aucune ombre
   « Pop Art », aucun aplat de couleur décoratif.
   Répartition des cinq couleurs officielles :
     · corail     → actions principales (Enregistrer, Publier, Payer)
     · bleu       → liens, filtres, interface professionnelle, onglet actif
     · jaune      → mise en avant d'un chiffre, jamais une action
     · anthracite → bandeau haut, textes
     · blanc      → fonds
   Typographie : Poppins pour les titres, Inter pour les données et les
   montants (chiffres tabulaires : les colonnes s'alignent à la lecture).
   ================================================================== */

/* ---------- bandeau haut et navigation ---------- */
.admin-top {
  background: var(--pro-head); color: var(--pro-head-ink);
  border-bottom: 1px solid var(--pro-head);
  gap: 14px;
}
.admin-top .who { font-size: var(--fs-small); opacity: .95; }
/* bouton « Se déconnecter » : action secondaire, sobre mais lisible */
.admin-top button {
  background: transparent; border: 1px solid var(--fot-blanc-55);
  height: 34px; padding: 0 14px; font-family: var(--font-titre);
  font-weight: 600; font-size: var(--fs-label);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.admin-top button:hover { background: var(--fot-blanc-14); border-color: var(--fot-blanc-85); }
.admin-top button:active { background: var(--fot-blanc-14); }

/* barre d'onglets : hauteur et alignement identiques partout */
.admin-tabbar, .admin-topnav { gap: 4px; }
.admin-tabbar { background: var(--pro-surface); border: 1px solid var(--pro-line); box-shadow: var(--pro-shadow); }
.admin-topnav { border-bottom: 1px solid var(--pro-line); box-shadow: none; background: var(--pro-surface); }
.admin-topnav .tab, .admin-tabbar .tab {
  font-family: var(--font-titre); font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background var(--t-base), color var(--t-base);
}
.admin-topnav .tab { color: var(--ink-soft); }
.admin-topnav .tab:hover { background: var(--pro-surface-2); color: var(--blue); }
.admin-topnav .tab.active { background: var(--blue); color: var(--pro-head-ink); }
.admin-tabbar .tab.active, .admin-tabbar .tab.active .tab-ic { color: var(--blue-deep); }
.admin-tabbar .tab.active .tab-ic { background: var(--blue-soft); color: var(--blue-deep); }
.admin-tabbar .tab:hover { color: var(--blue); }

/* ---------- titres de panneau ---------- */
/* une seule classe pour les titres de l'administration : plus de style
   écrit en ligne dans les pages */
.admin-title { font-size: var(--fs-h1); padding-top: 0; margin: 0 0 6px; }
.admin-wrap { padding: 20px 16px calc(var(--tabbar-h) + 40px); }
.admin-panel > .page-sub { margin-bottom: 18px; }

/* ---------- cartes de statistiques et indicateurs ---------- */
.admin-grid { gap: 12px; }
.stat, .tile {
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.stat:hover, .tile:hover { border-color: var(--pro-line-strong); box-shadow: var(--pro-shadow); }
/* le chiffre : Inter, chiffres tabulaires, jamais Poppins (donnée, pas titre) */
.stat b, .stat-head b, .tile b, .alert-card .alert-count {
  font-family: var(--font-data); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stat span, .tile span, .stat small { font-family: var(--font-texte); }
.stat b { font-size: var(--fs-h2); margin-top: 6px; }
.stat small, .tile small { color: var(--ink-soft); font-size: var(--fs-mini); }
.stat-delta { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.stat-split { font-family: var(--font-texte); }
.stat-split i { font-variant-numeric: tabular-nums; }
/* mise en avant d'un chiffre : filet jaune officiel, discret */
.tile { border-top: 3px solid var(--sun); }
/* indicateur d'attention : filet corail (état, pas décoration) */
.stat.is-attention { border-left: 3px solid var(--coral); }

/* ---------- tableaux : commandes, ventes, revenus, galeries ---------- */
.table-wrap {
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  border-radius: var(--radius);
  box-shadow: none;
}
table { font-family: var(--font-data); font-size: var(--fs-label); }
th {
  font-family: var(--font-titre); font-weight: 600;
  font-size: var(--fs-mini); text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); background: var(--pro-surface-2);
  border-bottom: 1px solid var(--pro-line-strong);
}
td { color: var(--ink); }
tbody tr:hover { background: var(--blue-soft); }
/* colonnes de montants : alignées à droite, chiffres tabulaires (lisibilité) */
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num strong { font-weight: 600; }
/* première colonne lisible même sur un libellé long */
td:first-child { font-weight: 500; }

/* ---------- badges de statut : signification préservée, ton harmonisé ---------- */
/* Chaque famille d'état garde son sens ; seule la présentation est unifiée.
   st-wait = à faire/mal parti · st-go = validé/engagé · st-run = en cours
   st-done = terminé · st-ko = incident · st-off = clos sans suite */
.tag.st-wait { background: var(--warn-soft); color: var(--warn); }
.tag.st-go   { background: var(--blue-soft); color: var(--blue-deep); }
.tag.st-run  { background: var(--fot-anthracite); color: var(--pro-head-ink); }
.tag.st-done { background: var(--ok-soft); color: var(--ok); }
.tag.st-ko   { background: var(--danger-soft); color: var(--danger); }
.tag.st-off  { background: var(--pro-surface-2); color: var(--ink-soft); }
.tag { font-family: var(--font-titre); font-weight: 600; letter-spacing: .03em; }

/* ---------- filtres, recherches, formulaires, boutons d'action ---------- */
/* les barres de filtres et de recherche ont la même hauteur que les champs */
.admin-wrap .form input, .admin-wrap .form select, .admin-wrap .form textarea {
  background: var(--pro-surface); border-color: var(--pro-line);
}
.admin-wrap .form input:focus, .admin-wrap .form select:focus, .admin-wrap .form textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.admin-wrap .form label { font-family: var(--font-titre); letter-spacing: 0; }
/* formulaire de filtre : bloc sobre, aligné sur les tableaux */
.admin-filter { background: var(--pro-surface); border: 1px solid var(--pro-line); border-radius: var(--radius); padding: 14px 16px; box-shadow: none; margin-bottom: 14px; }
.admin-filter label { margin-bottom: 0; }
.admin-filter input, .admin-filter select { max-width: 420px; }
/* actions dans les tableaux : petites, alignées, sans déborder */
td .btn + .btn, td .btn + a.btn, td a.btn + .btn { margin-left: 6px; }
/* barre d'actions d'un bloc : alignement commun */
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
td .actions-row { margin-top: 0; }
/* champs placés dans une cellule de tableau : compacts et alignés */
.cell-input {
  width: 150px; max-width: 100%; padding: 8px 10px; margin: 0;
  border: 1px solid var(--pro-line); border-radius: var(--radius-sm);
  background: var(--pro-surface); font-family: var(--font-data);
  font-size: var(--fs-label); color: var(--ink);
}
.cell-input-sm { width: 120px; }
.cell-select {
  padding: 8px 10px; margin: 0; max-width: 100%;
  border: 1px solid var(--pro-line); border-radius: var(--radius-sm);
  background: var(--pro-surface); font-family: var(--font-data);
  font-size: var(--fs-label); color: var(--ink);
}
.cell-select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.cell-input:hover { border-color: var(--pro-line-strong); }
.cell-input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* ---------- avis, journal, tuiles de la galerie : même sobriété ---------- */
.rev-item { border-color: var(--pro-line); box-shadow: none; }
.rev-head { background: var(--pro-surface-2); }
.feed, .rows-box, .chart-box, .alert-card, .private-box, .share-box {
  background: var(--pro-surface); border-color: var(--pro-line); box-shadow: none;
}
.chart-box { border-radius: var(--radius); }
.alert-card:hover, .feed-item:hover { background: var(--blue-soft); }
.chart-legend { font-family: var(--font-texte); }

/* ---------- espace professionnel (compte) : même langage sobre ---------- */
.form-alt a, .card p a, .card li a { color: var(--blue); }
.tiles .tile b { font-size: var(--fs-h2); }
/* dans l'espace professionnel, le filet jaune de mise en avant est remplacé
   par un trait neutre : l'interface pro reste sobre (règle 2 de la mission) */
.tiles-sober .tile { border-top-color: var(--pro-line-strong); }
.tiles-sober .tile b { font-variant-numeric: tabular-nums; }

/* ---------- ordinateur : tableaux et grilles plus lisibles ---------- */
@media (min-width: 900px) {
  .admin-wrap { padding: 24px 28px 64px; max-width: 1240px; }
  .admin-title { font-size: var(--fs-display); }
  .stat { padding: 18px; }
  table { font-size: var(--fs-small); }
  th, td { padding: 13px 14px; }
  .admin-filter input, .admin-filter select { max-width: 340px; }
  .actions-row { margin-top: 16px; }
}

/* ---------- téléphone : jamais rien d'écrasé, tout reste empilable ---------- */
@media (max-width: 767px) {
  .admin-wrap { padding-left: 14px; padding-right: 14px; }
  .admin-filter input, .admin-filter select { max-width: 100%; }
  .admin-filter label { width: 100%; }
  /* l'onglet actif reste reconnaissable sans élargir la barre */
  .admin-tabbar .tab { min-width: 0; }
}
