﻿/* ===================================================================
   style.css â€” KeurMame Node0 Premium Design System
   NettoyÃ© des overrides Tailwind !important, enrichi des composants
   =================================================================== */

:root {
    --color-primary: #063d33;
    --color-secondary: #c9942f;
    --color-accent: #0f766e;
    --background-color: #f8f4ea;
    --text-color: #1f2933;
    --button-radius: 14px;
    --mn-night: #042f2a;
    --mn-emerald: #063d33;
    --mn-emerald-2: #0f766e;
    --mn-gold: #c9942f;
    --mn-gold-soft: #f5e5bd;
    --mn-ivory: #fbf7ee;
    --mn-warm: #f8f4ea;
    --mn-graphite: #1f2933;
    --mn-muted: #647067;
    --mn-border: #d8e5dd;
    --mn-shadow: 0 20px 60px rgba(4, 47, 42, 0.12);
    --friendly-primary: var(--mn-emerald);
    --friendly-primary-dark: var(--mn-night);
    --friendly-secondary: var(--mn-gold);
    --friendly-accent: var(--mn-emerald-2);
    --friendly-soft: #edf8f3;
    --friendly-warm: #fff7e8;
    --friendly-border: var(--mn-border);
    --gradient: linear-gradient(135deg, #042f2a 0%, #063d33 48%, #0f766e 78%, #c9942f 135%);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--mn-warm);
    color: var(--text-color);
}

.bg-brand-gradient {
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 148, 47, 0.28), transparent 28%),
        linear-gradient(135deg, rgba(4, 47, 42, 0.98) 0%, rgba(6, 61, 51, 0.96) 52%, rgba(15, 118, 110, 0.94) 82%, rgba(201, 148, 47, 0.9) 138%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--friendly-primary) 0%, var(--friendly-accent) 100%);
    border-radius: var(--button-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--friendly-primary-dark) 0%, #15803d 100%);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.2);
    transform: translateY(-1px);
}

/* === Couleurs Tailwind propres â€” plus de !important, on utilise les CSS vars === */
a, .nav-link:hover { color: var(--friendly-primary); }

/* Filtres */
.filter-btn, .mn-filter-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid transparent;
    transition: all 0.25s;
    cursor: pointer;
}
.filter-btn:hover, .mn-filter-btn:hover {
    background: var(--friendly-soft);
    color: var(--friendly-primary);
    border-color: var(--friendly-border);
}
.filter-btn.active, .mn-filter-btn.active {
    background: linear-gradient(135deg, var(--friendly-primary) 0%, var(--friendly-accent) 100%);
    color: #ffffff;
    border-color: transparent;
}

.product-card, .project-card {
    transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover, .project-card:hover, a.bg-white:hover,
.mn-product-card:hover, .mn-gallery-item:hover, .mn-project-card:hover {
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
}

/* Hero legacy (version prÃ©cÃ©dente) */
.hero-section { min-height: calc(100vh - 4rem); background: #f7fbf8; }
.hero-section .hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 96px);
    opacity: 0.45;
}
.hero-section h1 { letter-spacing: 0; }
.hero-section .bg-white\/15 { background: rgba(255,255,255,0.18); }

.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--friendly-primary) 0%, var(--friendly-accent) 100%);
    color: white; border: none; padding: 8px 16px; border-radius: 10px;
    cursor: pointer; font-weight: 600; font-family: 'Poppins', sans-serif;
    font-size: 13px; margin-right: 8px; transition: opacity 0.2s;
}
input[type="file"]::file-selector-button:hover { opacity: 0.9; }
label:has(> input[type="checkbox"].sr-only:checked) > div:first-of-type { background: var(--friendly-primary); }
input[type="checkbox"].sr-only:checked + div + div { transform: translateX(20px); }

.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }

#sidebar a.active { background: rgba(255,255,255,0.22); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease-out; }

@media (max-width: 768px) {
    #sidebar { display: none; }
    #sidebar.open { display: flex; position: fixed; z-index: 50; width: 260px; height: 100vh; top: 0; left: 0; }
}

.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.share-btn { display:inline-flex; align-items:center; gap:6px; padding:9px 16px; border-radius:10px; font-size:13px; font-weight:600; color:#fff; text-decoration:none; border:none; cursor:pointer; transition:opacity .2s,transform .15s; }
.share-btn:hover { opacity:.88; transform:translateY(-1px); }
.share-fb { background:#1877F2; }
.share-wa { background:#25D366; }
.share-ig { background:linear-gradient(135deg,#f09433,#dc2743,#bc1888); }
.share-copy { background:#374151; }
.share-feedback { width:100%; font-size:12px; color:#22c55e; }
.share-feedback.hidden { display:none; }

.mn-empty-state { background: #f9fafb; border-radius: 20px; border: 1px dashed #d1d5db; }

/* Agent quick replies */
.agent-quick-replies { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.agent-quick { display:inline-flex; align-items:center; gap:4px; padding:6px 12px; border:1px solid #e5e7eb; border-radius:999px; font-size:0.75rem; font-weight:500; color:#374151; background:#fff; cursor:pointer; transition:background 0.15s, border-color 0.15s, color 0.15s; white-space:nowrap; }
.agent-quick:hover { background:#f3f4f6; border-color:#d1d5db; }
.agent-quick:active { background:#e5e7eb; }

/* Agent drop zone */
.agent-drop-zone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:8px 12px; border:1px dashed #d1d5db; border-radius:10px; cursor:pointer; background:#f9fafb; transition:background 0.15s,border-color 0.15s; font-size:0.6875rem; color:#6b7280; text-align:center; min-width:70px; }
.agent-drop-zone:hover { background:#eef2ff; border-color:#6366f1; }
.agent-drop-zone span { font-weight:600; color:#374151; font-size:0.75rem; }
.agent-drop-zone small { display:block; font-size:0.625rem; color:#9ca3af; }

/* Agent input */
.agent-input { flex:1; resize:none; padding:10px 14px; border:1px solid #d1d5db; border-radius:12px; font-size:0.875rem; outline:none; transition:border-color 0.15s,box-shadow 0.15s; min-height:42px; max-height:120px; font-family:inherit; }
.agent-input:focus { border-color:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,0.1); }

/* Agent send button */
.agent-send-btn { display:flex; align-items:center; gap:6px; padding:10px 20px; background:linear-gradient(135deg,#4f46e5,#6366f1); color:#fff; border:none; border-radius:12px; font-size:0.8125rem; font-weight:600; cursor:pointer; transition:box-shadow 0.15s,transform 0.15s; white-space:nowrap; }
.agent-send-btn:hover { box-shadow:0 4px 12px rgba(99,102,241,0.3); transform:translateY(-1px); }
.agent-send-btn span { display:none; }
@media (min-width:640px) { .agent-send-btn span { display:inline; } }

/* ===================================================================
   PREMIUM SECTION COMPONENTS â€” mn-* namespace
   Design system complet pour les sections refondues
   =================================================================== */

/* --- Animations scroll-reveal --- */
[data-mn-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-mn-reveal].mn-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero premium --- */
.mn-hero .mn-hero-cta-primary {
    box-shadow: 0 8px 32px rgba(6, 61, 51, 0.25);
}
.mn-hero .mn-hero-cta-secondary {
    backdrop-filter: blur(8px);
}

/* --- Template-specific heroes (boutique, mode, agro, agence) --- */
.mn-hero-template {
    position: relative;
}
.mn-hero-template .font-display {
    letter-spacing: -0.02em;
}
.mn-hero-template .inline-flex.items-center.gap-2.rounded-full {
    backdrop-filter: blur(12px);
}
.mn-hero-template a.rounded-full {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mn-hero-template a.rounded-full:hover {
    transform: translateY(-2px);
}
.mn-hero-template a.rounded-2xl {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mn-hero-template a.rounded-2xl:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.template-hero-mode .tabular-nums,
.template-hero-boutique .tabular-nums,
.template-hero-agro .tabular-nums,
.template-hero-agence .tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* --- Sections gÃ©nÃ©rales --- */
.mn-section {
    position: relative;
}

/* --- Kicker (label au-dessus du titre) --- */
.mn-kicker {
    letter-spacing: 0.2em;
    position: relative;
    display: inline-block;
}
.mn-kicker::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    margin: 8px auto 0;
    border-radius: 1px;
    opacity: 0.4;
}

/* --- Cartes testimonial --- */
.mn-testimonial-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}
.mn-testimonial-card:hover {
    border-color: var(--mn-border);
}

/* --- FAQ accordÃ©on --- */
.mn-faq-item {
    transition: border-color 0.3s;
}
.mn-faq-answer {
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mn-faq-answer.mn-faq-open {
    max-height: 600px;
}

/* --- Gallery / Product cards --- */
.mn-gallery-item {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.mn-gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Product card --- */
.mn-product-card .mn-price {
    font-feature-settings: "tnum";
}

/* --- Service card --- */
.mn-service-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

/* --- Service card Electro --- */
.mn-service-card-electro {
    transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.mn-service-card-electro:hover { transform: translateY(-2px); }

/* --- Team card --- */
.mn-team-card .rounded-full {
    transition: transform 0.4s ease;
}

/* --- Project card --- */
.mn-project-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.mn-project-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Stat section --- */
.mn-stat-item {
    transition: transform 0.3s ease;
}
.mn-stat-item:hover {
    transform: translateY(-2px);
}

/* --- Article card blog --- */
.mn-article-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.mn-article-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Booking section --- */
.mn-section-booking .btn-primary {
    font-size: 1.05rem;
}

/* --- Lightbox gallery --- */
#gallery-lightbox {
    transition: opacity 0.3s ease;
}
#gallery-lightbox.hidden {
    display: none;
}
#gallery-lightbox.flex {
    display: flex;
}
#lightbox-img {
    transition: opacity 0.4s ease;
}

/* --- mn-chip (petit badge) --- */
.mn-chip {
    transition: background 0.3s, color 0.3s;
}

/* ===================================================================
   RESPONSIVE ADJUSTMENTS â€” Premium sections
   =================================================================== */
@media (max-width: 640px) {
    .mn-hero h1 { font-size: 2.5rem; }
    .mn-hero p { font-size: 1rem; }
    .mn-section-head h2 { font-size: 2rem; }
    .mn-stat-item .text-5xl { font-size: 2.5rem; }
    .mn-stat-item.border-x { border: none; }
}

/* --- Transition universelle douce pour TOUS les Ã©lÃ©ments interactifs --- */
/* ===================================================================
   AGENT IA â€” Interface admin complÃ¨te
   =================================================================== */
.agent-screen { height:calc(100dvh - 128px); min-height:620px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.agent-topbar { flex-shrink:0; }
.agent-topbar-main { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px; }
.agent-title-block h1 { font-size:1.5rem; font-weight:800; color:#111827; }
.agent-title-block p { font-size:0.875rem; color:#6b7280; margin-top:2px; }
.agent-top-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.agent-top-action { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border:1px solid #e5e7eb; border-radius:12px; font-size:0.875rem; font-weight:600; color:#374151; background:#fff; transition:background 0.2s,border-color 0.2s; }
.agent-top-action:hover { background:#f9fafb; border-color:#d1d5db; }
.agent-top-action-danger { color:#dc2626; border-color:#fecaca; }
.agent-top-action-danger:hover { background:#fef2f2; }
.agent-status-strip { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:8px; }
.agent-status-strip span { font-size:0.75rem; }
.agent-layout { display:grid; grid-template-columns:280px 1fr; flex:1; overflow:hidden; }
@media (max-width:768px) { .agent-layout { grid-template-columns:1fr; } }
.agent-sidebar { display:flex; flex-direction:column; overflow:hidden; }
.agent-sidebar-head { padding:16px; border-bottom:1px solid #f3f4f6; flex-shrink:0; }
.agent-sidebar-head h2 { font-size:0.875rem; font-weight:700; color:#111827; }
.agent-sidebar-head p { font-size:0.75rem; color:#9ca3af; margin-top:2px; }
.agent-conversations-list { flex:1; overflow-y:auto; padding:8px; }
.agent-conversation-item { display:flex; align-items:center; gap:4px; padding:8px 10px; border-radius:10px; cursor:pointer; transition:background 0.15s; }
.agent-conversation-item:hover { background:#f3f4f6; }
.agent-conversation-item.active { background:#eef2ff; }
.agent-conversation-open { flex:1; text-align:left; background:none; border:none; cursor:pointer; min-width:0; }
.agent-conversation-open strong { display:block; font-size:0.8125rem; font-weight:600; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.agent-conversation-open span { display:block; font-size:0.6875rem; color:#9ca3af; margin-top:1px; }
.agent-conversation-actions { display:flex; gap:2px; flex-shrink:0; opacity:0; transition:opacity 0.15s; }
.agent-conversation-item:hover .agent-conversation-actions { opacity:1; }
.agent-conversation-actions button { width:26px; height:26px; display:flex; align-items:center; justify-content:center; border:none; border-radius:6px; background:transparent; color:#9ca3af; cursor:pointer; font-size:0.65rem; transition:background 0.15s,color 0.15s; }
.agent-conversation-actions button:hover { background:#e5e7eb; color:#374151; }
.agent-chat { display:flex; flex-direction:column; overflow:hidden; }
.agent-chat-wrapper { display:flex; flex-direction:column; height:100%; }
.agent-messages { flex:1; overflow-y:auto; padding:16px; }
.agent-bubble { max-width:85%; margin-bottom:10px; padding:12px 16px; border-radius:16px; font-size:0.875rem; line-height:1.6; }
.agent-message-agent { display:flex; justify-content:flex-start; }
.agent-bubble-agent { background:#f3f4f6; color:#1f2937; border-bottom-left-radius:4px; }
.agent-message-user { display:flex; justify-content:flex-end; }
.agent-bubble-user { background:linear-gradient(135deg,#4f46e5,#6366f1); color:#fff; border-bottom-right-radius:4px; }
.agent-bubble-error { border:1px solid #fecaca; background:#fef2f2; color:#991b1b; }
.agent-input-area { flex-shrink:0; padding:12px 16px; border-top:1px solid #e5e7eb; }
.agent-quick-replies { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.agent-composer-row { display:flex; align-items:flex-end; gap:8px; }
.agent-drop-zone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:8px 12px; border:1px dashed #d1d5db; border-radius:10px; cursor:pointer; background:#f9fafb; transition:background 0.15s,border-color 0.15s; font-size:0.6875rem; color:#6b7280; text-align:center; min-width:70px; }
.agent-drop-zone:hover { background:#eef2ff; border-color:#6366f1; }
.agent-drop-zone span { font-weight:600; color:#374151; font-size:0.75rem; }
.agent-drop-zone small { display:block; font-size:0.625rem; color:#9ca3af; }
.agent-input { flex:1; resize:none; padding:10px 14px; border:1px solid #d1d5db; border-radius:12px; font-size:0.875rem; outline:none; transition:border-color 0.15s,box-shadow 0.15s; min-height:42px; max-height:120px; font-family:inherit; }
.agent-input:focus { border-color:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,0.1); }
.agent-send-btn { display:flex; align-items:center; gap:6px; padding:10px 20px; background:linear-gradient(135deg,#4f46e5,#6366f1); color:#fff; border:none; border-radius:12px; font-size:0.8125rem; font-weight:600; cursor:pointer; transition:box-shadow 0.15s,transform 0.15s; white-space:nowrap; }
.agent-send-btn:hover { box-shadow:0 4px 12px rgba(99,102,241,0.3); transform:translateY(-1px); }
.agent-send-btn span { display:none; }
@media (min-width:640px) { .agent-send-btn span { display:inline; } }
.agent-typing { display:flex; gap:4px; align-items:center; padding:14px 20px; }
.agent-typing span { width:7px; height:7px; border-radius:50%; background:#9ca3af; animation:agent-typing 1.4s infinite ease-in-out; }
.agent-typing span:nth-child(2) { animation-delay:0.2s; }
.agent-typing span:nth-child(3) { animation-delay:0.4s; }
@keyframes agent-typing { 0%,80%,100%{transform:scale(0.6);opacity:0.4} 40%{transform:scale(1);opacity:1} }
.agent-action-banner { padding:8px 16px; background:#fef3c7; color:#92400e; font-size:0.8125rem; font-weight:600; text-align:center; display:none; }
.agent-action-banner.visible { display:block; }
#agent-meta-badges { display:flex; flex-wrap:wrap; gap:4px; padding:8px 16px 0; }
#agent-meta-badges span { font-size:0.625rem; padding:2px 8px; background:#f3f4f6; border-radius:999px; color:#6b7280; }
@media (max-width:768px) { .agent-sidebar { max-height:200px; border-right:none; border-bottom:1px solid #e5e7eb; } }
/* Transition universelle douce pour TOUS les Ã©lÃ©ments interactifs */
a, button, .btn-primary, [class*="transition"] {
    -webkit-tap-highlight-color: transparent;
}
/* ===================== FAB WHATSAPP (remplace assistant IA front) ===================== */
.mn-wa-fab-btn { text-decoration: none; }
.mn-wa-fab-btn .fab-whatsapp-icon,.mn-wa-fab-btn .fab.fa-whatsapp { color: #fff; }
@media (max-width: 640px) {
.mn-wa-fab-btn span { display: none; }
.mn-wa-fab-btn { padding: 0 0 0 0; width: 58px; height: 58px; justify-content: center; }
}
   mais jamais dÃ©finies dans le CSS (ghost classes du design system)
   =================================================================== */

/* -- Backgrounds -- */
.mn-bg-brand { background: var(--color-primary); }
.mn-bg-brand-gradient {
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 148, 47, 0.28), transparent 28%),
        linear-gradient(135deg, rgba(4, 47, 42, 0.98) 0%, rgba(6, 61, 51, 0.96) 52%, rgba(15, 118, 110, 0.94) 82%, rgba(201, 148, 47, 0.9) 138%);
}
.mn-bg-brand-gradient-soft {
    background: linear-gradient(135deg, rgba(6, 61, 51, 0.07) 0%, rgba(15, 118, 110, 0.05) 100%);
}
.mn-bg-brand-soft { background: var(--friendly-soft); }
.mn-bg-brand-accent { background: var(--color-accent); }

/* -- Text colors -- */
.mn-text-brand { color: var(--color-primary); }
.mn-text-brand-accent { color: var(--color-accent); }
.mn-text-brand-tint { color: rgba(6, 61, 51, 0.65); }

/* -- Borders -- */
.mn-border-brand-soft { border-color: var(--friendly-border); }

/* -- Ring -- */
.mn-ring-brand { box-shadow: 0 0 0 3px rgba(6, 61, 51, 0.18); }

/* -- Hover utilities -- */
.mn-hover-brand { transition: color 0.2s; }
.mn-hover-brand:hover { color: var(--color-primary); }
.mn-hover-brand-tint { transition: color 0.2s; }
.mn-hover-brand-tint:hover { color: rgba(6, 61, 51, 0.65); }
.mn-hover-soft-bg { transition: background 0.2s, border-color 0.2s; }
.mn-hover-soft-bg:hover { background: var(--friendly-soft); border-color: var(--friendly-border); }

/* -- Links -- */
.mn-link-brand { color: var(--color-primary); font-weight: 600; transition: opacity 0.2s; }
.mn-link-brand:hover { opacity: 0.8; text-decoration: underline; }

/* -- Buttons -- */
.mn-btn-outline-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid var(--color-primary);
    border-radius: 999px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.mn-btn-outline-brand:hover {
    background: var(--color-primary);
    color: #ffffff;
}
.mn-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.mn-btn-whatsapp:hover { opacity: 0.9; }

/* -- Chips / Badges -- */
.mn-chip-brand {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--friendly-soft);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* -- Admin link -- */
.mn-admin-link {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.mn-admin-link:hover { background: var(--friendly-soft); color: var(--color-primary); }

/* ===================================================================
   MISSING mn-* SECTION & CONTAINER HELPERS
   =================================================================== */
.mn-page-hero { position: relative; overflow: hidden; }
.mn-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--mn-shadow);
}
.mn-summary-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 20px;
}
.mn-field {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--friendly-border);
    border-radius: 12px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.mn-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(6, 61, 51, 0.1);
}
.mn-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

/* -- Cart -- */
.mn-cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--friendly-soft);
    font-size: 0.8125rem;
    font-weight: 600;
}
.mn-checkout-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* -- Section helpers -- */
.mn-section-contact,
.mn-section-cta,
.mn-section-faq,
.mn-section-gallery,
.mn-section-news,
.mn-section-products,
.mn-section-projects,
.mn-section-services,
.mn-section-stats,
.mn-section-team,
.mn-section-testimonials {
    position: relative;
}

/* -- Hero sub-components -- */
.mn-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* -- Kicker variants -- */
.mn-kicker-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(6, 61, 51, 0.08);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* -- FAQ sub-components -- */
.mn-faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    color: inherit;
}
.mn-faq-icon { transition: transform 0.3s; }
.mn-faq-item[open] .mn-faq-icon { transform: rotate(45deg); }

/* -- Product detail -- */
.mn-product-page { position: relative; }
.mn-product-visual { position: relative; overflow: hidden; border-radius: 20px; }

/* -- Project detail -- */
.mn-project-hero { position: relative; overflow: hidden; }
.mn-project-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
}
.mn-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    border-radius: 12px;
}

/* -- Auth forms -- */
.mn-auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.mn-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 40px 32px;
}
.mn-login-modes { display: flex; flex-direction: column; gap: 12px; }
.mn-form-head { text-align: center; margin-bottom: 24px; }
.mn-logo-mark { height: 48px; margin: 0 auto 16px; }

/* -- Misc -- */
.mn-secondary-action {
    font-size: 0.8125rem;
    color: #6b7280;
    transition: color 0.2s;
}
.mn-secondary-action:hover { color: var(--color-primary); }
.mn-advice-card {
    background: linear-gradient(135deg, var(--friendly-soft) 0%, #ffffff 100%);
    border: 1px solid var(--friendly-border);
    border-radius: 16px;
    padding: 20px;
}
.mn-category-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mn-delay {
    animation-fill-mode: both;
}
.mn-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.mn-social-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0a66c2;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: opacity 0.2s;
}
.mn-social-linkedin:hover { opacity: 0.8; }

/* ===================================================================
   FRONT-OFFICE FOOTER FIXES â€” AmÃ©lioration visibilitÃ© et prÃ©sentation
   =================================================================== */

.footer-main {
    background: var(--gradient);
}

.footer-main h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.footer-main p,
.footer-main li,
.footer-main a {
    color: rgba(255,255,255,0.92);
    transition: color 0.2s ease;
}

.footer-main a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.footer-main .social-links a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-main .social-links a:hover {
    color: #fff;
    transform: scale(1.15);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.18) !important;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-brand-text {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

.footer-nav-list a {
    position: relative;
}

.footer-nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mn-gold);
    transition: width 0.3s ease;
}

.footer-nav-list a:hover::after {
    width: 100%;
}

/* Bouton admin login fix */
.admin-login-btn {
    background: #fff !important;
    color: var(--mn-emerald) !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.admin-login-btn:hover {
    background: #f8f4ea !important;
    color: var(--mn-night) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* Media picker modal z-index fix */
.media-picker-modal {
    z-index: 100;
}

.media-picker-modal .modal-content {
    z-index: 101;
}

/* Admin modal improvements */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.admin-modal-content {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 100;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.admin-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.admin-modal-close {
    color: #9ca3af;
    transition: color 0.15s;
}

.admin-modal-close:hover {
    color: #374151;
}

/* Publications history card hover fix */
.pub-history-card {
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pub-history-card:hover {
    background: #fafafa;
    border-color: var(--friendly-border);
}

/* Workspace grid card improvements */
.workspace-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.workspace-card:hover {
    box-shadow: 0 8px 24px rgba(4,47,42,0.1);
    transform: translateY(-2px);
    border-color: var(--friendly-border);
}

/* Admin sidebar active link fix */
#sidebar a.active {
    background: rgba(255,255,255,0.22) !important;
    color: #fff !important;
}

/* Tiers table row hover */
.tiers-table tbody tr:hover {
    background: rgba(237,248,243,0.6) !important;
}

/* MCP keys table improvements */
.mcp-keys-table th,
.mcp-keys-table td {
    vertical-align: middle;
}

.mcp-keys-table .scope-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 1px;
}

/* Agent chat improvements */
.agent-screen {
    min-height: 0;
}

.agent-bubble {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal/Dialog improvements */
.modal-overlay {
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: modalSlideIn 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Flash messages improvements */
.flash-message {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scrollbar improvements for admin */
.admin-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.admin-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.admin-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.admin-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tiers form improvements */
.tiers-form .mn-field:focus,
.tiers-form select:focus,
.tiers-form textarea:focus,
.tiers-form input[type="text"]:focus,
.tiers-form input[type="email"]:focus,
.tiers-form input[type="tel"]:focus,
.tiers-form input[type="date"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(6, 61, 51, 0.1);
}

/* Tiers table row hover */
.tiers-table tbody tr:hover {
    background: rgba(237, 248, 243, 0.6) !important;
}

/* Tabs improvements */
.admin-tabs button[role="tab"] {
    transition: all 0.2s ease;
}

.admin-tabs button[role="tab"][aria-selected="true"] {
    background: var(--mn-graphite);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tiers show page card improvements */
.tiers-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--mn-border);
}

.tiers-card:hover {
    box-shadow: 0 8px 24px rgba(4, 47, 42, 0.08);
    border-color: var(--mn-emerald-2);
}

/* Devis form line improvements */
.devis-ligne {
    transition: opacity 0.15s ease;
}

.devis-ligne.removing {
    opacity: 0;
    transform: translateX(10px);
}

/* Documents list improvements */
.document-item {
    transition: background 0.15s ease, border-color 0.15s ease;
}

.document-item:hover {
    background: #fafafa;
    border-color: var(--friendly-border);
}

/* Relance card improvements */
.relance-card {
    transition: border-color 0.2s ease, background 0.2s ease;
}

.relance-card:hover {
    border-color: var(--mn-gold);
}

/* Interaction card improvements */
.interaction-card {
    transition: border-color 0.2s ease, background 0.2s ease;
}

.interaction-card:hover {
    border-color: var(--mn-border);
}

/* Button improvements for admin */
.btn-admin-primary {
    background: linear-gradient(135deg, var(--friendly-primary) 0%, var(--friendly-accent) 100%);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.16);
}

.btn-admin-primary:hover {
    background: linear-gradient(135deg, var(--friendly-primary-dark) 0%, #15803d 100%);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.2);
    transform: translateY(-1px);
}

.btn-admin-secondary {
    background: white;
    color: var(--mn-graphite);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--mn-border);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-admin-secondary:hover {
    background: var(--friendly-soft);
    border-color: var(--mn-emerald-2);
    color: var(--mn-emerald);
}

.btn-admin-danger {
    background: #fef2f2;
    color: #dc2626;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-admin-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Admin table improvements */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--mn-border);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.admin-table tbody tr:hover td {
    background: rgba(237, 248, 243, 0.5);
}

/* Badge improvements */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.badge-status.success { background: #ecfdf5; color: #065f46; }
.badge-status.warning { background: #fffbeb; color: #92400e; }
.badge-status.danger { background: #fef2f2; color: #991b1b; }
.badge-status.info { background: #eff6ff; color: #1e40af; }
.badge-status.purple { background: #f5f3ff; color: #5b21b6; }
.badge-status.gray { background: #f3f4f6; color: #4b5563; }

/* ===================== HEADER ELECTRO (7shop_template) ===================== */
.mn-topbar { background: #fff; }
.header-main { will-change: box-shadow; }
.mn-search-wrap { height: 46px; }
.mn-search-wrap input:focus { outline: none; }
.mn-search-btn { transition: filter .2s ease; }
.mn-search-btn:hover { filter: brightness(1.08); }
.mn-cart-anchor { color: var(--color-primary); }
.mn-cart-count { box-shadow: 0 0 0 2px #fff; }
.mn-navbar { box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.mn-navlink { text-decoration: none; }
.mn-main-offset { min-height: 60vh; }
@media (max-width: 640px) {
    .header-main .mn-search-wrap-mobile { display: flex; }
}

/* ===================== PAGES ELECTRO (7shop_template) ===================== */
.mn-page-electro-head { background: #fff; }
.mn-product-card-electro {
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mn-product-card-electro:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -22px rgba(15, 23, 42, 0.25);
}
.mn-product-card-electro .mn-product-image-wrap { overflow: hidden; }
.mn-product-card-electro .mn-product-image {
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.mn-product-card-electro:hover .mn-product-image { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
    .mn-product-card-electro,
    .mn-product-card-electro .mn-product-image { transition: none; }
    .mn-product-card-electro:hover { transform: none; }
    .mn-product-card-electro:hover .mn-product-image { transform: none; }
}
.mn-btn-electro { text-decoration: none; }
.mn-product-card-electro .mn-product-cta:hover { opacity: .8; }
.mn-filter-bar .filter-btn { background: #fff; border-color: #e5e7eb; color: #374151; }
.mn-filter-bar .filter-btn.active { border-color: var(--color-primary); color: var(--color-primary); }
.mn-filter-bar .filter-btn:hover { border-color: var(--color-primary); }
.mn-electro-add { letter-spacing: .01em; }
.mn-price-electro { font-variant-numeric: tabular-nums; }

/* ===================== WORKSPACE (library admin) ===================== */
.workspace-screen { display: flex; flex-direction: column; gap: 1.25rem; }
.workspace-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.workspace-title-block h1 { font-size: 1.6rem; font-weight: 800; color: #111827; letter-spacing: -0.02em; }
.workspace-title-block p { color: #6b7280; font-size: .875rem; margin-top: .15rem; }
.workspace-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.workspace-search { display: flex; align-items: center; gap: .5rem; }
.workspace-search-input { min-width: 220px; }
.workspace-filter-select { width: auto; }
.workspace-stats { display: flex; align-items: center; gap: .5rem; color: #374151; font-size: .875rem; font-weight: 600; }
.workspace-stats-sep { color: #d1d5db; }
.workspace-upload-progress { display: flex; align-items: center; color: var(--mn-brand, #4f46e5); font-size: .875rem; font-weight: 600; }
.workspace-flash { margin: 0; padding: .75rem 1rem; border-radius: .75rem; font-size: .875rem; font-weight: 600; cursor: pointer; }
.workspace-flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.workspace-flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.workspace-flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.workspace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.workspace-card-preview { height: 140px; background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.workspace-card-img { width: 100%; height: 100%; object-fit: cover; }
.workspace-card-icon { color: #9ca3af; }
.workspace-card-body { padding: .75rem .9rem 1rem; }
.workspace-card-name { font-size: .8125rem; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: #6b7280; margin-top: .5rem; }
.workspace-card-actions { display: flex; gap: .375rem; margin-top: .625rem; }
.workspace-upload-btn { display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: .75rem; border: 1px dashed var(--color-primary, #4f46e5); color: var(--color-primary, #4f46e5); font-size: .875rem; font-weight: 600; cursor: pointer; background: #fff; transition: background .2s; }
.workspace-upload-btn:hover { background: rgba(79, 70, 229, .06); }
.workspace-card-badge { font-size: .6875rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.workspace-card-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid #e5e7eb; background: #fff; font-size: .75rem; color: #4b5563; transition: background .2s; }
.workspace-card-btn:hover { background: #f3f4f6; }
.workspace-empty { grid-column: 1 / -1; justify-self: center; }
.workspace-loading { display: flex; align-items: center; justify-content: center; color: #9ca3af; padding: 3rem 0; font-size: .875rem; }

/* ===================================================================
   HEADER PREMIUM (2026-09-10) — single row, sans logo, sans Mon compte
   =================================================================== */
.mn-site-header {
    --hdr-h: 72px;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.mn-site-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.mn-search-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 44px;
    padding: 0 4px 0 16px;
    background: #f5f4f1;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.mn-search-pill:focus-within {
    background: white;
    border-color: #d4d2cc;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.mn-search-pill .mn-search-input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #0f172a;
    padding: 0;
    min-width: 0;
}
.mn-search-pill .mn-search-input::placeholder { color: #94a3b8; }
.mn-search-pill button {
    height: 36px;
    width: 36px;
    border-radius: 999px;
    border: 0;
    background: var(--color-primary, #0f172a);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.mn-search-pill button:hover { transform: scale(1.05); }
.mn-search-pill button:active { transform: scale(0.95); }
.mn-search-kbd {
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 24px;
    padding: 0 6px;
    border-radius: 6px;
    background: white;
    color: #64748b;
    font-size: 0.7rem;
    font-family: var(--font-body, system-ui);
    font-weight: 600;
    border: 1px solid #e2e0d8;
    box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

.mn-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: #0f172a;
    background: transparent;
    transition: background 0.18s ease;
    text-decoration: none;
}
.mn-link-pill:hover { background: #f5f4f1; }
/* Masquee < md : style.css charge apres tailwind-built.css, la classe
   Tailwind `hidden` perd le conflit de specificite — regle dediee. */
@media (max-width: 767.98px) {
    .mn-link-pill { display: none; }
}

.mn-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--color-primary, #0f172a);
    color: white;
    transition: transform 0.18s ease, background 0.18s ease;
    text-decoration: none;
}
.mn-cart-btn:hover { transform: scale(1.05); }
.mn-cart-btn:active { transform: scale(0.95); }
.mn-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-accent, #f59e0b);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

/* ===================================================================
   BOUTONS PREMIUM (2026-09-10) — design system coherent
   =================================================================== */
.mn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: 48px;
    padding: 0 24px;
    font-family: var(--font-body, system-ui);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    transition:
        background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mn-btn:focus-visible {
    outline: 2px solid var(--color-primary, #0f172a);
    outline-offset: 3px;
}
.mn-btn:disabled,
.mn-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.mn-btn-sm { height: 38px; padding: 0 18px; font-size: 0.825rem; }
.mn-btn-lg { height: 56px; padding: 0 32px; font-size: 1rem; }

/* Primary — plein, ombre subtile, lift au hover */
.mn-btn-primary {
    background: var(--color-primary, #0f172a);
    color: white;
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset,
                0 1px 2px rgba(15, 23, 42, 0.08),
                0 4px 14px rgba(15, 23, 42, 0.08);
}
.mn-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset,
                0 1px 2px rgba(15, 23, 42, 0.1),
                0 8px 22px rgba(15, 23, 42, 0.18);
    background: color-mix(in srgb, var(--color-primary, #0f172a) 88%, black);
}
.mn-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

/* Accent — couleur d'accent, pour les CTA secondaires forts */
.mn-btn-accent {
    background: var(--color-accent, #f59e0b);
    color: #0f172a;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-accent, #f59e0b) 35%, transparent);
}
.mn-btn-accent:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--color-accent, #f59e0b) 45%, transparent);
}

/* Secondary — outline plein, hover remplit */
.mn-btn-secondary {
    background: white;
    color: var(--color-primary, #0f172a);
    border-color: #d4d2cc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.mn-btn-secondary:hover:not(:disabled) {
    background: #f5f4f1;
    border-color: #b8b5ad;
    transform: translateY(-1px);
}

/* Tertiary (sur fond sombre) — outline blanc, hover remplit */
.mn-btn-tertiary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}
.mn-btn-tertiary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Ghost — pas de bordure, juste texte */
.mn-btn-ghost {
    background: transparent;
    color: var(--color-primary, #0f172a);
    padding: 0 16px;
}
.mn-btn-ghost:hover:not(:disabled) {
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}

/* Icon — cercle, icône centree */
.mn-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
}
.mn-btn-icon.mn-btn-sm { width: 38px; height: 38px; }

/* WhatsApp (couleur officielle JAMAIS recoloree) */
.mn-btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}
.mn-btn-whatsapp:hover:not(:disabled) {
    background: #1ebe57;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

/* ===================================================================
   CARDS PRODUIT — refinement (2026-09-10)
   =================================================================== */
.mn-product-card-electro {
    background: white;
    border: 1px solid #f0eee8;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease;
}
.mn-product-card-electro:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: #e5e3dd;
}
.mn-product-card-electro .mn-product-image-wrap {
    background: #f5f4f1;
    overflow: hidden;
}
.mn-product-card-electro .mn-product-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.mn-product-card-electro:hover .mn-product-image { transform: scale(1.04); }
.mn-product-card-electro .mn-product-cat-chip {
    background: white;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mn-product-price {
    font-family: var(--font-display, serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary, #0f172a);
    letter-spacing: -0.01em;
}
.mn-product-price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.85rem;
}
.mn-product-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary, #0f172a);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.mn-product-cta:hover { gap: 0.7rem; }

/* ===================================================================
   PAGE HEADER (page hero) — bandeau avec breadcrumb
   =================================================================== */
.mn-page-electro-head {
    position: relative;
}
.mn-breadcrumb {
    font-size: 0.8rem;
    color: #94a3b8;
}
.mn-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mn-breadcrumb a:hover { color: #475569; }
.mn-breadcrumb .mn-breadcrumb-sep { margin: 0 0.5rem; color: #cbd5e1; }
.mn-breadcrumb .mn-breadcrumb-current { color: #0f172a; font-weight: 600; }

/* ===================================================================
   PAGE PROSE — contenu HTML des pages statiques CMS (admin/pages)
   =================================================================== */
.mn-page-prose { color: #374151; font-size: 1rem; line-height: 1.75; }
.mn-page-prose > *:first-child { margin-top: 0; }
.mn-page-prose h1,
.mn-page-prose h2,
.mn-page-prose h3,
.mn-page-prose h4 {
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2rem 0 0.75rem;
    font-family: var(--font-display, inherit);
}
.mn-page-prose h1 { font-size: 1.9rem; }
.mn-page-prose h2 { font-size: 1.5rem; }
.mn-page-prose h3 { font-size: 1.2rem; }
.mn-page-prose h4 { font-size: 1.05rem; }
.mn-page-prose p { margin: 0.9rem 0; }
.mn-page-prose strong { color: #111827; font-weight: 700; }
.mn-page-prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.mn-page-prose a:hover { opacity: 0.8; }
.mn-page-prose ul, .mn-page-prose ol { margin: 0.9rem 0; padding-left: 1.4rem; }
.mn-page-prose ul { list-style: disc; }
.mn-page-prose ol { list-style: decimal; }
.mn-page-prose li { margin: 0.35rem 0; }
.mn-page-prose img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1.25rem 0; }
.mn-page-prose blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 1.25rem 0;
    color: #4b5563;
    font-style: italic;
}
.mn-page-prose code {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.875em;
    color: #b91c1c;
}
.mn-page-prose pre {
    background: #111827;
    color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}
.mn-page-prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.mn-page-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.mn-page-prose th, .mn-page-prose td {
    border: 1px solid #e5e7eb;
    padding: 0.55rem 0.75rem;
    text-align: left;
}
.mn-page-prose th { background: #f9fafb; font-weight: 700; color: #111827; }
.mn-page-prose hr { border: 0; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* ===================================================================
   HERO MULTI-SLIDES (caroussel contextuel)
   =================================================================== */
.mn-hero-track {
    position: relative;
    min-height: 520px;
    isolation: isolate;
}
.mn-hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
}
.mn-hero-slide.is-active {
    z-index: 2;
    display: block;
    animation: mn-hero-fade 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.mn-hero-slide img { transition: transform 8s ease-out; }
.mn-hero-slide.is-active img { transform: scale(1.05); }
@keyframes mn-hero-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.mn-hero-dot {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}
.mn-hero-dot:hover { background: rgba(255, 255, 255, 0.55); }
.mn-hero-dot.is-active {
    background: var(--color-accent, #f59e0b);
    width: 44px;
}
@media (max-width: 768px) {
    .mn-hero-track { min-height: 480px; }
    .mn-hero-slide .max-w-7xl { padding-top: 4rem; padding-bottom: 5rem; }
    .mn-hero-slide h1 { font-size: 2rem !important; }
}
@media (prefers-reduced-motion: reduce) {
    .mn-hero-slide,
    .mn-hero-slide img { transition: none !important; }
}

/* ===================================================================
   FILTRES BOUTIQUE — chips + sidebar
   =================================================================== */
.mn-filter-chip {
    background: white;
    color: #4b5563;
    border-color: #e5e7eb;
}
.mn-filter-chip:hover {
    border-color: var(--color-primary, #1e293b);
    color: var(--color-primary, #1e293b);
}
.mn-filter-chip.is-active {
    background: var(--color-primary, #1e293b);
    color: white;
    border-color: var(--color-primary, #1e293b);
}
.mn-filter-panel .mn-filter-title,
.mn-filter-panel h3 { letter-spacing: 0.08em; }
.mn-filter-panel input[type="radio"]:checked,
.mn-filter-panel input[type="checkbox"]:checked {
    accent-color: var(--color-primary, #1e293b);
}
.mn-sort-select { min-width: 180px; }

/* ===================================================================
   PAGINATION BOUTIQUE (URL-driven ?page=N)
   =================================================================== */
.mn-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.mn-page-btn:hover {
    border-color: var(--color-primary, #1e293b);
    color: var(--color-primary, #1e293b);
    transform: translateY(-1px);
}
.mn-page-btn-active {
    background: var(--color-primary, #1e293b);
    border-color: var(--color-primary, #1e293b);
    color: #fff;
    cursor: default;
}
.mn-page-btn-active:hover {
    transform: none;
    color: #fff;
}

/* ===================================================================
   CATEGORY CARD (vitrine categories)
   =================================================================== */
.mn-category-card { isolation: isolate; }
.mn-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.mn-category-card:hover::before { opacity: 1; }

/* ===================================================================
   DEALS BANDEAU + COUNTDOWN
   =================================================================== */
.mn-deals-band { box-shadow: 0 8px 40px rgba(0,0,0,0.04); }
.mn-countdown {
    font-feature-settings: "tnum";
}
.mn-countdown-cell {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    min-width: 64px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mn-countdown-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary, #1e293b);
    font-family: var(--font-display, inherit);
}
.mn-countdown-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-top: 0.25rem;
}
.mn-countdown-sep {
    color: #d1d5db;
    font-weight: 800;
    font-size: 1.2rem;
}
.mn-deal-card { isolation: isolate; }
.mn-deal-card .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================================
   COMMITMENT CARD
   =================================================================== */
.mn-commitment-card { position: relative; }
.mn-commitment-card::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: 24px;
    width: 1px;
    background: #e5e7eb;
}
@media (min-width: 1024px) {
    .mn-commitment-card::after { display: none; }
}

/* ===================================================================
   NEWSLETTER BAND
   =================================================================== */
.mn-newsletter-band { isolation: isolate; }
.mn-newsletter-band input[type="email"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent); }

/* ===================================================================
   PRIX PROMO (line-through)
   =================================================================== */
.mn-product-card-electro .text-gray-400.line-through {
    text-decoration-color: #d1d5db;
}

/* ===================================================================
   FILTRES MOBILE (panneau slide-down)
   =================================================================== */
@media (max-width: 1023px) {
    #mn-boutique-filter-panel { animation: mn-slide-down 0.25s ease; }
    #mn-boutique-filter-panel:not(.hidden) { display: block !important; }
}
@keyframes mn-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   DARK/LIGHT UTILITIES
   =================================================================== */
.text-balance { text-wrap: balance; }

/* ===================================================================
   ACCESSIBILITE — respect prefers-reduced-motion
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

