/* ══════════════════════════════════════════════
   TBT3D — Feuille de style partagée
   ══════════════════════════════════════════════ */

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

:root {
  --white: #fff;
  --black: #111;
  --bg: #f9f9f9;
  --border: #e8e8e8;
  --muted: #888;
  --soft: #555;
  --font: 'Inter', system-ui, sans-serif;
  --nav-h: 70px;
  --max: 1280px;
  --r: 50px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); padding-top: var(--nav-h); font-size: 14px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── NAVBAR ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  height: var(--nav-h); padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo svg { height: 42px; width: auto; color: var(--black); display: block; }
.nav-links { display: flex; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--soft); font-size: 14px;
  padding: 8px 16px; border-radius: 6px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--black); background: var(--bg); }
.nav-links a.active { color: var(--black); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-icon {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; border-radius: 6px;
  color: var(--black); transition: background .15s; text-decoration: none;
}
.nav-icon:hover { background: var(--bg); }
.nav-icon svg { width: 20px; height: 20px; }
.nav-burger { display: none; }
.search-bar { display: none; border-top: 1px solid var(--border); background: var(--white); padding: 12px 32px; }
.search-bar.open { display: block; }
.search-inner {
  max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: 50px; padding: 10px 18px; transition: border-color .2s;
}
.search-inner:focus-within { border-color: var(--black); }
.search-inner input { flex: 1; border: none; outline: none; font-family: var(--font); font-size: 14px; background: transparent; }
.search-inner button { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--muted); }
.mobile-nav { display: none; flex-direction: column; padding: 16px 24px 20px; border-top: 1px solid var(--border); gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; color: var(--black); font-size: 15px; padding: 10px 12px; border-radius: 6px; transition: background .15s; }
.mobile-nav a:hover { background: var(--bg); }
@media(max-width:768px){ .nav-links { display: none; } .nav-burger { display: flex; } .nav-inner { padding: 0 20px; } }

/* ─── LAYOUT ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media(max-width:600px){ .container { padding: 0 20px; } }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
@media(max-width:600px){ .section { padding: 56px 0; } }

.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -.01em; }
.section-sub { font-size: 15px; color: var(--soft); margin-top: 12px; line-height: 1.7; }

/* ─── BOUTONS ─── */
.btn { display: inline-block; padding: 13px 28px; border-radius: var(--r); font-family: var(--font); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: opacity .2s; border: none; letter-spacing: .02em; }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { opacity: .85; }
.btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--black); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { opacity: .88; }
.btn-lg { padding: 15px 36px; font-size: 14px; }

/* ─── PRODUIT CARD ─── */
.product-card { text-decoration: none; color: var(--black); display: block; transition: transform .2s; }
.product-card:hover { transform: translateY(-4px); }
.product-card-img { aspect-ratio: 3/4; background: var(--bg); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); font-size: 13px; }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--black); color: var(--white); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 50px; }
.product-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.product-sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.product-price { font-size: 15px; font-weight: 400; }
.product-price-from { font-size: 12px; color: var(--muted); margin-right: 4px; }

/* ─── GRIDS ─── */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
@media(max-width:768px){ .grid-2 { grid-template-columns: 1fr; gap: 32px; } }

/* ─── BANNER SOMBRE ─── */
.banner-dark { background: var(--black); color: var(--white); padding: 80px 32px; text-align: center; }
.banner-dark h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; margin-bottom: 14px; letter-spacing: -.01em; }
.banner-dark p { font-size: 15px; color: rgba(255,255,255,.6); margin-bottom: 32px; line-height: 1.7; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ─── BG GRIS ─── */
.bg-gray { background: var(--bg); }

/* ─── FORMS ─── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  font-family: var(--font); font-size: 14px; color: var(--black);
  border-radius: var(--radius); outline: none; transition: border-color .2s; background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--black); }
.field textarea { resize: vertical; min-height: 120px; }

/* ─── FOOTER ─── */
#footer { background: #111; color: rgba(255,255,255,.7); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 60px 32px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
@media(max-width:900px){ .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media(max-width:600px){ .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 28px; } }
.footer-logo svg { height: 38px; width: auto; color: #fff; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.footer-tagline { font-size: 12px; margin-top: 12px !important; color: rgba(255,255,255,.3) !important; }
.footer-col-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; font-weight: 500; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,.55); font-size: 13px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; display: flex !important; align-items: center; justify-content: center; transition: border-color .15s !important; padding: 0 !important; }
.footer-social a:hover { border-color: rgba(255,255,255,.5) !important; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 20px 32px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 12px; }
.footer-pay { display: flex; gap: 6px; align-items: center; }
@media(max-width:600px){ .footer-bottom { padding: 16px 20px; } }

/* ─── UTILITAIRES ─── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.hr { height: 1px; background: var(--border); margin: 32px 0; }

/* ─── PAGE HEADER ─── */
.page-header { padding: 56px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 56px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: 10px; }
.page-header p { font-size: 15px; color: var(--soft); }

/* ─── FADE IN ─── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── NOTIFICATIONS / ALERTS ─── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error { background: #fff0f0; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info { background: #fff8ed; border: 1px solid #f5c842; color: #7a5c00; }
