/* ================================================================
   EDUBOX AFRIQUE — Design System v3
   Brand: Navy #0B2E59 | Gold #C8982D | Font: Sora
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --primary:     #0B2E59;
  --primary-dk:  #071E3D;
  --primary-lt:  #1A4A80;
  --gold:        #C8982D;
  --gold-lt:     #E5B84A;
  --gold-dk:     #A07520;
  --green:       #16A34A;
  --white:       #FFFFFF;
  --light:       #F4F6F9;
  --light2:      #E8ECF2;
  --dark:        #0D1B2E;
  --text:        #1A2B42;
  --text-2:      #4A5E78;
  --text-3:      #5A7090;
  --border:      #D8E3EF;
  --success:     #16A34A;
  --error:       #DC2626;
  --font:        'Sora', 'Helvetica Neue', Arial, sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-sm:   0 1px 4px rgba(11,46,89,.08);
  --shadow:      0 4px 20px rgba(11,46,89,.12);
  --shadow-lg:   0 12px 48px rgba(11,46,89,.16);
  --shadow-xl:   0 24px 80px rgba(11,46,89,.20);
  --transition:  all .25s cubic-bezier(.4,0,.2,1);
  --topbar-h:    42px;
  --header-h:    72px;
  --nav-h:       52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary-lt); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.container { width: 92%; max-width: 1240px; margin: 0 auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; line-height: 1; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(11,46,89,.30); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,152,45,.35); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 6px; }

.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.tag-gold { background: rgba(200,152,45,.12); color: var(--gold-dk); border: 1px solid rgba(200,152,45,.25); }
.tag-navy { background: rgba(11,46,89,.10); color: var(--primary); border: 1px solid rgba(11,46,89,.18); }
.tag-success { background: rgba(22,163,74,.10); color: var(--success); border: 1px solid rgba(22,163,74,.25); }

.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: var(--primary); line-height: 1.2; }
.section-title span { color: var(--gold); }
.section-sub { font-size: 16px; color: var(--text-2); margin-top: 12px; max-width: 560px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 52px 0; }
.section-bg { background: var(--light); }
.section-hd { margin-bottom: 44px; }
.section-hd-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

/* TOPBAR */
#topbar { height: var(--topbar-h); background: var(--primary-dk); display: flex; align-items: center; position: relative; z-index: 200; }
.tb-inner { display: flex; align-items: center; justify-content: space-between; width: 92%; max-width: 1240px; margin: 0 auto; }
.tb-left { display: flex; align-items: center; gap: 20px; }
.tb-left a { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.75); transition: var(--transition); }
.tb-left a:hover { color: var(--gold-lt); }
.tb-right { display: flex; align-items: center; gap: 12px; }
.tb-lang { display: flex; align-items: center; background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; }
.tb-lang button { padding: 4px 11px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); transition: var(--transition); }
.tb-lang button.active, .tb-lang button:hover { background: var(--gold); color: #fff; }
.tb-phone { display: flex; align-items: center; gap: 6px; background: var(--gold); color: #fff !important; padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; transition: var(--transition); }
.tb-phone:hover { background: var(--gold-lt) !important; }

/* HEADER */
#header { height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 150; transition: box-shadow .3s ease; }
#header.scrolled { box-shadow: 0 2px 20px rgba(11,46,89,.12); border-bottom-color: transparent; }
.hdr-inner { height: 100%; display: flex; align-items: center; gap: 24px; width: 92%; max-width: 1240px; margin: 0 auto; }
.hdr-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hdr-logo img { height: 52px; width: auto; }
.hdr-logo-texts { display: flex; flex-direction: column; }
.hdr-logo-name { font-size: 17px; font-weight: 800; line-height: 1.1; color: var(--primary); letter-spacing: -.3px; }
.hdr-logo-name span { color: var(--gold); }
.hdr-logo-tag { font-size: 10px; color: var(--text-3); letter-spacing: 1px; font-weight: 500; text-transform: uppercase; }
.hdr-search { flex: 1; max-width: 480px; display: flex; align-items: center; position: relative; }
.hdr-search input { width: 100%; padding: 10px 16px 10px 44px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--text); background: var(--light); transition: var(--transition); outline: none; }
.hdr-search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(11,46,89,.08); }
.hdr-search input::placeholder { color: var(--text-3); }
.hdr-search .srch-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.hdr-search .srch-ico.active { color: var(--primary); }
.srch-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 300; overflow: hidden; animation: dropIn .2s ease; }
.srch-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background .15s; }
.srch-item:hover { background: var(--light); }
.srch-item-img { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; background: var(--light); padding: 4px; }
.srch-item-name { font-size: 13px; font-weight: 600; color: var(--text); }
.srch-item-brand { font-size: 11px; color: var(--text-3); }
.srch-item-price { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--gold-dk); }
.srch-empty { padding: 20px 16px; text-align: center; color: var(--text-3); font-size: 14px; }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-icon-btn { position: relative; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--text-2); transition: var(--transition); cursor: pointer; }
.hdr-icon-btn:hover { background: var(--light); color: var(--primary); }
.hdr-badge { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.hdr-devis { display: flex; align-items: center; gap: 6px; padding: 9px 18px; background: var(--primary); color: #fff; border-radius: 9px; font-size: 13.5px; font-weight: 700; transition: var(--transition); }
.hdr-devis:hover { background: var(--primary-lt); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11,46,89,.25); }
.hdr-menu-btn { display: none; }

/* NAV */
#nav { height: var(--nav-h); background: var(--primary); position: sticky; top: var(--header-h); z-index: 140; }
.nav-inner { height: 100%; display: flex; align-items: center; width: 92%; max-width: 1240px; margin: 0 auto; gap: 2px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.80); transition: var(--transition); cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-link svg { flex-shrink: 0; transition: transform .2s ease; }
.nav-link:hover svg { transform: rotate(180deg); }
.nav-dropdown-wrap { position: relative; }
.nav-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); min-width: 220px; padding: 8px; opacity: 0; pointer-events: none; z-index: 400; transition: opacity .2s ease, transform .2s ease; margin-top: 8px; }
/* Pont invisible pour combler le gap entre nav-link et dropdown */
.nav-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown-wrap:hover .nav-dropdown, .nav-dropdown-wrap:focus-within .nav-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text); transition: background .15s; }
.nav-dropdown a:hover { background: var(--light); color: var(--primary); }
/* Mega menu : ancré à gauche du nav-item, jamais centré, ne déborde pas */
.nav-dropdown-mega {
  min-width: 520px;
  max-width: calc(100vw - 40px);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  left: 0;
  transform: translateY(4px); /* pas de translateX */
}
.nav-dropdown-wrap:hover .nav-dropdown-mega,
.nav-dropdown-wrap:focus-within .nav-dropdown-mega { transform: translateY(0); }
.mega-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; transition: background .15s; }
.mega-item:hover { background: var(--light); }
.mega-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mega-text .mt { font-size: 13px; font-weight: 600; color: var(--text); }
.mega-text .ms { font-size: 11px; color: var(--text-3); }
.nav-drop-title { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); padding: 4px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }

/* HERO */
#hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 50%, #1A3F72 100%); min-height: 580px; display: flex; align-items: center; }
#hero-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; width: 92%; max-width: 1240px; margin: 0 auto; padding: 72px 0; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,152,45,.18); color: var(--gold-lt); padding: 5px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; border: 1px solid rgba(200,152,45,.25); }
.hero-pill span { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 1.5s ease infinite; }
.hero-title { font-size: clamp(32px, 4.5vw, 56px); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 20px; letter-spacing: -.5px; }
.hero-title em { color: var(--gold-lt); font-style: normal; display: block; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.72); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 28px; margin-top: 48px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat-num { font-size: 26px; font-weight: 800; color: var(--gold-lt); line-height: 1; }
.hero-stat-lbl { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; }
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.hero-logo-wrap { width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-logo-ring { position: absolute; inset: -16px; border-radius: 50%; border: 1.5px solid rgba(200,152,45,.20); animation: ringPulse 3s ease infinite; }
.hero-logo-ring2 { position: absolute; inset: -32px; border-radius: 50%; border: 1px solid rgba(200,152,45,.10); animation: ringPulse 3s ease .7s infinite; }
.hero-logo-img { width: 220px; height: 220px; filter: drop-shadow(0 12px 40px rgba(0,0,0,.35)); animation: floatY 4s ease-in-out infinite; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-badge { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.10); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 6px 12px; font-size: 12px; color: rgba(255,255,255,.85); font-weight: 600; }

/* STATS BAR */
#stats-bar { background: var(--gold); padding: 0; }
.stats-bar-inner { display: flex; align-items: stretch; width: 92%; max-width: 1240px; margin: 0 auto; }
.stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px; border-right: 1px solid rgba(255,255,255,.20); transition: background .2s; }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.08); }
.stat-num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,.80); margin-top: 3px; font-weight: 500; }

/* BRANDS */
#brands { padding: 48px 0; background: var(--white); border-bottom: 1px solid var(--border); overflow: hidden; }
.brands-label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 28px; }
.brands-track { display: flex; }
.brands-list { display: flex; align-items: center; flex-shrink: 0; animation: marquee 28s linear infinite; }
.brands-list:nth-child(2) { animation-delay: -14s; }
.brand-pill { display: flex; align-items: center; gap: 8px; padding: 8px 20px; margin: 0 6px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text-2); font-size: 13px; font-weight: 700; white-space: nowrap; transition: var(--transition); }
.brand-pill img { height: 20px; width: auto; filter: grayscale(1); opacity: .6; transition: var(--transition); }
.brand-pill:hover { border-color: var(--primary); color: var(--primary); }
.brand-pill:hover img { filter: none; opacity: 1; }

/* CATEGORIES */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 28px 24px 24px; cursor: pointer; background: var(--white); border: 1.5px solid var(--border); transition: var(--transition); text-align: left; display: block; }
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; background: var(--light); transition: var(--transition); }
.cat-card:hover .cat-icon { background: rgba(11,46,89,.08); }
.cat-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cat-card p { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.cat-card .cat-arrow { position: absolute; right: 16px; bottom: 16px; width: 32px; height: 32px; border-radius: 8px; background: var(--light); display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: var(--transition); }
.cat-card:hover .cat-arrow { background: var(--primary); color: #fff; transform: translateX(2px); }
.cat-card.featured { background: linear-gradient(135deg, var(--primary), var(--primary-lt)); border-color: transparent; }
.cat-card.featured h3, .cat-card.featured p { color: rgba(255,255,255,.9); }
.cat-card.featured .cat-icon { background: rgba(255,255,255,.15); }
.cat-card.featured .cat-arrow { background: var(--gold); color: #fff; }

/* PRODUCTS */
.pg4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); cursor: pointer; }
.product-card:hover { border-color: rgba(11,46,89,.25); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pc-img { position: relative; height: 192px; background: var(--light); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .4s ease; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-badge { position: absolute; top: 10px; left: 10px; }
.pc-wishlist { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(255,255,255,.9); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: var(--transition); cursor: pointer; opacity: 0; backdrop-filter: blur(4px); }
.product-card:hover .pc-wishlist { opacity: 1; }
.pc-wishlist:hover { color: var(--error); background: #fff; }
.pc-info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pc-brand { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); }
.pc-name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.4; flex: 1; }
.pc-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.pc-price { font-size: 17px; font-weight: 800; color: var(--primary); }
.pc-stock { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--success); font-weight: 600; }
.pc-stock::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
.pc-actions { padding: 12px 16px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.pc-btn-cart { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 700; transition: var(--transition); }
.pc-btn-cart:hover { background: var(--primary-lt); }
.pc-btn-detail { width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: var(--transition); flex-shrink: 0; }
.pc-btn-detail:hover { border-color: var(--primary); color: var(--primary); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap { border-radius: var(--radius-xl); overflow: hidden; background: linear-gradient(135deg, var(--primary-dk), var(--primary)); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; }
.about-img-logo { width: 220px; opacity: .9; animation: floatY 4s ease-in-out infinite; }
.about-badge-wrap { position: absolute; bottom: -20px; right: -20px; }
.about-badge { background: var(--gold); color: #fff; border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.about-badge span { font-size: 24px; font-weight: 800; display: block; }
.about-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.about-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); transition: var(--transition); }
.about-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.about-card-icon { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(11,46,89,.06); }
.about-card h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.about-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* CTA */
#cta-band { background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, #163D72 100%); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
#cta-band::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(200,152,45,.08); }
#cta-band::after { content: ''; position: absolute; bottom: -60px; left: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(200,152,45,.06); }
.cta-inner { position: relative; z-index: 1; }
.cta-title { font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-sub { font-size: 16px; color: rgba(255,255,255,.70); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btns .btn-outline { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.85); }
.cta-btns .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }

/* FOOTER */
#footer { background: var(--primary-dk); color: rgba(255,255,255,.80); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-wrap img { height: 52px; }
.footer-logo-name { font-size: 16px; font-weight: 800; color: #fff; }
.footer-logo-name span { color: var(--gold-lt); }
.footer-tagline { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 24px; }
.footer-newsletter { display: flex; margin-top: 8px; }
.footer-newsletter input { flex: 1; padding: 10px 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-right: none; border-radius: 8px 0 0 8px; color: #fff; font-size: 13px; font-family: var(--font); outline: none; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter button { padding: 10px 16px; background: var(--gold); color: #fff; border-radius: 0 8px 8px 0; font-size: 13px; font-weight: 700; font-family: var(--font); transition: var(--transition); }
.footer-newsletter button:hover { background: var(--gold-lt); }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.95); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 13.5px; color: rgba(255,255,255,.55); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-link:hover { color: var(--gold-lt); transform: translateX(4px); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,.60); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: var(--transition); }
.social-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 12.5px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--gold-lt); }
.footer-bottom-links { display: flex; gap: 18px; }

/* MOBILE NAV */
#mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; opacity: 0; pointer-events: none; transition: opacity .3s; }
#mobile-nav-overlay.open { opacity: 1; pointer-events: all; }
#mobile-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; background: var(--white); z-index: 501; overflow-y: auto; transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-xl); }
#mobile-nav.open { transform: translateX(0); }
.mnav-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.mnav-logo { height: 44px; }
.mnav-close { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: var(--transition); }
.mnav-body { padding: 12px; }
.mnav-link { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); transition: background .15s; }
.mnav-link:hover { background: var(--light); color: var(--primary); }
.mnav-section { margin-top: 8px; }
.mnav-section-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); padding: 8px 12px 4px; }
.mnav-footer { padding: 16px 12px; border-top: 1px solid var(--border); margin-top: 8px; }
.mnav-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 14px; font-weight: 700; transition: var(--transition); }

/* PRODUCT MODAL */
#prod-modal { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
#prod-modal.open { opacity: 1; pointer-events: all; }
.modal-overlay { position: absolute; inset: 0; background: rgba(7,30,61,.65); backdrop-filter: blur(6px); }
.modal-box { position: relative; z-index: 1; background: var(--white); border-radius: var(--radius-xl); max-width: 900px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xl); animation: modalIn .3s ease; }
.modal-body { overflow-y: auto; flex: 1; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 8px; background: rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: var(--transition); }
.modal-close:hover { background: var(--error); color: #fff; }
.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal-gallery { background: var(--light); padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.modal-main-img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); background: #fff; padding: 16px; box-shadow: var(--shadow-sm); }
.modal-thumbs { display: flex; gap: 8px; }
.modal-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: contain; background: #fff; padding: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.modal-thumb.active { border-color: var(--primary); }
.modal-info { padding: 32px; overflow-y: auto; }
.modal-brand { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.modal-name { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 12px; }
.modal-price { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.modal-price-sub { font-size: 12px; color: var(--text-3); margin-bottom: 20px; }
.modal-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.modal-specs { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 24px; }
.modal-specs h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.spec-row { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--light); font-size: 12.5px; }
.spec-row:last-child { border-bottom: none; }
.spec-k { color: var(--text-3); min-width: 130px; flex-shrink: 0; font-weight: 500; }
.spec-v { color: var(--text); font-weight: 600; }
.modal-qty { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.qty-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--text); transition: var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-val { font-size: 16px; font-weight: 700; min-width: 32px; text-align: center; }
.modal-add-cart { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 15px; font-weight: 700; transition: var(--transition); }
.modal-add-cart:hover { background: var(--primary-lt); transform: translateY(-1px); }
.modal-secondary-btns { display: flex; gap: 10px; margin-top: 10px; }
.modal-wa-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; background: #25D366; color: #fff; border-radius: 10px; font-size: 13px; font-weight: 700; transition: var(--transition); }
.modal-wa-btn:hover { background: #1eba5a; }
.modal-datasheet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: var(--transition); }
.modal-datasheet-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--light); }

/* TOAST */
#toast-container { position: fixed; bottom: 100px; right: 24px; z-index: 900; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--white); color: var(--text); box-shadow: var(--shadow-lg); border-left: 4px solid var(--primary); min-width: 220px; animation: toastIn .3s ease; border: 1px solid var(--border); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }

/* WHATSAPP */
#wa-widget { position: fixed; bottom: 24px; right: 24px; z-index: 800; }
.wa-btn { width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,.40); animation: waPulse 2.5s ease infinite; cursor: pointer; transition: var(--transition); }
.wa-btn:hover { background: #1eba5a; transform: scale(1.08); }
.wa-bubble { position: absolute; bottom: 72px; right: 0; width: 250px; background: var(--white); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-xl); border: 1px solid var(--border); transform: scale(.9) translateY(8px); transform-origin: bottom right; opacity: 0; pointer-events: none; transition: var(--transition); }
.wa-bubble.visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: all; }
.wa-bubble-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wa-bubble-avatar { width: 38px; height: 38px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; }
.wa-bubble-name { font-size: 13px; font-weight: 700; color: var(--text); }
.wa-bubble-status { font-size: 11px; color: var(--success); }
.wa-bubble p { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 12px; }
.wa-bubble a { display: block; text-align: center; padding: 10px; background: #25D366; color: #fff; border-radius: 8px; font-size: 13px; font-weight: 700; }

/* ANIMATIONS */
[data-anim] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
[data-anim].animated { opacity: 1; transform: translateY(0); }
[data-anim][data-delay="1"] { transition-delay: .1s; }
[data-anim][data-delay="2"] { transition-delay: .2s; }
[data-anim][data-delay="3"] { transition-delay: .3s; }
[data-anim][data-delay="4"] { transition-delay: .4s; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes waPulse { 0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.40); } 50% { box-shadow: 0 6px 40px rgba(37,211,102,.65); } }
@keyframes ringPulse { 0% { opacity: .3; transform: scale(1); } 50% { opacity: .6; transform: scale(1.03); } 100% { opacity: .3; transform: scale(1); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ACCESSIBILITÉ — Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .brands-list { animation: none; }
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Skip link accessibilité */
.skip-link {
  position: absolute; top: -48px; left: 8px;
  background: var(--primary); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-weight: 700; font-size: 14px; z-index: 9999;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pg4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pg4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-img { width: 160px; height: 160px; }
  #nav { display: none; }
  .hdr-menu-btn { display: flex; }
  .hdr-devis span { display: none; }
  .modal-grid { grid-template-columns: 1fr; }
  /* Brand bar : scroll horizontal sur tablette */
  .brand-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; scrollbar-width: none; }
  .brand-bar::-webkit-scrollbar { display: none; }
  .pc-img { height: 160px; }
}
@media (max-width: 640px) {
  :root { --topbar-h: 36px; }
  .tb-left { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pg4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 52px 0; }
  /* Recherche mobile : visible en pleine largeur sous le header */
  .hdr-search { display: none; }
  /* Barre de recherche catalogue visible et pleine largeur */
  .filter-bar input { font-size: 16px; } /* évite le zoom iOS sur focus */
  .pc-img { height: 140px; }
  .pc-info { padding: 12px; }
  .pc-name { font-size: 12.5px; }
  .pc-price { font-size: 15px; }
  .pc-actions { padding: 10px 12px 12px; }
  .pc-btn-cart { font-size: 12px; padding: 8px 10px; }
}
@media (max-width: 420px) {
  .pg4 { grid-template-columns: 1fr; }
  .pc-img { height: 200px; }
}
