/* ============================================
   PRINT HOME 3D — Feuille de style
   ============================================ */

:root {
  --bg:           #0f1117;
  --surface:      #161822;
  --card:         #1c1e2d;
  --card-hover:   #22253a;
  --accent:       #f97316;
  --accent-2:     #fb923c;
  --accent-dim:   rgba(249, 115, 22, 0.15);
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dim:     #4b5563;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(249, 115, 22, 0.5);
  --star:         #fbbf24;
  --green:        #22c55e;
  --red:          #ef4444;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-sm:    0 2px 14px rgba(0, 0, 0, 0.35);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-brand:   'Montserrat', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  background:  var(--bg);
  color:       var(--text);
  line-height: 1.6;
  min-height:  100vh;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }


/* ============================================
   PAGE LOGIN
   ============================================ */

.page-login {
  display:         flex;
  align-items:     center;
  justify-content: center;
  min-height:      100vh;
  overflow:        hidden;
}

/* Orbs animés en arrière-plan */
.login-bg {
  position: fixed;
  inset:    0;
  z-index:  0;
  overflow: hidden;
}

.orb {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(90px);
  animation:     drift 10s ease-in-out infinite;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #f97316 0%, transparent 65%);
  top: -250px; left: -250px;
  opacity: 0.13;
  animation-delay: 0s;
}
.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #6366f1 0%, transparent 65%);
  bottom: -180px; right: -150px;
  opacity: 0.11;
  animation-delay: 3.5s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #f97316 0%, transparent 65%);
  top: 55%; left: 55%;
  opacity: 0.07;
  animation-delay: 6s;
}

@keyframes drift {
  0%, 100% { transform: translate(0,    0); }
  33%       { transform: translate(40px, -30px); }
  66%       { transform: translate(-25px, 35px); }
}

.login-wrapper {
  position:   relative;
  z-index:    1;
  width:      100%;
  max-width:  420px;
  padding:    24px;
}

.login-card {
  background:     var(--surface);
  border:         1px solid var(--border);
  border-radius:  24px;
  padding:        48px 40px;
  box-shadow:     var(--shadow);
  text-align:     center;
}

/* Brand / Logo */
.brand {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             16px;
  margin-bottom:   36px;
}
.brand-icon { width: 56px; height: 56px; flex-shrink: 0; }
.brand-text h1 {
  font-family:   var(--font-brand);
  font-size:     1.9rem;
  font-weight:   900;
  letter-spacing: -0.5px;
  line-height:   1;
  color:         var(--text);
}
.brand-text h1 span { color: var(--accent); }
.brand-text p {
  font-size:     0.74rem;
  color:         var(--text-muted);
  margin-top:    5px;
  letter-spacing: 0.4px;
}

/* Formulaire */
.login-form { margin-bottom: 18px; }
.login-form label {
  display:       block;
  font-size:     0.83rem;
  font-weight:   500;
  color:         var(--text-muted);
  text-align:    left;
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  gap:     8px;
}
.input-row input {
  flex:        1;
  padding:     13px 16px;
  background:  var(--card);
  border:      1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color:       var(--text);
  font-size:   1rem;
  font-family: var(--font);
  outline:     none;
  transition:  border-color 0.2s;
}
.input-row input::placeholder { color: var(--text-dim); }
.input-row input:focus  { border-color: var(--accent); }
.input-row input.error  {
  border-color: var(--red);
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-7px); }
  40%       { transform: translateX(7px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

#loginBtn {
  padding:         0 18px;
  background:      var(--accent);
  color:           white;
  border-radius:   var(--radius-sm);
  display:         flex;
  align-items:     center;
  justify-content: center;
  transition:      background 0.2s, transform 0.15s;
  min-width:       52px;
}
#loginBtn:hover  { background: var(--accent-2); }
#loginBtn:active { transform: scale(0.94); }

.login-error {
  color:      var(--red);
  font-size:  0.82rem;
  margin-top: 8px;
  min-height: 20px;
  text-align: left;
  opacity:    0;
  transition: opacity 0.2s;
}
.login-error.visible { opacity: 1; }

.login-note {
  font-size: 0.76rem;
  color:     var(--text-dim);
}


/* ============================================
   LAYOUT COMMUN
   ============================================ */

.container {
  max-width: 1200px;
  margin:    0 auto;
  padding:   0 20px;
}


/* ============================================
   HEADER
   ============================================ */

.header {
  position:   sticky;
  top:        0;
  z-index:    100;
  background: rgba(15, 17, 23, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          64px;
}

.header-logo {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-family: var(--font-brand);
  font-size:   1.15rem;
  font-weight: 900;
}
.header-logo strong { color: var(--accent); }

.header-nav {
  display:     flex;
  align-items: center;
  gap:         4px;
}
.header-nav a {
  padding:     7px 14px;
  border-radius: var(--radius-sm);
  font-size:   0.88rem;
  font-weight: 500;
  color:       var(--text-muted);
  transition:  color 0.2s, background 0.2s;
}
.header-nav a:hover,
.header-nav a.active {
  color:      var(--text);
  background: var(--accent-dim);
}
.btn-logout {
  padding:     7px 14px;
  border-radius: var(--radius-sm);
  font-size:   0.88rem;
  font-weight: 500;
  color:       var(--text-dim);
  transition:  color 0.2s;
}
.btn-logout:hover { color: var(--red); }


/* ============================================
   HERO
   ============================================ */

.hero {
  padding:    80px 0 64px;
  text-align: center;
  position:   relative;
  overflow:   hidden;
}
.hero::before {
  content:    '';
  position:   absolute;
  top:        -120px;
  left:       50%;
  transform:  translateX(-50%);
  width:      700px;
  height:     500px;
  background: radial-gradient(ellipse, rgba(249,115,22,.11) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display:       inline-block;
  padding:       6px 18px;
  background:    var(--accent-dim);
  border:        1px solid rgba(249,115,22,.3);
  border-radius: 99px;
  font-size:     0.78rem;
  font-weight:   600;
  color:         var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h2 {
  font-family:   var(--font-brand);
  font-size:     clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight:   900;
  line-height:   1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero h2 span { color: var(--accent); display: block; }

.hero p {
  font-size:     1.05rem;
  color:         var(--text-muted);
  max-width:     520px;
  margin:        0 auto 36px;
  line-height:   1.75;
}

.btn-hero {
  display:       inline-block;
  padding:       14px 36px;
  background:    var(--accent);
  color:         white;
  font-weight:   700;
  font-size:     0.95rem;
  border-radius: 99px;
  box-shadow:    0 4px 24px rgba(249,115,22,.4);
  transition:    background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover {
  background: var(--accent-2);
  transform:  translateY(-3px);
  box-shadow: 0 8px 32px rgba(249,115,22,.5);
}


/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  display:         flex;
  justify-content: center;
  gap:             52px;
  padding:         24px 0;
  border-top:      1px solid var(--border);
  border-bottom:   1px solid var(--border);
  margin-bottom:   40px;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-brand);
  font-size:   1.7rem;
  font-weight: 900;
  color:       var(--accent);
  line-height: 1;
}
.stat-label {
  font-size:     0.75rem;
  color:         var(--text-muted);
  letter-spacing: 0.5px;
  margin-top:    4px;
}


/* ============================================
   FILTRES
   ============================================ */

.filters-section { padding: 28px 0 14px; }
.filter-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   16px;
}
.filter-header h3 {
  font-size:   1.25rem;
  font-weight: 700;
}

.filter-chips {
  display:   flex;
  gap:       10px;
  flex-wrap: wrap;
}
.chip {
  padding:       8px 22px;
  border-radius: 99px;
  font-size:     0.88rem;
  font-weight:   500;
  border:        1.5px solid var(--border);
  color:         var(--text-muted);
  background:    transparent;
  transition:    all 0.2s;
}
.chip:hover       { border-color: var(--accent); color: var(--accent); }
.chip.active      { background: var(--accent); border-color: var(--accent); color: white; }


/* ============================================
   GRILLE DE PRODUITS
   ============================================ */

.products-section { padding: 22px 0 60px; }

.products-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap:                   24px;
}

/* Carte produit */
.product-card {
  background:    var(--card);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
  cursor:        pointer;
  transition:    transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.product-card:hover {
  transform:     translateY(-7px);
  box-shadow:    0 20px 48px rgba(0,0,0,.55);
  border-color:  var(--border-hover);
}

.card-image-wrap {
  position:     relative;
  aspect-ratio: 1;
  overflow:     hidden;
  background:   var(--card-hover);
}
.card-image-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .card-image-wrap img { transform: scale(1.06); }

.card-badge {
  position:      absolute;
  top:           12px;
  left:          12px;
  padding:       4px 11px;
  background:    var(--accent);
  color:         white;
  font-size:     0.7rem;
  font-weight:   700;
  border-radius: 99px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.card-body    { padding: 16px; }
.card-category {
  font-size:     0.7rem;
  color:         var(--accent);
  font-weight:   700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.card-name {
  font-size:     0.95rem;
  font-weight:   600;
  line-height:   1.45;
  margin-bottom: 10px;
}

/* Boutons J'aime / J'aime pas */
.vote-row {
  display:     flex;
  gap:         8px;
  margin-bottom: 12px;
}
.btn-vote {
  display:       flex;
  align-items:   center;
  gap:           6px;
  padding:       5px 12px;
  border-radius: 99px;
  font-size:     0.82rem;
  font-weight:   600;
  border:        1.5px solid var(--border);
  color:         var(--text-dim);
  transition:    all 0.2s;
}
.btn-vote span { min-width: 14px; text-align: left; }

.btn-like:hover  { border-color: var(--green); color: var(--green); }
.btn-dislike:hover { border-color: var(--red);   color: var(--red); }

.btn-like.voted  {
  background:   rgba(34,197,94,.15);
  border-color: var(--green);
  color:        var(--green);
}
.btn-dislike.voted {
  background:   rgba(239,68,68,.15);
  border-color: var(--red);
  color:        var(--red);
}

/* Votes dans la modal (légèrement plus grands) */
.modal-body .vote-row {
  margin-bottom: 18px;
}
.modal-body .btn-vote {
  padding:   7px 16px;
  font-size: 0.88rem;
}

.card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}
.card-price {
  display:     flex;
  align-items: baseline;
  gap:         7px;
  flex-wrap:   wrap;
}
.price-current  { font-size: 1.2rem; font-weight: 700; }
.price-original { font-size: 0.8rem; color: var(--text-dim); text-decoration: line-through; }
.price-discount { font-size: 0.72rem; color: var(--green); font-weight: 700; }

.btn-order {
  padding:       8px 16px;
  background:    var(--accent-dim);
  border:        1px solid rgba(249,115,22,.3);
  color:         var(--accent);
  border-radius: var(--radius-sm);
  font-size:     0.82rem;
  font-weight:   600;
  white-space:   nowrap;
  transition:    all 0.2s;
}
.btn-order:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* État vide */
.empty-state {
  grid-column: 1 / -1;
  text-align:  center;
  padding:     60px 20px;
  color:       var(--text-muted);
}


/* ============================================
   SECTION CTA (Commander)
   ============================================ */

.cta-section { padding: 0 0 64px; }
.cta-card {
  background:    linear-gradient(135deg, var(--surface) 0%, var(--card) 100%);
  border:        1px solid var(--border-hover);
  border-radius: 20px;
  padding:       48px;
  text-align:    center;
}
.cta-card h3 {
  font-family:   var(--font-brand);
  font-size:     1.6rem;
  font-weight:   900;
  margin-bottom: 12px;
}
.cta-card p {
  color:         var(--text-muted);
  max-width:     480px;
  margin:        0 auto 28px;
  font-size:     0.95rem;
}
.cta-actions {
  display:         flex;
  gap:             12px;
  justify-content: center;
  flex-wrap:       wrap;
}

.btn-whatsapp-cta {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       14px 28px;
  background:    #22c55e;
  color:         white;
  font-weight:   700;
  font-size:     0.92rem;
  border-radius: 99px;
  transition:    background 0.2s, transform 0.2s;
  box-shadow:    0 4px 20px rgba(34,197,94,.35);
}
.btn-whatsapp-cta:hover { background: #16a34a; transform: translateY(-2px); }

.btn-email-cta {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       14px 28px;
  background:    var(--card);
  border:        1.5px solid var(--border);
  color:         var(--text-muted);
  font-weight:   600;
  font-size:     0.92rem;
  border-radius: 99px;
  transition:    all 0.2s;
}
.btn-email-cta:hover { border-color: var(--accent); color: var(--accent); }


/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position:        fixed;
  inset:           0;
  background:              rgba(0,0,0,.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter:         blur(10px);
  z-index:         200;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         20px;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background:    var(--surface);
  border:        1px solid var(--border);
  border-radius: 20px;
  max-width:     500px;
  width:         100%;
  box-shadow:    var(--shadow);
  position:      relative;
  transform:     translateY(24px) scale(0.96);
  transition:    transform 0.28s cubic-bezier(.34,1.56,.64,1);
  max-height:    90vh;
  overflow-y:    auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position:        absolute;
  top:             14px;
  right:           14px;
  z-index:         1;
  width:           32px;
  height:          32px;
  border-radius:   50%;
  background:      var(--card);
  color:           var(--text-muted);
  font-size:       1rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  transition:      background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(239,68,68,.15); color: var(--red); }

.modal-img {
  width:         100%;
  aspect-ratio:  16 / 9;
  object-fit:    cover;
  border-radius: 20px 20px 0 0;
  display:       block;
}

.modal-body { padding: 24px; }
.modal-category {
  font-size:     0.73rem;
  color:         var(--accent);
  font-weight:   700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.modal-name {
  font-size:     1.3rem;
  font-weight:   700;
  margin-bottom: 10px;
  line-height:   1.3;
}
.modal-desc {
  font-size:     0.88rem;
  color:         var(--text-muted);
  line-height:   1.75;
  margin-bottom: 18px;
}
.modal-price-row {
  display:       flex;
  align-items:   baseline;
  gap:           10px;
  margin-bottom: 22px;
}
.modal-price      { font-size: 1.7rem; font-weight: 800; }
.modal-price-orig { font-size: 1rem; color: var(--text-dim); text-decoration: line-through; }

.modal-actions { display: flex; gap: 10px; }
.btn-whatsapp {
  flex:            1;
  padding:         13px;
  background:      #22c55e;
  color:           white;
  border-radius:   var(--radius-sm);
  font-weight:     700;
  font-size:       0.9rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  transition:      background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover { background: #16a34a; transform: translateY(-1px); }

.btn-email {
  flex:            1;
  padding:         13px;
  background:      var(--card);
  border:          1.5px solid var(--border);
  color:           var(--text-muted);
  border-radius:   var(--radius-sm);
  font-weight:     600;
  font-size:       0.9rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  transition:      all 0.2s;
}
.btn-email:hover { border-color: var(--accent); color: var(--accent); }


/* ============================================
   BOUTON FLOTTANT WHATSAPP
   ============================================ */

.fab-wa {
  position:        fixed;
  bottom:          28px;
  right:           28px;
  width:           58px;
  height:          58px;
  background:      #25d366;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  box-shadow:      0 4px 24px rgba(37,211,102,.45);
  z-index:         150;
  transition:      transform 0.22s, box-shadow 0.22s;
}
.fab-wa:hover {
  transform:  scale(1.12);
  box-shadow: 0 6px 32px rgba(37,211,102,.6);
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding:    32px 0 36px;
  text-align: center;
}
.footer-brand p:first-child {
  font-family:   var(--font-brand);
  font-size:     1.1rem;
  font-weight:   900;
  margin-bottom: 4px;
}
.footer-sub  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.footer-copy { font-size: 0.74rem; color: var(--text-dim); }


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .stats-bar { gap: 24px; }

  .header-nav a:not(.active) { display: none; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hero { padding: 52px 0 44px; }
  .hero h2 { letter-spacing: -0.5px; }

  .cta-card { padding: 32px 24px; }
  .modal-actions { flex-direction: column; }
}

/* ============================================
   ADMINISTRATION — Bouton header
   ============================================ */

.btn-admin-toggle {
  display:       flex;
  align-items:   center;
  gap:           6px;
  padding:       7px 14px;
  border-radius: var(--radius-sm);
  font-size:     0.88rem;
  font-weight:   500;
  color:         var(--text-dim);
  border:        1.5px solid transparent;
  transition:    all 0.2s;
}
.btn-admin-toggle:hover { color: var(--accent); border-color: rgba(249,115,22,.3); }
.btn-admin-toggle.active {
  color:        var(--accent);
  background:   var(--accent-dim);
  border-color: rgba(249,115,22,.4);
}


/* ============================================
   ADMINISTRATION — Barre d'info
   ============================================ */

.admin-bar {
  display:         none;   /* affiché par JS quand admin mode actif */
  align-items:     center;
  gap:             10px;
  padding:         10px 20px;
  background:      rgba(249,115,22,.12);
  border-bottom:   1px solid rgba(249,115,22,.25);
  font-size:       0.82rem;
  color:           var(--accent);
  text-align:      center;
  justify-content: center;
}
.admin-bar strong { font-weight: 700; }


/* ============================================
   ADMINISTRATION — Cartes en mode édition
   ============================================ */

.admin-card { cursor: default; }
.admin-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.card-admin-btns {
  position:        absolute;
  inset:           0;
  background:      rgba(0,0,0,.55);
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             12px;
  opacity:         0;
  transition:      opacity 0.2s;
}
.admin-card:hover .card-admin-btns { opacity: 1; }

.btn-card-edit,
.btn-card-delete {
  width:           44px;
  height:          44px;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       1rem;
  transition:      transform 0.15s, background 0.15s;
}
.btn-card-edit  { background: var(--accent); color: white; }
.btn-card-delete { background: #ef4444; color: white; }
.btn-card-edit:hover  { transform: scale(1.12); }
.btn-card-delete:hover { transform: scale(1.12); }


/* ============================================
   ADMINISTRATION — Bouton flottant Ajouter
   ============================================ */

.fab-add {
  display:         none;   /* affiché par JS quand admin mode actif */
  position:        fixed;
  bottom:          28px;
  right:           100px;
  width:           58px;
  height:          58px;
  background:      var(--accent);
  color:           white;
  border-radius:   50%;
  align-items:     center;
  justify-content: center;
  box-shadow:      0 4px 24px rgba(249,115,22,.5);
  z-index:         150;
  transition:      transform 0.22s, box-shadow 0.22s;
}
.fab-add:hover {
  transform:  scale(1.12) rotate(90deg);
  box-shadow: 0 6px 32px rgba(249,115,22,.65);
}


/* ============================================
   ADMINISTRATION — Formulaire (modal élargi)
   ============================================ */

.modal-admin { max-width: 580px; }

.admin-form-header {
  padding:       22px 24px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.admin-form-header h3 { font-size: 1.15rem; font-weight: 700; }

.admin-form-body { padding: 20px 24px 24px; }

/* Zone upload photo */
.form-image-zone {
  position:      relative;
  width:         100%;
  aspect-ratio:  16 / 7;
  border-radius: var(--radius-sm);
  overflow:      hidden;
  cursor:        pointer;
  margin-bottom: 20px;
  background:    var(--card);
  border:        2px dashed var(--border);
  transition:    border-color 0.2s;
}
.form-image-zone:hover { border-color: var(--accent); }

#formImagePreview {
  display:    none;   /* affiché par JS après sélection */
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.form-image-placeholder {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  height:          100%;
  color:           var(--text-dim);
  padding:         20px;
  text-align:      center;
}
.form-image-placeholder p     { font-size: 0.9rem; color: var(--text-muted); }
.form-image-placeholder small { font-size: 0.75rem; }

.form-image-change {
  position:        absolute;
  inset:           0;
  background:      rgba(0,0,0,.6);
  color:           white;
  font-size:       0.85rem;
  font-weight:     600;
  display:         flex;
  align-items:     center;
  justify-content: center;
  opacity:         0;
  transition:      opacity 0.2s;
}
.form-image-zone:hover .form-image-change { opacity: 1; }

.input-file-hidden { display: none; }

/* Grille du formulaire */
.form-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   14px;
}
.form-group      { display: flex; flex-direction: column; gap: 6px; }
.form-full       { grid-column: 1 / -1; }

.form-group label {
  font-size:   0.82rem;
  font-weight: 600;
  color:       var(--text-muted);
}
.form-group label small { font-weight: 400; color: var(--text-dim); }

.form-group input,
.form-group select,
.form-group textarea {
  padding:       10px 12px;
  background:    var(--card);
  border:        1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color:         var(--text);
  font-size:     0.9rem;
  font-family:   var(--font);
  outline:       none;
  transition:    border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea       { resize: vertical; min-height: 80px; }
.form-group select         { cursor: pointer; }

.input-euro {
  display:     flex;
  align-items: center;
  gap:         0;
}
.input-euro input {
  flex:                    1;
  border-radius:           var(--radius-sm) 0 0 var(--radius-sm);
  border-right:            none;
}
.input-euro span {
  padding:       10px 12px;
  background:    var(--card-hover);
  border:        1.5px solid var(--border);
  border-left:   none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size:     0.88rem;
  color:         var(--text-muted);
}

.form-error {
  min-height:  18px;
  font-size:   0.82rem;
  color:       var(--red);
  margin-top:  8px;
  font-weight: 500;
}

.form-actions {
  display:         flex;
  gap:             10px;
  justify-content: flex-end;
  margin-top:      20px;
  padding-top:     16px;
  border-top:      1px solid var(--border);
}
.btn-form-annuler {
  padding:       10px 20px;
  border-radius: var(--radius-sm);
  font-size:     0.9rem;
  font-weight:   600;
  color:         var(--text-muted);
  border:        1.5px solid var(--border);
  transition:    all 0.2s;
}
.btn-form-annuler:hover { border-color: var(--red); color: var(--red); }

.btn-form-save {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       10px 24px;
  background:    var(--accent);
  color:         white;
  border-radius: var(--radius-sm);
  font-size:     0.9rem;
  font-weight:   700;
  transition:    background 0.2s, transform 0.15s;
}
.btn-form-save:hover { background: var(--accent-2); transform: translateY(-1px); }


/* ============================================
   RESPONSIVE — admin
   ============================================ */

@media (max-width: 600px) {
  .form-grid               { grid-template-columns: 1fr; }
  .form-full               { grid-column: 1; }
  .modal-admin             { max-width: 100%; }
  .btn-admin-toggle span   { display: none; }
  .fab-add                 { right: 92px; bottom: 18px; }
}

@media (max-width: 480px) {
  .login-card { padding: 36px 22px; }
  .brand { flex-direction: column; gap: 10px; }

  .products-grid { grid-template-columns: 1fr; gap: 16px; }

  .stats-bar { gap: 16px; flex-wrap: wrap; }
  .stat-value { font-size: 1.3rem; }

  .fab-wa { bottom: 18px; right: 18px; width: 52px; height: 52px; }
}
