/* =========================================================
   BASE.CSS - Styles communs (Header, Footer, Buttons)
   Utilisé sur TOUTES les pages
   ========================================================= */

:root {
  --blue: #0F51AF;
  --blue2: #0B2F7A;
  --red: #E0192A;
  --bg: #F6F7FB;
  --text: #0B1220;
  --muted: #6B7280;
  --card: #ffffff;
  --line: rgba(10, 20, 40, 0.10);
  --shadow: 0 10px 28px rgba(10, 25, 60, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__tag {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-desktop {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: #111827;
  padding: 8px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(15, 81, 175, 0.08);
  color: var(--blue);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 25, 60, 0.06);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 25, 60, 0.10);
}

.btn i {
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: 1px solid rgba(15, 81, 175, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(15, 81, 175, 0.30);
}

.btn-outline {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 800;
}

.btn-outline:hover {
  border-color: rgba(15, 81, 175, 0.25);
  color: var(--blue);
}

.btn--cart {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border: 1px solid rgba(15, 81, 175, 0.35);
  color: #fff;
  position: relative;
}

.btn--cart:hover {
  filter: brightness(1.05);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.is-hidden {
  display: none !important;
}

.cartBadge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #E0192A;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(224, 25, 42, 0.35);
}

.cartBtn {
  position: relative;
}

/* =========================
   MOBILE MENU (BURGER)
   ========================= */
.header__burger {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 25, 60, 0.06);
}

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 20, 30, 0.45);
}

.drawer.is-open {
  display: block;
}

.drawer__panel {
  position: absolute;
  right: 10px;
  top: 10px;
  width: min(360px, 92vw);
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.drawer__title {
  font-weight: 800;
  font-size: 14px;
}

.drawer__close {
  width: 42px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.drawer__links {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer__links a {
  padding: 12px;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(15, 81, 175, 0.06);
  transition: all 0.2s ease;
}

.drawer__links a:hover {
  background: rgba(15, 81, 175, 0.10);
  color: var(--blue);
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  background: linear-gradient(135deg, rgba(11, 47, 122, 0.95), rgba(15, 81, 175, 0.90));
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 60px;
  border-top: 3px solid rgba(224, 25, 42, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px 0;
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* =========================
   RESPONSIVE (BURGER FIX)
   ========================= */
@media (min-width: 980px) {
  .header__burger {
    display: none !important;
  }
  
  .drawer {
    display: none !important;
  }
  
  .nav-desktop {
    display: flex !important;
  }
}

@media (max-width: 979px) {
  .nav-desktop {
    display: none !important;
  }
  
  .header__burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  
  .brand {
    min-width: 0;
  }
}