/* ═══════════════════════════════════════════════════════════════
   ZAMANI SHOP — Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
    --z-gold:        #c9a84c;
    --z-gold-dark:   #a8873a;
    --z-gold-light:  #e8d08a;
    --z-dark:           #1a1a2e;
    --z-dark-2:          #16213e;
    --z-sidebar-bg:      #1a3828;   /* vert militaire — couleur logo Zamani */
    --z-military:        #1a3828;
    --z-military-dark:   #122a1d;
    --z-military-light:  #2d5a3d;
    --z-text:        #2c2c2c;
    --z-text-light:  #666666;
    --z-bg:          #f8f6f0;
    --z-bg-card:     #ffffff;
    --z-border:      #e2ddd4;
    --z-shadow:      0 2px 12px rgba(0,0,0,0.08);
    --z-shadow-hover:0 6px 24px rgba(0,0,0,0.14);
    --z-radius:      6px;
    --z-radius-lg:   10px;
    --z-font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body { font-family: var(--z-font); background-color: var(--z-bg); color: var(--z-text); font-size: 15px; line-height: 1.6; }
a { color: var(--z-gold-dark); text-decoration: none; }
a:hover { color: var(--z-gold); text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 600; color: var(--z-dark); }

/* ── Sidebar publique ───────────────────────────────────────── */
.sidebar { background: linear-gradient(to right, #091812 0%, var(--z-military) 100%) !important; border-right: 1px solid rgba(201, 168, 76, 0.2); }
.navbar-brand { font-size: 1.1rem; font-weight: 700; color: var(--z-gold) !important; letter-spacing: 0.5px; padding: 0.8rem 1rem; }
.navbar-brand:hover { color: var(--z-gold-light) !important; text-decoration: none; }
.navbar-dark .navbar-toggler { border-color: rgba(201, 168, 76, 0.4); }
.nav-item .nav-link { color: rgba(255,255,255,0.75) !important; border-radius: var(--z-radius); margin: 2px 8px; padding: 0.55rem 0.85rem; font-size: 0.9rem; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.nav-item .nav-link:hover { color: var(--z-gold) !important; background-color: rgba(201,168,76,0.1); text-decoration: none; }
.nav-item .nav-link.active { color: var(--z-gold) !important; background-color: rgba(201,168,76,0.15); border-left: 3px solid var(--z-gold); }
.top-row { background-color: var(--z-bg-card) !important; border-bottom: 1px solid var(--z-border) !important; font-size: 0.85rem; }
.content { padding-top: 1.5rem; padding-bottom: 2rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.zamani-home .hero { background: linear-gradient(135deg, var(--z-military-dark) 0%, var(--z-military) 60%, var(--z-military-light) 100%); color: white; border-radius: var(--z-radius-lg); padding: 3rem 2rem; margin-bottom: 2.5rem; text-align: center; border: 1px solid rgba(201,168,76,0.35); box-shadow: 0 4px 24px rgba(18,42,29,0.35); }
.zamani-home .hero h1 { color: var(--z-gold); font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-subtitle { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 1rem; }
.hero-tel a { color: var(--z-gold-light); font-size: 1rem; }
.btn-catalogue { display: inline-block; margin-top: 1.2rem; padding: 0.7rem 2rem; background-color: var(--z-gold); color: var(--z-dark) !important; font-weight: 600; border-radius: var(--z-radius); font-size: 0.95rem; transition: all 0.2s ease; text-decoration: none !important; }
.btn-catalogue:hover { background-color: var(--z-gold-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.35); }

/* ── Sections ───────────────────────────────────────────────── */
.home-section { margin-bottom: 2.5rem; }
.home-section h2, .catalogue-header h1 { font-size: 1.4rem; color: var(--z-dark); padding-bottom: 0.5rem; border-bottom: 2px solid var(--z-gold); margin-bottom: 1.5rem; display: inline-block; }
.catalogue-subtitle { color: var(--z-text-light); font-size: 0.9rem; margin-top: 0.25rem; margin-bottom: 1.5rem; }

/* ── Grille + Cartes produits ───────────────────────────────── */
.produits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.produit-card { display: flex; flex-direction: column; background: var(--z-bg-card); border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); overflow: hidden; box-shadow: var(--z-shadow); transition: all 0.25s ease; text-decoration: none !important; color: var(--z-text) !important; }
.produit-card:hover { transform: translateY(-3px); box-shadow: var(--z-shadow-hover); border-color: rgba(201,168,76,0.4); }
.produit-image { position: relative; background-color: #f0ede6; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.produit-image img { width: 100%; height: 100%; object-fit: cover; }
.produit-image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--z-text-light); }
.produit-image-placeholder span { font-size: 2.5rem; opacity: 0.5; }
.badge { position: absolute; top: 8px; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.3px; z-index: 1; }
.badge-nouveau { left: 8px; background-color: var(--z-dark); color: var(--z-gold); border: 1px solid var(--z-gold); }
.badge-selection { right: 8px; background-color: var(--z-gold); color: var(--z-dark); }
.produit-info { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.produit-categorie { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--z-gold-dark); font-weight: 600; margin: 0; }
.produit-titre { font-size: 0.9rem; font-weight: 600; color: var(--z-dark); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.produit-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.meta-tag { font-size: 0.72rem; color: var(--z-text-light); background: var(--z-bg); border: 1px solid var(--z-border); border-radius: 4px; padding: 1px 7px; }
.meta-tag .bi-globe-europe-africa-fill { color: var(--z-military); }
.produit-prix { font-size: 1.05rem; font-weight: 700; color: var(--z-gold-dark); margin: 0.4rem 0 0; }

/* ── Page détail produit ────────────────────────────────────── */
.zamani-produit-detail { max-width: 1100px; }
.fil-ariane { font-size: 0.82rem; color: var(--z-text-light); margin-bottom: 1.5rem; }
.fil-ariane a { color: var(--z-text-light); }
.fil-ariane a:hover { color: var(--z-gold-dark); }
.fil-ariane span { color: var(--z-text); }
.produit-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) { .produit-detail-layout { grid-template-columns: 1fr; } }
.photo-principale { background: #f0ede6; border-radius: var(--z-radius-lg); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--z-border); overflow: hidden; }
.photo-placeholder { text-align: center; color: var(--z-text-light); }
.photo-placeholder span { font-size: 4rem; opacity: 0.4; display: block; }
.photo-principale img { width: 100%; height: 100%; object-fit: cover; }
.detail-categorie { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--z-gold-dark); font-weight: 600; margin: 0; }
.detail-titre { font-size: 1.5rem; font-weight: 700; color: var(--z-dark); margin: 0.4rem 0 0.25rem; line-height: 1.3; }
.detail-reference { font-size: 0.8rem; color: var(--z-text-light); margin: 0 0 1rem; }
.detail-meta { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; background: var(--z-bg); border-radius: var(--z-radius); border: 1px solid var(--z-border); margin-bottom: 1.25rem; }
.meta-item { display: flex; justify-content: space-between; font-size: 0.88rem; }
.meta-label { color: var(--z-text-light); font-weight: 500; }
.meta-valeur { color: var(--z-text); font-weight: 600; }
.detail-description { margin-bottom: 1.25rem; }
.detail-description h2 { font-size: 1rem; font-weight: 600; color: var(--z-dark); margin-bottom: 0.5rem; }
.detail-description p { font-size: 0.92rem; color: var(--z-text); line-height: 1.7; }
.detail-prix-section { border-top: 1px solid var(--z-border); padding-top: 1.25rem; }
.detail-prix { font-size: 1.8rem; font-weight: 700; color: var(--z-gold-dark); margin-bottom: 1rem; }
.detail-options { margin-bottom: 1rem; }
.detail-options h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; }
.option-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; cursor: pointer; padding: 0.35rem 0; }
.btn-contact { display: block; width: 100%; padding: 0.85rem; background-color: var(--z-gold); color: var(--z-dark) !important; font-weight: 700; font-size: 0.95rem; border-radius: var(--z-radius); text-align: center; transition: all 0.2s ease; text-decoration: none !important; }
.btn-contact:hover { background-color: var(--z-gold-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.35); }
.contact-tel { text-align: center; font-size: 0.88rem; color: var(--z-text-light); margin-top: 0.75rem; }
.contact-tel a { color: var(--z-gold-dark); font-weight: 600; }
.badge-vendu { display: inline-block; background: #e8e8e8; color: #888; font-size: 0.9rem; font-weight: 700; padding: 0.4rem 1.2rem; border-radius: var(--z-radius); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.vendu-info { font-size: 0.88rem; color: var(--z-text-light); }
.produit-introuvable { text-align: center; padding: 4rem 2rem; }
.btn-retour { display: inline-block; margin-top: 1rem; padding: 0.6rem 1.5rem; border: 1px solid var(--z-gold); color: var(--z-gold-dark); border-radius: var(--z-radius); font-weight: 600; transition: all 0.2s ease; }
.btn-retour:hover { background: var(--z-gold); color: var(--z-dark); text-decoration: none; }
.catalogue-header { margin-bottom: 0.5rem; }
.catalogue-empty { text-align: center; padding: 3rem; color: var(--z-text-light); }

/* ── Blazor errors ──────────────────────────────────────────── */
.blazor-error-boundary { background: #b32121; padding: 1rem 1rem 1rem 3.7rem; color: white; }
.blazor-error-boundary::after { content: "Une erreur s'est produite."; }
#blazor-error-ui { color-scheme: light only; background: #fff8e1; border-top: 2px solid var(--z-gold); bottom: 0; box-shadow: 0 -2px 8px rgba(0,0,0,0.1); display: none; left: 0; padding: 0.75rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: 0.82rem; margin-top: 0.25rem; display: block; }

/* ── NavMenu dynamique ──────────────────────────────────────── */
.brand-icon { color: var(--z-gold); margin-right: 4px; font-size: 1rem; }
.nav-separator { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(201,168,76,0.75); font-weight: 600; padding: 1.2rem 1.2rem 0.4rem; margin-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.nav-icon { font-size: 0.85rem; width: 18px; display: inline-block; text-align: center; }
.nav-icon.sub { color: rgba(255,255,255,0.3); font-size: 0.75rem; }
.nav-link-sub { padding-left: 1.8rem !important; font-size: 0.83rem !important; color: rgba(255,255,255,0.55) !important; }
.nav-link-sub:hover { color: var(--z-gold) !important; }
.nav-link-sub.active { color: var(--z-gold) !important; background-color: rgba(201,168,76,0.1) !important; border-left: 3px solid var(--z-gold) !important; }
.cat-header { display: flex; align-items: center; width: 100%; }
.cat-header .nav-link { flex: 1; }
.cat-toggle { background: none; border: none; color: rgba(201,168,76,0.6); font-size: 0.8rem; cursor: pointer; padding: 0 0.6rem 0 0; line-height: 1; transition: color 0.2s ease; flex-shrink: 0; }
.cat-toggle:hover { color: var(--z-gold); }

/* ── Page catégorie publique ─────────────────────────────────── */
.categorie-description { color: var(--z-text-light); font-size: 0.92rem; margin-bottom: 0.5rem; max-width: 600px; }
.sous-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.sous-categorie-tag { display: inline-block; padding: 0.35rem 0.9rem; background: var(--z-bg-card); border: 1px solid var(--z-border); border-radius: 20px; font-size: 0.83rem; color: var(--z-text) !important; font-weight: 500; transition: all 0.2s ease; text-decoration: none !important; }
.sous-categorie-tag:hover { border-color: var(--z-gold); color: var(--z-gold-dark) !important; background: rgba(201,168,76,0.06); }
.sous-cat-count { font-weight:400; opacity:0.7; font-size:0.85em; margin-left:3px; }
.sous-categories-tree { display:flex; flex-direction:column; gap:0.35rem; margin-bottom:1.75rem; }
.sous-cat-tree-item { display:flex; align-items:center; }
.sous-categorie-tag-enfant { font-size:0.8rem; opacity:0.9; }
.sous-cat-chevron { font-size:0.75rem; color:var(--z-border); margin-right:4px; font-family:monospace; }

/* ══════════════════════════════════════════════════════════════
   ADMIN — Layout, Login, Dashboard, CRUD
   ══════════════════════════════════════════════════════════════ */

.admin-layout { display: flex; min-height: 100vh; background: #f4f6f9; }
.admin-sidebar { width: 220px; min-height: 100vh; background-color: var(--z-dark); display: flex; flex-direction: column; position: sticky; top: 0; flex-shrink: 0; border-right: 1px solid rgba(201,168,76,0.15); }
.admin-brand { padding: 1.2rem 1rem; color: var(--z-gold); font-weight: 700; font-size: 1rem; letter-spacing: 0.5px; border-bottom: 1px solid rgba(201,168,76,0.15); }
.admin-nav { flex: 1; padding: 1rem 0; display: flex; flex-direction: column; }
.admin-nav-section { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,0.3); font-weight: 600; padding: 1rem 1rem 0.3rem; }
.admin-nav-link { display: flex; align-items: center; gap: 8px; padding: 0.6rem 1rem; color: rgba(255,255,255,0.7) !important; font-size: 0.88rem; transition: all 0.2s ease; border-left: 3px solid transparent; text-decoration: none !important; }
.admin-nav-link:hover { color: white !important; background: rgba(255,255,255,0.05); }
.admin-nav-link.active { color: var(--z-gold) !important; background: rgba(201,168,76,0.1); border-left-color: var(--z-gold); }
.admin-sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; }
.admin-sidebar-footer a { color: rgba(255,255,255,0.4) !important; }
.admin-sidebar-footer a:hover { color: var(--z-gold) !important; }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { background: white; border-bottom: 1px solid var(--z-border); padding: 0.75rem 1.5rem; display: flex; align-items: center; }
.admin-topbar-title { font-size: 0.85rem; color: var(--z-text-light); font-weight: 500; }
.admin-content { padding: 1.5rem; flex: 1; }
.admin-page-header { margin-bottom: 1.5rem; }
.admin-page-header h1 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.admin-page-header p { color: var(--z-text-light); font-size: 0.9rem; margin: 0; }
.admin-page-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: white; border-radius: var(--z-radius-lg); padding: 1.2rem 1.5rem; border: 1px solid var(--z-border); box-shadow: var(--z-shadow); }
.stat-card-gold { background: var(--z-dark); border-color: rgba(201,168,76,0.3); }
.stat-card-gold .stat-value { color: var(--z-gold); }
.stat-card-gold .stat-label { color: rgba(255,255,255,0.5); }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--z-dark); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--z-text-light); margin-top: 0.4rem; }
.admin-actions h2 { font-size: 1rem; margin-bottom: 1rem; color: var(--z-text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.action-card { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.2rem 1rem; background: white; border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); font-size: 0.85rem; color: var(--z-text) !important; font-weight: 500; text-decoration: none !important; transition: all 0.2s ease; text-align: center; }
.action-card:hover { border-color: var(--z-gold); box-shadow: var(--z-shadow); transform: translateY(-2px); color: var(--z-dark) !important; }
.action-icon { font-size: 1.5rem; }

/* ── Login ──────────────────────────────────────────────────── */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--z-dark) 0%, var(--z-dark-2) 100%); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-card { background: white; border-radius: var(--z-radius-lg); padding: 2.5rem 2rem; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-logo { font-size: 2.5rem; color: var(--z-gold); margin-bottom: 0.5rem; }
.login-header h1 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.login-header p { color: var(--z-text-light); font-size: 0.85rem; margin: 0; }
.login-error { background: #fff0f0; border: 1px solid #f5c6c6; border-radius: var(--z-radius); color: #c0392b; padding: 0.6rem 0.9rem; font-size: 0.85rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--z-text); margin-bottom: 0.35rem; }
.form-control { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--z-border); border-radius: var(--z-radius); font-size: 0.92rem; font-family: var(--z-font); color: var(--z-text); background: var(--z-bg); transition: border-color 0.2s ease; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: var(--z-gold); background: white; box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.btn-login { width: 100%; padding: 0.8rem; background-color: var(--z-gold); color: var(--z-dark); font-weight: 700; font-size: 0.95rem; border: none; border-radius: var(--z-radius); cursor: pointer; transition: all 0.2s ease; margin-top: 0.5rem; font-family: var(--z-font); }
.btn-login:hover { background-color: var(--z-gold-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.35); }

/* ── Page /admin/2fa (saisie code TOTP) ─────────────────────────────────── */
.login-2fa-input { text-align: center; font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5rem; color: var(--z-dark); }
.login-2fa-hint { font-size: 0.78rem; color: var(--z-text-light); text-align: center; margin-top: 0.4rem; margin-bottom: 0; }
.login-2fa-footer { text-align: center; margin-top: 1.25rem; font-size: 0.82rem; }
.login-2fa-footer a { color: var(--z-text-light); }
.login-2fa-footer a:hover { color: var(--z-gold-dark); }

/* ── Page /admin/2fa/setup (enrollment QR code) ─────────────────────────── */
.setup-2fa-card { max-width: 560px; margin: 0 auto; }
.setup-2fa-step { background: var(--z-bg); border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.setup-2fa-step h3 { font-size: 0.95rem; color: var(--z-dark); margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.setup-2fa-step h3 .step-num { background: var(--z-gold); color: var(--z-dark); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.setup-2fa-qr { display: flex; justify-content: center; margin: 0.75rem 0; }
.setup-2fa-qr img { border: 4px solid white; border-radius: var(--z-radius); box-shadow: var(--z-shadow); width: 180px; height: 180px; }
.setup-2fa-key { font-family: monospace; font-size: 0.9rem; background: white; border: 1px solid var(--z-border); border-radius: var(--z-radius); padding: 0.5rem 0.85rem; text-align: center; letter-spacing: 0.15rem; color: var(--z-dark); word-break: break-all; }
.setup-2fa-apps { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.setup-2fa-app-badge { font-size: 0.75rem; background: var(--z-dark); color: white; border-radius: 4px; padding: 3px 8px; }
.setup-2fa-input { text-align: center; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.4rem; }
.setup-2fa-success { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--z-radius-lg); padding: 1.5rem; text-align: center; margin-bottom: 1.25rem; }
.setup-2fa-success .success-icon { font-size: 2.5rem; color: #16a34a; margin-bottom: 0.5rem; }
.setup-2fa-success h3 { color: #15803d; margin: 0 0 0.5rem; }
.setup-2fa-warning { background: #fefce8; border: 1px solid #fde047; border-radius: var(--z-radius); padding: 0.75rem 1rem; font-size: 0.83rem; color: #854d0e; margin: 0.75rem 0; }
.recovery-codes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 0.75rem 0; }
.recovery-code-item { font-family: monospace; font-size: 0.88rem; background: white; border: 1px solid var(--z-border); border-radius: var(--z-radius); padding: 0.4rem 0.6rem; text-align: center; letter-spacing: 0.08rem; font-weight: 600; color: var(--z-dark); }
.setup-2fa-already { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--z-radius-lg); padding: 1.5rem; text-align: center; }
.setup-2fa-already .already-icon { font-size: 2rem; color: #16a34a; margin-bottom: 0.5rem; }
.setup-2fa-already h3 { color: #15803d; margin: 0 0 0.5rem; }

/* ── Boutons admin ──────────────────────────────────────────── */
.btn-admin-primary { display: inline-flex; align-items: center; gap: 6px; padding: 0.6rem 1.2rem; background: var(--z-gold); color: var(--z-dark) !important; font-weight: 600; font-size: 0.88rem; border-radius: var(--z-radius); border: none; cursor: pointer; transition: all 0.2s ease; text-decoration: none !important; white-space: nowrap; }
.btn-admin-primary:hover { background: var(--z-gold-light); }
.btn-admin-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-admin-secondary { display: inline-flex; align-items: center; gap: 6px; padding: 0.6rem 1.2rem; background: white; color: var(--z-text) !important; font-weight: 500; font-size: 0.88rem; border-radius: var(--z-radius); border: 1px solid var(--z-border); cursor: pointer; transition: all 0.2s ease; text-decoration: none !important; white-space: nowrap; }
.btn-admin-secondary:hover { border-color: var(--z-gold); color: var(--z-dark) !important; }
.btn-admin-danger { display: inline-flex; align-items: center; gap: 6px; padding: 0.6rem 1.2rem; background: #e74c3c; color: white !important; font-weight: 600; font-size: 0.88rem; border-radius: var(--z-radius); border: none; cursor: pointer; transition: all 0.2s ease; text-decoration: none !important; }
.btn-admin-danger:hover { background: #c0392b; }

/* ── Alertes ────────────────────────────────────────────────── */
.alert-succes { background: #eafaf1; border: 1px solid #a9dfbf; border-radius: var(--z-radius); color: #1e8449; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.88rem; }
.alert-erreur { background: #fff0f0; border: 1px solid #f5c6c6; border-radius: var(--z-radius); color: #c0392b; padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.88rem; }
.admin-empty { text-align: center; padding: 4rem 2rem; color: var(--z-text-light); }

/* ── Grid produits ──────────────────────────────────────────── */
.admin-grid-container { background: white; border-radius: var(--z-radius-lg); border: 1px solid var(--z-border); overflow: hidden; }
.grid-photo { width: 52px; height: 40px; background: #f0ede6; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.2rem; }
.grid-photo img { width: 100%; height: 100%; object-fit: cover; }
.grid-prix { font-weight: 700; color: var(--z-gold-dark); }
.grid-statut { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.grid-statut-disponible { background: #eafaf1; color: #1e8449; }
.grid-statut-vendu      { background: #e8e8e8; color: #666; }
.grid-statut-reserve    { background: #fff8e1; color: #b7770d; }
.grid-actions { display: flex; gap: 4px; }
.btn-grid-action { width: 30px; height: 30px; border-radius: 4px; border: 1px solid var(--z-border); background: white; cursor: pointer; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; transition: all 0.15s ease; }
.btn-grid-action:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-edit:hover   { background: #e8f4fd; border-color: #3498db; }
.btn-view:hover   { background: #eafaf1; border-color: #2ecc71; }
.btn-delete:hover { background: #fff0f0; border-color: #e74c3c; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-card { background: white; border-radius: var(--z-radius-lg); padding: 2rem; max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
.modal-large { max-width: 560px; }
.modal-card h3 { margin-bottom: 0.75rem; }
.modal-card p  { color: var(--z-text-light); font-size: 0.9rem; margin-bottom: 0.5rem; }
.modal-warning { color: #e74c3c !important; font-weight: 600; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* ── Formulaire produit (2 colonnes) ────────────────────────── */
.admin-form { max-width: 1100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.form-section { background: white; border-radius: var(--z-radius-lg); border: 1px solid var(--z-border); padding: 1.25rem; margin-bottom: 1rem; }
.form-section h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--z-text-light); font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--z-border); }
.form-section-info { background: #fffbf0; border-color: rgba(201,168,76,0.3); }
.form-section-info p { color: var(--z-text-light); font-size: 0.88rem; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }
.form-check-group { display: flex; flex-direction: column; gap: 0.75rem; }
.form-check { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.88rem; color: var(--z-text); }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--z-gold); cursor: pointer; }
.info-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.85rem; }
.info-grid span:nth-child(odd) { color: var(--z-text-light); }
.info-grid span:nth-child(even) { font-weight: 500; }
.form-footer { display: flex; gap: 0.75rem; align-items: center; padding: 1rem 1.25rem; background: white; border-radius: var(--z-radius-lg); border: 1px solid var(--z-border); }

/* ══════════════════════════════════════════════════════════════
   ADMIN — Arbre catégories
   ══════════════════════════════════════════════════════════════ */
.categories-tree { display: flex; flex-direction: column; gap: 0.75rem; }
.cat-tree-item { background: white; border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); overflow: hidden; }
.cat-tree-root { border-left: 3px solid var(--z-gold); }
.cat-tree-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--z-border); }
.cat-tree-row:last-child { border-bottom: none; }
.cat-tree-child { background: var(--z-bg); padding-left: 2.5rem; }
.cat-tree-icon { font-size: 1rem; flex-shrink: 0; }
.cat-tree-nom { font-weight: 600; font-size: 0.9rem; color: var(--z-dark); flex: 1; }
.cat-tree-slug { font-size: 0.78rem; color: var(--z-text-light); font-family: monospace; background: var(--z-bg); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--z-border); }
.cat-tree-count { font-size: 0.78rem; color: var(--z-text-light); white-space: nowrap; }
.cat-tree-actions { display: flex; gap: 4px; flex-shrink: 0; }
.cat-tree-add-sub { padding: 0.5rem 1rem 0.5rem 2.5rem; background: var(--z-bg); border-top: 1px dashed var(--z-border); }
.btn-add-sub { background: none; border: none; color: var(--z-gold-dark); font-size: 0.8rem; cursor: pointer; padding: 0; font-family: var(--z-font); transition: color 0.2s ease; }
.btn-add-sub:hover { color: var(--z-gold); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   ADMIN — Upload photos
   ══════════════════════════════════════════════════════════════ */

.upload-section {
    background: white;
    border-radius: var(--z-radius-lg);
    border: 1px solid var(--z-border);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.upload-section h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--z-text-light);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--z-border);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.photo-item {
    position: relative;
    border-radius: var(--z-radius);
    overflow: hidden;
    border: 2px solid var(--z-border);
    aspect-ratio: 4/3;
    background: #f0ede6;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.photo-item:hover { border-color: var(--z-gold); }
.photo-couverture { border-color: var(--z-gold); box-shadow: 0 0 0 2px var(--z-gold-light); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-item:hover .photo-overlay { opacity: 1; }

.photo-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.photo-btn:hover { transform: scale(1.15); }
.btn-couverture { background: var(--z-gold); color: var(--z-dark); }
.btn-supprimer  { background: #e74c3c; color: white; }

.photo-badge-cover {
    background: var(--z-gold);
    color: var(--z-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.photos-empty {
    color: var(--z-text-light);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.upload-zone {
    border: 2px dashed var(--z-border);
    border-radius: var(--z-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    background: var(--z-bg);
}

.upload-zone:hover { border-color: var(--z-gold); background: rgba(201,168,76,0.05); }
.upload-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.upload-zone p { margin: 0.25rem 0; font-size: 0.88rem; color: var(--z-text); }
.upload-hint { color: var(--z-text-light) !important; font-size: 0.78rem !important; }
.upload-label { cursor: pointer; margin: 0.5rem 0; }
.upload-progress { text-align: center; color: var(--z-text-light); font-size: 0.88rem; padding: 0.5rem; margin-top: 0.5rem; }

/* ══════════════════════════════════════════════════════════════
   PAGE DÉTAIL — Galerie miniatures
   ══════════════════════════════════════════════════════════════ */

.photos-miniatures {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.miniature {
    width: 72px;
    height: 54px;
    border-radius: var(--z-radius);
    border: 2px solid var(--z-border);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #f0ede6;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.miniature:hover { border-color: var(--z-gold); }
.miniature-active { border-color: var(--z-gold); box-shadow: 0 0 0 2px var(--z-gold-light); }
.miniature img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════════════════
   AVERTISSEMENT MODAL — Disclaimer obligatoire
   ══════════════════════════════════════════════════════════════ */

#zamani-disclaimer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#zamani-disclaimer-overlay.visible { display: flex; }

.disclaimer-box {
    background: var(--z-bg-card);
    border: 1px solid rgba(201,168,76,0.5);
    border-radius: var(--z-radius-lg);
    max-width: 640px;
    width: 100%;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
}

.disclaimer-logo { text-align: center; margin-bottom: 1.5rem; }
.disclaimer-logo span { font-size: 2.2rem; color: var(--z-gold); display: block; }
.disclaimer-logo h2 { color: var(--z-gold); font-size: 1.3rem; margin: 0.25rem 0 0; letter-spacing: 1px; }

.disclaimer-body { color: var(--z-text); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.disclaimer-body p { margin-bottom: 0.85rem; }
.disclaimer-body ul { margin: 0.4rem 0 0.85rem 1.2rem; padding: 0; }
.disclaimer-body ul li { margin-bottom: 0.3rem; }

.disclaimer-highlight {
    background: rgba(201,168,76,0.1);
    border-left: 3px solid var(--z-gold);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--z-radius) var(--z-radius) 0;
    font-style: italic;
    margin-bottom: 1rem;
}

.disclaimer-age {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(231,76,60,0.07);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: var(--z-radius);
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #c0392b;
}

.disclaimer-age-icon { font-size: 1.4rem; flex-shrink: 0; }

.disclaimer-actions { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; }

.btn-disclaimer-accept {
    display: block;
    width: 100%;
    padding: 0.85rem 2rem;
    background: var(--z-gold);
    color: var(--z-dark);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--z-radius);
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    font-family: var(--z-font);
}

.btn-disclaimer-accept:hover { background: var(--z-gold-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,168,76,0.4); }
.btn-disclaimer-decline { font-size: 0.82rem; color: var(--z-text-light); text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; font-family: var(--z-font); }
.btn-disclaimer-decline:hover { color: var(--z-text); }
.disclaimer-legal-links { font-size: 0.78rem; color: var(--z-text-light); text-align: center; margin: 0.75rem 0 0; }

/* Sélecteur de langue dans le popup disclaimer */
.disclaimer-lang-selector { display:flex; gap:.5rem; justify-content:center; margin-bottom:1rem; flex-wrap:wrap; }
.dlang-btn { background:rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.12); border-radius:6px; padding:.3rem .75rem; font-size:.8rem; font-weight:600; cursor:pointer; color:var(--z-text); transition:all .2s; font-family:var(--z-font); }
.dlang-btn:hover { background:rgba(201,168,76,.12); border-color:var(--z-gold); }
.dlang-btn.dlang-actif { background:var(--z-gold); color:var(--z-dark); border-color:var(--z-gold); }

/* Boutons liens légaux dans le popup (remplacent les <a> pour éviter la navigation) */
.disclaimer-link-btn { background: none; border: none; padding: 0; font-size: 0.78rem; color: var(--z-text-light); text-decoration: underline; cursor: pointer; font-family: var(--z-font); transition: color 0.15s; }
.disclaimer-link-btn:hover { color: var(--z-gold-dark); }

/* Vue légale dans le popup */
.disclaimer-retour-btn { background: none; border: none; color: var(--z-gold-dark); font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 0 0 0.75rem; font-family: var(--z-font); display: flex; align-items: center; gap: 0.3rem; transition: color 0.15s; }
.disclaimer-retour-btn:hover { color: var(--z-gold); }
.disclaimer-legal-title { font-size: 1.1rem; font-weight: 600; color: var(--z-dark); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--z-gold); }
.disclaimer-legal-content { font-size: 0.85rem; line-height: 1.65; color: var(--z-text); }
.disclaimer-legal-content p { margin-bottom: 0.65rem; }
.disclaimer-legal-content a { color: var(--z-gold-dark); }
.disclaimer-hr { border: none; border-top: 1px solid var(--z-border); margin: 0.75rem 0; }

/* Pied commun — séparé de la vue pour rester visible en bas */
.disclaimer-footer { border-top: 1px solid var(--z-border); margin-top: 1.25rem; padding-top: 1.25rem; }

/* ══════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════════════════════════ */

#zamani-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--z-dark);
    border-top: 1px solid rgba(201,168,76,0.3);
    z-index: 9998;
    padding: 1rem 1.5rem;
}

#zamani-cookie-banner.visible { display: block; }

.cookie-banner-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 280px; }
.cookie-banner-text p { color: rgba(255,255,255,0.85); font-size: 0.84rem; line-height: 1.5; margin: 0; }
.cookie-banner-text a { color: var(--z-gold-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.65rem; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

.btn-cookie-accept { padding: 0.55rem 1.25rem; background: var(--z-gold); color: var(--z-dark); border: none; border-radius: var(--z-radius); font-weight: 600; font-size: 0.84rem; cursor: pointer; white-space: nowrap; font-family: var(--z-font); }
.btn-cookie-accept:hover { background: var(--z-gold-light); }
.btn-cookie-essential { padding: 0.55rem 1.25rem; background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--z-radius); font-size: 0.84rem; cursor: pointer; white-space: nowrap; font-family: var(--z-font); }
.btn-cookie-essential:hover { color: white; border-color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════════════════════════════
   FOOTER PUBLIC
   ══════════════════════════════════════════════════════════════ */

.zamani-footer { margin-top: 4rem; padding: 1.5rem 0 3.5rem; border-top: 1px solid var(--z-border); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--z-text-light); }
.footer-brand { color: var(--z-gold-dark); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-links a { color: var(--z-text-light); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--z-gold-dark); }

/* ══════════════════════════════════════════════════════════════
   PAGES LÉGALES
   ══════════════════════════════════════════════════════════════ */

.legal-page { max-width: 820px; padding-bottom: 3rem; }
.legal-page h1 { font-size: 1.7rem; color: var(--z-dark); padding-bottom: 0.5rem; border-bottom: 2px solid var(--z-gold); margin-bottom: 0.5rem; display: inline-block; }
.legal-page .legal-updated { color: var(--z-text-light); font-size: 0.82rem; margin-bottom: 2rem; display: block; }
.legal-page h2 { font-size: 1.05rem; color: var(--z-dark); margin-top: 2rem; margin-bottom: 0.6rem; padding-left: 0.75rem; border-left: 3px solid var(--z-gold); }
.legal-page p, .legal-page li { font-size: 0.9rem; line-height: 1.75; color: var(--z-text); }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page ul li, .legal-page ol li { margin-bottom: 0.35rem; }
.legal-page a { color: var(--z-gold-dark); }
.legal-warning { background: rgba(231,76,60,0.06); border: 1px solid rgba(231,76,60,0.25); border-radius: var(--z-radius); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.88rem; }
.legal-info { background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.3); border-radius: var(--z-radius); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.88rem; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin: 1rem 0 1.5rem; }
.legal-page th { background: var(--z-dark); color: var(--z-gold); padding: 0.55rem 0.85rem; text-align: left; font-size: 0.82rem; }
.legal-page td { padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--z-border); vertical-align: top; }
.legal-page tr:nth-child(even) td { background: var(--z-bg); }

/* ══════════════════════════════════════════════════════════════
   ARCHIVE — Produits vendus
   ══════════════════════════════════════════════════════════════ */

/* Carte produit vendu dans la grille archive */
.produit-card-vendu { opacity: 0.85; }
.produit-card-vendu:hover { opacity: 1; }

/* Badge "Vendu" sur les miniatures de la liste archive */
.badge-vendu-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.72);
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0.4rem 1.2rem;
    border-radius: var(--z-radius);
    border: 2px solid rgba(255,255,255,0.3);
    z-index: 2;
    pointer-events: none;
}

/* Prix barré dans l'archive */
.archive-prix { color: var(--z-text-light) !important; text-decoration: line-through; font-size: 1.3rem !important; }

/* Compteur total */
.archive-total { color: var(--z-text-light); font-size: 0.88rem; margin-bottom: 1.25rem; }

/* Bandeau informatif en haut de la page détail archive */
.archive-bandeau {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: var(--z-radius);
    padding: 0.65rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--z-text);
}

/* Label VENDU sur la photo principale */
.archive-sold-overlay-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: var(--z-radius);
    z-index: 2;
}

/* Pagination archive */
.archive-pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 0.6rem; border: 1px solid var(--z-border); border-radius: var(--z-radius); font-size: 0.85rem; color: var(--z-text) !important; text-decoration: none !important; transition: all 0.15s ease; background: var(--z-bg-card); }
.page-btn:hover { border-color: var(--z-gold); color: var(--z-gold-dark) !important; }
.page-btn-active { background: var(--z-gold); color: var(--z-dark) !important; border-color: var(--z-gold); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   PAGE CONTACT
   ══════════════════════════════════════════════════════════════ */

.contact-page { max-width: 1000px; padding-bottom: 3rem; }

.contact-header { margin-bottom: 2.5rem; }
.contact-header h1 { font-size: 1.7rem; color: var(--z-dark); padding-bottom: 0.5rem; border-bottom: 2px solid var(--z-gold); margin-bottom: 0.75rem; display: inline-block; }
.contact-intro { color: var(--z-text-light); font-size: 0.95rem; line-height: 1.6; max-width: 600px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

/* Cartes coordonnées */
.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-card { display: flex; align-items: flex-start; gap: 1rem; background: var(--z-bg-card); border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); padding: 1.2rem 1.25rem; box-shadow: var(--z-shadow); }
.contact-card-icon { font-size: 1.5rem; flex-shrink: 0; width: 2rem; text-align: center; margin-top: 0.1rem; }
.contact-card-content h2 { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--z-text-light); margin-bottom: 0.35rem; }

.contact-tel-link { font-size: 1.25rem; font-weight: 700; color: var(--z-gold-dark) !important; text-decoration: none !important; display: block; }
.contact-tel-link:hover { color: var(--z-gold) !important; }
.contact-email-link { font-size: 0.95rem; font-weight: 600; color: var(--z-gold-dark) !important; text-decoration: none !important; display: block; }
.contact-email-link:hover { color: var(--z-gold) !important; }
.contact-hint { font-size: 0.8rem; color: var(--z-text-light); margin-top: 0.3rem; }
.contact-card p { font-size: 0.9rem; color: var(--z-text); margin: 0; }

.contact-reassurance { background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.25); border-radius: var(--z-radius); padding: 0.9rem 1rem; font-size: 0.82rem; color: var(--z-text-light); line-height: 1.55; }
.contact-reassurance a { color: var(--z-gold-dark); }

/* Formulaire */
.contact-form-section { background: var(--z-bg-card); border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); padding: 1.75rem; box-shadow: var(--z-shadow); }
.contact-form-title { font-size: 1.1rem; font-weight: 600; color: var(--z-dark); margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--z-border); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-field { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-field label { font-size: 0.82rem; font-weight: 600; color: var(--z-text); }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 520px) { .contact-field-row { grid-template-columns: 1fr; } }

.contact-input { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--z-border); border-radius: var(--z-radius); font-size: 0.9rem; font-family: var(--z-font); color: var(--z-text); background: var(--z-bg); transition: border-color 0.2s ease; box-sizing: border-box; }
.contact-input:focus { outline: none; border-color: var(--z-gold); background: white; box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.contact-select { cursor: pointer; }
.contact-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.contact-error { background: #fff0f0; border: 1px solid #f5c6c6; border-radius: var(--z-radius); color: #c0392b; padding: 0.65rem 1rem; font-size: 0.88rem; }

.btn-contact-send { width: 100%; padding: 0.85rem; background: var(--z-gold); color: var(--z-dark); font-weight: 700; font-size: 0.95rem; border: none; border-radius: var(--z-radius); cursor: pointer; transition: all 0.2s ease; font-family: var(--z-font); }
.btn-contact-send:hover { background: var(--z-gold-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,168,76,0.35); }

.contact-form-hint { font-size: 0.78rem; color: var(--z-text-light); text-align: center; margin: 0; }

/* Message de succès */
.contact-success { text-align: center; padding: 2rem 1rem; }
.contact-success-icon { width: 56px; height: 56px; background: #eafaf1; border: 2px solid #a9dfbf; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #1e8449; margin: 0 auto 1rem; }
.contact-success h2 { font-size: 1.1rem; color: var(--z-dark); margin-bottom: 0.75rem; }
.contact-success p { font-size: 0.9rem; color: var(--z-text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.btn-nouveau-message { background: none; border: 1px solid var(--z-border); border-radius: var(--z-radius); padding: 0.6rem 1.25rem; font-size: 0.88rem; color: var(--z-text); cursor: pointer; transition: all 0.2s ease; font-family: var(--z-font); }
.btn-nouveau-message:hover { border-color: var(--z-gold); color: var(--z-gold-dark); }

/* ══════════════════════════════════════════════════════════════
   SÉLECTEUR DE LANGUE
   ══════════════════════════════════════════════════════════════ */

.langue-selector { display: flex; gap: 4px; padding: 0.5rem 0.75rem 0.25rem; justify-content: center; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.25rem; }
.langue-btn { display: flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.5); text-decoration: none; transition: all 0.15s ease; white-space: nowrap; }
.langue-btn:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); }
.langue-actif { color: var(--z-gold) !important; background: rgba(201,168,76,0.12) !important; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   BARRE DE RECHERCHE
   ══════════════════════════════════════════════════════════════ */

.recherche-bar { display: flex; gap: 0; align-items: stretch; }
.recherche-input { flex: 1; padding: 0.55rem 0.85rem; border: 1px solid var(--z-border); border-right: none; border-radius: var(--z-radius) 0 0 var(--z-radius); font-size: 0.9rem; font-family: var(--z-font); color: var(--z-text); background: var(--z-bg); transition: border-color 0.2s; min-width: 0; }
.recherche-input:focus { outline: none; border-color: var(--z-gold); background: white; }
.recherche-btn { padding: 0.55rem 0.9rem; background: var(--z-gold); color: var(--z-dark); border: none; border-radius: 0 var(--z-radius) var(--z-radius) 0; cursor: pointer; font-size: 1rem; transition: background 0.2s ease; flex-shrink: 0; }
.recherche-btn:hover { background: var(--z-gold-light); }

/* Barre dans le NavMenu (sidebar) */
.recherche-nav { margin: 0.5rem 0.75rem 0.75rem; }
.recherche-nav .recherche-input { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); font-size: 0.82rem; padding: 0.45rem 0.7rem; }
.recherche-nav .recherche-input::placeholder { color: rgba(255,255,255,0.35); }
.recherche-nav .recherche-input:focus { background: rgba(255,255,255,0.12); border-color: var(--z-gold); }
.recherche-nav .recherche-btn { padding: 0.45rem 0.7rem; font-size: 0.85rem; }

/* Version pleine page */
.recherche-bar-page .recherche-input { padding: 0.7rem 1rem; font-size: 0.95rem; }
.recherche-bar-page .recherche-btn { padding: 0.7rem 1.1rem; font-size: 1.05rem; }

/* Page sans résultat */
.recherche-aucun-resultat { background: var(--z-bg-card); border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); padding: 1.75rem; max-width: 480px; }
.recherche-aucun-resultat p { font-size: 0.92rem; margin-bottom: 0.75rem; }
.recherche-aucun-resultat ul { padding-left: 1.2rem; }
.recherche-aucun-resultat li { font-size: 0.88rem; color: var(--z-text-light); margin-bottom: 0.3rem; }

/* Page traductions admin */
.traductions-table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); }
.traductions-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.traductions-table th { background: var(--z-bg-header); color: var(--z-text-light); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.6rem 0.75rem; text-align: left; border-bottom: 2px solid var(--z-border); white-space: nowrap; }
.traductions-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--z-border); vertical-align: top; }
.traductions-table tr:last-child td { border-bottom: none; }
.traductions-table tr:hover td { background: var(--z-bg); }
.trad-row-modifie td { background: #fffbec !important; }
.trad-cle { font-family: monospace; font-size: 0.78rem; color: var(--z-gold-dark); display: block; }
.trad-desc { display: block; font-size: 0.72rem; color: var(--z-text-light); margin-top: 2px; }
.trad-input { width: 100%; font-size: 0.82rem; font-family: var(--z-font); border: 1px solid var(--z-border); border-radius: 4px; padding: 4px 6px; resize: vertical; min-height: 36px; transition: border-color 0.15s; }
.trad-input:focus { outline: none; border-color: var(--z-gold); }
.traductions-footer { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--z-border); }
.trad-modifie-hint { font-size: 0.82rem; color: #b45309; }

/* Badge traduction manquante — public + admin */
.badge-trad-manquante { display: inline-flex; align-items: center; gap: 3px; font-size: 0.68rem; font-weight: 500; padding: 2px 6px; border-radius: 10px; background: #e8f2ec; border: 1px solid #93bfa4; color: #1e4a30; margin-left: 5px; vertical-align: middle; cursor: help; white-space: nowrap; letter-spacing: 0.01em; }
.badge-trad-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#f59e0b; border:1.5px solid #d97706; margin-left:4px; vertical-align:middle; flex-shrink:0; cursor:help; }
/* Variante admin — champ de formulaire avec traduction manquante */
.form-control-trad-manquante { border-color: #f59e0b !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23f59e0b'/%3E%3Ctext x='6' y='9' text-anchor='middle' font-size='8' fill='white'%3E!%3C/text%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px; }
.trad-label-hint { font-size: 0.72rem; color: #b45309; margin-left: 4px; }

/* Input avec bouton d'action inline (ex: select catégorie + bouton créer) */
.input-with-action { display: flex; gap: 0.5rem; align-items: stretch; }
.input-with-action .form-select { flex: 1; }
.btn-inline-add { flex-shrink: 0; padding: 0 0.75rem; background: var(--z-gold); border: none; border-radius: var(--z-radius); color: var(--z-dark); font-size: 1rem; cursor: pointer; transition: background 0.15s; }
.btn-inline-add:hover { background: var(--z-gold-light); }

/* Zone de maintenance dev */
.admin-dev-zone { margin-top: 2rem; padding: 1.25rem 1.5rem; border: 2px dashed #f87171; border-radius: var(--z-radius-lg); background: #fff5f5; }
.admin-dev-zone h2 { font-size: 0.95rem; color: #b91c1c; margin-bottom: 1rem; }
.dev-confirm-reset { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.dev-confirm-reset p { font-size: 0.88rem; color: #7f1d1d; margin: 0 0 0.5rem; flex: 1 0 100%; }

/* Section IA Gemini */
.form-section-ia { background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 100%); border-color: rgba(34,197,94,0.3); }
.form-section-ia h2 { color: #15803d; border-bottom-color: rgba(34,197,94,0.2); }
.btn-ia { display: inline-flex; align-items: center; gap: 5px; padding: 0.6rem 1rem; background: white; border: 1px solid #d1d5db; border-radius: var(--z-radius); font-size: 0.85rem; cursor: pointer; transition: all 0.15s; font-family: var(--z-font); white-space: nowrap; }
.btn-ia:hover { border-color: #6b7280; background: #f9fafb; }
.btn-ia:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ia-primary { background: #15803d; color: white !important; border-color: #15803d; font-weight: 600; }
.btn-ia-primary:hover { background: #166534; border-color: #166534; }
/* Toast notifications — préfixe z- pour éviter conflit Bootstrap .toast */
#z-toast-container { position:fixed; bottom:1.5rem; right:1.5rem; display:flex; flex-direction:column; gap:0.5rem; z-index:9000; pointer-events:none; }
.z-toast { display:flex !important; align-items:center; gap:0.6rem; padding:0.75rem 1.1rem; border-radius:var(--z-radius); min-width:260px; max-width:380px; font-size:0.88rem; font-weight:500; box-shadow:0 4px 20px rgba(0,0,0,0.15); animation:z-toast-in 0.25s ease; }
@keyframes z-toast-in { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
.z-toast-succes { background:#f0fdf4; border:1px solid #86efac; color:#15803d; }
.z-toast-erreur { background:#fef2f2; border:1px solid #fca5a5; color:#dc2626; }
.z-toast-info   { background:#eff6ff; border:1px solid #93c5fd; color:#1d4ed8; }
.z-toast .z-toast-icon { font-size:1rem; font-weight:700; flex-shrink:0; }
/* Badge Lot */
/* Card link pattern — toute la carte est cliquable via ::after sur le titre */
.produit-card { position:relative; }
.produit-card-cliquable { cursor:pointer; }
.card-main-link { color:inherit; text-decoration:none; }
.card-main-link::after { content:""; position:absolute; inset:0; z-index:0; }
.card-modal-link { cursor:pointer; }
.card-modal-link::after { content:""; position:absolute; inset:0; z-index:0; }
.badge-lot-inline { position:relative; z-index:1; display:inline-flex; align-items:flex-start; gap:4px; font-size:0.72rem; font-weight:500; color:#7c3aed; background:#f5f3ff; border:0.5px solid #c4b5fd; border-radius:8px; padding:4px 10px; margin:4px 0 6px; text-decoration:none; white-space:normal; line-height:1.4; }
.badge-lot-inline:hover { background:#ede9fe; }
/* ancien badge-lot conservé pour compatibilité */
.badge-lot { display:inline-flex; align-items:center; gap:4px; font-size:0.72rem; font-weight:500; color:#7c3aed; background:#f5f3ff; border:0.5px solid #c4b5fd; border-radius:99px; padding:2px 8px; margin-top:4px; text-decoration:none; white-space:normal; }
.badge-lot:hover { background:#ede9fe; }
.badge-reserve-overlay { position:absolute; top:8px; right:8px; font-size:0.72rem; font-weight:600; color:#92400e; background:#fef3c7; border:0.5px solid #f59e0b; border-radius:99px; padding:2px 8px; }
.badge-lot-card { position:absolute; top:8px; left:8px; font-size:0.72rem; font-weight:500; color:#7c3aed; background:#f5f3ff; border:0.5px solid #c4b5fd; border-radius:99px; padding:2px 8px; }
.badge-lot-header { display:inline-block; font-size:0.8rem; font-weight:500; color:#7c3aed; background:#f5f3ff; border:0.5px solid #c4b5fd; border-radius:99px; padding:3px 12px; margin-bottom:0.5rem; }
.lot-header { display:flex; justify-content:space-between; align-items:flex-start; gap:2rem; margin-bottom:1.5rem; }
.lot-count { font-size:0.85rem; color:var(--z-text-light); margin-top:0.25rem; }
.lot-description { background:var(--z-bg-secondary, #f8f6f0); border-radius:var(--z-radius); padding:1rem 1.25rem; margin-bottom:1.5rem; }
.lot-produits h2 { font-size:1.1rem; margin-bottom:1rem; }
/* Modale produit dans lot */
.modal-produit-detail { background:white; border-radius:var(--z-radius-lg, 12px); padding:1.5rem; max-width:860px; width:95vw; max-height:90vh; overflow-y:auto; position:relative; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.modal-close { position:absolute; top:0.75rem; right:0.75rem; background:none; border:none; font-size:1.2rem; cursor:pointer; color:var(--z-text-light); padding:4px 8px; border-radius:4px; }
.modal-close:hover { background:var(--z-bg-secondary, #f5f5f0); }
.modal-produit-layout { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.modal-galerie { display:flex; flex-direction:column; }
.modal-photo-principale { width:100%; border-radius:var(--z-radius, 8px); object-fit:contain; max-height:320px; background:var(--z-bg-secondary, #f8f6f0); }
.modal-produit-info { display:flex; flex-direction:column; }
@media (max-width:640px) { .modal-produit-layout { grid-template-columns:1fr; } }
/* Navigation sections catalogue */
.catalogue-nav-sections { display:flex; align-items:center; gap:0.6rem; flex-wrap:wrap; margin-bottom:1.5rem; padding:0.75rem 1rem; background:var(--z-bg-secondary,#f8f6f0); border-radius:var(--z-radius); }
.catalogue-nav-pill { display:inline-flex; align-items:center; gap:5px; font-size:0.82rem; font-weight:500; color:var(--z-text); background:white; border:0.5px solid var(--z-border); border-radius:99px; padding:4px 12px; text-decoration:none; transition:border-color 0.15s; }
.catalogue-nav-pill:hover { border-color:var(--z-gold); color:var(--z-gold-dark); }
.catalogue-nav-pill-lot { color:#7c3aed; border-color:#c4b5fd; background:#f5f3ff; }
.catalogue-nav-pill-lot:hover { background:#ede9fe; color:#7c3aed; }
.catalogue-nav-count { font-weight:400; color:var(--z-text-light); }
.catalogue-section-header { display:flex; align-items:center; gap:0.6rem; margin-bottom:1rem; }
.catalogue-section-titre { font-size:0.78rem; font-weight:600; color:var(--z-text-light); text-transform:uppercase; letter-spacing:0.06em; white-space:nowrap; }
.catalogue-section-ligne { flex:1; height:0.5px; background:var(--z-border); }
.catalogue-section-ancre { font-size:0.75rem; color:var(--z-text-light); text-decoration:none; white-space:nowrap; background:none; border:none; cursor:pointer; padding:0; font-family:inherit; }
.catalogue-section-ancre:hover { color:var(--z-gold-dark); }
.catalogue-nav-pill { cursor:pointer; font-family:inherit; display:inline-flex; align-items:center; gap:5px; }
.catalogue-nav-label { font-size:0.8rem; color:var(--z-text-light); }
.section-icon { font-size:1rem; color:var(--z-text-light); }
/* Spinner Gemini */
@keyframes gemini-spin { to { transform: rotate(360deg); } }
.gemini-spinner { width: 36px; height: 36px; border: 3px solid rgba(21,128,61,0.2); border-top-color: #15803d; border-radius: 50%; animation: gemini-spin 0.8s linear infinite; }

/* Hints formulaire admin */
.form-label-hint { font-size: 0.75rem; color: var(--z-gold-dark); font-weight: 400; margin-left: 0.5rem; }
.form-hint { display: block; font-size: 0.78rem; color: var(--z-text-light); margin-top: 0.35rem; line-height: 1.45; }

/* ══════════════════════════════════════════════════════════════
   THÈME ADMIN — Olive & Sable
   Surcharge scopée à .admin-layout uniquement.
   Le site vitrine public conserve le Vert Militaire (#1a3828).
   Palette source : Army Khaki — thème #3 (Obsidian : 10-Themes-Couleurs)
══════════════════════════════════════════════════════════════ */

.admin-layout {
    --z-gold:            #767442;  /* olive foncé */
    --z-gold-dark:       #767442;
    --z-gold-light:      #a9a56c;
    --z-sidebar-bg:      #dddcc0;  /* sable clair */
    --z-military:        #dddcc0;
    --z-military-dark:   #d3d1aa;
    --z-military-light:  #e6e5ca;
}

/* Sidebar : override explicite car .admin-sidebar utilise var(--z-dark), pas var(--z-sidebar-bg) */
.admin-layout .admin-sidebar {
    background-color: var(--z-sidebar-bg) !important;
    border-right-color: rgba(189,185,136,0.2);
}

/* Sable Clair : sidebar très claire — le texte blanc devient sombre */
.admin-layout .admin-brand { color: #3d3b22 !important; border-bottom-color: rgba(118,116,66,0.2); }
.admin-layout .admin-nav-section { color: rgba(61,59,34,0.45) !important; }
.admin-layout .admin-nav-link { color: rgba(61,59,34,0.7) !important; }
.admin-layout .admin-nav-link:hover  { color: #3d3b22 !important; background: rgba(118,116,66,0.1); }
.admin-layout .admin-nav-link.active { color: #3d3b22 !important; background: rgba(118,116,66,0.18); border-left-color: var(--z-gold); }
.admin-layout .admin-sidebar-footer a { color: rgba(61,59,34,0.45) !important; }
.admin-layout .admin-sidebar-footer a:hover { color: #3d3b22 !important; }

/* Boutons : blanc cassé à teinte olive sur fond vert olive */
.admin-layout .btn-admin-primary        { color: #e8ead8 !important; }
.admin-layout .btn-admin-primary:hover  { color: #e8ead8 !important; }
.admin-layout .btn-inline-add           { color: #e8ead8 !important; }
.admin-layout .btn-login                { color: #e8ead8 !important; }

/* Panel Gemini — palette Sable Clair / Olive */
.admin-layout .form-section-ia { background: linear-gradient(135deg, #f5f3e6 0%, #eeecda 100%); border-color: rgba(118,116,66,0.25); }
.admin-layout .form-section-ia h2 { color: #5a5730; border-bottom-color: rgba(118,116,66,0.2); }
.admin-layout .btn-ia-primary { background: #767442; border-color: #767442; color: #e8ead8 !important; }
.admin-layout .btn-ia-primary:hover { background: #5a5730; border-color: #5a5730; }
.admin-layout .gemini-spinner { border-color: rgba(90,87,48,0.2); border-top-color: #767442; }
