/* ================================================================
   POLTATRA — Style Apple-inspired
   Clean, minimal, premium. SF Pro / Inter feel.
   Palette : #fff fond · #1d1d1f titres · #c0392b accent rouge
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --bg:         #ffffff;
  --bg-soft:    #f5f5f7;
  --bg-dark:    #1d1d1f;
  --surface:    #fbfbfd;
  --border:     #d2d2d7;
  --border-soft:#e8e8ed;
  --red:        #c0392b;
  --red-dark:   #962d22;
  --red-light:  rgba(192,57,43,0.08);
  --text:       #1d1d1f;
  --text-dim:   #6e6e73;
  --text-faint: #a1a1a6;
  --white:      #ffffff;
  --success:    #34c759;
  --danger:     #ff3b30;
  --warning:    #ff9500;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --radius-pill:999px;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:'Montserrat', 'Inter', sans-serif;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:     0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-red: 0 8px 24px rgba(192,57,43,0.25);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
a  { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
p  { color: var(--text-dim); line-height: 1.75; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 52px; }
.nav-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem;
  letter-spacing: -0.02em; color: var(--text); flex-shrink: 0;
}
.nav-logo span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  font-size: 0.82rem; font-weight: 500; color: var(--text-dim);
  padding: 5px 12px; border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-cart {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-dim);
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--bg-soft); transition: all var(--transition);
}
.nav-cart:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px 0; transition: all var(--transition); border-radius: 2px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  padding: 12px 28px; border-radius: var(--radius-pill);
  cursor: pointer; border: none;
  transition: all var(--transition); text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); box-shadow: var(--shadow-red); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-ghost { background: var(--bg-soft); color: var(--text); }
.btn-ghost:hover { background: var(--border-soft); color: var(--text); }
.btn-dark { background: var(--bg-dark); color: var(--white); }
.btn-dark:hover { background: #2d2d2f; color: var(--white); transform: translateY(-1px); }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-sm { font-size: 0.82rem; padding: 8px 18px; }
.btn-lg { font-size: 1.05rem; padding: 16px 36px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .no-img { font-size: 3rem; color: var(--border); }
.card-body { padding: 20px; }
.card-category { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: -0.01em; }
.card-desc { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--border-soft); }
.card-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--text); }
.card-price small { font-size: 0.75rem; color: var(--text-faint); font-weight: 400; }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }

/* ── Stock ───────────────────────────────────────────────────── */
.stock-ok  { color: var(--success); font-size: 0.8rem; font-weight: 600; }
.stock-low { color: var(--warning); font-size: 0.8rem; font-weight: 600; }
.stock-out { color: var(--danger); font-size: 0.8rem; font-weight: 600; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.02em; }
.form-control {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 11px 16px; font-family: var(--font-body); font-size: 0.95rem;
  transition: all var(--transition);
}
.form-control:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px var(--red-light); }
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.77rem; color: var(--text-faint); margin-top: 5px; }
.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { padding: 12px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; border: 1px solid; }
.alert-success { background: rgba(52,199,89,0.08); border-color: rgba(52,199,89,0.3); color: #1a8a3d; }
.alert-error, .alert-danger { background: rgba(255,59,48,0.08); border-color: rgba(255,59,48,0.3); color: #cc2c22; }
.alert-info { background: var(--red-light); border-color: rgba(192,57,43,0.2); color: var(--red); }
.flash-messages { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.error-list { list-style: none; }
.error-list li { padding: 9px 14px; background: rgba(255,59,48,0.06); border: 1px solid rgba(255,59,48,0.2); border-radius: var(--radius-sm); color: #cc2c22; font-size: 0.87rem; margin-bottom: 6px; }

/* ── Badge ───────────────────────────────────────────────────── */
.badge { font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); display: inline-block; }
.badge-red     { background: var(--red-light); color: var(--red); }
.badge-success { background: rgba(52,199,89,0.1); color: #1a8a3d; }
.badge-danger  { background: rgba(255,59,48,0.1); color: #cc2c22; }
.badge-neutral { background: var(--bg-soft); color: var(--text-dim); }

/* ── Page header ─────────────────────────────────────────────── */
.page-header { background: var(--bg-soft); border-bottom: 1px solid var(--border-soft); padding: 48px 0; }
.page-header h1 { color: var(--text); margin-bottom: 8px; }
.page-header p  { color: var(--text-dim); font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-faint); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-faint); } .breadcrumb a:hover { color: var(--red); }

/* ── Section label ───────────────────────────────────────────── */
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block; }
.section-title { color: var(--text); margin-bottom: 12px; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-soft); margin: 32px 0; }

/* ── Auth ────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg-soft); }
.auth-box { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.auth-logo { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--text); margin-bottom: 4px; display: block; }
.auth-logo span { color: var(--red); }
.auth-subtitle { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 28px; }

/* ── Table ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead th { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); background: var(--bg-soft); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: middle; }
tbody tr:hover td { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }

/* ── Cart ────────────────────────────────────────────────────── */
.cart-item { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 80px; height: 80px; flex-shrink: 0; background: var(--bg-soft); border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-soft); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; color: var(--text); margin-bottom: 4px; font-size: 0.95rem; }
.cart-item-price { color: var(--text-dim); font-size: 0.9rem; }
.qty-control { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.qty-btn { background: var(--bg-soft); border: 1px solid var(--border-soft); color: var(--text); width: 30px; height: 30px; border-radius: var(--radius-pill); cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 600; transition: all var(--transition); }
.qty-btn:hover { background: var(--border-soft); }
.qty-input { width: 48px; text-align: center; background: var(--bg-soft); border: 1px solid var(--border-soft); color: var(--text); padding: 4px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.cart-summary { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 70px; }

/* ── Product detail ──────────────────────────────────────────── */
.product-gallery { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .no-img { font-size: 6rem; color: var(--border); }
.product-info-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--text); margin: 16px 0; letter-spacing: -0.03em; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  background: var(--bg-dark); position: relative; overflow: hidden;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(192,57,43,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 80% at 20% 80%, rgba(192,57,43,0.06) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 24px;
  background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.2);
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.hero h1 {
  color: var(--white); margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 60%, rgba(255,255,255,0.7));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 .sub { display: block; font-size: 0.55em; font-weight: 600; letter-spacing: 0.01em; margin-top: 6px; opacity: 0.65; -webkit-text-fill-color: rgba(255,255,255,0.65); }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.6); margin: 20px 0 36px; max-width: 540px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 48px 0; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; }
.hero-stat-num span { color: var(--red); }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── Services bar ────────────────────────────────────────────── */
.services-bar {
  background: var(--bg-soft); border-bottom: 1px solid var(--border-soft);
  padding: 18px 0; overflow: hidden;
}
.services-bar-inner { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.service-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-dim);
  letter-spacing: 0.04em;
}
.service-pill::before { content: ''; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }

/* ── Feature grid ────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.3s ease; box-shadow: var(--shadow-sm);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border); }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ── Contact cards ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.contact-card {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 24px;
  transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-icon { font-size: 1.5rem; margin-bottom: 12px; }
.contact-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.contact-value { font-size: 1rem; font-weight: 600; color: var(--text); }
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--red); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--bg-dark); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: var(--white); letter-spacing: -0.02em; margin-bottom: 12px; }
.footer-logo span { color: var(--red); }
.footer-desc { font-size: 0.87rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-tva { font-size: 0.77rem; color: rgba(255,255,255,0.25); margin-top: 10px; }
.footer-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; color: rgba(255,255,255,0.25); flex-wrap: wrap; gap: 8px; }

/* ── Profil ──────────────────────────────────────────────────── */
.profil-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.profil-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 32px; text-align: center; box-shadow: var(--shadow-sm); }
.profil-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--red-light); border: 2px solid var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--red); margin: 0 auto 16px; }

/* ── Search / Filter ─────────────────────────────────────────── */
.search-bar { display: flex; gap: 8px; margin-bottom: 28px; }
.search-bar .form-control { flex: 1; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip {
  font-size: 0.8rem; font-weight: 600; padding: 6px 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border-soft);
  color: var(--text-dim); background: var(--white); cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.filter-chip:hover, .filter-chip.active { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
.animate-in { animation: fadeInUp 0.5s cubic-bezier(0.4,0,0.2,1) both; }
.animate-in:nth-child(1){animation-delay:.05s} .animate-in:nth-child(2){animation-delay:.1s}
.animate-in:nth-child(3){animation-delay:.15s} .animate-in:nth-child(4){animation-delay:.2s}
.animate-in:nth-child(5){animation-delay:.25s} .animate-in:nth-child(6){animation-delay:.3s}

/* ── Utilities ───────────────────────────────────────────────── */
.text-red{color:var(--red)} .text-white{color:var(--white)} .text-dim{color:var(--text-dim)}
.text-center{text-align:center} .text-right{text-align:right}
.mb-0{margin-bottom:0} .mb-8{margin-bottom:8px} .mb-16{margin-bottom:16px}
.mb-24{margin-bottom:24px} .mb-32{margin-bottom:32px}
.mt-8{margin-top:8px} .mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px}
.flex{display:flex} .items-center{align-items:center} .gap-8{gap:8px} .gap-16{gap:16px}
.w-full{width:100%}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display:none; }
  .nav-links.open { display:flex; flex-direction:column; position:absolute; top:52px; left:0; right:0; background:rgba(255,255,255,0.97); backdrop-filter:blur(20px); border-bottom:1px solid var(--border-soft); padding:12px; }
  .nav-toggle { display:block; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .hero-stats { gap:24px; }
}
@media (max-width: 640px) {
  .grid-products { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .profil-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .cart-item { flex-wrap:wrap; }
  .hero-stats { flex-direction:column; gap:16px; }
  .contact-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 480px) {
  .contact-grid { grid-template-columns:1fr; }
}
