/* ============================================
   EVOCOM - Modern Design System v2
   Imprimerie Numérique à Dakar
   ============================================ */

/* Google Fonts loaded via <link> in HTML for better performance */

:root {
  --primary: #33B5E5;
  --primary-dark: #1E9FD0;
  --primary-light: #7DD4F4;
  --primary-glow: rgba(51,181,229,0.25);
  --secondary: #E91E8C;
  --secondary-dark: #C4176F;
  --secondary-light: #F74DB0;
  --secondary-glow: rgba(233,30,140,0.25);
  --accent: var(--secondary);
  --dark: #0F1629;
  --dark-alt: #1A2340;
  --dark-card: #1E293B;
  --gray-900: #1E293B;
  --gray-700: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-primary-h: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(135deg, #0F1629 0%, #1A2340 100%);
  --gradient-hero: linear-gradient(160deg, rgba(15,22,41,0.95) 0%, rgba(26,35,64,0.85) 50%, rgba(15,22,41,0.95) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow-p: 0 8px 32px rgba(51,181,229,0.35);
  --shadow-glow-s: 0 8px 32px rgba(233,30,140,0.35);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1240px;
  --header-h: 80px;
}

/* --- Reset --- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition: color var(--transition-fast); }
ul,ol { list-style:none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 0.75rem; }

/* --- Layout --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-header h2 { margin-bottom: 8px; }
.section-header .accent-bar {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary-h);
  border-radius: var(--radius-full);
  margin: 16px auto 0;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 20px auto 0;
}
.text-gradient {
  color: #33b5e5;
  font-weight: inherit;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn svg { flex-shrink: 0; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover::after { transform: translateX(100%); }
.btn-primary {
  background: linear-gradient(270deg, var(--primary), var(--secondary), var(--primary-dark), var(--secondary-light));
  background-size: 300% 300%;
  animation: AnimationName 6s ease infinite;
  color: var(--white);
  box-shadow: var(--shadow-glow-p);
  border: transparent;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(51,181,229,0.55);
}

@keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-glow-s);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--secondary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-p);
}
.btn-white {
  background: rgba(255,255,255,0.95);
  color: var(--dark);
  backdrop-filter: blur(8px);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- Icon Component --- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.icon-box svg {
  width: 28px;
  height: 28px;
}
.icon-box-gradient {
  background: linear-gradient(135deg, rgba(51,181,229,0.12), rgba(233,30,140,0.12));
}
.icon-box-gradient svg {
  stroke: var(--primary);
}
.icon-box-primary {
  background: rgba(51,181,229,0.1);
}
.icon-box-primary svg {
  stroke: var(--primary);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 22, 41, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(15, 22, 41, 0.98);
  box-shadow: 0 4px 40px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.header-logo img { height: 48px; }
.header-search {
  position: relative;
  flex: 1;
  max-width: 380px;
  margin: 0 32px;
}
.header-search input {
  width: 100%;
  padding: 11px 20px 11px 46px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}
.header-search input::placeholder { color: rgba(255,255,255,0.35); }
.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.header-search .s-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  color: rgba(255,255,255,0.78);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.header-nav .btn-cta {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 10px 26px;
  margin-left: 8px;
  font-weight: 600;
}
.header-nav .btn-cta:hover {
  box-shadow: var(--shadow-glow-p);
  transform: translateY(-1px);
}
/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition);
  transform-origin: center;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.burger.active span:nth-child(2) { opacity:0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
}
.overlay.active { display: block; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--light), transparent);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--primary-light);
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 .highlight {
  position: relative;
  display: inline-block;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -4px;
  right: -4px;
  height: 10px;
  background: var(--gradient-primary-h);
  opacity: 0.35;
  border-radius: 4px;
  z-index: -1;
  animation: highlightPulse 3s ease-in-out infinite;
}
.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}
/* Floating shapes */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-glow .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow .g1 {
  width: 500px; height: 500px;
  background: var(--primary);
  opacity: 0.08;
  top: -150px; right: -100px;
  animation: floatSlow 14s ease-in-out infinite;
}
.hero-glow .g2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  opacity: 0.06;
  bottom: -100px; left: -120px;
  animation: floatSlow 18s ease-in-out infinite reverse;
}
.hero-glow .g3 {
  width: 250px; height: 250px;
  background: var(--primary-light);
  opacity: 0.05;
  top: 45%; left: 15%;
  animation: floatSlow 12s ease-in-out infinite;
}

/* ============================================
   PRODUCT GRID (Homepage)
   ============================================ */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.prod-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  text-align: center;
  padding-bottom: 24px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.prod-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.prod-card .card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.prod-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.prod-card:hover .card-img img {
  transform: scale(1.06);
}
.prod-card h4 {
  padding: 16px 16px 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}
.prod-card:hover h4 { color: var(--primary); }
.prod-card .card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}
.prod-card:hover .card-action {
  opacity: 1;
  transform: translateY(0);
}
.prod-card .card-action svg { transition: transform var(--transition-fast); }
.prod-card:hover .card-action svg { transform: translateX(4px); }

/* ============================================
   PROMO BANNERS (like helloprint)
   ============================================ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.promo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  color: var(--white);
  transition: all var(--transition);
}
.promo-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.promo-banner > * { position: relative; z-index: 1; }
.promo-banner.promo-blue { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.promo-banner.promo-magenta { background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); }
.promo-banner.promo-dark { background: var(--gradient-dark); }
.promo-banner h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 800;
}
.promo-banner ul {
  font-size: 0.9rem;
  line-height: 1.9;
  opacity: 0.9;
}
.promo-banner ul li::before { content: '— '; opacity: 0.6; }
.promo-banner .promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}
.promo-banner .promo-cta:hover { background: rgba(255,255,255,0.25); }
.promo-banner .promo-img {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 180px;
  height: 180px;
  object-fit: contain;
  opacity: 0.3;
  filter: brightness(2);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: -50px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-md);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.trust-item .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.trust-item h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}
.trust-item p {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 0;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary-h);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .icon-box {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
}
.feature-card h4 { margin-bottom: 10px; }
.feature-card p {
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
  background: var(--gradient-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(80px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  color: var(--primary-light);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  margin: 0;
}

/* ============================================
   SEO CONTENT
   ============================================ */
.seo-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  border: 1px solid var(--gray-200);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.seo-block h2 { margin-bottom: 24px; }
.seo-block p {
  color: var(--gray-500);
  line-height: 1.85;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PRODUCTS CATALOG PAGE
   ============================================ */
.catalog-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.filters-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--gray-200);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.filter-section { margin-bottom: 28px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-section h4 {
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}
.filter-section label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--gray-700);
  transition: color var(--transition-fast);
}
.filter-section label:hover { color: var(--primary); }
.filter-section input[type="checkbox"] {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}
.catalog-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.catalog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.catalog-card .cat-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}
.catalog-card .cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.catalog-card:hover .cat-img img { transform: scale(1.06); }
.catalog-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 14px;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.catalog-card .cat-body { padding: 20px; }
.catalog-card .cat-tag {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}
.catalog-card h4 {
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}
.catalog-card:hover h4 { color: var(--primary); }
.catalog-card .cat-desc {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   PAGE BANNER
   ============================================ */
.page-hero {
  background: var(--gradient-dark);
  padding: calc(var(--header-h) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(60px);
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.page-hero .crumbs {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.page-hero .crumbs a {
  color: var(--primary-light);
  transition: color var(--transition-fast);
}
.page-hero .crumbs a:hover { color: var(--white); }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-gallery {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
}
.detail-gallery .main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.detail-info { padding-top: 16px; }
.detail-info .prod-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(51,181,229,0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.detail-info h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.detail-info .desc {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 32px;
}
.options-group { margin-bottom: 32px; }
.option-row {
  display: flex;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
  gap: 20px;
}
.option-row .label {
  width: 130px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--dark);
  padding-top: 6px;
  flex-shrink: 0;
}
.option-row .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.opt-tag {
  padding: 7px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}
.opt-tag:hover, .opt-tag.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.tech-tips {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}
.tech-tips h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.tech-tips ul {
  color: var(--gray-700);
  font-size: 0.88rem;
  line-height: 2;
}
.tech-tips ul li { padding-left: 16px; position: relative; }
.tech-tips ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ============================================
   QUOTE FORM
   ============================================ */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.quote-sidebar {
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}
.quote-sidebar h2 {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 20px;
}
.quote-sidebar .intro {
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 32px;
}
.benefit-list { margin-bottom: 32px; }
.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
}
.benefit-item .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}
.benefit-item .icon-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-light);
}
.quote-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}
.quote-divider p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.quote-card h3 {
  margin-bottom: 28px;
  font-size: 1.3rem;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  background: var(--white);
  color: var(--gray-900);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-upload {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--gray-100);
}
.file-upload:hover { border-color: var(--primary); background: rgba(51,181,229,0.04); }
.file-upload input[type="file"] { display: none; }
.file-upload .upload-icon svg {
  width: 36px; height: 36px;
  stroke: var(--gray-400);
  margin: 0 auto 10px;
}
.file-upload p { color: var(--gray-500); font-size: 0.85rem; margin: 0; }
.file-upload small { color: var(--gray-400); }
.file-upload .file-name { margin-top: 8px; color: var(--primary); font-weight: 600; }

/* ============================================
   STUDIO / PROCESS
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.step-card h4 { margin-bottom: 10px; }
.step-card p { color: var(--gray-500); font-size: 0.88rem; margin: 0; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover .icon-box {
  transform: scale(1.08);
  background: var(--gradient-primary);
}
.service-card:hover .icon-box svg { stroke: var(--white); }
.service-card .icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: var(--radius-lg);
}
.service-card h4 { margin-bottom: 12px; }
.service-card p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.7; margin: 0; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-grid p {
  color: var(--gray-500);
  line-height: 1.85;
}
.about-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about-img img { width: 100%; display: block; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .f-logo img { height: 42px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.f-social {
  display: flex;
  gap: 12px;
}
.f-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.f-social a svg { width: 18px; height: 18px; }
.f-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
.f-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}
.f-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--gradient-primary-h);
  border-radius: 3px;
}
.f-col ul li { margin-bottom: 8px; }
.f-col ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}
.f-col ul li a:hover { color: var(--primary-light); padding-left: 4px; }
.f-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}
.f-contact svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   CATEGORY ROWS (Landing Page Products)
   ============================================ */
.cat-row-title {
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.cat-row-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary-h);
  border-radius: 3px;
}
.cat-row-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-row-scroll::-webkit-scrollbar {
  display: none;
}
.cat-row-scroll .prod-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.cat-row-scroll .prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: rgba(51,181,229,0.3);
}
.cat-row-scroll .prod-card .card-img {
  aspect-ratio: 1;
  overflow: hidden;
}
.cat-row-scroll .prod-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.cat-row-scroll .prod-card:hover .card-img img {
  transform: scale(1.08);
}
.cat-row-scroll .prod-card h4 {
  padding: 14px 16px 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.cat-row-scroll .prod-card .card-action {
  padding: 4px 16px 14px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}
.cat-row-scroll .prod-card:hover .card-action {
  gap: 8px;
}

/* ============================================
   TESTIMONIALS SLIDER
   ============================================ */
.testimonials-wrapper {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testi-google-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 16px 28px;
  background: var(--white);
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.testi-google-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.testi-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.testi-stars {
  display: flex;
  gap: 2px;
}
.testi-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.testi-slider {
  margin-bottom: 36px;
}

/* Avatar area */
.testi-avatar-area {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  height: 80px;
}
.testi-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gray-200);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}
.testi-avatar.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(51,181,229,0.15), 0 8px 30px rgba(0,0,0,0.1);
  z-index: 2;
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quote area */
.testi-quote-area {
  position: relative;
  min-height: 120px;
}
.testi-quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.testi-quote.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.testi-quote p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--dark);
  font-weight: 500;
  font-style: italic;
}

/* Name buttons */
.testi-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.testi-name-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-family: var(--font-body);
}
.testi-name-btn:hover {
  border-color: rgba(51,181,229,0.3);
  background: rgba(51,181,229,0.04);
}
.testi-name-btn.active {
  background: linear-gradient(135deg, #33B5E5, #E91E8C) !important;
  color: #FFFFFF !important;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(51,181,229,0.3);
}
.tn-name { font-weight: 600; }
.tn-sep { opacity: 0.5; font-size: 0.7rem; }
.tn-role { opacity: 0.8; }
.testi-name-btn.active .tn-name { color: #FFFFFF; }
.testi-name-btn.active .tn-sep { opacity: 0.6; color: rgba(255,255,255,0.7); }
.testi-name-btn.active .tn-role { color: rgba(255,255,255,0.85); }

@media (max-width: 768px) {
  .testi-google-bar { gap: 14px; padding: 12px 18px; }
  .testi-quote p { font-size: 1rem; }
  .testi-name-btn { font-size: 0.75rem; padding: 6px 12px; }
  .testi-names { gap: 6px; }
}
@media (max-width: 480px) {
  .testi-google-bar { flex-direction: column; gap: 8px; border-radius: var(--radius); }
  .testi-quote p { font-size: 0.92rem; }
}

/* ============================================
   MOBILE FOOTER (hidden on desktop)
   ============================================ */
.footer-mobile {
  display: none;
}

/* ============================================
   AI CHATBOT WIDGET
   ============================================ */
#evocom-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: var(--font-body);
}

/* Toggle Button */
.chat-toggle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1a2a4a 0%, #0d1b3e 50%, #162040 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 28px rgba(51,181,229,0.35),
    0 0 0 3px rgba(51,181,229,0.12),
    inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  animation: pulse-chat-glow 3s ease-in-out infinite;
  overflow: visible;
}
.chat-toggle:hover {
  transform: scale(1.12) rotate(5deg);
  box-shadow:
    0 8px 40px rgba(51,181,229,0.5),
    0 0 0 5px rgba(51,181,229,0.15),
    inset 0 1px 1px rgba(255,255,255,0.15);
}
.chat-toggle:active {
  transform: scale(0.95);
}

/* Orbital Rings */
.chat-orbit-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(51,181,229,0.3);
  animation: orbit-spin 12s linear infinite;
  pointer-events: none;
}
.chat-orbit-ring-2 {
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-color: rgba(233,30,140,0.15);
  border-width: 1px;
  animation-duration: 18s;
  animation-direction: reverse;
}
@keyframes orbit-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Icon states */
.chat-toggle .chat-icon-open,
.chat-toggle .chat-icon-close {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.chat-icon-close { display: none !important; }
#evocom-chat.open .chat-icon-open { display: none !important; }
#evocom-chat.open .chat-icon-close { display: flex !important; }
#evocom-chat.open .chat-toggle {
  animation: none;
  background: linear-gradient(135deg, #33B5E5, #E91E8C);
  transform: rotate(0deg);
}
#evocom-chat.open .chat-orbit-ring,
#evocom-chat.open .chat-orbit-ring-2 {
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.4s ease;
}

/* IA Badge */
.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #fff;
  letter-spacing: -0.5px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.4);
  z-index: 3;
}

/* Tooltip label */
.chat-toggle-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,22,41,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.08);
}
.chat-toggle-label::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(15,22,41,0.9);
}
.chat-toggle:hover .chat-toggle-label {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
#evocom-chat.open .chat-toggle-label { display: none; }

@keyframes pulse-chat-glow {
  0%, 100% {
    box-shadow:
      0 6px 28px rgba(51,181,229,0.35),
      0 0 0 3px rgba(51,181,229,0.12),
      inset 0 1px 1px rgba(255,255,255,0.1);
  }
  50% {
    box-shadow:
      0 6px 28px rgba(51,181,229,0.15),
      0 0 0 10px rgba(51,181,229,0.06),
      0 0 0 20px rgba(233,30,140,0.03),
      inset 0 1px 1px rgba(255,255,255,0.1);
  }
}

/* Chat Panel */
.chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
#evocom-chat.open .chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar-header {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar-header svg { width: 20px; height: 20px; stroke: #fff; }
.chat-header h4 { font-size: 0.95rem; font-weight: 700; margin: 0; }
.chat-status {
  font-size: 0.72rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
  animation: blink-dot 2s infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.chat-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.chat-close:hover { color: #fff; }
.chat-close svg { width: 20px; height: 20px; }

/* Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }

/* Message Bubbles */
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: msgFadeIn 0.4s ease;
}
@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.user {
  flex-direction: row-reverse;
}
.chat-msg-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-msg-avatar svg { width: 14px; height: 14px; stroke: #fff; }

.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 80%;
  word-wrap: break-word;
}
.chat-msg.bot .chat-bubble {
  background: #f3f4f6;
  color: var(--dark);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble a {
  color: var(--primary);
  text-decoration: underline;
}
.chat-msg.user .chat-bubble a { color: rgba(255,255,255,0.9); }

/* Thinking Dots */
.thinking-dots {
  display: flex;
  gap: 5px;
  padding: 4px 0;
}
.thinking-dots span {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: thinkBounce 1.4s infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes thinkBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Input Area */
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.chat-input-area input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  font-family: var(--font-body);
}
.chat-input-area input:focus {
  border-color: var(--primary);
}
.chat-input-area input::placeholder { color: #9ca3af; }
#chatSend {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
#chatSend:hover { transform: scale(1.08); }
#chatSend svg { width: 18px; height: 18px; }

/* Mobile Responsive */
@media (max-width: 480px) {
  #evocom-chat { bottom: 16px; right: 16px; }
  .chat-panel {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    bottom: 68px;
  }
  .chat-toggle { width: 54px; height: 54px; }
  .chat-messages { min-height: 200px; max-height: calc(100vh - 280px); }
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, -25px); }
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 36px rgba(37,211,102,0.6); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
/* ─── Reveal animations ───
   Elements start hidden but auto-reveal after 500ms via CSS
   so JS slowness never causes permanent FOUC */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
  /* CSS fallback: auto-reveal after 500ms even without JS */
  animation: revealFallback 0.6s ease 0.5s forwards;
}
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none; /* JS took over, cancel CSS animation */
}
.reveal-delay-1 { transition-delay: 0.1s; animation-delay: 0.6s; }
.reveal-delay-2 { transition-delay: 0.2s; animation-delay: 0.7s; }
.reveal-delay-3 { transition-delay: 0.3s; animation-delay: 0.8s; }
.reveal-delay-4 { transition-delay: 0.4s; animation-delay: 0.9s; }


/* Text Slider Animation */
.text-slider {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  height: 1.2em;
  text-align: left;
  position: relative;
}

.text-slider-inner {
  display: inline-block;
  animation: slideText 9s ease-in-out infinite;
}

.text-slider-item {
  display: block;
  height: 1.2em;
  color: #33b5e5;
  font-weight: 800;
}

@keyframes slideText {
  0%, 20% {
    transform: translateY(0);
    opacity: 1;
  }
  25%, 27% {
    opacity: 0.6;
  }
  30%, 50% {
    transform: translateY(-1.2em);
    opacity: 1;
  }
  55%, 57% {
    opacity: 0.6;
  }
  60%, 80% {
    transform: translateY(-2.4em);
    opacity: 1;
  }
  85%, 87% {
    opacity: 0.6;
  }
  90%, 100% {
    transform: translateY(-3.6em);
    opacity: 1;
  }
}

@keyframes highlightPulse {
  0%, 100% {
    transform: scaleX(1);
    opacity: 0.35;
  }
  50% {
    transform: scaleX(1.05);
    opacity: 0.5;
  }
}

/* ============================================
   QUICK NAV (Produits page)
   ============================================ */
.quick-nav-section {
  background: var(--white);
  padding: 20px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.quick-nav-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-nav-scroll::-webkit-scrollbar { display: none; }
.quick-nav {
  display: flex;
  gap: 8px;
  min-width: max-content;
  padding: 0 4px;
}
.qnav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.qnav-item:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-p);
}
.qnav-icon { font-size: 1.2rem; }

/* ============================================
   CATEGORY SECTIONS (Produits page)
   ============================================ */
.cat-section {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: calc(var(--header-h) + 70px);
}
.cat-section:nth-child(even) { background: var(--white); }
.cat-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.cat-section-header .cat-icon {
  font-size: 2.4rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.cat-section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 2px;
}
.cat-subtitle {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   LOGO IMAGE
   ============================================ */
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}
.f-logo .logo-img {
  height: 52px;
  margin-bottom: 16px;
}

/* ============================================
   CATALOG SIDEBAR LAYOUT (Produits page)
   ============================================ */
.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 60vh;
}
.mobile-cat-toggle {
  display: none;
}

/* --- Sidebar --- */
.cat-sidebar {
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  scrollbar-width: thin;
}
.cat-sidebar::-webkit-scrollbar { width: 4px; }
.cat-sidebar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.sb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}
.sb-header svg { color: var(--primary); }
.sb-cat { border-bottom: 1px solid var(--gray-100); }
.sb-cat-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  gap: 10px;
  text-align: left;
  transition: all var(--transition-fast);
}
.sb-cat-btn:hover { background: var(--gray-50); color: var(--primary); }
.sb-cat-btn.active { background: rgba(51,181,229,0.06); color: var(--primary); }
.sb-icon { font-size: 1.2rem; flex-shrink: 0; width: 24px; text-align: center; }
.sb-title { flex: 1; }
.sb-arrow {
  transition: transform var(--transition-fast);
  color: var(--gray-400);
  flex-shrink: 0;
}
.sb-cat.open .sb-arrow { transform: rotate(180deg); }
.sb-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.sb-cat.open .sb-submenu { max-height: 500px; }
.sb-submenu li a {
  display: block;
  padding: 9px 16px 9px 50px;
  font-size: 0.82rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}
.sb-submenu li a:hover {
  color: var(--primary);
  background: var(--gray-50);
  border-left-color: var(--primary);
}

/* --- Content Area --- */
.cat-content {
  padding: 32px 36px;
  background: var(--gray-50);
}
.cat-block {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.cat-block-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}
.cb-icon { font-size: 2rem; }
.cat-block-header h2 { font-size: 1.4rem; margin: 0; line-height: 1.2; }
.cb-sub {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cb-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* --- Product Cards --- */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.pcard {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.pcard-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pcard:hover .pcard-img img { transform: scale(1.08); }
.pcard-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard-body h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
  color: var(--dark);
}
.pcard-btn {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: auto;
  transition: color var(--transition-fast);
}
.pcard:hover .pcard-btn { color: var(--accent); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .products-showcase { grid-template-columns: repeat(3, 1fr); }
  .features-grid, .process-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .quote-layout, .detail-grid, .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { flex-wrap: wrap; padding: 28px 32px; }
  .promo-grid { grid-template-columns: 1fr; }
  .catalog-products { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: 240px 1fr; }
  .pcard-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .header-search { display: none; }
  .header-logo { max-width: 140px; }
  .logo-img { height: 36px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .cat-sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1060;
    box-shadow: 6px 0 40px rgba(0,0,0,0.3);
    transition: left var(--transition);
  }
  .cat-sidebar.show { left: 0; }
  .mobile-cat-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-700);
    cursor: pointer;
    position: sticky;
    top: var(--header-h);
    z-index: 90;
  }
  .mobile-cat-toggle.active { background: var(--gray-50); }
  .mobile-cat-toggle .toggle-arrow { transition: transform var(--transition-fast); }
  .mobile-cat-toggle.active .toggle-arrow { transform: rotate(180deg); }
  .cat-content { padding: 20px 16px; }
  .header-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 85%; max-width: 340px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + 24px) 28px 28px;
    transition: right var(--transition);
    z-index: 1050;
    gap: 4px;
    overflow-y: auto;
    box-shadow: -6px 0 40px rgba(0,0,0,0.4);
  }
  .header-nav.open { right: 0; }
  .header-nav a { width: 100%; padding: 14px 18px; font-size: 1rem; border-radius: var(--radius-sm); }
  .header-nav .btn-cta { width: 100%; text-align: center; margin-left: 0; margin-top: 12px; }
  .burger { display: flex; }
  .products-showcase { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; min-height: auto; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .features-grid, .process-grid, .stats-grid, .services-grid { grid-template-columns: 1fr; }
  .feature-card, .step-card, .service-card { padding: 24px 20px; }
  /* Hide desktop footer, show mobile footer */
  .footer-grid { display: none; }
  .footer-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px 0;
  }
  .fm-logo { display: inline-block; margin-bottom: 12px; }
  .fm-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 32px;
  }
  .fm-actions {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 32px;
    width: 100%;
  }
  .fm-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
  }
  .fm-action-btn svg {
    width: 24px;
    height: 24px;
    padding: 14px;
    box-sizing: content-box;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    stroke: var(--primary);
    border: 1px solid rgba(51,181,229,0.2);
    transition: all 0.3s ease;
  }
  .fm-action-btn:hover svg,
  .fm-action-btn:active svg {
    background: rgba(51,181,229,0.15);
    border-color: var(--primary);
    transform: scale(1.08);
  }
  .fm-action-btn span {
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .fm-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    width: 100%;
  }
  .fm-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  .fm-links a:hover,
  .fm-links a:active {
    background: rgba(51,181,229,0.12);
    border-color: rgba(51,181,229,0.3);
    color: var(--primary-light);
  }
  .fm-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
  }
  .fm-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
  }
  .fm-social a:hover,
  .fm-social a:active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
  }
  .fm-social a svg { width: 20px; height: 20px; }
  .footer-bottom {
    margin-top: 24px;
    padding: 20px 16px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.5;
    word-break: break-word;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .site-footer { padding: 0; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.88rem; }
  .trust-bar { flex-direction: column; margin-top: -30px; padding: 24px; }
  .trust-item { width: 100%; }
  .catalog-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .catalog-card .cat-body { padding: 14px; }
  .catalog-card h4 { font-size: 0.95rem; }
  .catalog-card .cat-desc { font-size: 0.78rem; margin-bottom: 10px; }
  .page-hero { padding: calc(var(--header-h) + 36px) 0 36px; }
  .page-hero h1 { font-size: 1.6rem; }
  .seo-block { padding: 32px 20px; }
  .stats-section { padding: 48px 0; }
  .stat-item h3 { font-size: 2rem; }
  .about-grid { gap: 32px; }
  .quick-nav-section { padding: 12px 0; }
  .qnav-item { padding: 8px 14px; font-size: 0.78rem; }
  .qnav-icon { font-size: 1rem; }
  .cat-section { padding: 40px 0 28px; }
  .cat-section-header .cat-icon { width: 48px; height: 48px; font-size: 1.8rem; }
  .cat-section-header h2 { font-size: 1.3rem; }
  .wa-btn { width: 50px; height: 50px; bottom: 20px; right: 16px; }
  .wa-btn svg { width: 24px; height: 24px; }
  .wa-tooltip { display: none; }
}
@media (max-width: 576px) {
  .container { padding: 0 12px; }
  .header-logo { max-width: 120px; }
  .products-showcase { grid-template-columns: 1fr 1fr; gap: 8px; }
  .prod-card { border-radius: var(--radius-sm); }
  .prod-card .card-img { aspect-ratio: 1; }
  .prod-card h4 { font-size: 0.78rem; padding: 8px 10px 4px; }
  .prod-card .card-action { font-size: 0.7rem; padding: 4px 10px 10px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero h1 { font-size: 1.5rem; }
  .catalog-products { grid-template-columns: 1fr 1fr; gap: 8px; }
  .catalog-card .cat-img { aspect-ratio: 1; }
  .catalog-card .cat-body { padding: 10px; }
  .catalog-card h4 { font-size: 0.85rem; }
  .catalog-card .cat-desc { display: none; }
  .catalog-card .btn { font-size: 0.72rem; padding: 6px 12px; }
  .section { padding: 36px 0; }
  .section-header { margin-bottom: 24px; }
  .page-hero { padding: calc(var(--header-h) + 24px) 0 24px; }
  .page-hero h1 { font-size: 1.3rem; }
  .cat-section { padding: 28px 0 20px; }
  .cat-section-header { gap: 10px; margin-bottom: 20px; }
  .cat-section-header .cat-icon { width: 40px; height: 40px; font-size: 1.4rem; border-radius: var(--radius-sm); }
  .cat-section-header h2 { font-size: 1.1rem; }
  .cat-subtitle { font-size: 0.72rem; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
::selection { background: rgba(51,181,229,0.2); color: var(--dark); }
