/*
 * Compléments à app.css (feuille de style d'origine de GameKlub, reprise telle quelle).
 * Uniquement ce que le rendu PHP sans framework demande en plus : états pilotés par l'attribut `hidden`,
 * formulaires natifs à la place des boutons React, et quelques ajustements.
 */
[hidden] { display: none !important; }
.product-card__form { display: contents; }
.product-card__form .product-card__cta { position: relative; }
.buybox form { display: contents; }
.buybox__incart a { font-weight: 600; }
.cart-list { margin: 0; padding: 0; list-style: none; }
.cart__tools { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link, var(--brand-700)); text-decoration: underline; cursor: pointer; }
button.link:hover { text-decoration: none; }
.js [data-cart-update] { display: none; }
.confirm-box[data-confirm-box] { margin-top: 12px; }
.js [data-confirm]:not(.is-open) [data-confirm-box] { display: none; }
.js [data-confirm].is-open [data-confirm-open] { display: none; }
.search-box__list li { cursor: pointer; }
.search-box__empty { padding: 12px 14px; color: var(--muted); grid-template-columns: 1fr !important; cursor: default !important; }
[data-fav][aria-pressed="true"] .icon path { fill: currentColor; }
.buybox [data-fav][aria-pressed="true"] { color: var(--promo, #c2410c); border-color: currentColor; }
.auth-card__logo svg { height: 36px; width: auto; }
.brand svg { display: block; }
.account-card form + form { margin-top: 12px; }
.reservation-note p { white-space: pre-line; }
.faq .condition-scale { margin-top: 8px; }
.banner__nav-icon { margin-right: 10px; }
.share { display: inline-flex; align-items: center; gap: 10px; }
.reservation-aside p > .icon, .reservation-aside h2 > .icon, .reservation-page__subtitle > .icon { display: inline-block; vertical-align: -3px; margin-right: 6px; }

/* ---------- Administration (formulaires natifs) ---------- */
.admin-nav a .badge { margin-left: 4px; }
.extend-form__presets .chip { cursor: pointer; }
.extend-form__presets .chip input { margin: 0 4px 0 0; }
.extend-form__presets .chip:has(input:checked) { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.admin-actions form { display: contents; }
.admin-actions[data-confirm] { display: block; }
.admin-actions + .admin-actions { margin-top: 8px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.image-manager__list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 12px; padding: 0; }
.image-manager__list li { display: grid; gap: 4px; justify-items: center; }
.image-manager__list img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.import-errors { white-space: pre-wrap; font-size: 0.8125rem; background: var(--surface-2, #f1f5f9); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; overflow-x: auto; }
.hours-editor__row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 6px 0; }
.hours-editor__ranges input { width: 100%; max-width: 360px; }
.family-universe__editor, .family-platform__editor { display: grid; gap: 10px; padding: 10px 0; }
.family-platform > details > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inline-form label { display: inline-flex; align-items: center; gap: 6px; }
.pokemon-conditions input[type="text"], .pokemon-conditions textarea { width: 100%; }
.pokemon-conditions__order input { width: 4.5em; }
.pokemon-ext-form__keywords { display: grid; gap: 4px; }
.pokemon-ext-form__keywords textarea, .text-row__form textarea { width: 100%; }
.text-row__form { display: grid; gap: 8px; }
.admin-toolbar > form.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; flex: 1; }
.products-table__thumb { object-fit: contain; }
fieldset.field { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
fieldset.field legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.account-card--danger [data-confirm-box] { margin-top: 12px; }
form.settings__form, form.product-form, form.pokemon-ext-form, .card > form.stack, .admin form.stack:not(.admin-note):not(.confirm-box) { max-width: none; }
.text-row__form .admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.promo-box form { display: contents; }
.admin select[multiple] { width: 100%; min-height: 7.5em; }
.cart-line__rule { display: block; }

/* ---------- Grands écrans ---------- */
/* Dans app.css, « .main-nav__list { margin: 0 } » annule le centrage de « .container » : au-delà de 1280 px, le menu
   restait collé à gauche alors que le reste de l'en-tête est centré. */
.main-nav__list.container { margin-inline: auto; }
/* Sans « Bons plans », « Occasions » reste à la suite des univers au lieu d'être repoussé seul à droite. */
.main-nav__item:last-child:not(.main-nav__item--promo) { margin-left: 0; }

/* ---------- Petits écrans ---------- */
/* Une colonne de grille ne doit jamais s'élargir à cause de son contenu (champ de fichier, liste, titre long). */
.product-admin__layout > *, .cart > *, .account-grid > *, .settings__grid > *, .reservation-page__layout > *, .catalog__layout > *, .product__layout > * { min-width: 0; }
.admin input, .admin select, .admin textarea, .account-card input, .cart-summary input, .auth-card input, input[type="file"] { max-width: 100%; }
.inline-form { flex-wrap: wrap; }
.admin-toolbar__search { min-width: 0; max-width: 100%; }
.admin-toolbar__search input { min-width: 0; }
.cart-line__body { min-width: 0; }
.cart-line__title, .cart-line__sku, .products-table__title, .reservation-items a, .admin-table__items { overflow-wrap: anywhere; }
.table-card { overflow-x: auto; position: relative; }
.card, .settings__section, .account-card { min-width: 0; }
.import-errors, .admin code { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  /* Menus déroulants de l'admin : sur toute la largeur de la barre plutôt que débordant de l'écran. */
  .admin-nav { position: relative; }
  .admin-nav__group { position: static; }
  .admin-nav__menu { left: 8px; right: 8px; min-width: 0; }
  .hours-editor__row { grid-template-columns: 1fr; gap: 4px; }
  .bulk-bar .button { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .menu { position: static; }
  .menu__panel { left: 8px; right: 8px; min-width: 0; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .account-card { padding-inline: 14px; }
}
.stack > *, form.stack > *, .field, fieldset.field { min-width: 0; }
.admin .field select, .admin .field textarea { width: 100%; }
.admin .field select, .admin .field textarea, .admin .field input { min-width: 0; max-width: 100%; }
.field label, .field .field__hint, label.check { min-width: 0; overflow-wrap: anywhere; }
.inline-form label { flex-wrap: wrap; max-width: 100%; min-width: 0; }
.inline-form input, .inline-form select { min-width: 0; max-width: 100%; }
.promo-box .inline-form { display: flex; flex-wrap: nowrap; width: 100%; gap: 8px; }
.promo-box .inline-form input { flex: 1 1 0; width: 0; min-width: 0; }

/* ---------- Mode sombre ---------- */
/* Dans app.css, --brand-700 et --brand-800 servent presque partout de couleur de TEXTE (liens, onglet actif, puce
   active, titres accentués) mais ne sont pas éclaircies en mode sombre : texte bleu foncé sur fond sombre, illisible.
   Ici elles deviennent des teintes claires ; les rares fonds qui les utilisent gardent une teinte foncée. */


/* ---------- Tableaux sur petit écran : défilement horizontal plutôt que colonnes écrasées ---------- */
.admin-table__number, .reservation-number { white-space: nowrap; }
@media (max-width: 700px) {
  .admin-table table { min-width: 620px; }
  .reservation-items table { min-width: 0; }
}
@media (max-width: 700px) { .admin-table .inline-form select { max-width: 190px; } }

/* ---------- Photos de l'état des cartes, icônes d'extension (TCGdex) ---------- */
.image-card__actions form { display: flex; gap: 4px; margin: 0; }
.image-card__actions { flex-wrap: wrap; justify-content: space-between; }
.condition-photo__caption { margin: 0; }
.condition-photo__caption label { flex: 1 1 0; min-width: 0; display: flex; }
.condition-photo__caption input { width: 100%; }
.condition-photos .image-manager__add input[type="text"] { max-width: 100%; }
.condition-photos .image-manager__add input[type="file"], .pokemon-symbol-editor input[type="file"] { max-width: 100%; min-width: 0; font-size: .85rem; }
a.condition-gallery__thumb { color: inherit; }
.condition-gallery__dialog-body img { background: #fff; border-radius: var(--radius-sm); }
.pokemon-symbol-editor { margin-top: 10px; align-items: center; }
.pokemon-symbol-editor form { margin: 0; }
.pokemon-symbol-editor__hint { margin: 4px 0 10px; font-size: .85rem; }
.family-platform__title .pokemon-symbol-preview { margin-right: 4px; }
.pokemon-tcgdex-table { margin-top: 10px; }

/* =====================================================================================================
   Harmonisation générale : mêmes hauteurs, rayons, tailles de texte et états pour tous les champs,
   boutons et encadrés, sur le site comme dans l'administration.
   ===================================================================================================== */
:root { --control-h: 42px; --control-h-sm: 36px; --control-radius: 8px; --control-fs: .95rem; --control-fs-sm: .9rem; --ring: color-mix(in srgb, var(--brand-600) 24%, transparent); }

/* Champs */
input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="search"]):not([type="color"]):not([type="hidden"]), select, textarea {
  min-height: var(--control-h); padding: 8px 12px; border-radius: var(--control-radius); font-size: var(--control-fs); line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
input[type="search"] { font-size: var(--control-fs); }
textarea { min-height: calc(var(--control-h) * 1.6); resize: vertical; }
:is(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="color"]), select, textarea):hover:not(:disabled):not(:focus) { border-color: color-mix(in srgb, var(--brand-600) 45%, var(--border-strong)); }
main :is(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="color"]), select, textarea):focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--ring); outline: none; }
:is(input, select, textarea)::placeholder { color: var(--muted); opacity: .8; }
:is(input, select, textarea, button):disabled { cursor: not-allowed; }
:is(input, select, textarea):disabled { background: var(--surface-2); opacity: .7; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand-600); width: 16px; height: 16px; flex: none; margin: 0; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { cursor: pointer; }

/* Listes déroulantes : place réservée à la flèche partout, texte coupé proprement */
select { padding-right: 34px; text-overflow: ellipsis; max-width: 100%; cursor: pointer; }
select[multiple] { background-image: none; padding: 6px; min-height: 0; cursor: default; }
select[multiple] option { padding: 5px 8px; border-radius: 6px; }

/* Contextes compacts : barres de filtres, formulaires en ligne, tableaux */
:is(.inline-form, .assign-form, .admin-filters__row, .bulk-bar, .catalog__sort, .admin-table td, .pokemon-conditions, .admin-toolbar, .promo-box) :is(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="color"]):not([type="hidden"]), select) {
  min-height: var(--control-h-sm); padding-top: 5px; padding-bottom: 5px; padding-left: 10px; font-size: var(--control-fs-sm);
}
:is(.inline-form, .assign-form, .admin-filters__row, .bulk-bar, .catalog__sort, .admin-table td, .admin-toolbar) select { padding-right: 30px; }
:is(.inline-form, .assign-form, .admin-filters__row, .bulk-bar, .catalog__sort, .admin-table td, .admin-toolbar) input:not([type="radio"]):not([type="checkbox"]):not([type="search"]):not([type="file"]) { padding-right: 10px; }
:is(.admin-table td, .pokemon-conditions, .pokemon-ext-form, .text-row__form) textarea { font-size: var(--control-fs-sm); min-height: var(--control-h-sm); }
.inline-form label, .inline-form .check { min-width: 0; max-width: 100%; }
.inline-form :is(input:not([type="checkbox"]):not([type="radio"]), select) { min-width: 0; max-width: 100%; }
.assign-form select { width: min(100%, 290px); }

/* Envoi de fichier : même bouton que le reste du site */
input[type="file"] { padding: 4px 10px 4px 4px; min-height: var(--control-h-sm); font-size: var(--control-fs-sm); color: var(--muted); background: var(--surface); cursor: pointer; }
input[type="file"]::file-selector-button {
  margin: 0 10px 0 0; padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--link, var(--brand-700));
  font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
input[type="file"]:hover::file-selector-button { border-color: var(--brand-600); background: var(--brand-50); }

/* Libellés et aides */
.field { align-content: start; }
.field > label, fieldset.field legend, form.stack > label, .auth-card label, .account-card label { font-size: .9rem; font-weight: 600; }
.field__hint { font-size: .82rem; line-height: 1.45; }
button.primary { font-size: .95rem; }

/* Encadrés : même rayon, même marge intérieure, mêmes titres */
.card, .settings__section, .account-card, .cart-summary, details.family-universe, .confirm-box, .table-card { border-radius: var(--radius-lg); }
.card { padding: 20px 22px; }
.card > h2:first-child, .card > h2, .settings__section > h2, .account-card > h2 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 8px; }
.card > h2 + p.muted, .settings__section > h2 + p.muted { margin-top: 0; font-size: .9rem; }
details.family-universe { overflow: hidden; }

/* Icône d'extension dans l'administration */
.pokemon-symbol-editor > span:first-child { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .9rem; font-weight: 600; }
input[type="file"] { padding: 3px 10px 3px 3px !important; min-height: var(--control-h-sm) !important; }
input[type="file"]::file-selector-button { padding: 4px 12px; }
.admin input[type="search"] { min-height: var(--control-h-sm); }
.admin-table td form.inline-form > select, .admin-table td form.inline-form label > select { width: 260px; }

/* Menu Pokémon : colonnes assez larges, noms coupés proprement, icônes alignées, compteurs dans leur colonne */
.mega__blocks { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px 24px; }
.mega .mega__extensions a { min-width: 0; gap: 8px; }
.mega__ext .ext-mark, .pokemon-universe .ext-mark { flex: 1 1 0; min-width: 0; }
.mega__ext .ext-mark__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega__ext .ext-mark:not(:has(.ext-mark__icon)) { padding-left: 22px; }
.mega__ext .mega__count { flex: none; }

/* Barre d'administration sur petit écran : titre et recherche sur la même ligne, liens dessous */
@media (max-width: 720px) {
  .admin-nav { gap: 6px 10px; }
  .admin-nav__search { order: 1; flex: 1 1 0; min-width: 0; }
  .admin-nav__search label { flex: 1 1 0; min-width: 0; }
  .admin-nav__search input[type="search"] { width: 100%; }
  .admin-nav > ul { order: 2; width: 100%; gap: 2px; }
  .admin-nav a, .admin-nav__group summary { padding: 6px 10px; }
}

/* =====================================================================================================
   Bandeaux de rubrique : moins plats (reflets, motif discret), image de fond posée depuis l'admin
   ===================================================================================================== */
.banner { isolation: isolate; min-height: 190px; align-content: center;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--universe-color, var(--brand)) 55%, #fff) 0%, transparent 46%),
    radial-gradient(90% 120% at 82% 115%, rgba(0, 0, 0, .38) 0%, transparent 60%),
    linear-gradient(105deg, color-mix(in srgb, var(--universe-color, var(--brand)) 62%, #07131d) 0%, color-mix(in srgb, var(--universe-color, var(--brand)) 88%, #000) 100%);
  box-shadow: 0 10px 28px -18px color-mix(in srgb, var(--universe-color, var(--brand)) 80%, #000); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 18px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.banner::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -90px; width: 340px; height: 340px; border-radius: 50%; pointer-events: none;
  border: 44px solid rgba(255, 255, 255, .07); }
.banner h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; text-wrap: balance; }
.banner--image { min-height: clamp(210px, 26vw, 320px);
  background: linear-gradient(90deg, rgba(7, 19, 29, .9) 0%, rgba(7, 19, 29, .68) 42%, rgba(7, 19, 29, .18) 100%), var(--banner-image) center / cover no-repeat, #0b1a26; }
.banner--image::before, .banner--image::after { display: none; }
@media (max-width: 640px) { .banner--image { background: linear-gradient(180deg, rgba(7, 19, 29, .78) 0%, rgba(7, 19, 29, .86) 100%), var(--banner-image) center / cover no-repeat, #0b1a26; } .banner::after { display: none; } }

/* Vignettes de rubrique */
.platform-card__mark--photo { background: var(--surface-2); overflow: hidden; width: 56px; height: 42px; padding: 0; }
.platform-card__mark--photo img, .universe-index__thumb img, .block-card__cover img, .section-image__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.universe-index__thumb { flex: none; width: 44px; height: 32px; border-radius: 6px; overflow: hidden; align-self: center; background: var(--surface-2); }
.block-card__cover { display: block; aspect-ratio: 16 / 6; margin: -2px -2px 10px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }

/* Accueil : ajouts du jour */
.fresh { margin: 0 0 40px; }
.fresh--today { padding: 18px 18px 6px; border: 1px solid var(--brand-200); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--brand-50), transparent 70%); }
.fresh--today .section { margin-bottom: 8px; }
.fresh--today .section-head h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--promo, #c2410c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--promo, #c2410c) 22%, transparent); vertical-align: middle; }
.hero__fact--today strong { color: #fff; font-size: 2rem; }
.hero__fact--today span, .hero__fact--today a { color: #fff; font-weight: 700; }
.badge--new { background: var(--promo, #c2410c); color: #fff; }

/* Articles sauvegardés : même grille que le catalogue */
.product-grid--saved { margin-bottom: 20px; }

/* Réseaux sociaux */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.social-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--foreground); background: var(--surface); }
.social-links a:hover { border-color: var(--brand-600); text-decoration: none; }
.site-footer__social a { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.site-footer__social a:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.social-editor { display: grid; gap: 8px; margin: 10px 0 14px; max-width: 720px; }
.social-editor__row { display: flex; gap: 8px; }
.social-editor__row select { width: 160px; }
.social-editor__url { flex: 1 1 0; min-width: 0; }
.social-editor__url input { width: 100%; }

/* Administration : activation, zone de dépôt, import, images des rubriques */
.products-table__toggle { display: block; margin-top: 4px; font-size: .82rem; }
.bulk-bar { margin-top: 12px; }
.bulk-bar [data-bulk-confirm][hidden] { display: none; }
.dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); transition: border-color .15s ease, background-color .15s ease; }
.dropzone__label { flex: 1 1 260px; display: grid; gap: 6px; cursor: pointer; }
.dropzone.is-enhanced [data-dropzone-submit] { display: none; }
.dropzone.is-enhanced input[type="file"] { max-width: 340px; }
.dropzone.is-drag, form[data-dropzone].is-drag { border-color: var(--brand-600); background: var(--brand-50); }
form[data-dropzone].is-sending { opacity: .6; pointer-events: none; }
.image-card__actions { align-items: center; }
.import-progress { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--brand-200); border-radius: var(--radius); background: var(--brand-50); }
.import-progress p { margin: 0; }
.import-progress__label { font-weight: 700; }
.import-progress progress { width: 100%; height: 12px; accent-color: var(--brand-600); }
.import-keeps { margin: 0 0 8px; padding-left: 18px; font-size: .9rem; display: grid; gap: 3px; }
.section-images { display: grid; gap: 8px; margin: 0; padding: 12px; list-style: none; }
.section-images.card { padding: 14px; }
.section-image { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.section-image:last-child { border-bottom: 0; }
.section-image__thumb { flex: none; width: 112px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface-2); font-size: .78rem; }
.section-image__name { flex: 1 1 160px; min-width: 0; font-weight: 600; }
.section-image form { margin: 0; }
.section-image.is-drag { background: var(--brand-50); }
.platform-card__mark--photo, .universe-index__thumb { position: relative; }
.platform-card__mark--photo img, .universe-index__thumb img { position: absolute; inset: 0; }
fieldset.field .check { align-items: flex-start; }
fieldset.field .check input { margin-top: 3px; }
.dropzone, .dropzone__label { min-width: 0; }
.dropzone__label { flex: 1 1 200px; }
.dropzone input[type="file"], .dropzone.is-enhanced input[type="file"] { width: 100%; max-width: 340px; min-width: 0; }
.product-admin__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.section-image form.inline-form { flex: 1 1 200px; min-width: 0; }
.section-image form.inline-form label { flex: 1 1 120px; min-width: 0; }
.section-image input[type="file"] { width: 100%; min-width: 0; }
.image-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }

/* =====================================================================================================
   Statistiques : chiffres clés, graphiques en barres (une série, une échelle), classements
   ===================================================================================================== */
.stats__block { margin: 0 0 36px; }
.stats__block > h2 { font-size: 1.25rem; margin: 0 0 12px; }
.stats-filters { display: grid; gap: 10px; margin: 0 0 22px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.stats-filters__periods { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.stats-filters__custom { gap: 8px 14px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; margin: 0 0 14px; }
.kpi { display: grid; align-content: start; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.kpi--lead { border-color: var(--brand-200); background: linear-gradient(180deg, var(--brand-50), var(--surface) 80%); }
.kpi__label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi__value { font-size: 1.55rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi--lead .kpi__value { font-size: 1.9rem; }
.kpi__hint { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.kpi__delta { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.kpi__delta--good { background: var(--success-soft); color: var(--success); }
.kpi__delta--bad { background: var(--danger-soft); color: var(--danger); }
.kpi__delta--flat { background: var(--surface-2); color: var(--muted); }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.chart-card { padding: 14px 16px 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.chart-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.chart-card__head h3 { margin: 0; font-size: .95rem; }
.chart-card__head strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.chart-card__empty { margin: 0; padding: 48px 0; text-align: center; }
.chart-card__note { margin: 4px 0 0; font-size: .8rem; }
.chart-card__table { margin-top: 6px; font-size: .85rem; }
.chart-card__table summary { cursor: pointer; color: var(--link, var(--brand-700)); font-weight: 600; padding: 4px 0; }
.chart-card__table .table-card { max-height: 260px; overflow: auto; margin-top: 6px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
.chart__axis { stroke: var(--border-strong); stroke-width: 1; }
.chart__tick, .chart__label { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__bar { fill: var(--brand-600); transition: fill .12s ease; }
.chart__hit { fill: transparent; }
.chart__col:hover .chart__bar { fill: var(--brand-800); }
.chart__col:hover .chart__hit { fill: color-mix(in srgb, var(--brand-600) 9%, transparent); }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-bottom: 10px; }
.rank-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.rank-card h3 { margin: 0 0 10px; font-size: .95rem; }
.rank { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: rang; }
.rank__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: baseline; font-size: .9rem; counter-increment: rang; }
.rank__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__label::before { content: counter(rang) ". "; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank__sub { font-size: .8rem; }
.rank__value { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank__bar, .funnel__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.rank__bar span, .funnel__bar span { display: block; height: 100%; border-radius: 4px; background: var(--brand-600); }
.funnel { display: grid; gap: 10px; margin: 0 0 10px; padding: 16px; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.funnel__step { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .92rem; }
.funnel__bar { grid-column: auto; height: 12px; border-radius: 6px; }
.funnel__bar span { border-radius: 6px; }
.funnel__value { font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.stats__method { font-size: .82rem; max-width: 90ch; }
@media (max-width: 560px) { .funnel__step { grid-template-columns: minmax(0, 1fr) auto; } .funnel__bar { grid-column: 1 / -1; order: 3; } }
.admin-nav > ul { flex: 1 1 0; min-width: 0; }
@media (max-width: 720px) { .admin-nav > ul { flex: 1 1 100%; } }
.stats .funnel { padding: 16px 18px; }
.stats .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr)); }
.stats .chart-grid { grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); }
.kpi--lead .kpi__value { font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.kpi__value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================================================
   Finitions « boutique » : cartes, visuels de remplacement, navigation mobile, messages, transitions
   ===================================================================================================== */
/* Visuel de remplacement : sobre, un pictogramme dans une pastille, le nom de la plateforme discret */
.product-image--placeholder { gap: 8px; color: var(--muted);
  background-color: var(--surface-2);
  background-image: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--platform-color, var(--brand-700)) 10%, transparent), transparent 70%); }
.product-image--placeholder svg { width: 44px; height: 44px; padding: 10px; margin: 0 auto; border-radius: 50%; opacity: 1; color: var(--platform-color, var(--brand-700));
  background: var(--surface); box-shadow: 0 1px 0 var(--border), 0 0 0 1px var(--border); box-sizing: border-box; }
.product-image__label { font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--foreground); opacity: .75; }
.product-image__sub { display: none; }
.product-image--large.product-image--placeholder svg { width: 88px; height: 88px; padding: 20px; }
.product-image--large .product-image__label { font-size: 1.05rem; }
.mini__thumb .product-image--placeholder svg { display: none; }

/* Cartes produit : le titre et le prix d'abord, le stock seulement quand il compte */
.product-card { transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.product-card:hover { box-shadow: 0 10px 24px -14px rgba(10, 30, 50, .35); transform: translateY(-2px); }
.product-card__title { font-weight: 650; }
.product-card__price { font-size: 1.25rem; letter-spacing: -.01em; }
.product-card__stock:not(.product-card__stock--low) { display: none; }
.product-card__platform { font-size: .7rem; }

/* Fiche produit sur téléphone : retour direct à la rubrique, barre « Réserver » toujours visible */
.product__back { display: none; margin: 0 0 8px; font-weight: 600; font-size: .92rem; }
.buybar { display: none; }
@media (max-width: 760px) {
  .product__back { display: block; }
  .product > nav[aria-label="Fil d'Ariane"] { display: none; }
  .buybar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -16px rgba(10, 30, 50, .5); }
  .buybar__price { display: grid; line-height: 1.2; min-width: 0; }
  .buybar__price strong { font-size: 1.2rem; }
  .buybar__price .muted { font-size: .78rem; }
  .buybar .button { flex: none; }
  .product { padding-bottom: 76px; }
}

/* Catalogue sur téléphone : bouton « Filtres » collé en bas, panneau plein écran */
@media (max-width: 960px) {
  .catalog__layout { padding-bottom: 64px; }
  .filters:not([open]) { border: 0; background: none; height: 0; }
  .filters:not([open]) > summary { position: fixed; z-index: 80; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    gap: 8px; padding: 11px 22px; border-radius: 999px; background: var(--brand-600); color: #fff; box-shadow: 0 10px 24px -8px rgba(10, 30, 50, .55); white-space: nowrap; }
  .filters:not([open]) > summary .icon { color: #fff; transform: rotate(180deg); }
  .filters[open] { position: fixed; z-index: 220; inset: 0; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 0; }
  .filters[open] > summary { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px; font-size: 1.05rem; }
  .filters[open] > summary::after { content: "Fermer"; font-size: .88rem; font-weight: 700; color: var(--link, var(--brand-700)); }
  .filters[open] > summary .icon { display: none; }
  .filters[open] .filters__form { padding-bottom: 96px; border-top: 0; }
  .filters[open] .filters__form > button[type="submit"], .filters[open] .filters__form > .filters__actions { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); width: auto; z-index: 3; box-shadow: 0 10px 24px -8px rgba(10, 30, 50, .5); }
}

/* Menu : panneau « Plus », lien Nouveautés */
.mega__more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.mega .mega__more-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); color: var(--foreground); }
.mega .mega__more-list a:hover { background: var(--surface-2); text-decoration: none; }
.mega__more-list .nav-icon { color: var(--universe-color, var(--brand-700)); }
.mega__more-list .muted { font-size: .82rem; font-weight: 400; }
.mega:not([hidden]) { animation: gk-pop .14s ease-out; }
@keyframes gk-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Accueil : photo du magasin en fond du bandeau */
.hero--image { background-image: linear-gradient(95deg, rgba(6, 22, 36, .92) 0%, rgba(6, 22, 36, .74) 48%, rgba(6, 22, 36, .35) 100%), var(--hero-image); background-size: cover; background-position: center; }

/* Messages de confirmation et d'erreur : bandeaux encadrés, le succès s'efface seul */
.notice { display: flex; align-items: flex-start; gap: 10px; max-width: var(--container, 1280px); margin: 12px auto; padding: 12px 16px; border: 1px solid; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  box-shadow: 0 6px 18px -14px rgba(10, 30, 50, .5); transition: opacity .3s ease, transform .3s ease; }
.notice::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: currentColor; }
.notice--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 45%, transparent); color: var(--success); }
.notice--error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.notice.is-leaving { opacity: 0; transform: translateY(-6px); }
.notice__close { margin-left: auto; border: 0; background: none; color: inherit; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 2px 4px; }

/* États vides : un pictogramme au trait, une bordure moins « chantier » */
.empty-state { border-style: solid; border-color: var(--border); border-radius: var(--radius-lg); padding: 44px 16px; }
.empty-state::before { content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand-50) center / 28px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-5 9 5v8l-9 5-9-5V8Z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.empty-suggest { justify-content: center; margin: 18px 0 28px; }

/* Bouton en cours d'envoi */
.button.is-loading, button.primary.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.button.is-loading::after, button.primary.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); border-top-color: #fff; animation: gk-spin .7s linear infinite; }
.button--ghost.is-loading::after, .button--light.is-loading::after { border-color: color-mix(in srgb, var(--brand-600) 35%, transparent); border-top-color: var(--brand-600); }
@keyframes gk-spin { to { transform: rotate(360deg); } }
.shop-address__map { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .mega:not([hidden]), .button.is-loading::after { animation: none; } .product-card, .notice { transition: none; } .product-card:hover { transform: none; } }
.admin-nav { gap: 6px 10px; }
.admin-nav a, .admin-nav__group summary { padding: 8px 10px; }
.admin-nav__search input[type="search"] { width: 150px; }
@media (max-width: 960px) { .filters[open] .filters__actions { display: flex; gap: 8px; } .filters[open] .filters__actions .button { flex: 1 1 0; justify-content: center; } }

/* =====================================================================================================
   Parcours client : étapes, indicateur d'ouverture, tuiles d'univers, pastilles d'état, confirmation
   ===================================================================================================== */
.topbar__inner { justify-content: space-between; }
.topbar__open { color: inherit; white-space: nowrap; }
.topbar__open:hover { color: #fff; text-decoration: none; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.open-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa9b7; }
.open-badge--open .open-badge__dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
@media (max-width: 520px) { .topbar__inner > span:first-child { display: none; } .topbar__inner { justify-content: center; } }

.how { margin: 0 0 40px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.how__title { margin: 0 0 16px; font-size: 1.2rem; }
.how__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.how__step { display: flex; gap: 14px; align-items: flex-start; }
.how__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); }
.how__icon .icon { width: 24px; height: 24px; }
.how__step h3 { margin: 0 0 4px; font-size: 1rem; }
.how__num { color: var(--brand-700); }
.how__step p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.universe-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.universe-tile { position: relative; display: grid; gap: 4px; align-content: end; min-height: 150px; padding: 16px; border-radius: var(--radius-lg); color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 120% at 100% 0%, color-mix(in srgb, var(--universe-color) 60%, #fff) 0%, transparent 50%), linear-gradient(140deg, color-mix(in srgb, var(--universe-color) 70%, #07131d), color-mix(in srgb, var(--universe-color) 92%, #000));
  transition: transform .16s ease, box-shadow .16s ease; }
.universe-tile--image { background: linear-gradient(180deg, rgba(7, 19, 29, .25) 0%, rgba(7, 19, 29, .88) 78%), var(--tile-image) center / cover no-repeat; }
.universe-tile:hover { color: #fff; text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--universe-color) 70%, #000); }
.universe-tile__icon { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.universe-tile__name { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.universe-tile__platforms { font-size: .8rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.universe-tile__count { font-size: .82rem; font-weight: 700; margin-top: 4px; }

.attr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.attr-chip { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .72rem; font-weight: 600; color: var(--foreground); white-space: nowrap; }
.attr-chip--missing { border-style: dashed; color: var(--muted); }
.attr-chips--card { min-height: 21px; overflow: hidden; flex-wrap: nowrap; }
.product .attr-chips { margin: 8px 0; }
.product .attr-chip { font-size: .82rem; padding: 3px 10px; }

.stepper { display: flex; gap: 0; margin: 4px 0 20px; padding: 0; list-style: none; counter-reset: none; }
.stepper__step { flex: 1 1 0; display: grid; justify-items: center; gap: 6px; position: relative; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); min-width: 0; }
.stepper__step::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.stepper__step:first-child::before { display: none; }
.stepper__mark { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); font-size: .8rem; font-weight: 800; }
.stepper__step--done, .stepper__step--current { color: var(--foreground); }
.stepper__step--done .stepper__mark { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.stepper__step--done::before, .stepper__step--current::before { background: var(--brand-600); }
.stepper__step--current .stepper__mark { border-color: var(--brand-600); color: var(--brand-700); box-shadow: 0 0 0 4px var(--ring); }
.stepper__step--failed .stepper__mark { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.stepper__step--failed { color: var(--danger); }
.reservation-card .stepper { margin: 10px 0 12px; max-width: 420px; }
.reservation-card .stepper__label { font-size: .74rem; }
.reservation-page > .stepper { max-width: 560px; }

.confirm-banner--big { padding: 24px; align-items: flex-start; }
.confirm-banner--big h1 { margin: 0 0 6px; }
.confirm-banner__number { display: grid; gap: 2px; margin: 0 0 10px; }
.confirm-banner__number .reservation-number { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: .02em; line-height: 1.1; }
.confirm-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

.pagination-more { display: grid; justify-items: center; gap: 6px; margin: 20px 0 6px; }
.pagination-more .button { min-width: min(320px, 100%); justify-content: center; }
@media (max-width: 640px) { .pagination ul { display: none; } .pagination { justify-content: space-between; } }

/* Hiérarchie des titres : un cran net entre la page, la section et la carte */
main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; }
.section-head h2, main section > h2 { font-size: 1.3rem; letter-spacing: -.01em; }
main h3 { font-size: 1rem; }

/* Pied de page : trois colonnes de liens, coordonnées mises en avant */
@media (min-width: 900px) { .site-footer__cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer__brand address { font-size: .95rem; line-height: 1.6; }

/* Impression : le bon de réservation seul */
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .admin__bar, .admin-shell__side, .admin-shell__top, .admin-back, .admin-actions, .notice, .reservation-aside form, .extend-form, .admin-note, [data-confirm] { display: none !important; }
  body { background: #fff !important; }
  .print-only { display: block; font-size: 1rem; margin: 0 0 12px; }
  .reservation-page__layout { display: block; }
  .reservation-page h1 { font-size: 2rem; }
}

/* =====================================================================================================
   Administration : espace de travail (menu latéral sombre, barre d'outils, contenu sur fond clair)
   ===================================================================================================== */
body.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; margin: 0; background: var(--background); }
.admin-shell__side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; overflow-y: auto; scrollbar-width: thin;
  background: #0d1b27; color: #c9d6e2; z-index: 120; }
.admin-shell__brand { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 14px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .09); margin-bottom: 4px; }
.admin-shell__brand:hover { color: #fff; text-decoration: none; }
/* Le logo garde toujours ses proportions : la colonne n'étire pas ses enfants, et une image trop large est réduite, jamais écrasée. */
.admin-shell__brand { align-items: flex-start; }
.admin-shell__brand svg { height: 26px; width: auto; max-width: 100%; flex: none; }
.admin-shell__brand img { width: auto !important; height: auto !important; max-width: 100%; max-height: 40px; object-fit: contain; object-position: left center; flex: none; align-self: flex-start; }
.admin-shell__brand span { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7f93a6; }
.admin-menu { flex: 1 1 auto; }
.admin-menu ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.admin-menu__title { margin: 14px 10px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8497aa; }
.admin-menu__link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #c9d6e2; font: inherit; font-size: .92rem; font-weight: 600; text-align: left; cursor: pointer; }
.admin-menu__link .icon { flex: none; width: 18px; height: 18px; opacity: .75; }
.admin-menu__link span:first-of-type { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-menu__link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
/* La barre latérale est sombre dans les deux modes : couleurs fixes, jamais les variables qui s'inversent en mode sombre. */
.admin-menu__link[aria-current="page"] { background: #0369a1; color: #fff; }
.admin-menu__link[aria-current="page"] .icon { opacity: 1; }
.admin-menu__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.admin-menu__badge { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #c2410c; color: #fff; font-size: .72rem; font-weight: 800; text-align: center; }
.admin-menu__link[aria-current="page"] .admin-menu__badge { background: #fff; color: #075985; }
.admin-shell__foot { display: grid; gap: 1px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .09); }
.admin-shell__foot form { margin: 0; }
.admin-shell__main { min-width: 0; display: flex; flex-direction: column; }
.admin-shell__top { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px; padding: 10px clamp(16px, 2.4vw, 32px); background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-shell__search { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; max-width: 520px; margin: 0; }
.admin-shell__search label { flex: 1 1 auto; display: flex; min-width: 0; }
.admin-shell__search input[type="search"] { width: 100%; min-height: 38px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-2); font-size: .9rem; }
.admin-shell__new { margin-left: auto; white-space: nowrap; }
.admin-shell__user { display: inline-flex; align-items: center; gap: 8px; color: var(--foreground); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.admin-shell__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-100); color: var(--brand-800); font-weight: 800; }
.admin-shell__content { flex: 1 1 auto; width: 100%; max-width: 1480px; margin: 0; padding: 24px clamp(16px, 2.4vw, 32px) 56px; }
.admin-shell__content:focus { outline: none; }
.admin-shell__burger, .admin-shell__backdrop { display: none; }
.admin-shell .notice { margin: 0 0 16px; max-width: none; }
.admin-shell .skip-link { z-index: 300; }

/* Pages d'administration : en-tête de page net, cartes et tableaux plus lisibles */
.admin-shell .page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.admin-shell .page-head > div { min-width: 0; flex: 1 1 420px; }
.admin-shell .page-head h1 { margin: 0 0 4px; font-size: 1.6rem; }
.admin-shell .page-head p { margin: 0; color: var(--muted); max-width: 90ch; }
.admin-shell .page-head > h1 { flex: 1 1 100%; }
.admin-shell .section { margin-top: 28px; }
.admin-shell .section-head h2 { font-size: 1.15rem; }
.admin-shell .table-card { box-shadow: 0 1px 2px rgba(10, 30, 50, .04); }
.admin-shell .admin-table table { width: 100%; }
.admin-shell .admin-table thead th { position: sticky; top: 0; background: var(--surface-2); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.admin-shell .admin-table tbody tr:hover { background: color-mix(in srgb, var(--brand-50) 60%, transparent); }
.admin-shell .card, .admin-shell .settings__section { box-shadow: 0 1px 2px rgba(10, 30, 50, .04); }
.admin-shell .stat-grid { gap: 12px; }
.admin-shell .stat { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.admin-shell .admin-toolbar, .admin-shell .admin-filters { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.admin-shell .admin-back { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; font-weight: 600; }
.admin-shell .admin-shortcuts { display: none; }
.admin-shell .bulk-bar { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -8px 20px -16px rgba(10, 30, 50, .5); border-radius: var(--radius-lg); }
.admin-shell .settings__save { background: var(--background); z-index: 5; }

/* À faire aujourd'hui */
.todo { margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--brand-200); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--brand-50), var(--surface) 85%); }
.todo h2 { margin: 0 0 10px; font-size: 1.05rem; }
.todo__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.todo__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--foreground); }
.todo__item:hover { border-color: var(--brand-600); text-decoration: none; }
.todo__item strong { flex: none; min-width: 2.2em; font-size: 1.3rem; font-variant-numeric: tabular-nums; text-align: center; color: var(--brand-700); }
.todo__item span:not(.todo__go) { flex: 1 1 auto; font-size: .92rem; font-weight: 600; }
.todo__item--urgent { border-color: color-mix(in srgb, var(--promo, #c2410c) 50%, var(--border)); }
.todo__item--urgent strong { color: var(--promo, #c2410c); }
.todo__go { color: var(--muted); }
.todo__done { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--success); font-weight: 600; }
.products-table__photo { display: inline-block; margin-top: 2px; font-size: .8rem; cursor: pointer; }
.products-table__photo[hidden] { display: none; }

@media (max-width: 980px) {
  body.admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-shell__side { position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 12px 0 30px -18px rgba(0, 0, 0, .6); }
  .admin-shell__toggle:checked ~ .admin-shell__side { transform: none; }
  .admin-shell__toggle:checked ~ .admin-shell__backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(8, 18, 28, .5); }
  .admin-shell__burger { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; }
  .admin-shell__toggle:focus-visible ~ .admin-shell__main .admin-shell__burger { outline: 3px solid var(--brand-600); }
  .admin-shell__user span:last-child, .admin-shell__new { display: none; }
}
@media (prefers-reduced-motion: reduce) { .admin-shell__side { transition: none; } }
@media print { body.admin-shell { display: block; } .admin-shell__content { padding: 0; max-width: none; } .admin-shell .table-card { box-shadow: none; } }

/* Retouches après revue des pages : frise, compte, aide, textes, sommaire des réglages */
.stepper { max-width: 560px; }
.account-card form.stack, .account-card .stack { max-width: none; }
.account-card input:not([type="checkbox"]):not([type="radio"]) { width: 100%; }
.admin-table tr.is-urgent td:first-child { box-shadow: inset 4px 0 0 var(--warning); }
.help-layout { display: grid; gap: 28px; align-items: start; }
.help-layout .faq { max-width: none; min-width: 0; }
.help-aside { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.help-aside h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.1rem; }
.help-aside p { margin: 0; }
.help-aside__open .open-badge { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; }
.help-aside__open .open-badge--closed .open-badge__dot { background: var(--muted); }
.help-aside__cta { margin-top: 6px !important; }
@media (min-width: 1000px) { .help-layout { grid-template-columns: minmax(0, 1fr) 320px; } .help-aside { position: sticky; top: calc(var(--header-h, 120px) + 16px); } }
.text-row__form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.text-row__form .admin-actions { display: flex; gap: 6px; margin: 0; }
@media (max-width: 640px) { .text-row__form { grid-template-columns: minmax(0, 1fr); } }
.page-toc { position: sticky; top: 59px; z-index: 6; margin: 0 0 16px; padding: 8px 0; background: var(--background); }
.page-toc ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.page-toc .chip { white-space: nowrap; }
.admin-shell .settings__section { scroll-margin-top: 120px; }
.admin-shell .settings__section > h2 { scroll-margin-top: 120px; }

/* --- Mode sombre (réglage « automatique ») : couleurs de plateforme lisibles sur fond foncé --- */


/* Logo envoyé par le magasin : jamais déformé, même très large (il est réduit dans sa boîte). */
.logo--image { object-fit: contain; object-position: left center; flex: none; }

/* --- Fiche produit de l'administration : un seul formulaire, sommaire, barre d'enregistrement fixe --- */
.product-edit__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.product-edit__pager { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; }
.product-edit .is-disabled { opacity: .45; pointer-events: none; }
.product-edit__toc { margin: 0 0 16px; }
.product-edit__toc ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.product-edit__toc a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--foreground); text-decoration: none; }
.product-edit__toc a:hover { border-color: var(--brand-600); text-decoration: none; }
.product-edit__toc a > span:last-child { display: grid; min-width: 0; line-height: 1.25; }
.product-edit__toc strong { font-size: .9rem; }
.product-edit__toc .muted { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-edit__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-strong); background: transparent; }
.product-edit__dot.is-done { border-color: #16a34a; background: #16a34a; }
.product-edit .card[id], .product-edit [id="inventaire-bloc"] { scroll-margin-top: 76px; }
.product-edit__switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.product-edit__switches .check { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.product-edit__switches .check:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.product-edit__switches .check > span { display: grid; gap: 2px; }
.product-edit__switches .check .muted { font-size: .82rem; font-weight: 400; }
.product-edit__switches input { margin-top: 3px; }
.product-edit__more > summary { cursor: pointer; font-weight: 700; }
.product-edit__more[open] > summary { margin-bottom: 10px; }
.product-edit__bar { position: sticky; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px 12px 0 0; background: var(--surface); box-shadow: 0 -6px 18px rgba(15, 23, 42, .08); }
.product-edit__bar-state { margin: 0; font-size: .9rem; color: var(--muted); }
.product-edit__bar.is-dirty { border-color: #f59e0b; }
.product-edit__bar.is-dirty .product-edit__bar-state { color: var(--foreground); font-weight: 700; }
.product-edit__bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1100px) { .product-edit__aside { position: sticky; top: 76px; align-self: start; } }

@media print { .product-edit__bar, .product-edit__toc { display: none; } }

/* --- Grands écrans : le site grandit avec la fenêtre (largeur utile, taille du texte, cartes) au lieu de rester une colonne de 1280 px --- */
@media (min-width: 1500px) {
  :root { --container: min(94vw, 1480px); }
  html { font-size: 103%; }
}
@media (min-width: 1700px) {
  :root { --container: min(92vw, 1680px); }
  html { font-size: 108%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 18px; }
  .admin-shell__content { max-width: 1720px; }
  body.admin-shell { grid-template-columns: 272px minmax(0, 1fr); }
}
@media (min-width: 2000px) {
  :root { --container: min(90vw, 1960px); }
  html { font-size: 116%; }
  .product-grid { gap: 20px; }
  .admin-shell__content { max-width: 2000px; }
  body.admin-shell { grid-template-columns: 296px minmax(0, 1fr); }
}
@media (min-width: 2500px) {
  :root { --container: min(88vw, 2320px); }
  html { font-size: 128%; }
  .admin-shell__content { max-width: 2360px; }
  body.admin-shell { grid-template-columns: 320px minmax(0, 1fr); }
}

/* --- Fiche produit : l'essentiel sous le titre, visuel d'attente compact, bloc « retrait en magasin » --- */
.product__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 0 20px; margin: 14px 0 16px; padding: 4px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.product__facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.product__facts dt { color: var(--muted); font-size: .88rem; flex: none; }
.product__facts dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.product__facts dd.is-ok { color: #15803d; }
.product__facts dd.is-off { color: #b91c1c; }
.product__facts code { font-size: .85rem; }
.product__lead { margin: 12px 0 0; font-size: 1.02rem; line-height: 1.55; }
.product__nophoto { margin: 8px 2px 0; font-size: .85rem; }
.product__media--empty .product-image--large { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .product__layout--nophoto { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(280px, 3fr); }
  .buybox { position: sticky; top: calc(var(--header-h, 110px) + 16px); }
}
.buybox__saving { margin: -4px 0 0; color: #b45309; font-weight: 800; font-size: .95rem; }
.product__section { margin: 0 0 32px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.product__section h2 { margin: 0 0 10px; font-size: 1.25rem; }
.product__section .product__description { max-width: 78ch; line-height: 1.65; }
.product__service { display: grid; gap: 20px; margin: 0 0 40px; align-items: stretch; }
@media (min-width: 1000px) { .product__service { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); } }
.product__service > .how { margin: 0; height: 100%; }
.product__pickup { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.product__pickup h2 { margin: 0; font-size: 1.15rem; }
.product__pickup-open { margin: 0; }
.product__pickup-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .9rem; color: var(--muted); }
.product__pickup-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #15803d; }


/* --- Compte client : raccourcis et réservations à retirer avant les formulaires --- */
.account-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.account-tile { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--foreground); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.account-tile:hover { border-color: var(--brand-600); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--foreground); }
.account-tile--active { border-color: var(--brand-600); background: var(--brand-50); }
.account-tile__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
.account-tile--active .account-tile__icon { background: var(--surface); }
.account-tile__icon .icon { width: 20px; height: 20px; }
.account-tile > span:last-child { display: block; min-width: 0; line-height: 1.3; }
.account-tile strong { font-size: 1.02rem; }
.account-tile .muted { display: block; font-size: .82rem; margin-top: 2px; }
.account-current__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.account-current__item { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 6px 20px; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--brand-600); border-radius: var(--radius-lg); background: var(--surface); color: var(--foreground); text-decoration: none; }
.account-current__item:hover { border-color: var(--brand-600); text-decoration: none; color: var(--foreground); }
.account-current__number { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 1.05rem; }
.account-current__when { font-weight: 700; text-align: right; }
.account-current__when .muted { font-weight: 400; }
@media (max-width: 720px) { .account-current__item { grid-template-columns: 1fr; } .account-current__when { text-align: left; } }

.empty-state + .how { margin-top: 24px; }

/* --- Harmonisation (2e passe) : deux tailles de titre, un seul gabarit de carte, des champs identiques partout --- */
/* Titre de section (hors carte) : 1.3rem côté boutique, 1.15rem dans l'administration. Titre de carte : 1.1rem partout. */
.how__title, .product__pickup h2, .product__section h2, .todo > h2, .todo h2 { font-size: 1.1rem; line-height: 1.3; }
.admin-shell .stats__block > h2, .admin-shell .section-head h2 { font-size: 1.15rem; line-height: 1.3; }
/* Cartes : même marge intérieure (les tuiles de chiffres et les tableaux gardent la leur). */
.settings__section, .account-card, .how, .buybox, .product__pickup, .product__section, .todo, .cart-summary { padding: 20px 22px; }
@media (max-width: 560px) { .settings__section, .account-card, .how, .buybox, .product__pickup, .product__section, .todo, .cart-summary { padding: 16px; } }
/* Texte saisi : jamais en gras, même quand le champ est dans une étiquette en gras. */
main input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="search"]), main input[type="search"], main select, main textarea { font-weight: 400; }
/* Champs de recherche arrondis de l'administration : même hauteur que les autres champs compacts. */
.admin-shell .admin-toolbar__search input { min-height: var(--control-h-sm); height: var(--control-h-sm); }
/* Espace régulier entre un message, « Réserver, c'est simple » et une rangée d'articles. */
.empty-state + .section, .empty-state + .how, .how + .section, [data-fav-empty] > .section { margin-top: 28px; }
.account-tiles + .section { margin-top: 28px; }
.account-current { margin-bottom: 28px; }
.account-tiles + .account-grid { margin-top: 28px; }

/* --- Comptes (admin) : création d'un compte client, suppression des comptes cochés --- */
.account-new { margin: 0 0 16px; }
.account-new > summary { list-style: none; cursor: pointer; display: inline-block; }
.account-new > summary::-webkit-details-marker { display: none; }
.account-new[open] > summary { margin-bottom: 12px; }
.account-new__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 16px; align-items: end; }
.account-new__form input { width: 100%; }
.account-new__submit { grid-column: 1 / -1; }
.account-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 0; font-size: .88rem; }
.account-bulk .confirm-box { flex: 1 1 100%; }

/* --- Réductions automatiques (admin) : explication en trois temps, cartes de type d'offre, phrases à compléter, exemple chiffré --- */
.promo-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin: 0 0 10px; padding: 0; list-style: none; }
.promo-how li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.promo-how__num, .promo-step__num { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 800; font-size: .9rem; }
.promo-how li div { display: grid; gap: 2px; }
.promo-how li span:not(.promo-how__num) { color: var(--muted); font-size: .9rem; }
.promo-page__note { margin: 0 0 24px; font-size: .9rem; }
.promo-empty { padding: 18px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.promo-empty p { margin: 0 0 12px; }
.promo-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.promo-presets .chip { cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; }
.promo-step { margin: 0; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--border); min-width: 0; }
.promo-step:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.promo-step > legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 12px; font-size: 1.05rem; font-weight: 800; }
.promo-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.promo-kind { position: relative; display: block; cursor: pointer; }
.promo-kind input { position: absolute; top: 14px; left: 14px; margin: 0; }
.promo-kind__body { display: grid; gap: 4px; height: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font-size: .88rem; line-height: 1.4; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.promo-kind__body strong { font-size: .98rem; }
.promo-kind:hover .promo-kind__body { border-color: var(--brand-600); }
.promo-kind input:checked + .promo-kind__body { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 2px var(--ring); }
.promo-kind input:focus-visible + .promo-kind__body { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.promo-sentence { padding: 12px 14px; border-radius: 10px; background: var(--surface-2, #f4f7fa); font-size: 1.05rem; line-height: 2.3; }
.promo-sentence + .promo-sentence { margin-top: 8px; }
.promo-sentence .muted { font-size: .88rem; }
.admin-shell .promo-sentence input[type="text"] { width: 5.2em; min-height: 38px; height: 38px; padding: 4px 8px; text-align: center; font-size: 1.05rem; font-weight: 800; border-width: 2px; }
.promo-sentence__field { display: inline-block; margin: 0 2px; }
.promo-sentence__choice { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.promo-sentence__choice .check { display: inline-flex; align-items: center; gap: 6px; }
.promo-form.is-enhanced .promo-sentence:not(.is-current) { display: none; }
.promo-form.is-enhanced [data-promo-nojs] { display: none; }
.promo-preview { margin-top: 12px; padding: 14px 16px; border: 1px solid #86efac; border-radius: 10px; background: #f0fdf4; color: #14532d; }
.promo-preview__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .9rem; }
.admin-shell .promo-preview__head input { width: 4.5em; min-height: 30px; height: 30px; padding: 2px 6px; text-align: center; }
.promo-preview__line { margin: 8px 0 6px; font-size: 1.1rem; font-weight: 700; }
.promo-preview__line s { font-weight: 400; opacity: .75; }
.promo-preview__badge { margin: 0; font-size: .88rem; }
.promo-preview.is-empty { border-color: var(--border); background: var(--surface-2, #f4f7fa); color: var(--muted); }
.promo-more > summary { cursor: pointer; font-weight: 600; color: var(--link, var(--brand-700)); padding: 4px 0; }
.promo-more[open] > summary { margin-bottom: 12px; }
.promo-form__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.promo-form form fieldset.promo-step { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 0 22px; margin: 0; background: none; }
.promo-form form fieldset.promo-step:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.promo-form form fieldset.promo-step > legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; }
.promo-form form fieldset.promo-step > legend + * { clear: both; }
.promo-form .promo-preview__head label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.promo-form label.promo-sentence__field { display: inline-block; }

/* --- Accueil : bouton « ajouts du jour » qui accroche l'œil, vitrine tournante des derniers ajouts dans le bandeau --- */
.live-dot { display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 0 rgba(249, 115, 22, .6); animation: live-pulse 1.8s ease-out infinite; vertical-align: middle; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55); } 70% { box-shadow: 0 0 0 9px rgba(249, 115, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.button--hot { display: inline-flex; align-items: center; background: #ffd23f; border-color: #ffd23f; color: #1f1400; font-weight: 800; font-size: 1.02rem; padding: 11px 22px; box-shadow: 0 6px 20px rgba(255, 210, 63, .35); }
.button--hot:hover { background: #ffdd66; border-color: #ffdd66; color: #1f1400; text-decoration: none; transform: translateY(-1px); }
.button--hot .live-dot { background: #c2410c; }
.hero { position: relative; }
@media (min-width: 900px) { .hero:has(.hero__showcase) { grid-template-columns: minmax(0, 3fr) minmax(300px, 1.5fr); grid-template-areas: "text showcase" "facts showcase"; align-items: center; } .hero:has(.hero__showcase) .hero__text { grid-area: text; } .hero__showcase { grid-area: showcase; } .hero__facts--strip { grid-area: facts; } }
.hero__showcase { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius-lg); background: #fff; color: #10202e; box-shadow: 0 18px 44px rgba(3, 12, 22, .35); min-width: 0; }
.hero__showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero .hero__showcase h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: #10202e; }
.hero__showcase-count { padding: 2px 10px; border-radius: 999px; background: #fff3e6; color: #9a3412; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.hero__showcase-pages { display: grid; }
.hero__showcase-page { grid-area: 1 / 1; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hero__showcase-page.is-current { animation: showcase-in .45s ease both; }
@keyframes showcase-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__showcase-page.is-current { animation: none; } }
.hero .hero__showcase .mini__link { color: #10202e; margin: 0; padding: 6px; grid-template-columns: 60px minmax(0, 1fr); }
.hero .hero__showcase .mini__link:hover { background: #f1f5f9; }
.hero .hero__showcase .mini__thumb { width: 60px; }
.hero .hero__showcase .mini__title { color: #10202e; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .hero__showcase .mini__price { color: #10202e; font-weight: 800; }
.hero .hero__showcase .mini__platform { color: var(--platform-color, #0369a1); }
.hero .hero__showcase p { color: inherit; }
.hero__showcase-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid #e2e8f0; font-size: .9rem; font-weight: 700; }
.hero .hero__showcase-foot a { color: #0369a1; margin-left: auto; }
.hero__showcase-dots { display: inline-flex; gap: 6px; }
.hero__showcase-dots button { width: 22px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; }
.hero__showcase-dots button[aria-current="true"] { background: #0284c7; width: 30px; }
.hero__showcase-dots button:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }
.hero__facts--strip { display: flex; flex-wrap: wrap; gap: 8px 28px; align-content: start; }
.hero__facts--strip li, .hero__facts--strip li:last-child { display: flex; align-items: baseline; gap: 8px; padding: 0; border: 0; }
.hero__facts--strip strong { font-size: 1.25rem; }
/* --- Navigation : « Nouveautés & arrivages » en pastille claire --- */
.main-nav__link--new { background: #fff; color: #075985; font-weight: 800; padding-inline: 14px; }
.main-nav__link.main-nav__link--new:hover { background: #e0f2fe; color: #075985; }
.main-nav__link--new .live-dot { width: 8px; height: 8px; margin-right: 7px; }
/* --- Barre réservée à l'administrateur sur une fiche publique --- */
.admin-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--brand-600); border-radius: var(--radius); background: var(--brand-50); font-size: .9rem; }
.admin-strip > span { flex: 1 1 260px; }

@media print { .admin-strip { display: none; } }

/* --- Fiche produit (3e version) : panneaux à en-tête, tableau de caractéristiques, colonne d'achat qui suit le défilement --- */
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; padding: 0; }
.panel__head { margin: 0; padding: 11px 16px; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2, #f4f7fa); border-bottom: 1px solid var(--border); }
.panel__body { padding: 14px 16px; display: grid; gap: 10px; }
.product .product__pickup { padding: 0; display: block; }
.product .product__pickup h2.panel__head { font-size: .82rem; }
.product__specs { margin: 0; }
.product__specs > div { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 12px; padding: 10px 16px; }
.product__specs > div:nth-child(even) { background: color-mix(in srgb, var(--surface-2, #f4f7fa) 60%, transparent); }
.product__specs dt { color: var(--muted); font-size: .9rem; }
.product__specs dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.product__specs dd.is-ok { color: #15803d; font-weight: 700; }
.product__specs dd.is-off { color: #b91c1c; font-weight: 700; }
.product__specs code { font-size: .88rem; }
.product__specs-panel { margin: 16px 0; }
.product__side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 900px) {
  .product .product__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(300px, 3.4fr); gap: 28px; }
  .product .product__layout--nophoto { grid-template-columns: minmax(200px, 2.2fr) minmax(0, 6fr) minmax(300px, 3.4fr); }
  .product__side { position: sticky; top: calc(var(--header-h, 110px) + 16px); }
  .product .product__side .buybox { position: static; }
}
.product__media--empty .product-image--large { aspect-ratio: 1 / 1; }
.product .product__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.15; }
.product .buybox { border-top: 4px solid var(--brand-600); }
.product > .how { margin-bottom: 36px; }

.main-nav .main-nav__link.main-nav__link--new, .main-nav .main-nav__link.main-nav__link--new:hover { color: #075985; }
.main-nav .main-nav__link.main-nav__link--new:hover { background: #e0f2fe; }

/* --- Pictogrammes (admin) --- */
.icon-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.icon-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(150px, 46%); align-items: center; gap: 10px; }
.icon-row__preview { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2, #f4f7fa); color: var(--brand-700); }
.icon-row__label { font-weight: 600; font-size: .92rem; min-width: 0; }
.icon-row select { width: 100%; }
.icons-library > summary, .icons-group > summary { cursor: pointer; font-weight: 700; }
.icons-library[open] > summary, .icons-group[open] > summary { margin-bottom: 12px; }
.icons-library__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.icons-library__grid li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: .88rem; color: var(--foreground); }
.icons-library__grid .nav-icon { color: var(--brand-700); }

/* --- Suivi du retour en stock --- */
.buybox__follow { display: grid; gap: 8px; }
.buybox__following { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #14532d; font-weight: 600; font-size: .92rem; }
.buybox__following .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.account-followed { margin-bottom: 28px; }
.account-followed__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.account-followed__item > a { flex: 1 1 260px; min-width: 0; color: var(--foreground); }
.account-followed__item form { margin: 0; }

/* --- Zone de danger (super administrateur) --- */
.danger-page__warning { margin: 0 0 16px; }
.danger-list { display: grid; gap: 12px; }
.danger-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: start; padding: 18px 20px; border: 1px solid #fecaca; border-left: 4px solid #dc2626; border-radius: var(--radius-lg); background: var(--surface); scroll-margin-top: 76px; }
.danger-card--all { border-color: #dc2626; background: #fef2f2; }
.danger-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.danger-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.danger-card__count { margin-top: 6px !important; }
.danger-card .confirm-box { grid-column: 1 / -1; min-width: min(420px, 100%); }
.danger-card [data-confirm] { display: grid; gap: 10px; justify-items: end; }
@media (max-width: 760px) { .danger-card { grid-template-columns: 1fr; } .danger-card [data-confirm] { justify-items: start; } }

.notice--info { background: var(--brand-50); border-color: color-mix(in srgb, var(--brand-600) 45%, transparent); color: var(--brand-800, #075985); }
.admin-shell .notice--info, .admin-shell .danger-page__warning { max-width: none; margin-left: 0; margin-right: 0; }
.danger-page__warning.notice { display: block; } .danger-page__warning.notice::before { display: none; }

.nav-icon--image { display: inline-grid; place-items: center; flex: none; }
.nav-icon--image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.icon-upload__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 16px; align-items: end; }
.icon-upload__row select, .icon-upload__row input[type="file"] { width: 100%; }

/* --- Accueil, « Par univers » : carrés tous identiques, pictogramme ou logo en haut, texte en bas, jamais superposés --- */
.universe-tiles { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.universe-tiles > li { display: flex; min-width: 0; }
.universe-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; min-height: 196px; padding: 18px; box-sizing: border-box; }
.universe-tile__name { min-height: 2.4em; display: flex; align-items: flex-end; }
.universe-tile__platforms, .universe-tile__count { flex: none; }
.universe-tile .universe-tile__icon { position: static; flex: none; width: 52px; height: 52px; margin-bottom: auto; border-radius: 14px; background: rgba(255, 255, 255, .18); }
.universe-tile .universe-tile__icon--logo { background: #fff; padding: 7px; box-sizing: border-box; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.universe-tile .universe-tile__icon--logo .nav-icon { width: 100% !important; height: 100% !important; }
.universe-tile__name { width: 100%; font-size: 1.2rem; line-height: 1.2; margin-top: 12px; overflow-wrap: anywhere; }
.universe-tile__platforms { width: 100%; }
@media (max-width: 520px) { .universe-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .universe-tile { padding: 14px; min-height: 176px; } .universe-tile .universe-tile__icon { width: 42px; height: 42px; } .universe-tile__name { font-size: 1.02rem; } }
/* --- Admin : couleur des univers --- */
.icon-rows--universes { grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); }
.icon-universe { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.icon-universe > .icon-rows { grid-template-columns: 1fr; }
.icon-universe__color { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .9rem; }
.icon-universe__color > label:first-child { font-weight: 600; }
.admin-shell .icon-universe__color input[type="color"] { width: 54px; height: 36px; min-height: 36px; padding: 2px; }
.icon-universe__swatch { padding: 4px 12px; border-radius: 8px; color: #fff; font-weight: 800; font-size: .85rem; }

/* --- Catalogue : filtres appliqués dès le clic --- */
.catalog.is-dynamic .filters__actions button[type="submit"] { display: none; }
.catalog.is-loading .catalog__results, .catalog.is-loading .product-grid, .catalog.is-loading .product-list { opacity: .45; transition: opacity .12s ease; pointer-events: none; }
.catalog.is-loading .catalog__count::after { content: " — mise à jour…"; color: var(--muted); font-weight: 400; }

/* --- Cartes de plateforme et d'extension : toutes à la même taille, rien ne dépasse --- */
.platform-grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; }
.platform-grid > li { display: flex; min-width: 0; }
.platform-card { width: 100%; min-width: 0; min-height: 76px; box-sizing: border-box; }
.platform-card > span:last-child { min-width: 0; flex: 1 1 auto; }
.platform-card__name { display: inline; overflow-wrap: anywhere; }
.platform-card__name .ext-mark__trigram { display: inline-block; margin-left: 6px; white-space: nowrap; }
.platform-card__count { white-space: nowrap; }

.attr-chips--card { flex-wrap: nowrap; overflow: hidden; }
.attr-chips--card .attr-chip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attr-chips--card .attr-chip--more { flex: none; }
@media (max-width: 380px) { .product-card__footer { flex-wrap: wrap; gap: 6px; } .product-card__price { font-size: 1.05rem; } .product-card__body { min-width: 0; } }
.product-card, .product-card__body, .product-card__footer > div { min-width: 0; }
.family-platforms { padding: 0; margin: 0; list-style: none; min-width: 0; }
.family-platform { min-width: 0; max-width: 100%; box-sizing: border-box; }
.family-platform > details, .family-platform form, .family-platform .settings__grid { min-width: 0; max-width: 100%; }
.family-platform :is(input, select, textarea) { max-width: 100%; min-width: 0; box-sizing: border-box; }

/* --- Passe d'ajustement : rien ne dépasse de sa boîte, même sur un téléphone étroit ou un très grand écran --- */
.pokemon-ext-form, .pokemon-ext-form > *, .family-platform__editor, .family-platform__editor > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.pokemon-ext-form .settings__grid, .pokemon-ext-form > div { min-width: 0; }
.pokemon-ext-form :is(input, select, textarea) { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.pokemon-ext-form .inline-form { flex-wrap: wrap; }
@media (max-width: 520px) {
  .icon-row { grid-template-columns: 40px minmax(0, 1fr); }
  .icon-row select { grid-column: 1 / -1; }
  .icon-universe { padding: 10px; }
}
.icon-rows, .icon-rows > li, .icon-universe > .icon-rows { min-width: 0; }
.icons-library__grid li { min-width: 0; }
.icons-library__grid li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.products-table__noimg { overflow: hidden; font-size: 10px; line-height: 1.1; text-align: center; }

/* --- Codes promo (admin) : chiffres clés, onglets, une carte par code, formulaire en étapes --- */
.codes-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 14px 0 24px; padding: 0; list-style: none; }
.codes-kpis li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.codes-kpis strong { font-size: 1.6rem; line-height: 1.1; }
.codes-kpis span { color: var(--muted); font-size: .88rem; }
.codes-tabs { margin: 0 0 14px; }
.codes-created { width: 100%; font-family: ui-monospace, Consolas, monospace; }
.code-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.code-card { display: grid; grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2fr) auto; gap: 14px 24px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-left: 4px solid #16a34a; border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.code-card--scheduled { border-left-color: #f59e0b; }
.code-card--inactive, .code-card--expired, .code-card--exhausted, .code-card--invalid { border-left-color: var(--border-strong); }
.code-card > * { min-width: 0; }
.code-card p { margin: 0; }
.code-card__code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.code-card__code code { font-size: 1.25rem; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border: 1px dashed var(--border-strong); border-radius: 8px; background: var(--surface-2, #f4f7fa); overflow-wrap: anywhere; }
.code-card__value { font-size: 1.05rem; font-weight: 700; margin-top: 6px !important; }
.code-card__label { font-size: .85rem; }
.code-card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 8px 20px; margin: 0; }
.code-card__facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.code-card__facts dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.code-card__bar { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: var(--surface-2, #e8eef4); overflow: hidden; }
.code-card__bar > span { display: block; height: 100%; background: var(--brand-600); }
.code-card__side { display: grid; gap: 10px; justify-items: end; }
.code-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; }
.code-card__actions form { margin: 0; }
@media (max-width: 1000px) { .code-card { grid-template-columns: 1fr; } .code-card__side { justify-items: start; } .code-card__actions { justify-content: flex-start; } }
.code-name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; align-items: center; }
.code-name input { width: 100%; font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.code-name__preview { margin: 0; font-size: .95rem; }
.code-name__preview code { font-size: 1.2rem; font-weight: 800; padding: 4px 10px; border: 1px dashed var(--border-strong); border-radius: 8px; background: var(--surface-2, #f4f7fa); overflow-wrap: anywhere; }
@media (max-width: 720px) { .code-name { grid-template-columns: 1fr; } }

/* --- Réglages (admin) : sommaire à gauche, parties expliquées, champs à largeur lisible, horaires en cases --- */
.settings-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .settings-layout { grid-template-columns: 280px minmax(0, 1fr); } .settings-nav { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; scrollbar-width: thin; } }
.settings-nav { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.settings-nav__title { margin: 10px 8px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.settings-nav__title:first-child { margin-top: 2px; }
.settings-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--foreground); text-decoration: none; }
.settings-nav a:hover, .settings-nav a.is-current { background: var(--brand-50); text-decoration: none; }
.settings-nav a.is-current { box-shadow: inset 3px 0 0 var(--brand-600); }
.settings-nav a > span:last-child { display: grid; min-width: 0; line-height: 1.25; }
.settings-nav strong { font-size: .92rem; }
.settings-nav .muted { font-size: .78rem; }
@media (max-width: 1099px) { .settings-nav ul { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); } }
.settings-content { min-width: 0; max-width: 1040px; }
.settings-page .settings__section { scroll-margin-top: 76px; }
.settings__lead { margin: 0 0 14px; color: var(--muted); max-width: 72ch; }
.settings-page .settings__grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.settings-bar { margin-top: 4px; }
.settings-bar .product-edit__bar-state { flex: 1 1 320px; font-size: .85rem; }
/* Horaires : une ligne par jour, ouvert ou fermé, une ou deux plages */
.hours-editor.is-enhanced .hours-editor__ranges > input[type="text"] { display: none; }
.hours-editor.is-enhanced .hours-editor__row { grid-template-columns: 110px minmax(0, 1fr); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hours-editor.is-enhanced .hours-editor__row:last-child { border-bottom: 0; }
.hours-ui { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hours-ui__open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-width: 92px; }
.hours-ui__range { display: inline-flex; align-items: center; gap: 6px; }
.admin-shell .hours-ui input[type="time"] { width: 7.2em; min-height: 36px; height: 36px; padding: 4px 8px; }
.hours-ui__closed { color: var(--muted); }
.hours-ui .link-button { font-size: .85rem; }
@media (max-width: 560px) { .hours-editor.is-enhanced .hours-editor__row { grid-template-columns: 1fr; gap: 4px; } }


/* --- Admin, après un import : le chemin pour mettre les articles en ligne --- */
.activate-guide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--brand-200, #bae6fd); border-left: 4px solid var(--brand-600); border-radius: var(--radius-lg); background: var(--brand-50); }
.activate-guide > div { flex: 1 1 420px; min-width: 0; }
.activate-guide h2 { margin: 0 0 4px; font-size: 1.1rem; }
.activate-guide p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 80ch; }
.activate-guide form { margin: 0; }


/* --- Catalogue, vue « liste » : photo à gauche, texte à droite, prix et panier en bout de ligne --- */
.product-list .product-card { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 0; }
.product-list .product-card__media { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; display: flex; align-items: center; background: var(--surface-2); }
.product-list .product-card__media .product-image { aspect-ratio: 1 / 1; }
.product-list .product-card__badges { grid-column: 2; grid-row: 1; position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 56px 0 16px; margin: 0; min-height: 0; }
.product-list .product-card__badges:empty { padding-top: 6px; }
.product-list .product-card__body { grid-column: 2; grid-row: 2; padding: 8px 16px 14px; min-width: 0; }
.product-list .product-card__fav { top: 8px; right: 8px; bottom: auto; }
.product-list .product-card__footer { margin-top: 8px; }
@media (min-width: 720px) {
  .product-list .product-card { grid-template-columns: 150px minmax(0, 1fr); }
  .product-list .product-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "platform footer" "title footer" "chips footer" "desc footer"; align-content: start; column-gap: 24px; row-gap: 4px; }
  .product-list .product-card__platform { grid-area: platform; }
  .product-list .product-card__title { grid-area: title; }
  .product-list .attr-chips { grid-area: chips; }
  .product-list .product-card__desc { grid-area: desc; }
  .product-list .product-card__footer { grid-area: footer; align-self: center; margin: 0; min-width: 190px; padding-right: 40px; }
}
