/* ============================================================
   PHARMACIE RHAZLAOUI — Feuille de styles principale
   Couleurs : Vert pharmacie #00A651 | Blanc | Bleu médical | Or
   ============================================================ */

/* ── Variables ── */
:root {
  --vert:         #00A651;
  --vert-dark:    #007A3D;
  --vert-light:   #E8F5EE;
  --bleu:         #0066CC;
  --or:           #D4AF37;
  --blanc:        #FFFFFF;
  --gris-clair:   #F5F7FA;
  --gris:         #E0E0E0;
  --texte:        #1A1A2E;
  --texte-2:      #555;
  --section-bg:   #FFFFFF;
  --section-alt:  #F5F7FA;
  --card-bg:      #FFFFFF;
  --ombre:        0 8px 32px rgba(0,166,81,0.12);
  --rayon:        14px;
  --transition:   all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--texte);
  background: var(--section-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gris-clair); }
::-webkit-scrollbar-thumb { background: var(--vert); border-radius: 4px; }

/* ─────────────────────────────────────────
   MÉGABAR — Bandeau rubriques produits (Lafayette adapté vert)
───────────────────────────────────────── */
.megabar {
  position: fixed;
  top: 70px;            /* sous le #navbar (qui fait 70px) */
  left: 0; right: 0;
  z-index: 999;
  background: var(--vert);
  border-bottom: 2px solid var(--vert-dark);
}
#navbar.scrolled + .megabar,
.megabar.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.megabar-nav {
  max-width: 1400px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: stretch;
  flex-wrap: wrap;
}
.megabar-item {
  display: inline-flex; align-items: center;
  padding: 14px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
  transition: background 0.2s ease;
  cursor: pointer;
}
.megabar-item:hover,
.megabar-item.is-active {
  background: var(--vert-dark);
  color: #FFFFFF;
}
.megabar-item--gold { color: var(--or); }
.megabar-item--gold:hover { color: #FFFFFF; background: var(--vert-dark); }
.megabar-sep {
  align-self: center;
  height: 16px;
  width: 1px;
  background: rgba(255,255,255,0.22);
}

/* Panel déroulant */
.megabar-panel {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #FFFFFF;
  border-bottom: 2px solid var(--vert);
  box-shadow: 0 24px 40px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 998;
}
.megabar-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
.megabar-panel-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 40px 2rem 32px;
}
.megabar-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 48px;
}
.megabar-col h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}
.megabar-col ul { display: flex; flex-direction: column; gap: 6px; }
.megabar-col li a {
  display: block;
  font-size: 0.92rem;
  color: var(--texte);
  padding: 2px 0;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.megabar-col li a:hover {
  color: var(--vert);
  padding-left: 4px;
}
.megabar-foot {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.megabar-foot-tag {
  font-size: 0.82rem;
  color: var(--texte-2);
  font-style: italic;
}
.megabar-foot-tag em {
  color: var(--vert);
  font-style: italic;
  font-weight: 700;
  margin-right: 6px;
}
.megabar-foot-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert);
  border-bottom: 1px solid var(--vert);
  padding-bottom: 2px;
}
.megabar-foot-link:hover { color: var(--vert-dark); border-color: var(--vert-dark); }

/* Mobile : masquer mégabar (le menu hamburger prend le relais) */
@media (max-width: 980px) {
  .megabar { display: none; }
}

/* ─────────────────────────────────────────
   LOADER
───────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--vert-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  width: 70px; height: 70px;
  border-radius: 14px;
  animation: pulse-cross 1s ease-in-out infinite;
}
.loader-cross {
  width: 60px; height: 60px;
  background: var(--blanc);
  clip-path: polygon(35% 0%,65% 0%,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0% 65%,0% 35%,35% 35%);
  animation: pulse-cross 1s ease-in-out infinite;
}
@keyframes pulse-cross {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.8; }
}
.loader-text { color: var(--blanc); font-size: 1.1rem; letter-spacing: 3px; font-weight: 600; }

/* ─────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--vert);
  transition: var(--transition);
  padding: 0 2rem;
}
#navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.1rem; color: var(--vert-dark);
}
.nav-logo-img {
  width: 40px; height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-logo .cross-icon {
  width: 36px; height: 36px; background: var(--vert);
  clip-path: polygon(35% 0%,65% 0%,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0% 65%,0% 35%,35% 35%);
  flex-shrink: 0;
}
.nav-logo span { line-height: 1.1; }
.nav-logo .sub { font-size: 0.7rem; color: var(--or); font-weight: 600; letter-spacing: 1px; }

.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 600; color: var(--texte-2);
  transition: var(--transition); position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--vert);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--vert); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-whatsapp-nav {
  display: flex; align-items: center; gap: 8px;
  background: #25D366; color: white;
  padding: 8px 18px; border-radius: 50px;
  font-weight: 600; font-size: 0.85rem;
  transition: var(--transition);
}
.btn-whatsapp-nav:hover { background: #1EB957; transform: translateY(-2px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px;
}
.hamburger span {
  width: 25px; height: 3px; background: var(--vert);
  border-radius: 3px; transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  font-size: 1.3rem; font-weight: 700; color: var(--texte);
  transition: color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--vert); transform: scale(1.05); }

/* ─────────────────────────────────────────
   HERO — LOGO 3D ROTATIF
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #003D1F 0%, #007A3D 40%, #00A651 70%, #00C96B 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: 114px;
}

/* Particules de fond */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212,175,55,0.08) 0%, transparent 50%);
}

/* ── PHOTOS FLOTTANTES ── */
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.floating-product {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(255,255,255,0.45);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25), 0 0 12px rgba(255,255,255,0.1);
  animation: floatProduct linear infinite;
  opacity: 0.72;
}
.floating-product img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

@keyframes floatProduct {
  0%   { transform: translateY(105vh) rotate(0deg) scale(0.5); opacity: 0; }
  8%   { opacity: 0.72; }
  92%  { opacity: 0.72; }
  100% { transform: translateY(-12vh) rotate(360deg) scale(1); opacity: 0; }
}

/* ── LOGO 3D ── */
.logo-3d-wrapper {
  perspective: 1200px;
  margin-bottom: 40px;
  position: relative; z-index: 2;
}

.logo-3d-scene {
  position: relative;
  width: 520px; height: 120px;
  transform-style: preserve-3d;
  animation: rotateLogo 12s linear infinite;
}

@keyframes rotateLogo {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.logo-face {
  position: absolute;
  width: 520px; height: 120px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 16px;
  backface-visibility: visible;
}

.logo-face-front {
  transform: translateZ(60px);
  background: linear-gradient(135deg, rgba(0,60,25,0.9), rgba(0,122,61,0.7));
  border: 2px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.logo-face-back {
  transform: rotateY(180deg) translateZ(60px);
  background: linear-gradient(135deg, rgba(0,60,25,0.9), rgba(0,122,61,0.7));
  border: 2px solid rgba(255,255,255,0.25);
}
.logo-face-left {
  width: 120px;
  transform: rotateY(-90deg) translateZ(260px);
  background: rgba(0,50,20,0.8);
  border: 2px solid rgba(255,255,255,0.15);
}
.logo-face-right {
  width: 120px;
  transform: rotateY(90deg) translateZ(260px);
  background: rgba(0,50,20,0.8);
  border: 2px solid rgba(255,255,255,0.15);
}
.logo-face-top {
  height: 120px;
  transform: rotateX(90deg) translateZ(60px);
  background: rgba(0,166,81,0.4);
}
.logo-face-bottom {
  height: 120px;
  transform: rotateX(-90deg) translateZ(60px);
  background: rgba(0,40,16,0.6);
}

.logo-main-text {
  font-size: 1.8rem; font-weight: 900;
  color: white;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.logo-sub-text {
  font-size: 0.75rem; font-weight: 600;
  color: var(--or); letter-spacing: 4px;
  margin-top: 4px;
}
.logo-side-text {
  font-size: 0.65rem; font-weight: 700;
  color: rgba(255,255,255,0.8); letter-spacing: 2px;
  writing-mode: vertical-lr; transform: rotate(180deg);
}

/* ─────────────────────────────────────────
   LOGOS 3D AUX EXTRÉMITÉS DU HERO
───────────────────────────────────────── */

#hero {
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  padding-left: 2rem;
  padding-right: 2rem;
  gap: 10px;
}

.hero-logo-side {
  position: relative; z-index: 2;
  flex-shrink: 0;
}

.hero-center-content {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 2; gap: 28px;
  padding: 0 10px;
}

/* Boîtes 3D — même style que l'original mais plus étroites */
.logo-3d-scene--left,
.logo-3d-scene--right {
  width: 280px !important;
}
.logo-3d-scene--left .logo-face,
.logo-3d-scene--right .logo-face {
  width: 280px !important;
}
.logo-3d-scene--left .logo-face-front  { transform: translateZ(60px) !important; }
.logo-3d-scene--left .logo-face-back   { transform: rotateY(180deg) translateZ(60px) !important; }
.logo-3d-scene--left .logo-face-left   { transform: rotateY(-90deg) translateZ(140px) !important; }
.logo-3d-scene--left .logo-face-right  { transform: rotateY(90deg)  translateZ(140px) !important; }
.logo-3d-scene--right .logo-face-front { transform: translateZ(60px) !important; }
.logo-3d-scene--right .logo-face-back  { transform: rotateY(180deg) translateZ(60px) !important; }
.logo-3d-scene--right .logo-face-left  { transform: rotateY(-90deg) translateZ(140px) !important; }
.logo-3d-scene--right .logo-face-right { transform: rotateY(90deg)  translateZ(140px) !important; }

/* Droite tourne en sens inverse */
.logo-3d-scene--right { animation-direction: reverse !important; animation-duration: 14s !important; }

/* ── CADUCÉE MÉDICAL TOURNANT ── */
.caduceus-container {
  position: relative; z-index: 2;
  margin-bottom: 28px;
}
.caduceus-svg {
  width: 72px; height: 110px;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.55))
          drop-shadow(0 0 40px rgba(0,200,100,0.3));
  animation: spinCaduceus 9s linear infinite;
  transform-origin: center center;
}
@keyframes spinCaduceus {
  0%   { transform: rotateY(0deg) scale(1); }
  25%  { transform: rotateY(90deg) scale(1.05); }
  50%  { transform: rotateY(180deg) scale(1.12); }
  75%  { transform: rotateY(270deg) scale(1.05); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* ── STATUT PHARMACIE ── */
.pharma-status {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}
.pharma-status.open {
  background: rgba(37, 211, 102, 0.2);
  border: 2px solid rgba(37, 211, 102, 0.5);
  color: #a0ffb8;
}
.pharma-status.closed {
  background: rgba(255, 71, 87, 0.2);
  border: 2px solid rgba(255, 71, 87, 0.5);
  color: #ffb3b8;
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.pharma-status.open .status-dot {
  background: #25D366;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}
.pharma-status.closed .status-dot {
  background: #FF4757;
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 0 18px rgba(37, 211, 102, 0.9), 0 0 30px rgba(37, 211, 102, 0.3); }
}
.status-text { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.status-hours {
  font-weight: 400; font-size: 0.78rem;
  opacity: 0.8;
}

.hero-subtitle {
  position: relative; z-index: 2;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem; letter-spacing: 3px;
  font-weight: 300; text-align: center;
  margin-bottom: 40px;
}

.hero-badges {
  position: relative; z-index: 2;
  display: flex; gap: 15px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 50px;
  align-items: center;
}
.hero-wave .hero-badge:nth-child(1) { transform: translateY(0); }
.hero-wave .hero-badge:nth-child(2) { transform: translateY(15px); }
.hero-wave .hero-badge:nth-child(3) { transform: translateY(-10px); }
.hero-wave .hero-badge:nth-child(4) { transform: translateY(20px); }
.hero-wave .hero-badge:nth-child(5) { transform: translateY(-5px); }
.hero-wave .hero-badge:nth-child(6) { transform: translateY(18px); }
.hero-wave .hero-badge:nth-child(7) { transform: translateY(-8px); }
.hero-wave .hero-badge:hover { transform: translateY(-3px); }
.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 10px 22px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.hero-badge:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}
.hero-badge i { margin-right: 8px; color: var(--or); }

.hero-scroll {
  position: absolute; bottom: 30px;
  left: 50%; transform: translateX(-50%);
  animation: bounceScroll 2s ease-in-out infinite;
  color: rgba(255,255,255,0.7); font-size: 1.5rem;
  cursor: pointer;
}
@keyframes bounceScroll {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ─────────────────────────────────────────
   BANDEAU ANNONCES
───────────────────────────────────────── */
.ticker-bar {
  background: var(--vert-dark);
  color: white; padding: 10px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-track span {
  padding: 0 60px; font-size: 0.9rem;
  font-weight: 500; letter-spacing: 1px;
}
.ticker-track span i { color: var(--or); margin-right: 8px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   SECTIONS — Général
───────────────────────────────────────── */
.section { padding: 90px 2rem; background: var(--section-bg); }
.section-alt { background: var(--section-alt); }
.container { max-width: 1400px; margin: 0 auto; }

.section-title {
  text-align: center; margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.4rem; font-weight: 900; color: var(--texte);
  margin-bottom: 16px; position: relative; display: inline-block;
  letter-spacing: -0.02em;
}
.section-title h2::after {
  content: '';
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 4px;
  background: linear-gradient(90deg, var(--vert), var(--or));
  border-radius: 4px;
}
.section-title p { color: var(--texte-2); font-size: 1rem; margin-top: 22px; font-weight: 400; letter-spacing: 0.01em; }

/* ─────────────────────────────────────────
   CARDS CATÉGORIES
───────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.cat-card {
  background: var(--card-bg);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
}
.cat-card:hover {
  transform: translateY(-8px);
  border-color: var(--vert);
  box-shadow: 0 16px 40px rgba(0,166,81,0.2);
}
.cat-card-img {
  height: 180px; overflow: hidden; position: relative;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover .cat-card-img img { transform: scale(1.08); }
.cat-card-icon {
  position: absolute; bottom: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--vert); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.cat-card-body { padding: 20px; }
.cat-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--texte); }
.cat-card-body p { font-size: 0.82rem; color: var(--texte-2); }
.cat-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 0.8rem;
  font-weight: 600; color: var(--vert);
}

/* ─────────────────────────────────────────
   GRILLE PRODUITS
───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

/* ── PRODUCT CARDS — PREMIUM ── */
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  border: none;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 4px 12px rgba(0,166,81,0.08);
}
.product-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(145deg, #f5f8f6, #eaf2ec);
}
.product-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
  z-index: 1;
  pointer-events: none;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: contrast(1.03) saturate(1.05);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

/* Placeholder photo */
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, #f0f4f2, #e0ece4);
  color: var(--vert-dark, #007A3D);
}
.photo-placeholder i { font-size: 2.5rem; opacity: 0.3; }
.photo-placeholder span { font-size: 0.75rem; font-weight: 600; opacity: 0.5; text-align: center; padding: 0 10px; }

.badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 1.2px; z-index: 2;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.badge-promo { background: linear-gradient(135deg, #FF4757, #ff6b6b); color: white; }
.badge-new { background: linear-gradient(135deg, #D4AF37, #E8C547); color: white; }
.badge-rx { background: linear-gradient(135deg, #3498db, #5dade2); color: white; }

.product-body { padding: 20px 22px 22px; }
.product-brand {
  font-size: 0.7rem; color: var(--vert, #00A651); font-weight: 700;
  letter-spacing: 1.2px; margin-bottom: 6px; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.product-brand::before {
  content: '';
  width: 6px; height: 2px;
  background: var(--vert, #00A651);
  border-radius: 2px;
}
.product-name {
  font-size: 1rem; font-weight: 800; color: var(--texte, #1a1a1a);
  margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.01em;
}
.product-desc {
  font-size: 0.78rem; color: var(--texte-2, #777);
  margin-bottom: 16px; line-height: 1.55;
}

.product-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid #f0f0f0;
}
.price-bloc { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 1.3rem; font-weight: 900; color: var(--vert-dark, #007A3D); }
.price-empty { font-size: 0.78rem; color: var(--texte-2, #888); font-style: italic; }
.old-price { font-size: 0.78rem; color: #bbb; text-decoration: line-through; }

.btn-whatsapp-product {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #25D366, #34E87A);
  color: white; border: none; border-radius: 50px;
  padding: 9px 16px; font-size: 0.76rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(37,211,102,0.25);
  letter-spacing: 0.3px;
}
.btn-whatsapp-product:hover {
  background: linear-gradient(135deg, #1EB957, #25D366);
  transform: scale(1.05);
  box-shadow: 0 5px 16px rgba(37,211,102,0.35);
}

.image-clean-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,0.9);
  color: var(--texte);
  border: 1px solid var(--gris);
  border-radius: 30px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}
.image-clean-btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.image-cleaner-panel {
  padding: 28px;
  border-radius: 24px;
  background: var(--blanc);
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}
.image-cleaner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.image-cleaner-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.image-cleaner-settings label {
  font-weight: 700;
  color: var(--texte);
  font-size: 0.95rem;
}
.image-cleaner-settings input[type="range"] {
  flex: 1 1 220px;
  accent-color: var(--vert);
}
.image-cleaner-settings span {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  color: var(--vert-dark);
}
.image-cleaner-actions input[type="file"] {
  flex: 1 1 260px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gris);
  background: var(--gris-clair);
  color: var(--texte);
}
.image-cleaner-preview {
  min-height: 240px;
  border: 1px dashed var(--gris);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: var(--gris-clair);
}
.image-cleaner-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-cleaner-placeholder {
  text-align: center;
  color: var(--texte-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   SECTION PHOTOS PHARMACIE
───────────────────────────────────────── */
/* ─── GALERIE FILTRABLE ─── */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 20px;
}
.gallery-filter {
  padding: 10px 20px; border: 2px solid var(--gris);
  border-radius: 50px; background: var(--card-bg);
  color: var(--texte-2); font-weight: 600; font-size: 0.82rem;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.gallery-filter:hover { border-color: var(--vert); color: var(--vert); }
.gallery-filter.active {
  background: var(--vert); border-color: var(--vert);
  color: white; box-shadow: 0 4px 15px rgba(0,166,81,0.3);
}
.gallery-count {
  text-align: center; margin-bottom: 20px;
  font-size: 0.85rem; color: var(--texte-2); font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--rayon); overflow: hidden;
  position: relative; cursor: pointer;
  height: 240px; background: var(--gris-clair);
  transition: var(--transition);
}
.gallery-item:nth-child(5n+1) { grid-column: span 2; height: 320px; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,40,20,0.6) 100%);
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-label {
  position: absolute; bottom: 12px; left: 14px;
  color: white; font-weight: 600; font-size: 0.8rem;
  opacity: 0; transition: opacity 0.3s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gallery-item:hover .gallery-label { opacity: 1; }

.gallery-load-wrap { text-align: center; margin-top: 30px; }
.btn-load-more {
  padding: 14px 32px; border: 2px solid var(--vert);
  border-radius: 50px; background: transparent;
  color: var(--vert); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-load-more:hover {
  background: var(--vert); color: white;
  box-shadow: 0 4px 15px rgba(0,166,81,0.3);
}
.btn-load-more.hidden { display: none; }

/* ─── MARQUES / BRANDS ─── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.brand-card {
  background: var(--card-bg);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: var(--transition);
  cursor: pointer;
}
.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre);
}
.brand-img-wrap {
  height: 180px; overflow: hidden;
}
.brand-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.brand-card:hover .brand-img-wrap img { transform: scale(1.06); }
.brand-body {
  padding: 16px 18px;
}
.brand-name {
  font-size: 1rem; font-weight: 700;
  color: var(--texte); margin-bottom: 6px;
}
.brand-desc {
  font-size: 0.8rem; color: var(--texte-2);
  line-height: 1.4; margin-bottom: 8px;
}
.brand-count {
  display: inline-block;
  background: var(--vert-light); color: var(--vert-dark);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 10000;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
}
.lightbox-content {
  position: relative; z-index: 2;
  max-width: 90vw; max-height: 85vh;
}
.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.15);
  color: white; font-size: 1.2rem; cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.12);
  color: white; font-size: 1.1rem; cursor: pointer;
  transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  color: white; font-size: 0.9rem; font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.4); padding: 8px 20px;
  border-radius: 50px; white-space: nowrap;
}
.lightbox-counter {
  position: absolute; top: 24px; left: 24px; z-index: 3;
  color: rgba(255,255,255,0.7); font-size: 0.82rem; font-weight: 600;
}

/* ─────────────────────────────────────────
   OFFRES SPÉCIALES
───────────────────────────────────────── */
.offres-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 25px;
}
.offre-card {
  border-radius: var(--rayon);
  background: linear-gradient(135deg, var(--vert-dark), var(--vert));
  color: white; padding: 35px 28px;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.offre-card:hover { transform: translateY(-5px); }
.offre-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.offre-badge-top {
  background: var(--or); color: var(--texte);
  display: inline-block; padding: 4px 14px;
  border-radius: 50px; font-size: 0.72rem;
  font-weight: 700; margin-bottom: 16px; letter-spacing: 1px;
}
.offre-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.offre-card p { font-size: 0.88rem; opacity: 0.85; margin-bottom: 20px; line-height: 1.6; }
.btn-offre {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--vert-dark);
  padding: 10px 22px; border-radius: 50px;
  font-weight: 700; font-size: 0.85rem;
  transition: var(--transition);
}
.btn-offre:hover { background: var(--or); color: white; }

/* Placeholder offre */
.offre-placeholder {
  border: 2px dashed rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px; gap: 12px; text-align: center;
  min-height: 200px;
}
.offre-placeholder i { font-size: 2.5rem; opacity: 0.4; }
.offre-placeholder p { font-size: 0.85rem; opacity: 0.6; }

/* ─────────────────────────────────────────
   TABS (Filtres catégories)
───────────────────────────────────────── */
.tab-filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.tab-btn {
  padding: 10px 24px; border-radius: 50px;
  border: 2px solid var(--gris);
  background: white; color: var(--texte-2);
  font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--vert); border-color: var(--vert);
  color: white; box-shadow: 0 4px 15px rgba(0,166,81,0.3);
}

/* ─────────────────────────────────────────
   À PROPOS / INFO
───────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-img-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px; gap: 12px;
}
.about-img-slot {
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--vert-light), #dcedc8);
  border: 2px dashed var(--vert);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: var(--vert-dark);
}
.about-img-slot:first-child { grid-row: 1 / span 2; }
.about-img-slot i { font-size: 2.5rem; opacity: 0.35; }
.about-img-slot span { font-size: 0.72rem; font-weight: 600; opacity: 0.6; text-align: center; padding: 0 10px; }
.about-img-slot img { width: 100%; height: 100%; object-fit: cover; }

.about-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; color: var(--texte); }
.about-content h2 span { color: var(--vert); }
.about-content p { color: var(--texte-2); line-height: 1.8; margin-bottom: 20px; }
.about-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 30px 0;
}
.stat-box {
  text-align: center; padding: 20px;
  background: var(--vert-light); border-radius: 12px;
}
.stat-number { font-size: 1.8rem; font-weight: 900; color: var(--vert); }
.stat-label  { font-size: 0.75rem; color: var(--texte-2); margin-top: 4px; }

.services-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.service-tag {
  display: flex; align-items: center; gap: 6px;
  background: var(--vert-light); color: var(--vert-dark);
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
}
.service-tag i { color: var(--vert); }

/* ─────────────────────────────────────────
   CONTACT & CARTE
───────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.contact-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 25px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 24px;
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--vert-light); color: var(--vert);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-text strong { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-text span { color: var(--texte-2); font-size: 0.9rem; }

.horaires-table { margin-top: 20px; }
.horaire-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-radius: 8px;
  margin-bottom: 4px; font-size: 0.88rem;
}
.horaire-row:nth-child(odd) { background: var(--gris-clair); }
.horaire-row span:last-child { font-weight: 600; color: var(--vert); }

.map-container {
  border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); height: 100%; min-height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: none; min-height: 400px; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
#footer {
  background: linear-gradient(135deg, #001A0A, #003D1F);
  color: rgba(255,255,255,0.85);
  padding: 70px 2rem 30px;
}
.footer-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px; margin-bottom: 50px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-logo .cross { width: 42px; height: 42px; background: var(--vert); clip-path: polygon(35% 0%,65% 0%,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0% 65%,0% 35%,35% 35%); }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: white; }
.footer-brand small { display: block; font-size: 0.7rem; color: var(--or); letter-spacing: 2px; }
.footer-desc { font-size: 0.85rem; line-height: 1.8; margin-bottom: 25px; color: rgba(255,255,255,0.6); }
.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition);
  color: white;
}
.social-btn.wa  { background: #25D366; }
.social-btn.ig  { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-btn.tt  { background: #010101; border: 1px solid rgba(255,255,255,0.2); }
.social-btn:hover { transform: translateY(-4px) scale(1.1); }

.footer-col h4 {
  color: white; font-weight: 700; margin-bottom: 20px;
  font-size: 0.95rem; letter-spacing: 1px;
  position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--vert);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--vert); padding-left: 5px; }
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--vert); }

/* ─────────────────────────────────────────
   BOUTON WHATSAPP FLOTTANT
───────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 888;
  width: 60px; height: 60px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white;
  box-shadow: 0 8px 25px rgba(37,211,102,0.45);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.15); box-shadow: 0 12px 35px rgba(37,211,102,0.6); }
.whatsapp-float .pulse-ring {
  position: absolute; inset: -6px;
  border: 3px solid #25D366; border-radius: 50%;
  animation: waRing 2s ease-out infinite;
}
@keyframes waRing {
  from { transform: scale(0.9); opacity: 0.8; }
  to   { transform: scale(1.4); opacity: 0; }
}

/* ─────────────────────────────────────────
   SCROLL TO TOP
───────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 100px; right: 30px; z-index: 888;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--vert); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: var(--ombre);
  transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--vert-dark); transform: translateY(-3px); }

/* ─────────────────────────────────────────
   TOAST NOTIFICATION
───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--vert-dark); color: white;
  padding: 14px 28px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  z-index: 9999; opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─────────────────────────────────────────
   ANIMATIONS D'ENTRÉE
───────────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  #hero { flex-direction: column !important; padding: 100px 1.5rem 60px; }
  .hero-logo-side { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .gallery-item:nth-child(5n+1) { grid-column: span 1; height: 240px; }
  .offres-grid { grid-template-columns: 1fr; }
  .logo-3d-scene { width: 340px; height: 100px; }
  .logo-main-text { font-size: 1.2rem; }
  .logo-face { width: 340px; height: 100px; }
  .logo-face-left, .logo-face-right { width: 80px; }
  .logo-face-front { transform: translateZ(40px); }
  .logo-face-back  { transform: rotateY(180deg) translateZ(40px); }
  .logo-face-left  { transform: rotateY(-90deg) translateZ(170px); }
  .logo-face-right { transform: rotateY(90deg) translateZ(170px); }
  .hero-subtitle { font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 25px; }
  .section-title h2 { font-size: 1.8rem; }
  .section-title p { font-size: 0.95rem; }
  .about-img-grid { grid-template-rows: 160px 160px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-whatsapp-nav span { display: none; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 60px 1.2rem; }
  .section-title { margin-bottom: 40px; }
  .hero-badges { gap: 10px; }
  .hero-badge { padding: 8px 16px; font-size: 0.78rem; }
  .offre-card { padding: 25px 20px; }
  .offre-card h3 { font-size: 1.1rem; }
  .contact-grid { gap: 30px; }
  .map-container { min-height: 300px; }
  .map-container iframe { min-height: 300px; }
  .stat-number { font-size: 1.5rem; }
  .stat-box { padding: 14px; }
  .ticker-track span { padding: 0 30px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
  #hero { padding: 90px 1rem 50px; gap: 8px; }
  .pharma-status { padding: 8px 16px; font-size: 0.78rem; }
  .status-hours { font-size: 0.7rem; }
  .logo-3d-wrapper { margin-bottom: 20px; }
  .logo-3d-scene { width: 280px; height: 85px; }
  .logo-face { width: 280px; height: 85px; }
  .logo-main-text { font-size: 1rem; }
  .logo-sub-text { font-size: 0.6rem; }
  .logo-face-left, .logo-face-right { width: 60px; }
  .logo-face-front { transform: translateZ(30px); }
  .logo-face-back  { transform: rotateY(180deg) translateZ(30px); }
  .logo-face-left  { transform: rotateY(-90deg) translateZ(140px); }
  .logo-face-right { transform: rotateY(90deg) translateZ(140px); }
  .hero-logo-side { display: none; }
  .hero-subtitle { font-size: 0.75rem; letter-spacing: 1.5px; margin-bottom: 20px; }
  .hero-badges { gap: 8px; padding: 0 0.5rem; }
  .hero-badge { padding: 7px 14px; font-size: 0.72rem; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .product-img-wrap { height: 180px; }
  .cat-card-img { height: 140px; }
  .section { padding: 50px 1rem; }
  .section-title { margin-bottom: 30px; }
  .section-title h2 { font-size: 1.5rem; }
  .section-title p { font-size: 0.88rem; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .stat-number { font-size: 1.3rem; }
  .stat-box { padding: 12px 8px; }
  .stat-label { font-size: 0.68rem; }
  .about-content h2 { font-size: 1.5rem; }
  .about-img-grid { grid-template-columns: 1fr; grid-template-rows: 180px 140px 140px; }
  .about-img-slot:first-child { grid-row: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-item { height: 180px; }
  .gallery-item:nth-child(5n+1) { grid-column: span 2; height: 220px; }
  .gallery-filters { gap: 6px; }
  .gallery-filter { padding: 7px 14px; font-size: 0.75rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .contact-info h3 { font-size: 1.2rem; }
  .contact-icon { width: 40px; height: 40px; font-size: 1rem; }
  .horaire-row { font-size: 0.8rem; padding: 8px 12px; }
  .map-container { min-height: 250px; }
  .map-container iframe { min-height: 250px; }
  .offre-card { padding: 22px 18px; }
  .offre-card h3 { font-size: 1rem; }
  .offre-card p { font-size: 0.82rem; }
  .tab-btn { padding: 8px 16px; font-size: 0.8rem; }
  .footer-grid { gap: 25px; }
  #footer { padding: 50px 1.2rem 25px; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 20px; right: 18px; }
  .scroll-top { bottom: 82px; right: 18px; width: 38px; height: 38px; font-size: 0.95rem; }
  .nav-inner { height: 60px; }
  .mobile-menu { top: 60px; }
  .mobile-menu a { font-size: 1.1rem; }
  .nav-logo { font-size: 0.95rem; }
  .nav-logo .cross-icon { width: 30px; height: 30px; }
  .services-list { gap: 8px; }
  .service-tag { padding: 6px 12px; font-size: 0.75rem; }
}

/* ─────────────────────────────────────────
   BOUTON & PANNEAU PERSONNALISATION COULEURS
───────────────────────────────────────── */

/* Bouton palette FIXE — visible sur toute la page */
.color-toggle-btn {
  position: fixed;
  bottom: 170px; right: 28px;
  display: flex; align-items: center; gap: 8px;
  background: var(--vert);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  padding: 11px 18px; border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; z-index: 887;
  box-shadow: 0 6px 24px rgba(0,166,81,0.4);
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.color-toggle-btn:hover {
  background: var(--vert-dark);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 30px rgba(0,166,81,0.5);
}
.color-toggle-btn i { font-size: 1rem; }

/* Panneau couleurs */
.color-panel {
  position: fixed;
  top: 0; right: -380px;
  width: 360px; height: 100vh;
  background: white;
  z-index: 2000;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  font-family: 'Poppins', sans-serif;
  overflow-y: auto;
}
.color-panel.open { right: 0; }

/* Header panneau */
.cp-header {
  background: linear-gradient(135deg, var(--vert-dark), var(--vert));
  color: white;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 1;
}
.cp-header span { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.cp-header button {
  background: rgba(255,255,255,0.15); border: none;
  color: white; width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cp-header button:hover { background: rgba(255,255,255,0.3); }

/* Sections */
.cp-section {
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.cp-label {
  font-size: 0.72rem; font-weight: 800; color: #888;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px;
}

/* Thèmes swatches */
.theme-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.theme-swatch {
  height: 62px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 7px; transition: all 0.2s;
  border: 3px solid transparent;
  position: relative; overflow: hidden;
}
.theme-swatch:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.5); }
.theme-swatch.active-theme { border-color: var(--or); box-shadow: 0 0 0 2px var(--or); }
.theme-swatch span {
  font-size: 0.68rem; font-weight: 700;
  color: white; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

/* Lignes couleur */
.cp-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.cp-row label {
  font-size: 0.8rem; color: #444; font-weight: 600; flex: 1;
}
.color-input-wrap {
  display: flex; align-items: center; gap: 8px;
}
.color-input-wrap input[type="color"] {
  width: 38px; height: 38px; border: 2px solid #e0e0e0;
  border-radius: 8px; cursor: pointer; padding: 2px;
  background: none; outline: none;
}
.color-input-wrap span {
  font-size: 0.72rem; font-weight: 700;
  color: #555; font-family: monospace;
  min-width: 58px; text-align: center;
  background: #f5f5f5; padding: 3px 6px; border-radius: 4px;
}

/* Range slider */
.cp-row input[type="range"] {
  width: 130px; accent-color: var(--vert);
}

/* Select */
.cp-row select {
  border: 1.5px solid #e0e0e0; border-radius: 8px;
  padding: 6px 10px; font-family: 'Poppins', sans-serif;
  font-size: 0.8rem; color: #444; outline: none;
  background: white; cursor: pointer;
}

/* Boutons bas */
.cp-footer {
  padding: 18px 20px;
  display: flex; gap: 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}
.cp-btn-reset {
  flex: 1; padding: 10px; border-radius: 50px;
  border: 2px solid #e0e0e0; background: white;
  color: #666; font-weight: 700; font-size: 0.82rem;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cp-btn-reset:hover { border-color: #aaa; color: #333; }

.cp-btn-save {
  flex: 1; padding: 10px; border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--vert-dark), var(--vert));
  color: white; font-weight: 700; font-size: 0.82rem;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cp-btn-save:hover { box-shadow: 0 4px 15px rgba(0,166,81,0.35); transform: translateY(-1px); }

.cp-saved {
  background: var(--vert-light); color: var(--vert-dark);
  text-align: center; padding: 10px;
  font-size: 0.82rem; font-weight: 700;
}

/* ══════════════════════════════════════════════
   GAMMES — Style La Roche-Posay
══════════════════════════════════════════════ */
.gammes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.gamme-card {
  background: var(--gris-clair); border-radius: 16px;
  overflow: hidden; cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
  text-align: center;
}
.gamme-card:hover { border-color: var(--vert); transform: translateY(-6px); box-shadow: var(--ombre); }

.gamme-card-img {
  height: 220px; overflow: hidden; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gamme-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gamme-card:hover .gamme-card-img img { transform: scale(1.05); }

.gamme-card-body { padding: 20px; }
.gamme-card-body h3 { font-size: 1.15rem; font-weight: 800; color: var(--texte); margin-bottom: 6px; }
.gamme-card-body p { font-size: 0.82rem; color: var(--texte-2); line-height: 1.5; margin-bottom: 14px; }
.gamme-card-count { font-size: 0.75rem; color: var(--vert); font-weight: 600; margin-bottom: 12px; }

.gamme-voir-plus {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--vert); font-weight: 700; font-size: 0.85rem;
  border: 2px solid var(--vert); padding: 8px 20px; border-radius: 50px;
  transition: var(--transition);
}
.gamme-card:hover .gamme-voir-plus { background: var(--vert); color: #fff; }

/* ── Overlay produits par gamme ── */
.gamme-overlay {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}
.gamme-overlay.active { opacity: 1; visibility: visible; }

.gamme-overlay-inner {
  max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px;
}
.gamme-overlay-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.gamme-overlay-back {
  background: var(--gris-clair); border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.1rem; color: var(--texte);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.gamme-overlay-back:hover { background: var(--vert); color: #fff; }
.gamme-overlay-title { font-size: 1.5rem; font-weight: 800; color: var(--texte); }
.gamme-overlay-desc { color: var(--texte-2); font-size: 0.9rem; margin-bottom: 24px; }
.gamme-overlay-count { font-size: 0.85rem; color: var(--vert); font-weight: 600; margin-bottom: 20px; }

/* ── Disponibilité ── */
.pm-dispo { margin-top: 8px; font-size: 0.85rem; font-weight: 600; }
.pm-dispo.en-stock { color: var(--vert); }
.pm-dispo.en-stock::before { content: '●'; margin-right: 6px; }
.pm-dispo.sur-commande { color: #e67e22; }
.pm-dispo.sur-commande::before { content: '●'; margin-right: 6px; }
.pm-extra-info { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.pm-peremption { font-size: 0.82rem; color: var(--texte-2); }
.pm-peremption i { margin-right: 4px; color: var(--vert); }

@media (max-width: 768px) {
  .gammes-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gamme-card-img { height: 160px; }
  .gamme-card-body { padding: 14px; }
  .gamme-card-body h3 { font-size: 0.95rem; }
  .gamme-overlay-inner { padding: 24px 16px 60px; }
}
@media (max-width: 480px) {
  .gammes-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   MODAL DÉTAIL PRODUIT
══════════════════════════════════════════════ */
.product-modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
}
.product-modal-overlay.active { opacity: 1; visibility: visible; }

.product-modal {
  background: var(--blanc); border-radius: 20px;
  max-width: 900px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  position: relative; overflow: hidden;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.product-modal-overlay.active .product-modal { transform: translateY(0) scale(1); }

.product-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.1rem; color: var(--texte);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-modal-close:hover { background: #ff4757; color: #fff; }

.product-modal-grid { display: grid; grid-template-columns: 1fr 1fr; }

.product-modal-img-wrap {
  position: relative; background: var(--gris-clair);
  display: flex; align-items: center; justify-content: center;
  min-height: 350px; overflow: hidden;
}
.product-modal-img {
  width: 100%; height: 100%; object-fit: cover; max-height: 500px;
}
.pm-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  display: none;
}
.pm-badge.badge-new { display: block; background: var(--or); color: #fff; }
.pm-badge.badge-promo { display: block; background: #ff4757; color: #fff; }
.pm-badge.badge-rx { display: block; background: var(--bleu); color: #fff; }

.product-modal-info { padding: 32px; overflow-y: auto; max-height: 80vh; }

.pm-brand {
  text-transform: uppercase; color: var(--vert); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 1px; margin-bottom: 4px;
}
.pm-name { font-size: 1.5rem; font-weight: 800; color: var(--texte); margin-bottom: 4px; }
.pm-gamme {
  display: inline-block; background: var(--vert-light); color: var(--vert-dark);
  padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  margin-bottom: 16px;
}
.pm-desc { color: var(--texte-2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }

.pm-section { margin-bottom: 18px; }
.pm-section h3 {
  font-size: 0.9rem; font-weight: 700; color: var(--texte);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.pm-section h3 i { color: var(--vert); font-size: 0.85rem; }
.pm-section ul { list-style: none; padding: 0; margin: 0; }
.pm-section ul li {
  padding: 5px 0 5px 20px; position: relative;
  font-size: 0.85rem; color: var(--texte-2); line-height: 1.5;
}
.pm-section ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--vert); font-weight: 700;
}
.pm-section p { font-size: 0.85rem; color: var(--texte-2); line-height: 1.6; }

.pm-price-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--gris);
}
.pm-price-row .price { font-size: 1.4rem; font-weight: 800; color: var(--vert-dark); }
.pm-price-row .old-price { text-decoration: line-through; color: #aaa; font-size: 0.9rem; margin-left: 8px; }
.pm-price-row .price-empty { color: var(--texte-2); font-style: italic; font-size: 0.9rem; }

.btn-whatsapp-modal {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff;
  padding: 12px 24px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.btn-whatsapp-modal:hover { background: #1da851; transform: translateY(-2px); }

@media (max-width: 768px) {
  .product-modal-grid { grid-template-columns: 1fr; }
  .product-modal-img-wrap { min-height: 250px; max-height: 300px; }
  .product-modal-info { padding: 20px; max-height: none; }
  .pm-name { font-size: 1.2rem; }
  .pm-price-row { flex-direction: column; align-items: stretch; }
  .btn-whatsapp-modal { justify-content: center; }
  .product-modal-overlay { padding: 16px 8px; }
}

/* ══════════════════════════════════════════════
   RECHERCHE — Bouton navbar
══════════════════════════════════════════════ */
.nav-search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--texte); font-size: 1.15rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.nav-search-btn:hover { background: var(--vert-light); color: var(--vert); }

/* ── Language Toggle ── */
.lang-toggle {
  background: none; border: 2px solid var(--vert); cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  padding: 0;
}
.lang-toggle .lang-flag {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px;
  color: var(--vert);
  line-height: 1;
}
.lang-toggle:hover {
  background: var(--vert); transform: scale(1.08);
}
.lang-toggle:hover .lang-flag { color: #fff; }

/* ══════════════════════════════════════════════
   RECHERCHE — Overlay
══════════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-overlay-inner {
  max-width: 960px; margin: 0 auto;
  padding: 40px 24px 80px;
}

.search-close {
  position: fixed; top: 20px; right: 24px;
  background: var(--gris-clair); border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.2rem; color: var(--texte);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 10000;
}
.search-close:hover { background: #ff4757; color: #fff; }

.search-title {
  text-align: center; font-size: 1.6rem; font-weight: 800;
  color: var(--texte); margin-bottom: 4px;
}
.search-subtitle {
  text-align: center; color: var(--texte-2); font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ── Champ de recherche ── */
.search-input-wrap {
  position: relative; max-width: 600px; margin: 0 auto 20px;
}
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--vert); font-size: 1.1rem;
}
.search-input {
  width: 100%; padding: 16px 48px 16px 50px;
  border: 2px solid var(--gris); border-radius: 50px;
  font-size: 1rem; font-family: 'Poppins', sans-serif;
  background: var(--blanc); color: var(--texte);
  transition: var(--transition); outline: none;
}
.search-input:focus { border-color: var(--vert); box-shadow: 0 0 0 4px rgba(0,166,81,0.12); }
.search-input::placeholder { color: #aaa; }

.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #aaa; font-size: 1.1rem; display: none;
  transition: var(--transition);
}
.search-clear:hover { color: var(--texte); }
.search-clear.visible { display: block; }

/* ── Boutons image ── */
.search-image-actions {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.search-img-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  background: var(--vert-light); color: var(--vert);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.search-img-btn:hover { border-color: var(--vert); background: #d0f0dd; }
.search-img-btn-cam { background: #fff3e0; color: #e67e22; }
.search-img-btn-cam:hover { border-color: #e67e22; background: #ffe8cc; }

/* ── Zone preview image ── */
.search-preview-zone {
  max-width: 600px; margin: 0 auto 24px;
  background: var(--gris-clair); border-radius: var(--rayon);
  padding: 16px; border: 2px dashed var(--gris);
}
.search-preview-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 0.85rem; font-weight: 600; color: var(--texte);
}
.search-preview-remove {
  background: none; border: none; cursor: pointer;
  color: #ff4757; font-size: 0.8rem; font-weight: 600;
  transition: var(--transition);
}
.search-preview-remove:hover { color: #c0392b; }
.search-preview-img {
  width: 100%; max-height: 250px; object-fit: contain;
  border-radius: 8px; background: #fff;
}
.search-preview-hint {
  margin-top: 10px; font-size: 0.8rem; color: var(--texte-2);
  text-align: center; font-style: italic;
}

/* ── Résultats ── */
.search-results-info {
  text-align: center; margin-bottom: 20px;
  font-size: 0.9rem; color: var(--texte-2);
}
.search-results-info .result-count {
  font-weight: 700; color: var(--vert);
}
.search-results-info .no-result {
  color: #ff4757; font-weight: 600;
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.search-results-grid .product-card { opacity: 1; transform: none; }

/* ── Responsive recherche ── */
@media (max-width: 768px) {
  .search-overlay-inner { padding: 30px 16px 60px; }
  .search-title { font-size: 1.25rem; }
  .search-input { font-size: 0.9rem; padding: 14px 44px 14px 44px; }
  .search-results-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .search-results-grid { grid-template-columns: 1fr; }
  .search-image-actions { flex-direction: column; align-items: center; }
  .search-img-btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* Responsive */
@media (max-width: 480px) {
  .color-panel { width: 100%; right: -100%; }
  .color-toggle-btn { bottom: 160px; right: 14px; padding: 9px 14px; font-size: 0.75rem; }
  .color-toggle-btn span { display: none; }
}

/* ══════════════════════════════════════════════════════════
   CATALOGUE HIÉRARCHIQUE — DESIGN PREMIUM
══════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.catalogue-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f8faf9, #eef6f1);
  border-radius: 14px;
  margin-bottom: 36px;
  font-size: 0.88rem;
  border: 1px solid rgba(0,166,81,0.12);
  box-shadow: 0 2px 8px rgba(0,166,81,0.04);
}
.breadcrumb-item {
  color: var(--texte-2, #888);
  font-weight: 500;
  transition: all 0.25s;
  padding: 4px 8px;
  border-radius: 6px;
}
.breadcrumb-item.clickable {
  color: var(--vert, #00A651);
  cursor: pointer;
}
.breadcrumb-item.clickable:hover {
  color: #fff;
  background: var(--vert, #00A651);
  text-decoration: none;
}
.breadcrumb-item.active {
  color: var(--texte, #222);
  font-weight: 800;
  background: rgba(0,0,0,0.04);
}
.breadcrumb-sep {
  font-size: 0.6rem;
  color: #bbb;
  margin: 0 2px;
}

/* ── Catalogue Grid ── */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

/* ── Catalogue Card — PREMIUM ── */
.catalogue-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  position: relative;
}
.catalogue-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vert, #00A651), #34C77B);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.catalogue-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 8px 20px rgba(0,166,81,0.08);
}
.catalogue-card:hover::before {
  opacity: 1;
}
.catalogue-card-img {
  height: 200px;
  background: linear-gradient(145deg, #f0f4f2, #e8ede9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.catalogue-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
  z-index: 1;
  pointer-events: none;
}
.catalogue-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: contrast(1.04) saturate(1.05);
}
.catalogue-card:hover .catalogue-card-img img {
  transform: scale(1.08);
}
.catalogue-card-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,166,81,0.08), rgba(0,166,81,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--vert, #00A651);
  box-shadow: 0 4px 16px rgba(0,166,81,0.1);
}
.catalogue-card-body {
  padding: 22px 24px 24px;
  position: relative;
}
.catalogue-card-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--texte, #1a1a1a);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.catalogue-card-brand {
  font-size: 0.72rem;
  color: var(--vert, #00A651);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.catalogue-card-brand::before {
  content: '';
  width: 8px;
  height: 2px;
  background: var(--vert, #00A651);
  border-radius: 2px;
}
.catalogue-card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--texte-2, #777);
  margin-bottom: 16px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.catalogue-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.catalogue-card-meta i {
  color: var(--vert, #00A651);
  font-size: 0.75rem;
}
.catalogue-voir-plus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--vert, #00A651), #34C77B);
  padding: 8px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0,166,81,0.2);
}
.catalogue-voir-plus i {
  margin-left: 2px;
  transition: transform 0.3s;
  font-size: 0.7rem;
}
.catalogue-card:hover .catalogue-voir-plus {
  box-shadow: 0 5px 18px rgba(0,166,81,0.35);
  transform: translateX(2px);
}
.catalogue-card:hover .catalogue-voir-plus i {
  transform: translateX(4px);
}

/* ── Marques Grid (section séparée) — PREMIUM ── */
.marques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px;
}
.marque-badge {
  background: #fff;
  border-radius: 18px;
  padding: 28px 18px 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.marque-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,166,81,0.02), rgba(0,166,81,0.06));
  opacity: 0;
  transition: opacity 0.3s;
}
.marque-badge:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: var(--vert, #00A651);
}
.marque-badge:hover::before {
  opacity: 1;
}
.marque-badge-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f8f6, #eaf2ec);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}
.marque-badge-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.marque-badge-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--texte, #222);
  margin-bottom: 4px;
}
.marque-badge-count {
  font-size: 0.78rem;
  color: var(--texte-2, #888);
}

/* ── Responsive catalogue ── */
@media (max-width: 768px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .catalogue-card-img { height: 120px; }
  .catalogue-card-body { padding: 14px; }
  .catalogue-card-body h3 { font-size: 1rem; }
  .marques-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .marque-badge { padding: 16px 10px; }
  .marque-badge-logo { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
  .catalogue-grid { grid-template-columns: 1fr; }
  .catalogue-breadcrumb { font-size: 0.8rem; padding: 10px 14px; }
  .marques-grid { grid-template-columns: repeat(2, 1fr); }
}
