/* ===============================
   VARIABLES DE COULEURS - Thème Clair & Moderne
================================ */
:root {
  /* ── Couleurs principales ── */
  --primary-blue: #2563eb; /* Bleu vif principal       */
  --primary-blue-dark: #1d4ed8; /* Bleu hover / foncé       */
  --primary-blue-light: #dbeafe; /* Bleu clair (fond)        */
  --primary-dark: #0f172a; /* Slate 900 (sidebar, etc) */
  --bg-dark: #1e293b; /* Slate 800 (footer)       */

  /* ── Fonds ── */
  --bg-main: #f8fafc; /* Corps de page            */
  --bg-white: #ffffff; /* Blanc pur                */
  --bg-gray: #f1f5f9; /* Sections alternées       */

  /* ── Texte ── */
  --text-dark: #0f172a; /* Titres / corps           */
  --text-gray: #475569; /* Texte secondaire         */
  --text-light: #94a3b8; /* Texte discret            */
  --text-white: #ffffff;

  /* ── Accents ── */
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --blue-50: #eff6ff; /* Fond bleu quasi blanc    */

  /* ── Ombres douces & légères ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.16);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.3);

  /* ── Bords arrondis ── */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ===============================
   RESET GLOBAL
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Empêche le dépassement horizontal */
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  padding-top: 60px;
  min-height: 100vh;
  width: 100%;
}

/* ── Image de fond : toutes les pages du site ── */
body.accueil,
body.smartphones,
body.pc,
body.accessoires,
body.autres,
body.autre,
body.panier,
body.contact,
body.login,
body.register,
body.deconnexion,
body.checkout,
body.added-cart,
body.detail,
body.compte,
body.mescommandes {
  background-color: #0a0f1e;
  background-image: url("../images/Gemini_Generated_Image_ktaujrktaujrktau (2).png");
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ===============================
   NAVBAR — Thème clair & moderne
================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 60px;
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.12),
    rgba(255, 255, 255, 0.96)
  );
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--primary-blue-dark);
  transform: scale(1.02);
}

.logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible; /* Ne pas clipper les dropdowns */
}

nav a {
  padding: 6px 10px;
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 13px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

nav a:hover {
  color: var(--primary-blue);
  background: var(--blue-50);
  transform: none;
  box-shadow: none;
}

nav a.active {
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  font-weight: 600;
}

nav a.active::after {
  display: none;
}

nav .user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

nav .user-menu .account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--primary-blue);
  color: white;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: var(--transition);
}

nav .user-menu .account-link:hover,
nav .user-menu .account-link:focus {
  background: var(--primary-blue-dark);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

nav .user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 9999;
  margin-top: 8px;
  background: rgba(10, 15, 35, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  z-index: 1001;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

nav .user-menu:hover .user-dropdown,
nav .user-menu:focus-within .user-dropdown,
nav .user-menu.active .user-dropdown {
  display: block;
}

nav .user-menu::after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

nav .user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

nav .user-dropdown a i {
  color: #94a3b8;
  width: 18px;
  font-size: 14px;
}

nav .user-dropdown a:hover {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

nav .user-dropdown a:hover i {
  color: #93c5fd;
}

nav .user-dropdown a.logout-link {
  color: var(--accent-red);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

nav .user-dropdown a.logout-link i {
  color: var(--accent-red);
}

nav .user-dropdown a.logout-link:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fc8181;
}

/* Bouton Connexion */
nav a.account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--primary-blue);
  color: var(--text-white);
  border-radius: var(--radius-full);
  margin-left: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  border: none;
}

nav a.account:hover {
  background: var(--primary-blue-dark);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

/* Bouton Panier */
nav a.cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-gray);
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid #e2e8f0;
  transition: var(--transition);
}

nav a.cart:hover {
  color: var(--primary-blue);
  background: var(--blue-50);
  border-color: var(--primary-blue-light);
}

/* Badge panier */
nav a.cart .cart-badge,
nav a.cart .cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

nav a.account i {
  font-size: 16px;
}

/* ===============================
   MENU MOBILE — Bouton hamburger
================================ */
.mobile-menu-btn {
  display: none;
  background: var(--primary-blue-dark);
  border: 1.5px solid #e2e8f0;
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: var(--bg-gray);
  border-color: var(--primary-blue-light);
  color: var(--primary-blue);
  transform: none;
}

/* Overlay sombre derrière le menu mobile */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
}

/* ===============================
   GRILLE PRODUITS - RESPONSIVE LARGE ÉCRAN
================================ */
@media (max-width: 1400px) {
  .product-grid {
    gap: 16px;
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* ===============================
   HERO SECTION — Fond Boutique
================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 40px;
  background: linear-gradient(
    135deg,
    rgba(5, 10, 30, 0.7) 0%,
    rgba(10, 20, 55, 0.55) 60%,
    rgba(5, 10, 30, 0.72) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Lueur bleue décorative droite */
.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.18) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Lueur verte décorative gauche-bas */
.hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-text {
  max-width: 560px;
  position: relative;
  z-index: 1;
  color: #fff;
}

/* Badge au-dessus du titre */
.hero-text::before {
  content: "✦ Nouvelles arrivées";
  display: inline-block;
  background: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-text h1 span {
  color: #60a5fa;
  position: relative;
}

.hero-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.65;
  max-width: 420px;
}

/* Bouton principal */
.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-blue);
  color: white;
  padding: 16px 34px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}

.hero .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
}

.hero .btn:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.hero .btn::after {
  content: "→";
  transition: transform 0.2s ease;
}

.hero .btn:hover::after {
  transform: translateX(5px);
}

/* Image produit hero */
.hero .img-wrapper {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow:
    0 0 30px rgba(37, 99, 235, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: var(--transition);
}

.hero .img-wrapper:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 60px rgba(37, 99, 235, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.5);
  border-color: rgba(96, 165, 250, 0.3);
}

.hero .img-wrapper img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
}

/* ===============================
   CATÉGORIES — Cartes modernes
================================ */
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 36px 40px;
  background: rgba(5, 10, 28, 0.58);
}

.categories .section-header {
  grid-column: 1 / -1;
  text-align: center;
}

/* Titre de section réutilisable */
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-label {
  display: inline-block;
  background: rgba(37, 99, 235, 0.28);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.category-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
}

/* Barre de couleur en haut */
.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.3);
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(37, 99, 235, 0.15);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card .img-wrapper {
  width: 80%;
  aspect-ratio: 1 / 1;
  background: rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin: 10px auto;
  transition: var(--transition);
}

.category-card:hover .img-wrapper {
  background: rgba(37, 99, 235, 0.3);
}

.category-card .img-wrapper img {
  max-width: 55%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.category-card:hover .img-wrapper img {
  transform: scale(1.08) translateY(-3px);
}

.category-card h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.5;
}

/* ===============================
   PRODUITS — Cartes épurées
================================ */
.products {
  padding: 36px 40px;
  background: rgba(5, 10, 28, 0.52);
  display: block;
}

.products h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.5px;
}

.products .section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 44px;
  font-size: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 16px 0;
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
}

.product-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  text-align: left;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.3);
}

/* Zone image — toujours carrée quelle que soit la taille de l'écran */
.product-card .img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.product-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.35s ease;
  display: block;
}

.product-card:hover .img-wrapper img {
  transform: scale(1.08);
}

/* Overlay discret — juste un léger voile bleu au survol, sans cacher l'image */
.card-overlay {
  display: none; /* désactivé — les boutons sont visibles en permanence */
}

/* Badge PROMO sur l'image */
.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
  pointer-events: none;
}

/* Zone informations — fond blanc, texte sombre, lisible */
.product-card .product-info {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
}

/* Nom du produit */
.product-card h4 {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

/* Description courte */
.product-card .description {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prix normal */
.product-card .price {
  margin-top: auto;
  padding-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -0.3px;
  text-align: center;
}

/* Prix ancien (barré) */
.product-card .old-price {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

/* Conteneur prix promo */
.price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}

.price-wrapper .old-price {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.price-wrapper .promo-price {
  font-size: 18px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: -0.3px;
}

/* Conteneur des boutons */
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* Sur l'accueil, les actions restent visibles */
.accueil .product-actions {
  display: flex;
}

/* Bouton Voir Détails */
.product-card a.btn-details {
  flex: 1.3;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.product-card a.btn-details:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Bouton Ajouter au panier */
.product-card a.btn-add-to-cart,
.product-card button.btn-add-to-cart {
  flex: 1;
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.product-card a.btn-add-to-cart:hover,
.product-card button.btn-add-to-cart:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Compatibilité anciens boutons simples */
.product-card button {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--primary-blue-dark)
  );
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card button:hover {
  background: linear-gradient(
    135deg,
    var(--primary-blue-dark),
    var(--primary-blue)
  );
  transform: scale(1.02);
}

/* ===============================
   SERVICES — Bandeau confiance
================================ */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 32px 40px;
  background: rgba(5, 10, 28, 0.62);
}

.services-header,
.services-header.service-link {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.services-header:hover,
.services-header.service-link:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateY(-4px);
}

.services-header.service-link {
  cursor: pointer;
}

.services-header i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.28);
  color: #93c5fd;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 22px;
}

.services-header:hover i {
  background: var(--primary-blue);
  color: #ffffff;
}

.services-header h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.services-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

/* ===============================
   FOOTER PROFESSIONNEL MODERNE
================================ */
footer {
  background: #0a1425;
  color: var(--text-white);
  padding: 40px 40px 24px;
  margin-top: 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
  text-align: left;
}

.footer-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-white);
  letter-spacing: -0.4px;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-blue-light);
  border-radius: 2px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-section p {
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
  transition: var(--transition);
}

.footer-section p:hover {
  color: var(--text-white);
  transform: translateX(3px);
}

.footer-section p i {
  color: var(--primary-blue);
  width: 18px;
  font-size: 14px;
  transition: var(--transition);
}

.footer-section p:hover i {
  color: var(--accent-green);
}

.footer-section .description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: var(--text-white);
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
  background: rgba(37, 99, 235, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
  border-color: transparent;
}

.social-links a:hover i {
  transform: scale(1.05);
}

/* ===============================
   BARRE INFÉRIEURE DU FOOTER
================================ */
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 3px 0;
}

.footer-bottom a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  transition: var(--transition);
  border-radius: 1px;
}

.footer-bottom a:hover {
  color: var(--text-white);
  transform: translateY(-1px);
}

.footer-bottom a:hover::after {
  width: 100%;
}

.footer-bottom small {
  display: block;
  color: var(--text-gray);
  font-size: 13px;
  margin-top: 12px;
  font-weight: 400;
}

/* ===============================
   FOOTER RESPONSIVE
================================ */
@media (max-width: 768px) {
  footer {
    padding: 40px 20px 25px; /* Padding réduit sur mobile */
    margin-top: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    gap: 35px;
    margin-bottom: 30px;
  }

  .footer-section h3 {
    font-size: 24px;
  }

  .footer-section h4 {
    font-size: 18px;
  }

  .footer-section p {
    font-size: 14px;
  }

  .social-links {
    justify-content: center; /* Centrage sur mobile */
    gap: 15px;
  }

  .footer-bottom p {
    flex-direction: column; /* Liens en colonne sur mobile */
    gap: 10px;
  }

  .footer-bottom a {
    margin: 0;
  }
}

/* ===============================
   RESPONSIVE TABLETTE (≤1024px)
================================ */
@media (max-width: 1024px) {
  /* Active le hamburger dès 1024px */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 6px 8px;
    font-size: 17px;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 100vw);
    height: 100vh;
    background: linear-gradient(160deg, var(--primary-dark) 0%, #111827 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 68px 16px 24px;
    gap: 4px;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1003;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }

  nav.active {
    transform: translateX(0);
  }

  nav a {
    padding: 11px 16px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    border-radius: var(--radius);
    border-bottom: none;
    min-height: 44px;
    color: #cbd5e1;
  }

  nav a.active {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  nav .user-menu {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  nav .user-menu .account-link {
    width: 100%;
    justify-content: flex-start;
  }

  nav a.account,
  nav a.cart {
    width: 100%;
    margin: 0;
    border-radius: var(--radius);
    justify-content: flex-start;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 16px;
    height: 56px;
    z-index: 1002;
  }

  body {
    padding-top: 56px;
  }

  .hero {
    padding: 32px 24px;
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero .img-wrapper {
    max-width: 300px;
  }

  .categories,
  .products,
  .services {
    padding: 28px 20px;
  }

  /* Catégories en 2 colonnes sur tablette */
  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Services en 2 colonnes sur tablette */
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Produits en 3 colonnes sur tablette */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

}

/* ===============================
   RESPONSIVE MOBILE (≤768px)
================================ */
@media (max-width: 768px) {
  /* --- Navbar --- */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0 16px;
    height: 60px;
    gap: 0;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
  }

  body {
    padding-top: 60px;
  }

  .logo {
    font-size: 18px;
    flex: 1;
  }

  .logo img {
    height: 30px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 6px 8px;
    font-size: 18px;
  }

  /* --- Sidebar mobile (reste sombre pour contraste) --- */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 100vw);
    height: 100vh;
    background: linear-gradient(160deg, var(--primary-dark) 0%, #111827 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 72px 16px 24px;
    gap: 4px;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1003;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
  }

  nav.active {
    transform: translateX(0);
  }

  nav a {
    padding: 12px 18px;
    width: 100%;
    text-align: left;
    font-size: 15px;
    border-radius: var(--radius);
    border-bottom: none;
    min-height: 44px;
    color: #cbd5e1;
  }

  nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: none;
  }

  nav a.active {
    background: var(--primary-blue);
    color: white;
  }

  /* User menu dans la sidebar mobile */
  nav .user-menu {
    width: 100%;
  }

  nav .user-menu .account-link {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius);
    justify-content: flex-start;
    min-height: 44px;
  }

  nav .user-dropdown {
    display: block !important;
    position: static !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
    border-radius: var(--radius) !important;
    margin-top: 4px !important;
    overflow: hidden;
    min-width: unset;
  }

  nav .user-dropdown a {
    color: #94a3b8 !important;
    padding: 11px 18px !important;
    font-size: 14px;
    min-height: 44px;
  }

  nav .user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
  }

  /* --- Hero --- */
  .hero {
    flex-direction: column-reverse;
    padding: 30px 16px;
    text-align: center;
    gap: 20px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .hero .img-wrapper {
    width: 100%;
    max-width: 270px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .hero .img-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }

  /* --- Catégories --- */
  .categories {
    grid-template-columns: 1fr;
    padding: 28px 16px;
    gap: 16px;
  }

  .category-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .category-card .img-wrapper {
    width: 110px !important;
    height: 110px !important;
    aspect-ratio: auto;
    flex-shrink: 0;
    margin: 0;
  }

  .category-card .img-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }

  /* --- Produits --- */
  .products {
    padding: 28px 16px;
  }

  .products h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 4px 0;
  }

  .accueil .product-card .img-wrapper {
    aspect-ratio: 1 / 1;
  }

  /* Overlay toujours visible sur mobile (pas de hover) */
  .card-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.72) 0%,
      transparent 100%
    );
    flex-direction: row;
    align-items: flex-end;
    padding: 0 8px 8px;
    border-radius: 0;
    gap: 6px;
  }

  .accueil .card-overlay {
    display: none;
  }

  .accueil .product-actions {
    display: flex;
  }

  .product-card .img-wrapper img {
    width: 100%;
    height: auto;
  }

  .card-overlay .btn-detail,
  .card-overlay .btn-add-cart {
    flex: 1;
    padding: 7px 4px;
    font-size: 11px;
    width: auto;
    min-height: 36px;
  }

  .product-card .product-info {
    padding: 8px 10px 10px;
  }

  .product-card h4 {
    font-size: 13px;
    line-height: 1.3;
  }

  .product-card .price {
    font-size: 15px;
    margin: 4px 0;
  }

  /* --- Services --- */
  .services {
    grid-template-columns: 1fr;
    padding: 28px 16px;
    gap: 14px;
  }

  /* --- Page header --- */
  .page-header {
    padding: 40px 16px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  /* --- Footer --- */
  footer {
    padding: 36px 16px 24px;
    margin-top: 32px;
  }
}

/* ===============================
   RESPONSIVE SMARTPHONE (<480px)
================================ */
@media (max-width: 480px) {
  .navbar {
    padding: 10px 12px;
  }

  .logo {
    font-size: 16px;
  }

  .logo img {
    height: 28px;
  }

  .hero {
    padding: 24px 12px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero .btn {
    padding: 13px 24px;
    font-size: 14px;
  }

  .hero .img-wrapper {
    max-width: 220px;
  }

  .categories {
    padding: 20px 12px;
    gap: 12px;
  }

  .category-card .img-wrapper {
    width: 90px !important;
    height: 90px !important;
  }

  .category-card .img-wrapper img {
    max-width: 90%;
    max-height: 90%;
  }

  .products {
    padding: 20px 12px;
  }

  .products h2 {
    font-size: 20px;
  }

  /* 1 seule colonne sur très petit écran */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* aspect-ratio: 1/1 s'applique automatiquement — pas de hauteur fixe */

  .card-overlay {
    flex-direction: row;
  }

  .services {
    padding: 20px 12px;
    gap: 10px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    font-size: 15px;
  }

  footer {
    padding: 28px 12px 20px;
  }

  .footer-section h3 {
    font-size: 20px;
  }

  .social-links {
    justify-content: center;
    gap: 12px;
  }

  .social-links a {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text,
.category-card,
.product-card,
.service {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: backwards;
}

.category-card:nth-child(1) {
  animation-delay: 0.1s;
}
.category-card:nth-child(2) {
  animation-delay: 0.2s;
}
.category-card:nth-child(3) {
  animation-delay: 0.3s;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.product-card:nth-child(2) {
  animation-delay: 0.15s;
}
.product-card:nth-child(3) {
  animation-delay: 0.2s;
}
.product-card:nth-child(4) {
  animation-delay: 0.25s;
}

/* ===============================
   COOKIE BANNER
================================ */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 700px;
  margin: 0 auto;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(12px);
}
.cookie-banner__text {
  max-width: 720px;
}
.cookie-banner__text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #f8fafc;
}
.cookie-banner__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-banner__link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}
.cookie-banner__link:hover {
  color: #bfdbfe;
}
.cookie-banner__button,
.cookie-banner__secondary-button {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}
.cookie-banner__button {
  border: none;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
}
.cookie-banner__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}
.cookie-banner__secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}
.cookie-banner__secondary-button:hover {
  background: rgba(255, 255, 255, 0.14);
}
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
    width: 100%;
    flex-wrap: wrap;
  }
  .cookie-banner__button,
  .cookie-banner__secondary-button {
    width: 100%;
  }
}

/* ===============================
   LEGAL PAGE STYLES
================================ */
.legal-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 28px;
}
.legal-page .page-header {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.04) 0%,
    rgba(59, 130, 246, 0.06) 100%
  );
  padding: 40px 32px;
  border-radius: 24px;
  text-align: left;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.legal-page .page-header h1 {
  font-size: 38px;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.legal-page .page-header p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.8;
}
.legal-content {
  margin-top: 40px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  padding: 32px;
}
.legal-content h2 {
  font-size: 24px;
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 14px;
}
.legal-content p,
.legal-content li {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.85;
}
.legal-content ul {
  margin: 0 0 22px 20px;
}
.legal-content li {
  margin-bottom: 10px;
}
.legal-content a {
  color: var(--primary-blue);
  text-decoration: underline;
}
.legal-content a:hover {
  color: #1d4ed8;
}

/* ===============================
   PAGE HEADER (Category Pages)
================================ */
.page-header {
  background: linear-gradient(
    135deg,
    rgba(5, 10, 30, 0.8) 0%,
    rgba(10, 20, 55, 0.68) 50%,
    rgba(5, 10, 30, 0.82) 100%
  );
  padding: 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Lueur décorative droite */
.page-header::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.18) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Lueur décorative gauche */
.page-header::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.page-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

/* Products Container */
.products-container {
  max-width: 1400px;
  margin: 0 auto;
}

.products .description {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 8px;
}

/* Hide badges on category pages */
.product-card::before {
  display: none;
}

/* Grille desktop */
.commande-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Item en colonne */
.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: var(--bg-main);
  text-align: center;
}

/* ===============================
   FOND BOUTIQUE — ajustements
================================ */

/* Wave : plus nécessaire, on supprime */
.hero-wave {
  display: none;
}

/* Page header mobile */
@media (max-width: 768px) {
  .page-header {
    padding: 50px 20px;
    background-position: 70% center;
  }
  .page-header h1 {
    font-size: 32px;
  }
  .page-header p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 40px 16px;
  }
  .page-header h1 {
    font-size: 26px;
  }
}
