/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #9a9a9a;
  --gray-600: #4a4a4a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
  --transition: 200ms ease;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gray-100);
  color: var(--black);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Archivo Black', sans-serif;
  line-height: 1.2;
}

img, video, canvas, iframe {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

/* Compense la hauteur du header fixe */
body { padding-top: var(--header-h); }

.logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  padding: 8px 14px;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

nav a:hover { background: var(--gray-100); color: var(--black); }

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icons i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-size: 16px;
}

.icons i:hover { background: var(--gray-100); color: var(--black); }

/* ===== USER WIDGET (connecté) ===== */
.user-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition);
  border: 1.5px solid transparent;
}
.user-widget:hover { background: var(--gray-100); border-color: var(--gray-200); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.user-widget-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  border: 2px solid #fff;
  position: absolute;
  bottom: 4px;
  left: 28px;
}

/* Dropdown menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.user-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.user-dropdown-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-100);
}
.user-dropdown-header strong {
  display: block;
  font-size: 13px;
  color: var(--black);
}
.user-dropdown-header span {
  font-size: 11px;
  color: var(--gray-400);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.user-dropdown-item:hover { background: var(--gray-50); color: var(--black); }
.user-dropdown-item.danger:hover { background: #fff1f2; color: #e11d48; }
.user-dropdown-item i { width: 16px; text-align: center; font-size: 13px; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 8px;
  transition: background var(--transition);
  background: none;
  border: none;
}

.hamburger:hover { background: var(--gray-100); }

.hamburger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--white);
  padding: 24px 6%;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 250ms ease, transform 250ms ease;
  display: flex;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav a {
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--black);
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  font-family: 'Archivo Black', sans-serif;
}

.mobile-nav a:hover { background: var(--gray-100); }

.mobile-nav-icons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav-icons i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 18px;
  color: var(--gray-600);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  height: 560px;
  width: 100%;
  background: url('../assets/hero4.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 10%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 65%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 88px;
  color: var(--white);
  letter-spacing: -3px;
  line-height: 1;
}

.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  margin: 18px 0 28px;
  line-height: 1.7;
}

.hero button {
  padding: 14px 34px;
  border: 2px solid var(--white);
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.hero button:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== SHOP ===== */
.shop {
  display: flex;
  padding: 48px 8%;
  gap: 28px;
  align-items: flex-start;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.sidebar h3 {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar li {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  color: var(--gray-600);
}

.sidebar li:hover { background: var(--gray-100); color: var(--black); }
.sidebar li.active { background: var(--black); color: var(--white); }

/* ===== CATEGORY CHIPS (mobile only) ===== */
.category-chips {
  display: none;
  overflow-x: auto;
  gap: 8px;
  padding: 0 5% 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.chip:hover, .chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ===== PRODUCTS ===== */
.products { flex: 1; min-width: 0; }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  margin-bottom: 24px;
  background: var(--white);
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.search-bar:focus-within {
  box-shadow: var(--shadow-md);
  border-color: var(--black);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 13px 20px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--black);
  outline: none;
}

.search-bar input::placeholder { color: var(--gray-400); }

.search-bar button {
  padding: 10px 20px;
  margin: 5px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.search-bar button:hover { background: var(--gray-600); }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-image {
  position: relative;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.card:hover .card-image img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 10px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card h4 {
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-600);
}

.card-rating .star { color: #f59e0b; font-size: 12px; }

.card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.card-actions {
  display: flex;
  gap: 7px;
}

.card-actions .btn-outline {
  flex: 1;
  padding: 10px 6px;
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  min-height: 44px;
}

.card-actions .btn-outline:hover { border-color: var(--black); background: var(--gray-100); }

.card-actions .btn-fill {
  flex: 1;
  padding: 10px 6px;
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
  min-height: 44px;
}

.card-actions .btn-fill:hover { background: var(--gray-600); border-color: var(--gray-600); }

/* ===== RECOMMENDATIONS ===== */
.recommendations { padding: 48px 8%; }

.recommendations h2 { font-size: 34px; margin-bottom: 6px; }

.recommendations .section-sub {
  color: var(--gray-400);
  font-size: 14px;
  margin-bottom: 24px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  margin: 32px 8% 56px;
  background: var(--black);
  color: var(--white);
  padding: 52px 56px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.newsletter h2 { font-size: 30px; margin-bottom: 6px; }

.newsletter p { color: rgba(255,255,255,0.58); font-size: 14px; }

.subscribe { display: flex; gap: 10px; flex-shrink: 0; }

.subscribe input {
  padding: 13px 20px;
  width: 240px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.subscribe input::placeholder { color: rgba(255,255,255,0.38); }
.subscribe input:focus { border-color: rgba(255,255,255,0.5); }

.subscribe button {
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  min-height: 44px;
}

.subscribe button:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  padding: 48px 8% 28px;
  border-top: none;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 36px;
}

footer h3 { font-family: 'Archivo Black', sans-serif; font-size: 18px; margin-bottom: 12px; color: var(--white); }
footer p { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7; }

.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.5); font-size: 14px; transition: color var(--transition), padding-left var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 8px; }

.socials { display: flex; gap: 10px; margin-top: 8px; }

.socials i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.socials i:hover { background: var(--white); color: var(--black); border-color: var(--white); transform: translateY(-3px) scale(1.1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

/* =============================================
   ANIMATIONS
   ============================================= */

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes heroTitle {
  from { opacity: 0; transform: translateY(40px) skewY(3deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

/* ===== HERO ENTRANCE ===== */
.hero-content h1 {
  animation: heroTitle 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-content p {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero button {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

/* ===== HEADER ENTRANCE ===== */
header {
  animation: fadeIn 0.5s ease 0s both;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Délais de cascade pour les cards */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.12s !important; }
.stagger-3 { transition-delay: 0.19s !important; }
.stagger-4 { transition-delay: 0.26s !important; }
.stagger-5 { transition-delay: 0.33s !important; }
.stagger-6 { transition-delay: 0.40s !important; }

/* ===== LOGO HOVER ===== */
.logo img {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover img {
  opacity: 0.8;
  transform: scale(1.03);
}

/* ===== CARD ENHANCED HOVER ===== */
.card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover .card-badge {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== NAV LINK UNDERLINE SLIDE ===== */
nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

nav a:hover::after { transform: scaleX(1); }

/* ===== SIDEBAR LI ANIMATION ===== */
.sidebar li {
  position: relative;
  overflow: hidden;
}

.sidebar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--black);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.sidebar li:hover::before,
.sidebar li.active::before { transform: scaleY(1); }

/* ===== CHIP ANIMATION ===== */
.chip {
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease;
}

.chip:active { transform: scale(0.95); }

/* ===== SEARCH BAR ===== */
.search-bar {
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.search-bar:focus-within {
  transform: translateY(-1px);
}

/* ===== HERO BUTTON RIPPLE ===== */
.hero button {
  position: relative;
  overflow: hidden;
}

.hero button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
  border-radius: inherit;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero button:active::after {
  transform: scale(2);
  opacity: 0;
  transition: 0s;
}

/* ===== NEWSLETTER INPUT FOCUS ===== */
.subscribe input {
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.subscribe input:focus {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
}

/* ===== SOCIAL ICON BOUNCE ===== */
.socials i {
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.socials i:hover { transform: translateY(-3px) scale(1.1); }

/* ===== FOOTER LINKS ===== */
.footer-links a {
  position: relative;
  padding-left: 0;
}

/* ===== FILTER / SEARCH ===== */
.card.hidden { display: none; }

/* ===== SKELETON LOADER ===== */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-box,
.skeleton-line {
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}

.card-skeleton .card-image.skeleton-box {
  height: 170px;
  border-radius: var(--radius-md);
}

.card-skeleton .card-body {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line       { height: 14px; }
.skeleton-line.w70   { width: 70%; }
.skeleton-line.w40   { width: 40%; }

/* ===== BADGE NOUVEAUTÉ ===== */
.card-new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-400);
  font-size: 15px;
  display: none;
}

.no-results i {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  color: var(--gray-200);
}

.no-results.visible { display: block; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .reveal-left, .reveal-scale { opacity: 1; transform: none; }
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* === PORTABLE / LAPTOP (max 1440px) — réduit l'échelle générale === */
@media (max-width: 1440px) {
  html { --header-h: 64px; }

  header { padding: 6px 5%; }

  .hero { height: 460px; padding: 0 6%; }
  .hero-content { max-width: 460px; }
  .hero-content h1 { font-size: 62px; letter-spacing: -2px; }
  .hero-content p { font-size: 15px; margin: 14px 0 22px; }

  .shop { padding: 36px 6%; gap: 22px; }
  .sidebar { width: 200px; }

  .recommendations { padding: 36px 6%; }
  .recommendations h2 { font-size: 27px; }

  .newsletter h2 { font-size: 25px; }
}

/* === TABLET (max 1024px) === */
@media (max-width: 1024px) {
  header { padding: 0 5%; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-content h1 { font-size: 72px; }

  .newsletter { padding: 40px 40px; }
}

/* === MOBILE (max 768px) === */
@media (max-width: 768px) {
  /* Header */
  header { padding: 0 5%; gap: 12px; }
  nav { display: none; }
  .icons i.fa-magnifying-glass,
  .icons i.fa-user { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero {
    height: 400px;
    padding: 0 5% 36px;
    align-items: flex-end;
  }
  .hero::before {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
  }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: 48px; letter-spacing: -1.5px; }
  .hero-content p { font-size: 14px; margin: 10px 0 18px; }
  .hero button { padding: 12px 26px; font-size: 13px; }

  /* Shop */
  .shop { padding: 20px 0 32px; flex-direction: column; gap: 0; }
  .sidebar { display: none; }
  .category-chips { display: flex; padding: 0 5% 16px; }
  .products { padding: 0 5%; width: 100%; }

  /* Grids */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Recommendations */
  .recommendations { padding: 28px 5%; }
  .recommendations h2 { font-size: 26px; }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Newsletter */
  .newsletter {
    margin: 20px 5% 36px;
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    gap: 20px;
    border-radius: var(--radius-md);
  }
  .subscribe { flex-direction: column; width: 100%; gap: 10px; }
  .subscribe input { width: 100%; }
  .subscribe button { width: 100%; }

  /* Footer */
  footer { padding: 32px 5% 20px; }
  .footer-top { flex-direction: column; gap: 24px; }
}

/* === SMALL MOBILE (max 480px) === */
@media (max-width: 480px) {
  .hero { height: 360px; }
  .hero-content h1 { font-size: 38px; letter-spacing: -1px; }

  .card { padding: 10px; }
  .card-image { height: 125px; }
  .card h4 { font-size: 12px; }
  .card-price { font-size: 13px; }
  .card-rating { font-size: 11px; }
  .card-actions { gap: 5px; }
  .card-actions .btn-outline,
  .card-actions .btn-fill { font-size: 11px; padding: 9px 4px; min-height: 40px; }
}

/* === VERY SMALL (max 360px) === */
@media (max-width: 360px) {
  .logo { font-size: 18px; }
  .hero-content h1 { font-size: 32px; }
  .product-grid, .recommend-grid { grid-template-columns: 1fr; }
  .card-image { height: 160px; }
}
