/* ===== Reset & Variables ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-border: #E0E0E0;
  --color-accent: #333333;
  --header-height: 150px;
  --container-max: 1400px;
  --radius: 4px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  position: relative;
  width: 100%;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-logo img {
  height: 125px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav-left {
  flex: 1;
}

.header-nav-right {
  flex: 1;
  justify-content: flex-end;
}

.header-nav a {
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--color-text);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-badge {
  display: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.cart-badge.visible {
  display: inline-block;
}

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-accent);
}

/* ===== Category Filter ===== */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 28px 0 8px;
}

.category-btn {
  padding: 7px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-light);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.category-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.category-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 64px;
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
}

/* ===== Cart icon SVG ===== */
.cart-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ===== Liens partenaires fixes (coins bas, toutes pages) ===== */
.corner-link {
  position: fixed;
  bottom: 20px;
  z-index: 200;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.corner-link:hover {
  opacity: 1;
  transform: scale(1.06);
}

.corner-left {
  left: 20px;
}

.corner-right {
  right: 20px;
}

.corner-link img {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .corner-link {
    bottom: 12px;
  }
  .corner-left {
    left: 12px;
  }
  .corner-right {
    right: 12px;
  }
  .corner-link img {
    height: 44px;
  }
}

/* ===== Pages de contenu (À propos, Contact) ===== */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.page-content h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.page-content p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content .contact-email {
  color: var(--color-text);
  text-decoration: underline;
}

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== Loading / empty states ===== */
.loading-msg,
.empty-msg {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}
