/**
 * ME-PRO HEADER & GLOBAL STYLES — Technical Precision Design
 * Extrait de header-pro.php pour mise en cache navigateur.
 *
 * @package KadenceChildME
 */

/* ============================================================
   FIX: Sidebar filtres catalogue — fallback si Tailwind manque
   lg:flex / md:grid-cols-2 / xl:grid-cols-3
   ============================================================ */
@media (min-width: 1024px) {
	.me-catalogue-sidebar.hidden { display: flex !important; }
}
@media (min-width: 768px) {
	.me-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
	.me-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   ANTI-FOUC — masquer le body jusqu'au chargement Tailwind + polices
   (Ce bloc DOIT rester inline dans le <head>, il est donc laissé dans header-pro.php)
   ============================================================ */

/* --- Toast notification projet --- */
.me-project-toast {
	position: fixed;
	bottom: 80px;
	right: 20px;
	z-index: 9999;
	background: #059669;
	color: white;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
	transform: translateY(20px);
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: none;
	font-family: 'Geist', sans-serif;
}
.me-project-toast.show {
	transform: translateY(0);
	opacity: 1;
}
.me-project-toast .material-symbols-outlined {
	font-size: 18px;
	vertical-align: middle;
	margin-right: 6px;
}

/* --- Top bar utilitaire --- */
.me-pro-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 32px;
	background: #0f172a;
	color: #94a3b8;
	z-index: 1000;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.03em;
}
.me-pro-topbar-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.me-pro-topbar a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.me-pro-topbar a:hover { color: #fff; }
.me-pro-topbar-left,
.me-pro-topbar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}
.me-pro-topbar-left .material-symbols-outlined {
	font-size: 13px;
	color: #64748b;
}
.me-pro-topbar-right a::after {
	content: '';
	display: inline-block;
	width: 3px;
	height: 3px;
	background: #475569;
	border-radius: 50%;
	margin-left: 12px;
	vertical-align: middle;
}
.me-pro-topbar-right a:last-child::after { display: none; }
@media (max-width: 767px) {
	.me-pro-topbar { display: none; }
	.me-pro-topbar-right { display: none; }
	.me-pro-topbar-left a:last-child { display: none; }
}

/* --- Header principal --- */
.me-pro-header {
	position: fixed;
	top: 32px;
	left: 0;
	right: 0;
	height: 72px;
	background: rgba(255,255,255,0.97);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid #e2e8f0;
	z-index: 999;
}
.me-pro-header-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* --- Logo --- */
.me-pro-logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: opacity 0.2s;
}
.me-pro-logo:hover { opacity: 0.85; }
.me-pro-logo img {
	height: 36px;
	width: auto;
	display: block;
}
.me-pro-logo-fallback {
	display: flex;
	flex-direction: column;
}
.me-pro-logo-fallback .logo-text {
	font-family: 'Geist', sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.me-pro-logo-fallback .logo-sub {
	font-size: 9px;
	color: #059669;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.25em;
}

/* --- Mega Menu / Navigation --- */
.me-pro-nav { display: none; }
@media (min-width: 768px) {
	.me-pro-nav { display: flex; align-items: center; }
}
.me-pro-nav > ul,
.me-pro-nav #mega-menu-wrap-primary #mega-menu-primary {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2px;
}
.me-pro-nav > ul > li > a,
.me-pro-nav #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 8px 14px;
	border-radius: 8px;
	color: #64748b;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 4px;
	height: auto;
	background: none;
	text-decoration: none;
}
.me-pro-nav > ul > li > a:hover,
.me-pro-nav #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover {
	background: #f1f5f9 !important;
	color: #0f172a !important;
}
/* Simulateur — bouton vert dans le menu */
.me-pro-nav > ul > li.me-menu-simulator > a {
	background: #059669 !important;
	color: #fff !important;
	border-radius: 8px !important;
	padding: 6px 14px !important;
	font-weight: 700 !important;
}
.me-pro-nav > ul > li.me-menu-simulator > a:hover {
	background: #047857 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
	color: #fff !important;
}
/* Connexion — texte vert */
.me-pro-nav > ul > li.me-menu-login > a {
	color: #059669 !important;
	font-weight: 700 !important;
}
.me-pro-nav > ul > li.me-menu-login > a:hover {
	color: #047857 !important;
}
.me-pro-nav > ul > li.current-menu-item > a,
.me-pro-nav > ul > li.current-post-ancestor > a,
.me-pro-nav #mega-menu-wrap-primary #mega-menu-primary > li.mega-current-menu-item > a.mega-menu-link {
	background: #eff6ff !important;
	color: #2563eb !important;
}

/* --- Dropdown sous-catégories au survol --- */
.me-pro-nav ul li {
	position: relative;
}
.me-pro-nav ul li ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	padding: 6px 0;
	display: none !important;
	z-index: 1000;
}
.me-pro-nav ul li:hover > ul {
	display: flex !important;
	flex-direction: column;
	gap: 0;
}
.me-pro-nav ul li ul li {
	width: 100%;
}
.me-pro-nav ul li ul li a {
	padding: 8px 16px !important;
	font-size: 11px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	border-radius: 0 !important;
	white-space: nowrap;
}
.me-pro-nav ul li ul li:first-child a {
	border-radius: 10px 10px 0 0 !important;
}
.me-pro-nav ul li ul li:last-child a {
	border-radius: 0 0 10px 10px !important;
}

/* --- CTA Button --- */
.me-pro-cta {
	background: #0f172a;
	color: #fff;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 10px 20px;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.2s;
	white-space: nowrap;
}
.me-pro-cta:hover { background: #1e293b; }

/* --- Mobile toggle --- */
.me-pro-mobile-toggle {
	display: flex;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
	background: none;
	border: none;
	padding: 8px;
}
@media (min-width: 768px) { .me-pro-mobile-toggle { display: none; } }
.me-pro-mobile-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #0f172a;
	border-radius: 2px;
	transition: all 0.3s;
}

/* --- Mobile backdrop (ferme au clic sur le fond) --- */
.me-pro-mobile-backdrop {
	position: fixed;
	top: 72px;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.3);
	z-index: 997;
}

/* --- Mobile menu overlay --- */
.me-pro-mobile-menu {
	position: fixed;
	top: 72px; /* Seulement le header (topbar masquée sur mobile) */
	left: 0;
	right: 0;
	height: calc(100dvh - 72px); /* 100dvh = viewport dynamique mobile */
	min-height: 90vh; /* au moins 90% de hauteur de page */
	background: rgba(255,255,255,0.98);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 998;
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.me-pro-mobile-menu a {
	font-family: 'Geist', sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	padding: 16px 14px;
	border-bottom: 1px solid #f1f5f9;
	border-radius: 10px;
	transition: background 0.15s, color 0.15s;
	min-height: 52px;
	display: flex;
	align-items: center;
}
.me-pro-mobile-menu a:hover {
	color: #2563eb;
	background: #f8fafc;
}

/* --- Cacher header/footer Kadence (centralisé) --- */
header.site-header, #masthead, .site-header { display: none !important; }
footer.site-footer, #colophon { display: none !important; }

/* --- Styles losange (utilisé dans les descriptions) --- */
ul.losange { padding-left: 20px; text-align: left; margin: 10px 0; }
ul.losange li { margin-bottom: 6px; font-weight: 500; }

/* ============================================================
   ME EDITABLE : édition inline admin
   ============================================================ */
.me-editable { transition: background 0.15s, box-shadow 0.15s; border-radius: 3px; padding: 1px 4px; cursor: default; }
.me-editable:hover { background: rgba(16, 185, 129, 0.18); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3); cursor: text; }
.me-editable-input { background: #fff; border: 2px solid #10b981; border-radius: 4px; padding: 2px 6px; font-family: 'JetBrains Mono', monospace; font-size: inherit; outline: none; min-width: 60px; color: #1e293b; }
.me-editable-saving { font-size: 11px; color: #10b981; margin-left: 4px; }
.me-wysiwyg-container { border: 2px solid #10b981; border-radius: 6px; overflow: hidden; background: #fff; }
.me-wysiwyg-toolbar { display: flex; align-items: center; gap: 2px; padding: 4px 6px; background: #f0fdf4; border-bottom: 1px solid #a7f3d0; flex-wrap: wrap; }
.me-wysiwyg-btn { padding: 3px 8px; border: 1px solid transparent; border-radius: 3px; background: transparent; font-size: 12px; cursor: pointer; transition: background 0.15s; }
.me-wysiwyg-btn:hover { background: #d1fae5; border-color: #6ee7b7; }
.me-wysiwyg-save { background: #10b981; color: #fff; font-weight: bold; }
.me-wysiwyg-save:hover { background: #059669; }
.me-wysiwyg-cancel { color: #ef4444; }
.me-wysiwyg-content { padding: 12px; min-height: 80px; font-size: 14px; line-height: 1.6; outline: none; }
.me-wysiwyg-content:focus { background: #fafffe; }

/* ============================================================
   FT-FICHE-PROPRE : fiche technique (global, tous les templates Pro)
   ============================================================ */
.ft-fiche-propre { margin-top:20px; margin-bottom:20px; background-color:#f1f5f9; border:1px solid #cbd5e1; border-radius:8px; padding:0; list-style:none; }
.ft-fiche-propre li { display:flex; align-items:center; border-bottom:1px solid #cbd5e1; padding:0; line-height:30px; }
.ft-fiche-propre li:last-child { border-bottom:none; border-radius:0 0 8px 8px; }
.ft-fiche-propre li kbd { display:inline-block; width:100%; text-align:left; padding-left:15px; background:#0f172a; color:#fff; line-height:38px; text-transform:uppercase; font-size:0.9em; font-weight:bold; border-radius:8px 8px 0 0; }
.ft-fiche-propre li code { display:inline-block; width:100%; text-align:left; padding-left:15px; background:#059669; color:#fff; line-height:38px; font-size:0.95em; font-weight:bold; }
.ft-fiche-propre li strong { display:inline-block; width:65%; padding-left:15px; background:#f8fafc; }
.ft-fiche-propre li dfn { display:inline-block; width:10%; font-weight:bold; font-style:normal; text-align:center; background:#f1f5f9; }
.ft-fiche-propre li var { flex:1; text-align:center; background:#f8fafc; }
.ft-fiche-propre li cite { display:inline-block; width:75%; padding-left:15px; background:#1e40af; color:#fff; line-height:38px; text-transform:uppercase; font-size:0.95em; font-weight:bold; }
.ft-fiche-propre li samp { flex:1; text-align:center; background:#1e40af; color:#fff; line-height:38px; }
.ft-fiche-propre ul { list-style:none; padding:0; margin:0; }
@media (max-width:980px) {
	.ft-fiche-propre li { flex-wrap:wrap; }
	.ft-fiche-propre li dfn { width:30%; }
}

/* ============================================================
   GUIDE PAGES — Design system unifié pour catégories éditoriales
   ============================================================ */
/* Base commune */
.me-guide-hero { color: #fff; padding: 4rem 2rem; border-radius: 1.5rem; margin-bottom: 2.5rem; text-align: center; position: relative; overflow: hidden; }
.me-guide-hero::before { content: ""; position: absolute; top: -50%; right: -30%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); border-radius: 50%; }
.me-guide-hero h1 { font-size: 2.8rem; font-weight: 800; margin: 0 0 0.5rem; line-height: 1.2; }
.me-guide-hero h1 span { -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.me-guide-hero p { font-size: 1.2rem; opacity: .9; max-width: 700px; margin: 0 auto 1.5rem; }
/* Modifieurs hero */
.me-guide-hero.hero-renovation { background: linear-gradient(135deg, #0f2b3d, #1a4a6b, #2d7fb9); }
.me-guide-hero.hero-renovation h1 span { background: linear-gradient(90deg, #f7d875, #ffb347); }
.me-guide-hero.hero-isolation-facades { background: linear-gradient(135deg, #1a237e, #283593, #3949ab); }
.me-guide-hero.hero-isolation-facades h1 span { background: linear-gradient(90deg, #ff8f00, #ffb300); }
.me-guide-hero.hero-isolation-toiture { background: linear-gradient(135deg, #3e2723, #4e342e, #5d4037); }
.me-guide-hero.hero-isolation-toiture h1 span { background: linear-gradient(90deg, #ffb300, #ffca28); }
.me-guide-hero.hero-pac-air-air { background: linear-gradient(135deg, #004d40, #00695c, #00897b); }
.me-guide-hero.hero-pac-air-air h1 span { background: linear-gradient(90deg, #00e5ff, #18ffff); }
.me-guide-hero.hero-photovoltaique { background: linear-gradient(135deg, #1b5e20, #2e7d32, #388e3c); }
.me-guide-hero.hero-photovoltaique h1 span { background: linear-gradient(90deg, #ffeb3b, #fff176); }
.me-guide-hero.hero-cet { background: linear-gradient(135deg, #0d47a1, #1565c0, #1976d2); }
.me-guide-hero.hero-cet h1 span { background: linear-gradient(90deg, #4fc3f7, #81d4fa); }
/* Badges */
.me-guide-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.5rem 0 0; }
.me-guide-badges span { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); }
.me-guide-badges span.b-bleu { background: rgba(45, 127, 185, 0.5); border-color: #4a9fdf; }
.me-guide-badges span.b-vert { background: rgba(76, 175, 80, 0.3); border-color: #66bb6a; }
.me-guide-badges span.b-orange { background: rgba(255, 152, 0, 0.3); border-color: #ffa726; }
/* CTA */
.me-guide-cta { display: inline-block; padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: all .3s; margin-top: 1rem; }
.me-guide-cta:hover { transform: translateY(-2px); }
.me-guide-hero .me-guide-cta { background: #f7d875; color: #0f2b3d; }
.me-guide-hero .me-guide-cta:hover { background: #ffe082; box-shadow: 0 8px 25px rgba(247,216,117,0.35); }
/* Grid + Cards */
.me-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.me-guide-card { background: #fff; border-radius: 1.25rem; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #e8edf2; transition: all .3s; }
.me-guide-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.me-guide-card .icon { font-size: 2.2rem; margin-bottom: 0.75rem; display: block; }
.me-guide-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.5rem; color: #0f2b3d; }
.me-guide-card p { font-size: 0.95rem; color: #5a6a7a; line-height: 1.6; margin: 0; }
.me-guide-card ul { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.me-guide-card ul li { position: relative; padding: 0.35rem 0 0.35rem 1.5rem; font-size: 0.9rem; color: #3a4a5a; }
.me-guide-card ul li::before { content: "✓"; position: absolute; left: 0; color: #4caf50; font-weight: 700; }
.me-guide-card ul li.cross::before { content: "✗"; color: #e53935; }
/* Section title */
.me-guide-section-title { font-size: 1.8rem; font-weight: 800; color: #0f2b3d; margin: 3rem 0 1.5rem; padding-bottom: 0.75rem; border-bottom: 3px solid; display: inline-block; }
.hero-renovation + .me-guide-section-title { border-bottom-color: #f7d875; }
.hero-isolation-facades + .me-guide-section-title { border-bottom-color: #ff8f00; }
.hero-isolation-toiture + .me-guide-section-title { border-bottom-color: #ffb300; }
.hero-pac-air-air + .me-guide-section-title { border-bottom-color: #00e5ff; }
.hero-photovoltaique + .me-guide-section-title { border-bottom-color: #ffeb3b; }
.hero-cet + .me-guide-section-title { border-bottom-color: #4fc3f7; }
/* Table */
.me-guide-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid #e8edf2; }
.me-guide-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.me-guide-table th { background: #0f2b3d; color: #fff; padding: 1rem; text-align: left; font-weight: 600; white-space: nowrap; }
.me-guide-table td { padding: 0.85rem 1rem; border-bottom: 1px solid #e8edf2; color: #3a4a5a; }
.me-guide-table tr:last-child td { border-bottom: none; }
.me-guide-table tr:hover td { background: #f7f9fc; }
.me-guide-table .c-bleu { color: #1565c0; font-weight: 600; }
.me-guide-table .c-jaune { color: #f9a825; font-weight: 600; }
.me-guide-table .c-violet { color: #7b1fa2; font-weight: 600; }
.me-guide-table .c-rose { color: #e91e63; font-weight: 600; }
/* Steps */
.me-guide-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; counter-reset: step; }
.me-guide-step { background: #fff; border-radius: 1rem; padding: 1.5rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #e8edf2; position: relative; }
.me-guide-step::before { counter-increment: step; content: counter(step); position: absolute; top: -0.75rem; left: -0.75rem; width: 2.5rem; height: 2.5rem; background: #0f2b3d; color: #f7d875; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.me-guide-step h4 { font-size: 1rem; font-weight: 700; color: #0f2b3d; margin: 0.5rem 0 0.25rem; }
.me-guide-step p { font-size: 0.85rem; color: #5a6a7a; margin: 0; }
/* FAQ */
.me-guide-faq details { background: #fff; border-radius: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; border: 1px solid #e8edf2; cursor: pointer; transition: all .3s; }
.me-guide-faq details:hover { border-color: #c8d0da; }
.me-guide-faq details[open] { box-shadow: 0 4px 15px rgba(247,216,117,0.15); }
.me-guide-faq summary { font-weight: 700; font-size: 1.05rem; color: #0f2b3d; display: flex; justify-content: space-between; align-items: center; }
.me-guide-faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: #2d7fb9; transition: transform .3s; }
.me-guide-faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.hero-renovation ~ .me-guide-faq details[open] { border-color: #f7d875; }
.hero-isolation-facades ~ .me-guide-faq details[open] { border-color: #ff8f00; }
.hero-isolation-toiture ~ .me-guide-faq details[open] { border-color: #ffb300; }
.hero-pac-air-air ~ .me-guide-faq details[open] { border-color: #00e5ff; }
.hero-photovoltaique ~ .me-guide-faq details[open] { border-color: #ffeb3b; }
.hero-cet ~ .me-guide-faq details[open] { border-color: #4fc3f7; }
.me-guide-faq .answer { margin-top: 0.75rem; font-size: 0.95rem; color: #5a6a7a; line-height: 1.7; }
/* Finance */
.me-guide-finance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.me-guide-finance-card { background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%); border-radius: 1rem; padding: 1.5rem; border: 1px solid #e8edf2; }
.me-guide-finance-card h4 { font-size: 1.1rem; font-weight: 700; color: #0f2b3d; margin: 0 0 0.25rem; }
.me-guide-finance-card .amount { font-size: 1.8rem; font-weight: 800; color: #2d7fb9; margin: 0.25rem 0; }
.me-guide-finance-card .amount.vert { color: #4caf50; }
.me-guide-finance-card p { font-size: 0.85rem; color: #5a6a7a; margin: 0; }
/* Alert */
.me-guide-alert { background: #fff3e0; border-left: 4px solid #ff9800; border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.me-guide-alert strong { color: #e65100; }
.me-guide-alert.info { background: #e3f2fd; border-left-color: #1976d2; }
.me-guide-alert.info strong { color: #0d47a1; }
.me-guide-alert.success { background: #e8f5e9; border-left-color: #388e3c; }
.me-guide-alert.success strong { color: #1b5e20; }
/* Tech table */
.me-guide-tech table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.me-guide-tech th { background: #0f2b3d; color: #fff; padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
.me-guide-tech td { padding: 0.7rem 1rem; border-bottom: 1px solid #e8edf2; }
.me-guide-tech tr:hover td { background: #f7f9fc; }
@media (max-width: 768px) {
	.me-guide-hero { padding: 2.5rem 1.25rem; }
	.me-guide-hero h1 { font-size: 1.8rem; }
	.me-guide-grid { grid-template-columns: 1fr; }
	.me-guide-steps { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   POPUP RECHERCHE — Slideout depuis la droite
   ============================================================ */
.me-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 9990;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.me-search-overlay.show {
	opacity: 1;
	pointer-events: auto;
}
.me-search-popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 480px;
	max-width: 100vw;
	background: #fff;
	z-index: 9991;
	box-shadow: -8px 0 40px rgba(0,0,0,0.12);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.me-search-popup.open {
	transform: translateX(0);
}
.me-search-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 16px;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}
.me-search-popup-header h3 {
	font-family: 'Geist', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}
.me-search-popup-close {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: none;
	background: #f1f5f9;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	font-size: 18px;
}
.me-search-popup-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.me-search-popup-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.me-search-input-wrap {
	position: relative;
	margin-bottom: 12px;
}
.me-search-input-wrap .material-symbols-outlined {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	color: #94a3b8;
	pointer-events: none;
}
#me-search-input {
	width: 100%;
	padding: 13px 16px 13px 46px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-family: 'Geist', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #0f172a;
	background: #f8fafc;
	outline: none;
	transition: all 0.2s;
	box-sizing: border-box;
}
#me-search-input:focus {
	border-color: #059669;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(5,150,105,0.1);
}
#me-search-input::placeholder {
	color: #94a3b8;
	font-weight: 400;
}
.me-search-loading {
	text-align: center;
	padding: 24px;
}
.me-search-loading span {
	display: inline-block;
	width: 6px;
	height: 6px;
	background: #059669;
	border-radius: 50%;
	animation: meSearchBounce 0.6s infinite alternate;
	margin: 0 3px;
}
.me-search-loading span:nth-child(2) { animation-delay: 0.2s; }
.me-search-loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes meSearchBounce {
	from { transform: translateY(0); opacity: 0.3; }
	to { transform: translateY(-8px); opacity: 1; }
}
.me-search-empty {
	text-align: center;
	padding: 40px 20px;
	color: #94a3b8;
	font-size: 13px;
}
.me-search-empty .material-symbols-outlined {
	font-size: 48px;
	color: #cbd5e1;
	margin-bottom: 12px;
	display: block;
}
.me-search-result-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	text-decoration: none;
	transition: background 0.15s;
	cursor: pointer;
}
.me-search-result-item:hover {
	background: #f1f5f9;
}
.me-search-result-img {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: #f8fafc;
	flex-shrink: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e2e8f0;
}
.me-search-result-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
}
.me-search-result-img .fallback {
	font-size: 20px;
	color: #cbd5e1;
}
.me-search-result-info {
	flex: 1;
	min-width: 0;
}
.me-search-result-title {
	font-family: 'Geist', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.me-search-result-brand {
	font-size: 10px;
	color: #94a3b8;
	font-weight: 500;
	margin-top: 2px;
	font-family: 'JetBrains Mono', monospace;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.me-search-result-price {
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	font-weight: 700;
	color: #059669;
	flex-shrink: 0;
}
.me-search-view-all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 8px 0 16px;
	padding: 12px;
	background: #0f172a;
	color: #fff;
	border-radius: 10px;
	text-decoration: none;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: background 0.2s;
}
.me-search-view-all:hover {
	background: #1e293b;
}
@media (max-width: 520px) {
	.me-search-popup { width: 100vw; }
}

/* --- Options de recherche : mode ET/OU + champs --- */
.me-search-options {
	margin-bottom: 12px;
}
.me-search-mode {
	display: flex;
	gap: 0;
	margin-bottom: 8px;
	background: #f1f5f9;
	border-radius: 8px;
	padding: 2px;
	width: fit-content;
}
.me-mode-btn {
	border: none;
	background: transparent;
	color: #64748b;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 14px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}
.me-mode-btn.active {
	background: #fff;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.me-mode-btn:hover:not(.active) {
	color: #0f172a;
}
.me-search-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.me-field-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 4px 10px;
	border-radius: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: all 0.15s;
	font-size: 10px;
	font-weight: 600;
	color: #94a3b8;
	user-select: none;
}
.me-field-chip.active {
	background: #f0fdf4;
	border-color: #86efac;
	color: #059669;
}
.me-field-chip:hover {
	border-color: #cbd5e1;
}
.me-field-chip input[type="checkbox"] {
	display: none;
}
