/* ========================================
   MANUTENTION EXPRESS - Stylesheet
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --yellow: #f5c000;
  --yellow-dark: #d4a700;
  --dark: #2c2c2c;
  --dark-footer: #3a3a3a;
  --gray: #666;
  --light-gray: #f5f5f5;
  --border: #ddd;
  --white: #fff;
  --text: #333;
  --link-color: #c47a00;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--text);
  background: #fff;
}

a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }

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

/* ========================================
   HEADER
   ======================================== */
.header-top {
  background: #222;
  color: #ccc;
  font-size: 11px;
  padding: 4px 15px;
  text-align: center;
}
.header-top .separator { margin: 0 8px; }
.pay-icons { color: #aaa; }

.header-main {
  background: #fff;
  border-bottom: 3px solid var(--yellow);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #fff8e1, #fff);
  border: 3px solid var(--yellow);
  border-radius: 8px;
  padding: 10px 30px;
  box-shadow: 0 2px 10px rgba(245,192,0,0.2);
}

.logo-icon { font-size: 36px; }

.logo-text {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  font-style: italic;
}
.logo-m, .logo-e {
  color: var(--yellow-dark);
  font-size: 32px;
}

.logo-tag {
  background: var(--yellow);
  color: #333;
  font-weight: bold;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.4;
}

.header-bar {
  background: #444;
  padding: 8px 0;
}

.header-bar .container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-home {
  background: #555;
  color: #fff;
  border: 1px solid #666;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}
.btn-home:hover { background: #666; text-decoration: none; }

.search-box {
  flex: 1;
  display: flex;
  max-width: 400px;
}
.search-box input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-size: 13px;
}
.search-box button {
  background: var(--yellow);
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  font-size: 14px;
}
.search-box button:hover { background: var(--yellow-dark); }

.cart-box {
  background: #555;
  color: #fff;
  padding: 6px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  border: 1px solid #666;
  margin-left: auto;
}
.cart-box:hover { background: #666; }
.cart-arrow { font-size: 10px; margin-left: 5px; }

.btn-connexion {
  background: #555;
  color: #fff;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  position: absolute;
  top: 40px;
  right: 15px;
}
.header-right { position: relative; }

/* ========================================
   MAIN LAYOUT
   ======================================== */
.main-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.devis-box {
  border: 1px solid var(--border);
  margin-bottom: 15px;
  background: #fff;
}
.devis-title {
  background: #555;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
}
.devis-empty {
  padding: 10px 12px;
  color: #888;
  font-size: 12px;
  font-style: italic;
}
.btn-devis {
  display: block;
  background: var(--light-gray);
  border: 1px solid var(--border);
  margin: 8px;
  padding: 7px 12px;
  font-size: 12px;
  color: #444;
  border-radius: 3px;
}
.btn-devis:hover { background: #e8e8e8; text-decoration: none; }

.trust-box {
  border: 2px solid var(--yellow);
  margin-bottom: 15px;
  padding: 15px;
  text-align: center;
  background: #fff;
}
.trust-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--yellow-dark);
  line-height: 1;
  font-family: serif;
}
.trust-text {
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
  margin: 5px 0;
}
.trust-brand {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #333;
}
.trust-brand small { font-size: 10px; letter-spacing: 3px; }

.categories-sidebar {
  border: 1px solid var(--border);
  background: #fff;
}
.cat-title {
  background: var(--light-gray);
  padding: 8px 12px;
  font-weight: bold;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  color: #444;
}
.categories-sidebar ul {
  list-style: none;
}
.categories-sidebar ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--link-color);
  border-bottom: 1px solid #f0f0f0;
}
.categories-sidebar ul li a:hover {
  background: #fff8e1;
  text-decoration: none;
  padding-left: 16px;
}

/* ========================================
   PRODUCT GRID
   ======================================== */
.content { flex: 1; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.product-card {
  border: 2px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  display: block;
  text-decoration: none;
}
.product-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 3px 12px rgba(245,192,0,0.3);
  text-decoration: none;
}

.product-img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  overflow: hidden;
  position: relative;
}

/* Colored SVG illustrations for each product type */
.product-visual {
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Each category gets a distinct illustration using CSS shapes */
.tp-manuel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='5' y='55' width='60' height='8' rx='2' fill='%23f5c000'/%3E%3Crect x='10' y='35' width='8' height='22' fill='%23d4a700'/%3E%3Crect x='45' y='35' width='8' height='22' fill='%23d4a700'/%3E%3Crect x='8' y='25' width='50' height='12' rx='3' fill='%23555'/%3E%3Ccircle cx='18' cy='68' r='7' fill='%23333'/%3E%3Ccircle cx='18' cy='68' r='3' fill='%23777'/%3E%3Ccircle cx='52' cy='68' r='7' fill='%23333'/%3E%3Ccircle cx='52' cy='68' r='3' fill='%23777'/%3E%3C/svg%3E");
}
.tp-elec {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='5' y='50' width='55' height='8' rx='2' fill='%23f5c000'/%3E%3Crect x='8' y='30' width='8' height='22' fill='%23d4a700'/%3E%3Crect x='42' y='30' width='8' height='22' fill='%23d4a700'/%3E%3Crect x='5' y='10' width='45' height='22' rx='4' fill='%23555'/%3E%3Crect x='10' y='15' width='35' height='12' rx='2' fill='%23333'/%3E%3Ccircle cx='15' cy='64' r='8' fill='%23222'/%3E%3Ccircle cx='15' cy='64' r='3' fill='%23666'/%3E%3Ccircle cx='50' cy='64' r='8' fill='%23222'/%3E%3Ccircle cx='50' cy='64' r='3' fill='%23666'/%3E%3C/svg%3E");
}
.gerbeur-manuel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='35' y='5' width='8' height='60' rx='2' fill='%23555'/%3E%3Crect x='20' y='55' width='38' height='6' rx='2' fill='%23f5c000'/%3E%3Crect x='20' y='65' width='38' height='6' rx='2' fill='%23f5c000'/%3E%3Crect x='10' y='15' width='22' height='8' rx='2' fill='%23d4a700'/%3E%3Ccircle cx='28' cy='72' r='5' fill='%23333'/%3E%3Ccircle cx='50' cy='72' r='5' fill='%23333'/%3E%3C/svg%3E");
}
.gerbeur-elec {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='33' y='5' width='10' height='55' rx='2' fill='%23555'/%3E%3Crect x='18' y='52' width='42' height='7' rx='2' fill='%23f5c000'/%3E%3Crect x='18' y='62' width='42' height='7' rx='2' fill='%23f5c000'/%3E%3Crect x='8' y='12' width='22' height='18' rx='3' fill='%23333'/%3E%3Crect x='11' y='15' width='16' height='8' rx='1' fill='%23555'/%3E%3Ccircle cx='26' cy='71' r='5' fill='%23222'/%3E%3Ccircle cx='52' cy='71' r='5' fill='%23222'/%3E%3C/svg%3E");
}
.table-manuel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='5' y='10' width='70' height='10' rx='2' fill='%23555'/%3E%3Cpolygon points='15,20 25,55 20,55 10,20' fill='%23f5c000'/%3E%3Cpolygon points='65,20 55,55 60,55 70,20' fill='%23f5c000'/%3E%3Cpolygon points='30,20 40,55 35,55 25,20' fill='%23d4a700'/%3E%3Cpolygon points='50,20 40,55 45,55 55,20' fill='%23d4a700'/%3E%3Crect x='5' y='55' width='70' height='8' rx='2' fill='%23555'/%3E%3Crect x='5' y='63' width='70' height='5' rx='2' fill='%23333'/%3E%3C/svg%3E");
}
.table-elec {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='5' y='8' width='70' height='10' rx='2' fill='%23555'/%3E%3Cpolygon points='15,18 25,50 20,50 10,18' fill='%23f5c000'/%3E%3Cpolygon points='65,18 55,50 60,50 70,18' fill='%23f5c000'/%3E%3Cpolygon points='30,18 40,50 35,50 25,18' fill='%23d4a700'/%3E%3Cpolygon points='50,18 40,50 45,50 55,18' fill='%23d4a700'/%3E%3Crect x='5' y='50' width='70' height='8' rx='2' fill='%23555'/%3E%3Crect x='5' y='58' width='70' height='5' rx='2' fill='%23333'/%3E%3Crect x='30' y='63' width='20' height='8' rx='2' fill='%23222'/%3E%3C/svg%3E");
}
.inox {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='5' y='10' width='70' height='10' rx='2' fill='%23aaa'/%3E%3Cpolygon points='15,20 25,55 20,55 10,20' fill='%23ccc'/%3E%3Cpolygon points='65,20 55,55 60,55 70,20' fill='%23ccc'/%3E%3Cpolygon points='30,20 40,55 35,55 25,20' fill='%23bbb'/%3E%3Cpolygon points='50,20 40,55 45,55 55,20' fill='%23bbb'/%3E%3Crect x='5' y='55' width='70' height='8' rx='2' fill='%23aaa'/%3E%3C/svg%3E");
}
.table-moto {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='5' y='12' width='70' height='8' rx='2' fill='%23c00'/%3E%3Cpolygon points='12,20 22,55 17,55 7,20' fill='%23c00'/%3E%3Cpolygon points='68,20 58,55 63,55 73,20' fill='%23c00'/%3E%3Cpolygon points='28,20 38,55 33,55 23,20' fill='%23a00'/%3E%3Cpolygon points='52,20 42,55 47,55 57,20' fill='%23a00'/%3E%3Crect x='5' y='55' width='70' height='7' rx='2' fill='%23555'/%3E%3C/svg%3E");
}
.grue {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='30' y='50' width='10' height='25' rx='2' fill='%23555'/%3E%3Crect x='15' y='45' width='40' height='8' rx='2' fill='%23333'/%3E%3Cline x1='35' y1='10' x2='35' y2='45' stroke='%23f5c000' stroke-width='4'/%3E%3Cline x1='35' y1='10' x2='65' y2='25' stroke='%23f5c000' stroke-width='3'/%3E%3Cline x1='65' y1='25' x2='65' y2='40' stroke='%23666' stroke-width='2'/%3E%3Ccircle cx='65' cy='42' r='4' fill='%23333'/%3E%3Crect x='18' y='70' width='35' height='5' rx='2' fill='%23333'/%3E%3C/svg%3E");
}
.futs {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cellipse cx='30' cy='18' rx='18' ry='7' fill='%23366'/%3E%3Crect x='12' y='18' width='36' height='42' fill='%23255'/%3E%3Cellipse cx='30' cy='60' rx='18' ry='7' fill='%23366'/%3E%3Cline x1='12' y1='30' x2='48' y2='30' stroke='%23477' stroke-width='2'/%3E%3Cline x1='12' y1='46' x2='48' y2='46' stroke='%23477' stroke-width='2'/%3E%3C/svg%3E");
}
.accessoires {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='5' y='40' width='70' height='6' rx='2' fill='%23f5c000'/%3E%3Crect x='10' y='15' width='15' height='25' rx='2' fill='%23555'/%3E%3Crect x='55' y='15' width='15' height='25' rx='2' fill='%23555'/%3E%3Crect x='5' y='46' width='70' height='6' rx='2' fill='%23d4a700'/%3E%3Crect x='25' y='25' width='30' height='15' rx='2' fill='%23888'/%3E%3C/svg%3E");
}
.charges {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='10' y='20' width='55' height='35' rx='3' fill='%23f5c000'/%3E%3Crect x='15' y='25' width='20' height='25' rx='2' fill='%23d4a700'/%3E%3Crect x='40' y='25' width='20' height='25' rx='2' fill='%23d4a700'/%3E%3Ccircle cx='20' cy='65' r='6' fill='%23333'/%3E%3Ccircle cx='60' cy='65' r='6' fill='%23333'/%3E%3C/svg%3E");
}
.diable {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='33' y='5' width='8' height='65' rx='3' fill='%23555'/%3E%3Crect x='20' y='60' width='35' height='8' rx='2' fill='%23f5c000'/%3E%3Crect x='15' y='25' width='20' height='6' rx='2' fill='%23d4a700'/%3E%3Ccircle cx='27' cy='72' r='5' fill='%23222'/%3E%3Ccircle cx='52' cy='72' r='5' fill='%23222'/%3E%3C/svg%3E");
}
.chariot {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='10' y='20' width='55' height='30' rx='3' fill='%23f5c000'/%3E%3Crect x='10' y='50' width='55' height='8' rx='2' fill='%23d4a700'/%3E%3Ccircle cx='20' cy='65' r='7' fill='%23333'/%3E%3Ccircle cx='55' cy='65' r='7' fill='%23333'/%3E%3Ccircle cx='20' cy='65' r='3' fill='%23666'/%3E%3Ccircle cx='55' cy='65' r='3' fill='%23666'/%3E%3C/svg%3E");
}
.bacs {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect x='8' y='25' width='25' height='25' rx='2' fill='%23e44'/%3E%3Crect x='8' y='50' width='25' height='8' rx='2' fill='%23c33'/%3E%3Crect x='38' y='25' width='25' height='25' rx='2' fill='%23448'/%3E%3Crect x='38' y='50' width='25' height='8' rx='2' fill='%23336'/%3E%3Ccircle cx='18' cy='64' r='5' fill='%23333'/%3E%3Ccircle cx='55' cy='64' r='5' fill='%23333'/%3E%3C/svg%3E");
}
.escabeau {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cline x1='15' y1='5' x2='30' y2='70' stroke='%23555' stroke-width='5' stroke-linecap='round'/%3E%3Cline x1='50' y1='5' x2='65' y2='70' stroke='%23555' stroke-width='5' stroke-linecap='round'/%3E%3Crect x='15' y='18' width='35' height='5' rx='2' fill='%23f5c000'/%3E%3Crect x='18' y='33' width='32' height='5' rx='2' fill='%23f5c000'/%3E%3Crect x='21' y='48' width='29' height='5' rx='2' fill='%23f5c000'/%3E%3Crect x='5' y='66' width='70' height='6' rx='3' fill='%23333'/%3E%3C/svg%3E");
}

.product-name {
  padding: 8px 6px;
  font-size: 11px;
  font-weight: bold;
  color: #333;
  background: var(--yellow);
  text-align: center;
  line-height: 1.3;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark-footer);
  color: #bbb;
  padding: 30px 0 20px;
  margin-top: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
}

.footer h4 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #555;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 4px;
}
.footer-col ul li a {
  color: #aaa;
  font-size: 12px;
}
.footer-col ul li a:hover { color: var(--yellow); text-decoration: none; }

.footer-contact p {
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer-contact a { color: var(--yellow); }
.footer-contact strong { color: #fff; }

/* ========================================
   INNER PAGES
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, #f9f3d8, #fff);
  border: 1px solid var(--border);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 4px;
}
.page-hero h1 {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}
.page-hero p {
  color: #666;
  line-height: 1.6;
}

.breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--link-color); }

.info-section {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
.info-section h2 {
  font-size: 16px;
  color: #444;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}
.info-section p { line-height: 1.7; color: #555; margin-bottom: 10px; }

/* Info sidebar box */
.info-sidebar-widget {
  border: 1px solid var(--border);
  margin-bottom: 15px;
}
.info-sidebar-widget .widget-title {
  background: var(--light-gray);
  padding: 8px 12px;
  font-weight: bold;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  color: #555;
}
.info-sidebar-widget ul {
  list-style: none;
}
.info-sidebar-widget ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--link-color);
  border-bottom: 1px solid #f0f0f0;
}
.info-sidebar-widget ul li a::before { content: '›'; font-weight: bold; }
.info-sidebar-widget ul li a:hover { background: #fff8e1; text-decoration: none; }

/* Contact form */
.contact-form { padding: 20px; }
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #555;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  margin-bottom: 14px;
  font-family: Arial, sans-serif;
}
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--yellow); }
.btn-submit {
  background: var(--yellow);
  border: none;
  padding: 10px 25px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  color: #333;
}
.btn-submit:hover { background: var(--yellow-dark); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-container { flex-direction: column; }
  .sidebar { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .logo-wrap { flex-direction: column; text-align: center; gap: 8px; }
}
