@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

/* Palette tirée du logo : sarcelle du cube, cuivre du K et de l'étincelle laser */
:root {
  --fond: #0f1517;
  --fond-2: #131b1e;
  --surface: #182226;
  --surface-2: #1f2b30;
  --trait: #2a3a40;
  --texte: #eef2f1;
  --doux: #9aabae;
  --cuivre: #e08f5c;
  --cuivre-vif: #f0a573;
  --cuivre-sombre: #b4734b;
  --sarcelle: #4fb0c2;
  --sarcelle-sombre: #1d6577;
  --alerte: #f08a7a;
  --succes: #7fd1b4;
  --rayon: 10px;
  --largeur: 1200px;
  --titre: "Unbounded", "Manrope", system-ui, sans-serif;
  --police: "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cuivre); text-underline-offset: 3px; }
a:hover { color: var(--cuivre-vif); }
:focus-visible { outline: 2px solid var(--sarcelle); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 12px; z-index: 50; background: var(--cuivre); color: var(--fond); padding: 8px 14px; border-radius: 6px; }

/* ── En-tête ─────────────────────────────────────────── */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 21, 23, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); }
.marque img { width: 40px; height: 40px; border-radius: 9px; }
.marque span { font-family: var(--titre); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
.marque:hover { color: var(--texte); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--texte); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--cuivre); }
.lien-panier { display: inline-flex; align-items: center; gap: 8px; }
.pastille {
  background: var(--cuivre); color: var(--fond); font-size: .78rem; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; padding: 0 6px;
}

/* ── Accueil ─────────────────────────────────────────── */
.intro {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--trait);
  /* grille isométrique discrète, reprise du cube du logo */
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(79, 176, 194, .14), transparent 70%),
    repeating-linear-gradient(30deg, transparent 0 39px, rgba(79, 176, 194, .07) 39px 40px),
    repeating-linear-gradient(150deg, transparent 0 39px, rgba(79, 176, 194, .07) 39px 40px),
    var(--fond);
}
.intro-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.intro-accroche { color: var(--sarcelle); font-weight: 600; margin: 0 0 18px; font-size: 1.02rem; }
.intro h1 { margin: 0; font-size: clamp(1.85rem, 3.7vw, 2.9rem); line-height: 1.14; max-width: 21ch; font-weight: 600; }
.intro .bouton { margin-top: 34px; }
.intro-visuel { justify-self: center; position: relative; }
.intro-visuel img {
  width: min(300px, 32vw); aspect-ratio: 1; border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px -20px rgba(79, 176, 194, .35), 0 20px 60px -30px rgba(224, 143, 92, .5);
  transform: rotate(-3deg);
}

/* Le faisceau laser : le seul mouvement de la page, joué une fois */
.laser { position: relative; height: 2px; margin-top: 30px; max-width: 520px; }
.faisceau {
  position: absolute; inset: 0; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(224, 143, 92, 0), var(--cuivre) 40%, #ffd2ad);
  box-shadow: 0 0 12px rgba(240, 165, 115, .8);
  animation: gravure 1.3s cubic-bezier(.6, .05, .25, 1) .3s forwards;
}
.etincelle {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, #ffd2ad 30%, rgba(240, 165, 115, .7) 50%, transparent 72%);
  opacity: 0; animation: etincelle 1.3s cubic-bezier(.6, .05, .25, 1) .3s forwards;
}
@keyframes gravure { to { transform: scaleX(1); } }
@keyframes etincelle { 0% { opacity: 1; left: 0; } 85% { opacity: 1; } 100% { opacity: 0; left: 100%; } }

.confiance { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--trait); border-radius: var(--rayon); margin-top: -1px; margin-block: 40px 8px; background: var(--fond-2); }
.confiance > div { padding: 18px 22px; display: grid; gap: 2px; }
.confiance > div + div { border-left: 1px solid var(--trait); }
.etiquette-info { color: var(--doux); font-size: .86rem; }
.confiance strong { font-weight: 600; }
.confiance a { color: var(--texte); text-decoration: none; }
.confiance a:hover { color: var(--cuivre); }

.section-titre { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 64px 0 28px; }

.grille {
  display: grid; gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  padding-bottom: 96px;
}
.carte {
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.carte:hover { border-color: var(--cuivre-sombre); color: inherit; }
.carte-photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte:hover .carte-photo img { transform: scale(1.04); }
.carte h2 { font-family: var(--police); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; margin: 16px 18px 4px; line-height: 1.35; }
.carte .resume { color: var(--doux); font-size: .93rem; margin: 0 18px 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sans-photo { width: 100%; height: 100%; display: grid; place-items: center; color: var(--doux); font-size: .9rem; }

/* Prix */
.etiquette {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(15, 21, 23, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--cuivre-vif); border: 1px solid rgba(224, 143, 92, .45);
  font-weight: 700; font-size: .98rem; padding: 5px 12px; border-radius: 999px;
}
.etiquette.grande {
  position: static; display: inline-block; background: none; backdrop-filter: none; border: 0; padding: 0;
  font-family: var(--titre); font-size: 1.9rem; font-weight: 600; color: var(--cuivre-vif);
}
.epuise { position: absolute; left: 12px; top: 12px; background: var(--texte); color: var(--fond); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.vide { padding: 40px 0 100px; color: var(--doux); max-width: 50ch; }
.vide h2 { color: var(--texte); margin: 0 0 8px; font-size: 1.3rem; }

/* ── Fiche produit ───────────────────────────────────── */
.fiche { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 28px 0 100px; align-items: start; }
.galerie-principale { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.galerie-principale img { width: 100%; height: 100%; object-fit: contain; }
.vignettes { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.vignettes button { padding: 0; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid var(--trait); background: var(--surface); cursor: pointer; }
.vignettes button[aria-current="true"] { border-color: var(--cuivre); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.fiche-texte { position: sticky; top: 100px; }
.fiche-texte h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 16px; }
.fiche-texte .description { margin: 26px 0 30px; max-width: 60ch; color: #d4dcdb; }
.fiche-texte .description p { margin: 0 0 1em; }
.retour { display: inline-block; margin-top: 30px; color: var(--doux); text-decoration: none; font-weight: 600; }
.retour:hover { color: var(--cuivre); }
.dispo { color: var(--doux); font-size: .93rem; margin: 12px 0 0; }

.achat { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.quantite { display: inline-flex; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface); }
.quantite button { width: 44px; border: 0; background: none; font: inherit; font-size: 1.2rem; cursor: pointer; color: var(--texte); }
.quantite button:hover { color: var(--cuivre); }
.quantite input[type="number"] { width: 46px; text-align: center; border: 0; background: none; font: inherit; font-weight: 700; padding: 0; border-radius: 0; color: var(--texte); -moz-appearance: textfield; }
.quantite input::-webkit-outer-spin-button, .quantite input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Boutons et champs ───────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: var(--rayon); border: 1px solid var(--cuivre);
  background: var(--cuivre); color: #1a0f08; cursor: pointer; text-decoration: none; min-height: 50px;
  transition: background .15s, box-shadow .15s;
}
.bouton:hover { background: var(--cuivre-vif); color: #1a0f08; box-shadow: 0 0 24px -4px rgba(240, 165, 115, .55); }
.bouton:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.bouton.secondaire { background: transparent; color: var(--texte); border-color: var(--trait); }
.bouton.secondaire:hover { border-color: var(--cuivre); color: var(--cuivre); box-shadow: none; }
.bouton.petit { padding: 7px 14px; min-height: 36px; font-size: .9rem; }
.bouton.danger { background: transparent; border-color: rgba(240, 138, 122, .6); color: var(--alerte); }
.bouton.danger:hover { background: rgba(240, 138, 122, .1); box-shadow: none; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--cuivre); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.champ { display: grid; gap: 6px; margin-bottom: 16px; }
.champ label { font-weight: 600; font-size: .94rem; }
.champ .aide { color: var(--doux); font-size: .84rem; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
  font: inherit; color: var(--texte); width: 100%;
  padding: 12px 14px; background: var(--fond-2);
  border: 1px solid var(--trait); border-radius: var(--rayon);
}
input::placeholder, textarea::placeholder { color: #6d7f83; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sarcelle); box-shadow: 0 0 0 3px rgba(79, 176, 194, .2); }
textarea { resize: vertical; min-height: 110px; }
select option { background: var(--surface); }
.ligne-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.erreur { background: rgba(240, 138, 122, .1); border: 1px solid rgba(240, 138, 122, .35); color: #ffc2b8; border-radius: var(--rayon); padding: 12px 14px; margin: 0 0 16px; }
.succes { background: rgba(127, 209, 180, .1); border: 1px solid rgba(127, 209, 180, .35); color: #b9ecd9; border-radius: var(--rayon); padding: 12px 14px; margin: 0 0 16px; }
.erreur a, .succes a { color: inherit; }

/* ── Panier ──────────────────────────────────────────── */
.page-titre { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 48px 0 28px; }
.panier { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: start; padding-bottom: 100px; }
.lignes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.lignes li { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--trait); align-items: center; }
.lignes img, .lignes .vignette-vide { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--surface); border: 1px solid var(--trait); }
.lignes h3 { margin: 0 0 8px; font-family: var(--police); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; }
.lignes h3 a { color: inherit; text-decoration: none; }
.lignes h3 a:hover { color: var(--cuivre); }
.lignes .outils { display: flex; gap: 16px; align-items: center; }
.lignes .quantite button { width: 34px; }
.lignes .quantite input[type="number"] { width: 36px; }
.lignes .montant { font-weight: 700; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; font-weight: 700; padding: 22px 0 6px; }
.total span:last-child { font-family: var(--titre); color: var(--cuivre-vif); font-size: 1.5rem; font-weight: 600; }
.note { color: var(--doux); font-size: .92rem; }
.formulaire-commande { background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; padding: clamp(20px, 3vw, 30px); }
.formulaire-commande h2 { margin: 0 0 20px; font-size: 1.2rem; }
.confirmation { max-width: 60ch; padding: 0 0 110px; }
.confirmation .numero { font-size: 1.15rem; }

/* ── Pages de texte ──────────────────────────────────── */
.texte-legal { max-width: 760px; padding-bottom: 100px; }
.texte-legal h2 { font-size: 1.25rem; margin: 48px 0 12px; color: var(--sarcelle); scroll-margin-top: 96px; }
.texte-legal h3 { font-family: var(--police); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; margin: 24px 0 6px; }
.texte-legal p { color: #d4dcdb; margin: 0 0 12px; }

/* ── Pied de page ────────────────────────────────────── */
.pied { border-top: 1px solid var(--trait); background: var(--fond-2); color: var(--doux); font-size: .93rem; }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 32px; padding: 52px 0 36px; }
.pied h2 { font-family: var(--police); font-size: .95rem; font-weight: 700; color: var(--texte); letter-spacing: 0; margin: 0 0 12px; }
.pied p { margin: 0 0 6px; }
.pied a { color: var(--doux); text-decoration: none; }
.pied a:hover { color: var(--cuivre); }
.pied .marque, .pied .marque:hover { color: var(--texte); margin-bottom: 14px; }
.pied-marque p { max-width: 30ch; }
.pied-bas { border-top: 1px solid var(--trait); padding: 18px 0 26px; font-size: .86rem; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--texte); color: var(--fond); font-weight: 600; padding: 12px 18px; border-radius: var(--rayon);
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 100; max-width: calc(100% - 32px);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.chargement { color: var(--doux); padding: 40px 0; }

/* ═══ Administration ═════════════════════════════════════ */
.admin-body { background: var(--fond); }
.onglets { display: flex; gap: 4px; }
.onglets button {
  font: inherit; font-weight: 700; background: none; border: 0; padding: 10px 14px; cursor: pointer;
  color: var(--doux); border-bottom: 2px solid transparent;
}
.onglets button:hover { color: var(--texte); }
.onglets button[aria-selected="true"] { color: var(--texte); border-bottom-color: var(--cuivre); }
.barre-admin { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 32px 0 20px; }
.barre-admin h1 { margin: 0; font-size: 1.6rem; }
.connexion { max-width: 420px; margin: 72px auto; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; padding: 30px; }
.connexion h1 { margin: 0 0 6px; font-size: 1.45rem; }
.connexion p { color: var(--doux); margin: 0 0 20px; }

.table-produits { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; overflow: hidden; }
.table-produits th, .table-produits td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.table-produits th { font-size: .84rem; color: var(--doux); font-weight: 600; background: var(--surface-2); }
.table-produits tr:last-child td { border-bottom: 0; }
.table-produits img, .table-produits .vignette-vide { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--fond-2); }
.table-produits .nom { font-weight: 700; }
.table-produits .nom small { display: block; color: var(--cuivre-vif); font-weight: 600; }
.droite { text-align: right; }

.interrupteur { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: .92rem; position: relative; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur .piste { width: 44px; height: 24px; border-radius: 12px; background: #3a4a50; position: relative; transition: background .2s; flex: none; }
.interrupteur .piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.interrupteur input:checked + .piste { background: var(--sarcelle); }
.interrupteur input:checked + .piste::after { transform: translateX(20px); }
.interrupteur input:focus-visible + .piste { outline: 2px solid var(--sarcelle); outline-offset: 3px; }
.interrupteur .etat { min-width: 64px; color: var(--doux); }
.interrupteur input:checked ~ .etat { color: var(--sarcelle); font-weight: 700; }

.editeur { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 80px; }
.panneau { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 22px; }
.panneau h2 { font-size: 1rem; margin: 0 0 14px; }
.photos-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px; }
.photo-admin { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--trait); background: var(--fond-2); }
.photo-admin img { width: 100%; height: 100%; object-fit: cover; }
.photo-admin .actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.photo-admin .actions button { background: rgba(238, 242, 241, .92); border: 0; border-radius: 4px; font: inherit; font-size: .78rem; font-weight: 600; padding: 3px 7px; cursor: pointer; color: var(--fond); }
.photo-admin .principale { position: absolute; top: 6px; left: 6px; background: var(--cuivre); color: #1a0f08; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.depot {
  display: grid; place-items: center; text-align: center; gap: 4px;
  border: 1.5px dashed var(--cuivre-sombre); border-radius: var(--rayon); padding: 22px; cursor: pointer; color: var(--cuivre); font-weight: 700;
}
.depot:hover, .depot.survol { background: rgba(224, 143, 92, .07); border-color: var(--cuivre); }
.depot small { color: var(--doux); font-weight: 400; }
.boutons-bas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 8px; }

.commandes { display: grid; gap: 14px; padding-bottom: 80px; }
.commande { background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 18px 20px; }
.commande.nouvelle { border-left: 3px solid var(--cuivre); }
.commande header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.commande h3 { margin: 0; font-family: var(--police); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.commande .date { color: var(--doux); font-size: .9rem; }
.commande .details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.commande ul { margin: 0; padding-left: 18px; }
.commande .client p { margin: 0 0 4px; }
.commande .message { background: var(--fond-2); padding: 10px 12px; border-radius: 8px; margin-top: 8px; white-space: pre-wrap; }
.commande footer { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--trait); }
.commande footer select { width: auto; }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filtres button { font: inherit; font-size: .88rem; font-weight: 600; border: 1px solid var(--trait); background: var(--surface); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--doux); }
.filtres button:hover { color: var(--texte); }
.filtres button[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }

/* ── Écrans moyens et mobiles ────────────────────────── */
@media (max-width: 900px) {
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .fiche, .panier, .editeur { grid-template-columns: 1fr; }
  .fiche-texte { position: static; }
  .commande .details { grid-template-columns: 1fr; }
  .table-produits .col-masquable { display: none; }
  .intro-grille { grid-template-columns: 1fr; }
  .intro-visuel { display: none; }
  .confiance { grid-template-columns: 1fr; }
  .confiance > div + div { border-left: 0; border-top: 1px solid var(--trait); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .marque span { font-size: 1rem; }
  .ligne-champs { grid-template-columns: 1fr; }
  .lignes li { grid-template-columns: 64px 1fr; }
  .lignes img, .lignes .vignette-vide { width: 64px; height: 64px; }
  .lignes .montant { grid-column: 2; text-align: left; }
  .pied-grille { grid-template-columns: 1fr; gap: 26px; }
  .admin-body .entete .conteneur { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .admin-body .nav { width: 100%; justify-content: space-between; }
  .onglets button { padding: 10px 8px; }
  .table-produits th, .table-produits td { padding: 10px 5px; }
  .table-produits td:first-child, .table-produits th:first-child { padding-left: 10px; }
  .table-produits img, .table-produits .vignette-vide { width: 40px; height: 40px; }
  .table-produits .nom { hyphens: auto; font-size: .95rem; }
  .table-produits .bouton.petit { padding: 6px 10px; }
  .interrupteur .etat { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .faisceau { transform: scaleX(1); }
  html { scroll-behavior: auto; }
}

/* Champ piège invisible pour les robots de spam */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Comptes administrateurs */
.comptes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 80px; }
.liste-comptes { list-style: none; margin: 0 0 6px; padding: 0; }
.liste-comptes li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.liste-comptes li:last-child { border-bottom: 0; }
.liste-comptes small { color: var(--doux); }
@media (max-width: 820px) { .comptes { grid-template-columns: 1fr; } }

/* Administration sur téléphone : déconnexion en haut à droite, vignettes nettes */
.table-produits img, .table-produits .vignette-vide { min-width: 40px; }
@media (max-width: 520px) {
  .admin-body .entete .conteneur { position: relative; }
  .admin-body #deconnexion { position: absolute; top: 20px; right: 0; font-size: .92rem; }
  .admin-body .onglets { width: 100%; justify-content: space-between; }
}
