/* ---------------------------------------------------------------------------
   Boutique — style inspiré FicoTime : blanc / bleu, fond gris clair,
   barre de recherche, badges HOT verts, prix en gros, réassurance en bas.
--------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #1ba0e2;
  --blue-dark: #1688c0;
  --ink: #2b2b2b;
  --soft: #8a8f99;
  --bg: #f2f3f5;
  --surface: #ffffff;
  --line: #e6e8ec;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --price: #2b2b2b;
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ===== Top header (logo + search + contact + cart) ===== */
.topbar { background: var(--surface); }
.topbar-inner { display: flex; align-items: center; gap: 28px; padding: 18px 20px; max-width: 1240px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; flex-shrink: 0; }
.logo .mark { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; color: #fff; font-size: 20px; }
.logo .name1 { color: var(--ink); }
.logo .name2 { color: var(--blue); }
.search { flex: 1; position: relative; }
.search input { width: 100%; border: none; background: var(--bg); border-radius: 100px; padding: 14px 52px 14px 22px; font-family: inherit; font-size: 15px; }
.search input:focus { outline: 2px solid var(--blue); }
.search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--blue); border: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; cursor: pointer; font-size: 16px; }
.header-contact { display: flex; align-items: center; gap: 11px; flex-shrink: 0; color: inherit; }
.header-contact:hover .ico { background: #25D366; color: #fff; border-color: #25D366; }
.header-contact .ico { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #25D366; transition: .2s; }
.header-contact .ico svg { width: 22px; height: 22px; }
.header-contact .lbl { font-size: 10px; letter-spacing: 1px; color: var(--soft); text-transform: uppercase; font-weight: 600; }
.header-contact .val { font-size: 16px; font-weight: 700; }
.header-cart { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-cart .acc { color: var(--ink); display: inline-flex; }
.header-cart .acc svg { width: 24px; height: 24px; }
.cart-btn { position: relative; color: var(--ink); display: inline-flex; }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn .badge { position: absolute; top: -7px; right: -9px; background: #f0584f; color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 100px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.header-cart .chev { color: var(--ink); display: inline-flex; }
.header-cart .chev svg { width: 18px; height: 18px; }

/* ===== Nav bar (blue category button + menu) ===== */
.navbar { background: var(--surface); border-top: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.navbar-inner { display: flex; align-items: stretch; gap: 0; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.cat-toggle { background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; padding: 18px 26px; display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.cat-toggle:hover { background: var(--blue-dark); }
.cat-menu { position: absolute; top: 100%; left: 0; width: 280px; background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.12); border-radius: 0 0 8px 8px; display: none; z-index: 50; }
.cat-toggle:hover .cat-menu, .cat-menu:hover { display: block; }
.cat-menu a { display: block; padding: 13px 22px; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.cat-menu a:hover { background: var(--bg); color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.main-nav a { padding: 18px 18px; font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }

/* ===== Hero band ===== */
.hero { background: var(--bg); padding: 50px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.hero .eyebrow { color: var(--soft); font-size: 22px; font-weight: 500; }
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 18px; }
.hero p { font-size: 17px; color: #555; margin-bottom: 8px; }
.hero .accent { color: #e9573f; font-weight: 700; }
.hero-visual { aspect-ratio: 1; max-width: 360px; margin: 0 auto; border-radius: 50%; background: var(--blue); display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 700; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .5px; padding: 14px 30px; border: none; border-radius: var(--radius); transition: .15s; text-transform: uppercase; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }

/* ===== Section ===== */
.section { padding: 50px 0; }
.section-title { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 36px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--blue); margin: 12px auto 0; }

/* ===== Product grid (FicoTime style) ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.product-thumb { position: relative; aspect-ratio: 1; background: #1a1a1a; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .no-img { width: 100%; height: 100%; display: grid; place-items: center; color: #777; font-size: 12px; background: #f0f0f0; }
.badge-hot { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px 12px; border-radius: 4px; text-transform: uppercase; z-index: 2; }
.badge-out { position: absolute; top: 12px; right: 12px; background: #999; color: #fff; font-size: 11px; padding: 5px 10px; border-radius: 4px; z-index: 2; }
.product-info { padding: 18px 16px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--soft); margin-bottom: 8px; font-weight: 500; }
.product-name { font-size: 15px; font-weight: 500; line-height: 1.4; margin-bottom: 14px; flex: 1; color: var(--ink); }
.product-price { font-size: 22px; font-weight: 700; color: var(--price); }

/* ===== Product detail ===== */
.crumbs { padding: 18px 0; font-size: 13px; color: var(--soft); }
.crumbs a:hover { color: var(--blue); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 20px 0 50px; }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #1a1a1a; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 78px; height: 78px; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); cursor: pointer; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--blue); }
.detail-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.detail-price { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.detail-insurance { color: #e9573f; font-weight: 600; margin-bottom: 22px; }
.detail-desc { color: #666; margin-bottom: 22px; line-height: 1.7; }
.detail-meta { font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.detail-meta strong { color: var(--ink); }
.divider { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.variant-select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 15px; margin-bottom: 20px; background: var(--surface); }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-control button { background: var(--bg); border: none; width: 42px; height: 50px; font-size: 18px; cursor: pointer; }
.qty-control input { width: 54px; height: 50px; text-align: center; border: none; font-size: 16px; font-family: inherit; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.share-row { display: flex; gap: 10px; margin-top: 22px; }
.share-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--soft); }
.share-row a:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Cart / checkout ===== */
.page-head { padding: 30px 0 6px; }
.page-head h1 { font-size: 34px; font-weight: 700; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 24px 0 60px; align-items: start; }
.cart-items { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.cart-item .ci-img-empty { width: 80px; height: 80px; border-radius: 6px; background: #eee; }
.cart-item .ci-name { font-weight: 500; }
.cart-item .ci-variant { font-size: 13px; color: var(--soft); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.summary h3 { font-size: 19px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--soft); font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; font-size: 19px; font-weight: 700; color: var(--ink); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-card h3 { font-size: 18px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #555; }
.form-field input, .form-field textarea { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: 15px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }

/* ===== Flash ===== */
.flashes { max-width: 1240px; margin: 14px auto 0; padding: 0 20px; }
.flash { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 8px; font-size: 14px; }
.flash.success { background: #e3f7ec; color: var(--green-dark); }
.flash.error { background: #fdeaea; color: #c0392b; }

/* ===== Reassurance strip ===== */
.reassure { background: var(--surface); border-top: 1px solid var(--line); }
.reassure-inner { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: 0 auto; padding: 34px 20px; }
.reassure-item { display: flex; align-items: center; gap: 16px; justify-content: center; border-right: 1px solid var(--line); }
.reassure-item:last-child { border-right: none; }
.reassure-item .ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--blue); }
.reassure-item .ico svg { width: 26px; height: 26px; }
.reassure-item h4 { font-size: 15px; font-weight: 700; }
.reassure-item p { font-size: 13px; color: var(--soft); }
.reassure-dots { display: none; }

/* ===== Footer ===== */
.site-footer { background: #1a1a1a; color: #999; padding: 26px 0; }
.footer-inner { text-align: center; font-size: 13px; }

/* ===== Empty ===== */
.empty-state { text-align: center; padding: 70px 0; color: var(--soft); }
.empty-state h2 { color: var(--ink); margin-bottom: 10px; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .hero-inner, .product-detail, .cart-layout { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .reassure-inner {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding: 26px 0;
  }
  .reassure-inner::-webkit-scrollbar { display: none; }
  .reassure-item {
    border-right: none;
    border-bottom: none;
    flex: 0 0 100%;
    scroll-snap-align: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
  }
  .reassure-item:last-child { border-bottom: none; }
  .reassure-dots { display: flex; justify-content: center; gap: 8px; padding-bottom: 18px; }
  .reassure-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
  .reassure-dots span.active { background: var(--blue); width: 22px; border-radius: 100px; }
}

/* ===== Mobile hamburger + slide-in drawer ===== */
.hamburger { display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; padding: 0 6px 0 0; line-height: 1; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 998; }
.drawer-overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 84vw; background: #fff; z-index: 999; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; box-shadow: 2px 0 20px rgba(0,0,0,.15); }
.drawer.open { transform: translateX(0); }
.drawer-search { padding: 18px 18px 8px; }
.drawer-search .search input { background: var(--bg); }
.drawer-tabs { display: flex; border-bottom: 1px solid var(--line); }
.drawer-tab { flex: 1; background: none; border: none; padding: 16px 8px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; border-bottom: 3px solid transparent; }
.drawer-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.drawer-panel a { display: block; padding: 16px 22px; font-size: 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.drawer-panel a:hover { background: var(--bg); color: var(--blue); }

@media (max-width: 768px) {
  .hamburger { display: block; order: -1; }
  .navbar { display: none; }            /* la barre de nav desktop laisse place au drawer */
  .header-contact { display: none; }     /* on masque le bloc contact sur mobile */
  .topbar-inner { gap: 14px; padding: 14px 16px; }
  .logo { font-size: 22px; }
  .search { order: 3; flex-basis: 100%; }
  .header-cart { margin-left: auto; }
}

/* ===== Floating WhatsApp button (mobile only) ===== */
.wa-float { display: none; }
@media (max-width: 768px) {
  .wa-float {
    display: grid; place-items: center;
    position: fixed; bottom: 18px; right: 18px; z-index: 1000;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    box-shadow: 0 6px 18px rgba(37,211,102,.45);
    animation: wa-pulse 2.4s infinite;
  }
  .wa-float svg { width: 32px; height: 32px; }
  .wa-float:active { transform: scale(.92); }
}
@keyframes wa-pulse {
  0% { box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 18px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Safety guard: SVG icons must never render at full size ===== */
.header-contact svg, .header-cart svg, .wa-float svg, .reassure-item svg, .hamburger svg { max-width: 100%; }
.wa-float { width: 56px; height: 56px; }
.wa-float svg { width: 32px; height: 32px; flex-shrink: 0; }
.header-contact .ico { overflow: hidden; }
