/* ============================================================
   PRO MARKET ALGÉRIE — Modern Animation System
   Smooth, fluid, performant animations
   ============================================================ */

/* ── Reduced Motion Support ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Scroll-Triggered Reveal System ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Fade variants */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-fade.visible { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Stagger Animation for Grids ──────────────────────────── */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ── Enhanced Button Animations ───────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300%;
  height: 300%;
}

.btn:active {
  transform: scale(0.96) !important;
  transition-duration: 0.1s;
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── Card Hover Enhancements ──────────────────────────────── */
.listing-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(242, 101, 34, 0.1);
}

.listing-card:hover .listing-card-img img {
  transform: scale(1.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-card .listing-card-img img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card shine effect */
.listing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.listing-card:hover::after {
  transform: translateX(100%) rotate(45deg);
}

/* ── Category Card Animations ─────────────────────────────── */
.cat-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.cat-card:hover i {
  transform: scale(1.2) rotate(-5deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-card i {
  transition: transform 0.3s ease;
}

/* ── Hero Section Animations ──────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero h1 {
  animation: hero-title-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero p {
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-search {
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-trust {
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

@keyframes hero-title-reveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating particles in hero */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(242, 101, 34, 0.4);
  border-radius: 50%;
  animation: float-particle 8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(242, 101, 34, 0.3);
}

.hero-particle:nth-child(2) {
  background: rgba(27, 117, 187, 0.4);
  animation-delay: -1s;
  animation-duration: 10s;
  box-shadow: 0 0 6px rgba(27, 117, 187, 0.3);
}

.hero-particle:nth-child(3) {
  background: rgba(255, 255, 255, 0.3);
  animation-delay: -3s;
  animation-duration: 12s;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.hero-particle:nth-child(4) {
  background: rgba(242, 101, 34, 0.3);
  animation-delay: -5s;
  animation-duration: 9s;
}

.hero-particle:nth-child(5) {
  background: rgba(27, 117, 187, 0.3);
  animation-delay: -2s;
  animation-duration: 11s;
}

.hero-particle:nth-child(6) {
  background: rgba(242, 101, 34, 0.35);
  animation-delay: -4s;
  animation-duration: 13s;
  width: 5px;
  height: 5px;
}

.hero-particle:nth-child(7) {
  background: rgba(255, 255, 255, 0.25);
  animation-delay: -6s;
  animation-duration: 8s;
}

.hero-particle:nth-child(8) {
  background: rgba(27, 117, 187, 0.35);
  animation-delay: -1.5s;
  animation-duration: 14s;
  width: 5px;
  height: 5px;
}

.hero-particle:nth-child(9) {
  background: rgba(242, 101, 34, 0.25);
  animation-delay: -3.5s;
  animation-duration: 10s;
}

.hero-particle:nth-child(10) {
  background: rgba(255, 255, 255, 0.2);
  animation-delay: -5.5s;
  animation-duration: 12s;
}

.hero-particle:nth-child(11) {
  background: rgba(27, 117, 187, 0.25);
  animation-delay: -2.5s;
  animation-duration: 9s;
}

.hero-particle:nth-child(12) {
  background: rgba(242, 101, 34, 0.3);
  animation-delay: -4.5s;
  animation-duration: 11s;
  width: 3px;
  height: 3px;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(80px) scale(0);
    opacity: 0;
  }
}

/* ── Carousel Animations ──────────────────────────────────── */
.carousel-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.carousel-track {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.carousel-card {
  scroll-snap-align: start;
}

/* ── Section Title Animation ──────────────────────────────── */
.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  width: 0;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.visible h2::after {
  width: 42px;
}

/* ── Stat Cards Counter Animation ─────────────────────────── */
.stat-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-val {
  transition: color 0.3s ease;
}

.stat-card:hover .stat-val {
  color: var(--orange);
}

/* ── Loading Skeleton ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-100) 25%,
    var(--gray-200) 50%,
    var(--gray-100) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--r-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
}

.skeleton-card .skeleton-img {
  width: 100%;
  height: 195px;
}

.skeleton-card .skeleton-body {
  padding: 14px 16px;
}

.skeleton-card .skeleton-title {
  height: 18px;
  margin-bottom: 10px;
  width: 85%;
}

.skeleton-card .skeleton-price {
  height: 22px;
  margin-bottom: 10px;
  width: 60%;
}

.skeleton-card .skeleton-meta {
  height: 14px;
  width: 70%;
}

/* ── Smooth Page Load ─────────────────────────────────────── */
.page-wrapper {
  opacity: 0;
  animation: page-load 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

@keyframes page-load {
  /* Opacité uniquement : aucun transform, sinon .page-wrapper devient un bloc
     conteneur pour ses descendants position:fixed et casse le menu mobile. */
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Toast Notification Enhancements ──────────────────────── */
.toast {
  animation: toast-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.toast.hiding {
  animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
  }
}

/* ── Modal Enhancements ───────────────────────────────────── */
.modal-overlay {
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
  opacity: 0;
}

.modal-overlay.open {
  opacity: 1;
}

.modal {
  animation: modal-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-appear {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ── Input Focus Animations ───────────────────────────────── */
.form-control {
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-control:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 117, 187, 0.15);
}

/* ── Upload Zone Animation ────────────────────────────────── */
.upload-zone {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upload-zone:hover {
  transform: scale(1.01);
  border-style: solid;
}

.upload-zone.dragover {
  transform: scale(1.02);
  border-width: 3px;
  box-shadow: 0 8px 24px rgba(242, 101, 34, 0.15);
}

/* ── Favorite Button Animation ────────────────────────────── */
.fav-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fav-btn:hover {
  transform: scale(1.15);
}

.fav-btn.active {
  animation: heart-beat 0.4s ease;
}

@keyframes heart-beat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ── Badge Pulse Animation ────────────────────────────────── */
.badge-premium {
  animation: premium-glow 2s ease-in-out infinite;
}

@keyframes premium-glow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(242, 101, 34, 0.35);
  }
  50% {
    box-shadow: 0 2px 16px rgba(242, 101, 34, 0.55);
  }
}

/* ── Navigation Hover ─────────────────────────────────────── */
.cat-nav-list a {
  position: relative;
  transition: all 0.3s ease;
}

.cat-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width 0.3s ease, left 0.3s ease;
}

.cat-nav-list a:hover::after,
.cat-nav-list a.active::after {
  width: 100%;
  left: 0;
}

/* ── Header Scroll Behavior ───────────────────────────────── */
.site-header {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.site-header.hidden {
  transform: translateY(-100%);
}

/* ── Image Loading Animation ──────────────────────────────── */
.img-loading {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

.img-loaded {
  animation: img-fade-in 0.5s ease;
}

@keyframes img-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Step Wizard Animation ────────────────────────────────── */
.step-num {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.active .step-num {
  animation: step-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes step-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Chat Message Animation ───────────────────────────────── */
.msg-bubble {
  animation: msg-appear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes msg-appear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Spinner Enhancements ─────────────────────────────────── */
.spinner {
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ── Link Underline Animation ─────────────────────────────── */
.footer-col a {
  position: relative;
  display: flex;
  width: fit-content;
}

.footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.footer-col a:hover::after {
  width: 100%;
}

/* ── Dashboard Nav Animation ──────────────────────────────── */
.dashboard-nav a {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-nav a:hover {
  transform: translateX(4px);
}

.dashboard-nav a.active {
  animation: nav-pulse 0.4s ease;
}

@keyframes nav-pulse {
  0% { box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3); }
  50% { box-shadow: 0 6px 20px rgba(242, 101, 34, 0.5); }
  100% { box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3); }
}

/* ── Table Row Hover ──────────────────────────────────────── */
.data-table tr {
  transition: background 0.2s ease;
}

/* ── Pagination Hover ─────────────────────────────────────── */
.pagination a {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pagination a:hover {
  transform: translateY(-2px);
}

/* ── Search Input Animation ───────────────────────────────── */
.header-search {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.header-search:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Glow Effects ─────────────────────────────────────────── */
.glow-orange {
  box-shadow: 0 0 20px rgba(242, 101, 34, 0.3);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(242, 101, 34, 0.3); }
  50% { box-shadow: 0 0 30px rgba(242, 101, 34, 0.5); }
}

/* ── Parallax Effect ──────────────────────────────────────── */
.parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Smooth Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--r-full);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-100);
}

/* ── Premium Ribbon Animation ─────────────────────────────── */
.premium-ribbon {
  animation: ribbon-shine 3s ease-in-out infinite;
}

@keyframes ribbon-shine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

/* ── Empty State Animation ────────────────────────────────── */
.empty-state {
  animation: empty-fade-in 0.6s ease;
}

@keyframes empty-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Content Card Hover ───────────────────────────────────── */
.content-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* ── How It Works Step Animation ──────────────────────────── */
.how-step {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-step:hover {
  transform: translateY(-8px);
}

.how-step:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
}

.step-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Subscription Cards Animation ─────────────────────────── */
.sub-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sub-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sub-card.featured {
  animation: featured-pulse 3s ease-in-out infinite;
}

@keyframes featured-pulse {
  0%, 100% {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange-light), 0 8px 24px rgba(242, 101, 34, 0.2);
  }
  50% {
    border-color: var(--orange-light);
    box-shadow: 0 0 0 2px var(--orange-light), 0 12px 32px rgba(242, 101, 34, 0.3);
  }
}

/* ── Gallery Image Transition ─────────────────────────────── */
.gallery-main img {
  transition: opacity 0.3s ease;
}

.gallery-thumbs img {
  transition: all 0.3s ease;
}

/* ── Filter Sidebar Animation ─────────────────────────────── */
.filter-sidebar {
  transition: box-shadow 0.3s ease;
}

.filter-sidebar:hover {
  box-shadow: var(--shadow-md);
}

/* ── Logo Animation ───────────────────────────────────────── */
.site-logo {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

/* ── Responsive Animation Adjustments ─────────────────────── */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(20px);
  }
  
  .hero h1 {
    animation-duration: 0.6s;
  }
  
  .stagger-children > * {
    transition-delay: 0s !important;
  }
}

/* ── Print Styles ─────────────────────────────────────────── */
@media print {
  .reveal, .reveal-fade, .reveal-scale, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   LOADING SCREEN — Ultra Modern Page Loader
   ============================================================ */

/* ── Loader Container ─────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 50%, #112a50 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader.loaded .loader-content {
  animation: loader-exit 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loader-exit {
  to {
    transform: scale(0.9) translateY(-30px);
    opacity: 0;
  }
}

/* ── Loader Background Effects ────────────────────────────── */
.loader-bg-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: loader-glow-pulse 4s ease-in-out infinite;
}

.loader-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 117, 187, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: loader-glow-pulse 4s ease-in-out infinite 2s;
}

@keyframes loader-glow-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ── Loader Content ───────────────────────────────────────── */
.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ── Animated Logo ────────────────────────────────────────── */
.loader-logo {
  position: relative;
  width: 100px;
  height: 100px;
}

.loader-logo-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: loader-ring-spin 1.5s linear infinite;
}

.loader-logo-ring:nth-child(2) {
  inset: 8px;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  animation-duration: 1s;
  animation-direction: reverse;
}

.loader-logo-ring:nth-child(3) {
  inset: 16px;
  border-top-color: rgba(255, 255, 255, 0.3);
  animation-duration: 2s;
}

.loader-logo-center {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loader-logo-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(242, 101, 34, 0.4);
}

.loader-logo-center i {
  font-size: 28px;
  color: #fff;
}

@keyframes loader-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes loader-logo-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(242, 101, 34, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(242, 101, 34, 0.6); }
}

/* ── Loader Text ──────────────────────────────────────────── */
.loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loader-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.loader-brand span {
  color: var(--orange);
}

.loader-dots {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: loader-dot-bounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; background: var(--blue); }
.loader-dot:nth-child(3) { animation-delay: 0.4s; background: rgba(255,255,255,0.5); }

@keyframes loader-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
}

/* ── Progress Bar ─────────────────────────────────────────── */
.loader-progress-container {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-light), var(--orange), var(--orange-dark));
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.loader-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loader-shimmer 1.5s infinite;
}

@keyframes loader-shimmer {
  to { left: 100%; }
}

.loader-progress-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ── Floating Particles ───────────────────────────────────── */
.loader-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(242, 101, 34, 0.6);
  border-radius: 50%;
  animation: loader-particle-float 6s ease-in-out infinite;
}

.loader-particle:nth-child(1) { left: 10%; top: 90%; animation-delay: 0s; animation-duration: 7s; }
.loader-particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; animation-duration: 8s; background: rgba(27, 117, 187, 0.6); }
.loader-particle:nth-child(3) { left: 30%; top: 95%; animation-delay: 2s; animation-duration: 6s; }
.loader-particle:nth-child(4) { left: 70%; top: 85%; animation-delay: 0.5s; animation-duration: 9s; background: rgba(27, 117, 187, 0.6); }
.loader-particle:nth-child(5) { left: 80%; top: 90%; animation-delay: 1.5s; animation-duration: 7s; }
.loader-particle:nth-child(6) { left: 90%; top: 80%; animation-delay: 3s; animation-duration: 8s; background: rgba(255, 255, 255, 0.3); }
.loader-particle:nth-child(7) { left: 50%; top: 95%; animation-delay: 2.5s; animation-duration: 6s; }
.loader-particle:nth-child(8) { left: 15%; top: 85%; animation-delay: 4s; animation-duration: 9s; background: rgba(27, 117, 187, 0.6); }

@keyframes loader-particle-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100vh) translateX(30px) scale(0);
    opacity: 0;
  }
}

/* ── Page Transition Overlay ──────────────────────────────── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: var(--dark);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.page-transition-overlay.active {
  transform: translateY(0);
}

.page-transition-overlay.exit {
  transform: translateY(-100%);
}

/* ── Content Reveal After Load ────────────────────────────── */
.page-wrapper.loaded {
  opacity: 1;
  /* transform:none (et animation:none qui maintenait translateY(0) via forwards)
     IMPÉRATIF : tout transform sur .page-wrapper en fait un bloc conteneur pour
     ses descendants position:fixed (.bottom-nav, .header-mobile-menu), ce qui
     casse leur positionnement viewport → le menu s'ouvrait hors écran. */
  transform: none;
  animation: none;
}

/* ── Staggered Content Entry ──────────────────────────────── */
.loaded .reveal {
  opacity: 0;
  transform: translateY(40px);
}

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

/* ── Smooth Page Load v2 ──────────────────────────────────── */
.page-wrapper-v2 {
  opacity: 0;
  animation: page-load-v2 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes page-load-v2 {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Curtain Reveal Effect ────────────────────────────────── */
.curtain-reveal {
  position: fixed;
  inset: 0;
  z-index: 99997;
  display: flex;
  pointer-events: none;
}

.curtain-reveal .curtain {
  flex: 1;
  background: var(--dark);
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.curtain-reveal .curtain:nth-child(1) { transition-delay: 0s; }
.curtain-reveal .curtain:nth-child(2) { transition-delay: 0.05s; }
.curtain-reveal .curtain:nth-child(3) { transition-delay: 0.1s; }
.curtain-reveal .curtain:nth-child(4) { transition-delay: 0.15s; }
.curtain-reveal .curtain:nth-child(5) { transition-delay: 0.2s; }

.curtain-reveal.open .curtain {
  transform: translateY(-100%);
}

/* ── Blur Load Effect ─────────────────────────────────────── */
.blur-load {
  filter: blur(20px);
  opacity: 0;
  transform: scale(1.1);
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-load.loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

/* ── Skeleton v2 (Modern) ─────────────────────────────────── */
.skeleton-v2 {
  background: linear-gradient(
    90deg,
    var(--gray-100) 0%,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%,
    var(--gray-100) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-v2-shimmer 2s ease-in-out infinite;
  border-radius: var(--r-md);
}

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

/* ── Typing Text Effect ───────────────────────────────────── */
.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--orange);
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--orange); }
}

/* ── Magnetic Button Effect ───────────────────────────────── */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Liquid Fill Button ───────────────────────────────────── */
.liquid-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.liquid-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--orange);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.liquid-btn:hover::before {
  height: 100%;
}

/* ── Glitch Text Effect ───────────────────────────────────── */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text:hover::before {
  animation: glitch-1 0.3s linear infinite;
  color: var(--orange);
  opacity: 0.8;
}

.glitch-text:hover::after {
  animation: glitch-2 0.3s linear infinite;
  color: var(--blue);
  opacity: 0.8;
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(3px, -3px); }
  40% { transform: translate(3px, 3px); }
  60% { transform: translate(-3px, -3px); }
  80% { transform: translate(-3px, 3px); }
}

/* ── Neon Glow Text ───────────────────────────────────────── */
.neon-text {
  color: #fff;
  text-shadow:
    0 0 5px rgba(242, 101, 34, 0.5),
    0 0 10px rgba(242, 101, 34, 0.4),
    0 0 20px rgba(242, 101, 34, 0.3),
    0 0 40px rgba(242, 101, 34, 0.2);
  animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* ── Parallax Scroll v2 ───────────────────────────────────── */
.parallax-v2 {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Scroll Indicator ─────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll-wheel {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0; }
}

/* ── Wave Separator ───────────────────────────────────────── */
.wave-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
}

.wave-separator svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: wave-move 10s linear infinite;
}

@keyframes wave-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Gradient Text Animation — Enhanced ───────────────────── */
.gradient-text-anim {
  background: linear-gradient(90deg, var(--orange), var(--blue), var(--orange-light), var(--orange));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s linear infinite;
  position: relative;
}

.gradient-text-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

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

/* ── Morphing Blob ────────────────────────────────────────── */
.morphing-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphing 8s ease-in-out infinite;
  opacity: 0.1;
  filter: blur(60px);
}

@keyframes morphing {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* ── Card 3D Tilt ─────────────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

.tilt-card .tilt-content {
  transform: translateZ(20px);
}

/* ── Floating Animation ───────────────────────────────────── */
.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ── Rotate In Animation ──────────────────────────────────── */
.rotate-in {
  opacity: 0;
  transform: rotate(-15deg) scale(0.8);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotate-in.visible {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ── Bounce In Animation ──────────────────────────────────── */
.bounce-in {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ── Flip In Animation ────────────────────────────────────── */
.flip-in {
  opacity: 0;
  transform: perspective(400px) rotateY(90deg);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.flip-in.visible {
  opacity: 1;
  transform: perspective(400px) rotateY(0);
}

/* ── Clip Reveal Animation ────────────────────────────────── */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.clip-reveal.visible {
  clip-path: inset(0 0% 0 0);
}

/* ── Mask Reveal Animation ────────────────────────────────── */
.mask-reveal {
  -webkit-mask-image: linear-gradient(90deg, transparent, black);
  mask-image: linear-gradient(90deg, transparent, black);
  -webkit-mask-size: 0% 100%;
  mask-size: 0% 100%;
  transition: -webkit-mask-size 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              mask-size 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mask-reveal.visible {
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ── Underline Draw Animation ─────────────────────────────── */
.underline-draw {
  position: relative;
  display: inline-block;
}

.underline-draw::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.underline-draw.visible::after {
  width: 100%;
}

/* ============================================================
   HERO SECTION — Modern Text & Search
   ============================================================ */

/* ── Hero Title — Enhanced Animation ───────────────────────── */
.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(60px) rotateX(-30deg);
  transform-origin: center bottom;
  animation: hero-line-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-line:nth-child(1) {
  animation-delay: 0.3s;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.6s;
}

.hero-title-line:nth-child(3) {
  animation-delay: 0.9s;
}

@keyframes hero-line-reveal {
  from {
    opacity: 0;
    transform: translateY(60px) rotateX(-30deg);
    filter: blur(15px);
    letter-spacing: 0.1em;
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
    letter-spacing: -0.03em;
  }
}

/* Glow effect for title */
.hero-title-line::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(242, 101, 34, 0.15) 0%, transparent 70%);
  opacity: 0;
  animation: title-glow 2s ease-out 1.5s forwards;
  pointer-events: none;
  z-index: -1;
}

@keyframes title-glow {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Hero Subtitle — Enhanced Typing ──────────────────────── */
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  font-weight: 400;
  opacity: 0;
  animation: hero-subtitle-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.1s forwards;
}

.hero-subtitle .typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: none;
  display: inline-block;
  max-width: 100%;
  animation: typing 2.5s steps(45, end) 2.3s both;
  padding-right: 4px;
}

@keyframes hero-subtitle-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--orange); }
}

/* ── Hero Stats — Enhanced ────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.hero-stat:hover {
  transform: translateY(-5px);
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: stat-number-glow 2s ease-in-out infinite;
}

@keyframes stat-number-glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(242, 101, 34, 0.2);
    filter: brightness(1);
  }
  50% {
    text-shadow: 0 0 30px rgba(242, 101, 34, 0.4);
    filter: brightness(1.1);
  }
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: color 0.3s ease;
}

.hero-stat:hover .hero-stat-label {
  color: rgba(255, 255, 255, 0.9);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: divider-pulse 3s ease-in-out infinite;
}

@keyframes divider-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ── Modern Search Bar — Enhanced ─────────────────────────── */
.modern-search {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 18px 40px -12px rgba(8, 20, 45, 0.45),
    0 4px 10px -2px rgba(8, 20, 45, 0.12),
    inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  border: none;
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: hero-search-appear 1s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
  position: relative;
}

.modern-search::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--orange), var(--blue), var(--orange));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: gradient-rotate 3s linear infinite;
}

.modern-search:focus-within::before {
  opacity: 1;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes hero-search-appear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.modern-search:focus-within {
  box-shadow:
    0 22px 50px -14px rgba(242, 101, 34, 0.45),
    0 4px 10px -2px rgba(8, 20, 45, 0.12);
  transform: translateY(-2px);
}

.modern-search .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--gray-400);
  font-size: 17px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.modern-search:focus-within .search-icon {
  color: var(--orange);
  background: rgba(242, 101, 34, 0.10);
  transform: scale(1.05);
}

.modern-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border: none;
  font-size: 15.5px;
  color: var(--dark);
  background: transparent;
  outline: none;
  font-weight: 500;
}

.modern-search input::placeholder {
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.modern-search input:focus::placeholder {
  color: var(--gray-300);
}

.modern-search .search-divider {
  width: 1px;
  height: 30px;
  background: var(--gray-200);
  transition: background 0.3s ease, height 0.3s ease;
}

.modern-search:focus-within .search-divider {
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
  height: 40px;
}

.modern-search select {
  padding: 12px 18px;
  border: none;
  font-size: 14px;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 999px;
  min-width: 168px;
  outline: none;
  font-weight: 600;
  cursor: pointer;
  margin-right: 2px;
  transition: color 0.25s ease, background 0.25s ease;
}

.modern-search select:hover {
  background: var(--gray-200);
}

.modern-search select:focus {
  color: var(--dark);
}

.modern-search select option {
  background: #fff;
  color: var(--dark);
  padding: 8px;
}

.modern-search button {
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange) 55%, var(--orange-dark));
  background-size: 200% 100%;
  background-position: right;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px -5px rgba(242, 101, 34, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease, background-position 0.4s ease;
  position: relative;
  overflow: hidden;
}

.modern-search button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.modern-search button:hover::before {
  width: 300%;
  height: 300%;
}

.modern-search button:hover {
  background-position: left;
  gap: 14px;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(242, 101, 34, 0.65);
}

.modern-search button:active {
  transform: translateY(0);
}

.modern-search button i {
  transition: transform 0.3s ease;
}

.modern-search button:hover i {
  transform: translateX(4px);
}

/* ── Hero Trust Badges — Enhanced ─────────────────────────── */
.hero-trust {
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

.hero-trust span {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.hero-trust span:hover {
  transform: translateY(-4px) scale(1.05);
  color: rgba(255, 255, 255, 0.95) !important;
}

.hero-trust span i {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-trust span:hover i {
  transform: scale(1.3) rotate(-10deg);
}

/* ── Scroll Indicator — Enhanced ──────────────────────────── */
.scroll-indicator {
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.7s forwards;
}

.scroll-indicator .mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  animation: mouse-glow 2s ease-in-out infinite;
}

@keyframes mouse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(242, 101, 34, 0.3);
    border-color: rgba(242, 101, 34, 0.5);
  }
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(242, 101, 34, 0.5);
}

/* ── Hero Trust Badges ────────────────────────────────────── */
.hero-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-full);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.hero-trust-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(242, 101, 34, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 14px;
  transition: all 0.3s ease;
  --trust-color: var(--orange);
}

.hero-trust-badge:hover .hero-trust-icon {
  transform: scale(1.15) rotate(-5deg);
  background: rgba(242, 101, 34, 0.3);
  box-shadow: 0 0 12px rgba(242, 101, 34, 0.3);
}

.hero-trust-icon i {
  transition: transform 0.3s ease;
}

.hero-trust-badge:hover .hero-trust-icon i {
  transform: scale(1.1);
}

.hero-trust-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.hero-trust-badge:hover .hero-trust-text {
  color: rgba(255, 255, 255, 1);
}

/* ── Responsive Hero ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-stat-divider {
    height: 30px;
  }

  .modern-search {
    flex-wrap: wrap;
    border-radius: var(--r-lg);
  }

  .modern-search .search-icon {
    padding: 12px 12px 0 16px;
  }

  .modern-search input {
    width: 100%;
    padding: 12px 16px;
  }

  .modern-search .search-divider {
    display: none;
  }

  .modern-search select {
    width: 100%;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
  }

  .modern-search button {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
}

/* ============================================================
   MODERN HEADER — Animations & Effects
   ============================================================ */

/* ── Header Entry Animation ───────────────────────────────── */
.site-header {
  animation: header-entry 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes header-entry {
  /* Opacité uniquement : aucun transform résiduel, sinon .site-header devient
     un bloc conteneur + contexte d'empilement pour ses descendants
     position:fixed (.header-mobile-menu, .bottom-nav). Le menu se retrouvait
     alors sous l'overlay sombre (z-index) → clics captés par l'overlay,
     menu « non cliquable ». */
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Logo Hover Animation ─────────────────────────────────── */
.site-logo {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-logo:hover {
  transform: scale(1.05);
}

.site-logo:hover .logo-icon {
  animation: logo-icon-spin 0.6s ease;
}

@keyframes logo-icon-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Nav Link Underline Animation ─────────────────────────── */
.header-nav-link {
  position: relative;
}

.header-nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-nav-link:hover::before {
  width: 60%;
  left: 20%;
}

.header-nav-link.active::before {
  width: 60%;
  left: 20%;
}

/* ── Action Button Hover ──────────────────────────────────── */
.header-action-btn {
  position: relative;
  overflow: hidden;
}

.header-action-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}

.header-action-btn:hover::after {
  width: 40%;
  left: 30%;
}

/* ── Deposer Button Glow ──────────────────────────────────── */
.btn-deposer {
  position: relative;
  overflow: hidden;
}

.btn-deposer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.btn-deposer:hover::before {
  transform: scale(1);
}

/* ── User Menu Dropdown Animation ─────────────────────────── */
.header-user-dropdown {
  transform-origin: top right;
}

.header-user-dropdown.open {
  animation: dropdown-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdown-bounce {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  70% {
    transform: translateY(2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Mobile Menu Slide ────────────────────────────────────── */
.header-mobile-menu {
  will-change: transform;
}

.header-mobile-menu.open .mobile-menu-link {
  animation: mobile-link-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.header-mobile-menu.open .mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
.header-mobile-menu.open .mobile-menu-link:nth-child(2) { animation-delay: 0.15s; }
.header-mobile-menu.open .mobile-menu-link:nth-child(3) { animation-delay: 0.2s; }
.header-mobile-menu.open .mobile-menu-link:nth-child(4) { animation-delay: 0.25s; }
.header-mobile-menu.open .mobile-menu-link:nth-child(5) { animation-delay: 0.3s; }
.header-mobile-menu.open .mobile-menu-link:nth-child(6) { animation-delay: 0.35s; }

@keyframes mobile-link-slide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Cat Nav Scroll ───────────────────────────────────────── */
.cat-nav-list {
  scroll-behavior: smooth;
}

.cat-nav-list a {
  position: relative;
  transition: all 0.3s ease;
}

.cat-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-light), var(--orange));
  border-radius: 2px 2px 0 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-nav-list a:hover::after,
.cat-nav-list a.active::after {
  width: 80%;
  left: 10%;
}

/* ── Topbar Rubriques — design mobile (bouton + liste déroulante) ──
   Sur mobile, la barre horizontale des rubriques est remplacée par un seul
   bouton « Choisir une catégorie » qui déroule un panneau listant toutes les
   rubriques (icône + libellé, item actif en orange). Gain de place : la
   barre n'occupe plus qu'une ligne tant qu'on ne l'ouvre pas.
   Placé dans animations.css (chargé après main.css) pour gagner la cascade,
   notamment neutraliser le ::after du soulignement desktop. */

/* Le bouton n'existe qu'en mobile (réactivé dans le @media ci-dessous) */
.cat-dropdown-toggle { display: none; }

@media (max-width: 768px) {
  .cat-nav { position: relative; }
  .cat-nav .container { padding: 0; }        /* bouton + panneau pleine largeur */
  .cat-nav-arrow { display: none !important; } /* plus de flèches ‹ › */

  /* ── Bouton déclencheur ── */
  .cat-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    background: transparent;
    border: none;
    color: #fff;
    font: 600 14px/1.2 inherit;
    cursor: pointer;
  }
  .cat-dropdown-label {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .cat-dropdown-label > i { color: var(--orange); font-size: 15px; flex: 0 0 auto; }
  .cat-dropdown-caret { transition: transform .3s ease; opacity: .85; flex: 0 0 auto; }
  .cat-nav.open .cat-dropdown-caret { transform: rotate(180deg); }

  /* ── Panneau déroulant (= la liste) ── */
  .cat-nav-wrap { display: block; position: static; }

  .cat-nav-list {
    display: block;
    list-style: none;
    margin: 0;
    overflow: hidden;
    overflow-y: auto;
    max-height: 0;                /* replié par défaut */
    background: rgba(0, 0, 0, .18);
    -webkit-overflow-scrolling: touch;
    transition: max-height .35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .cat-nav.open .cat-nav-list {
    max-height: min(70vh, 560px); /* déplié, défilable si trop long */
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .cat-nav-list li { display: block; }

  .cat-nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    font-size: 13.5px;
    line-height: 1.3;
    white-space: normal;          /* libellés longs autorisés à passer à la ligne */
    color: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    border-radius: 0;
  }
  .cat-nav-list a i {
    font-size: 14px; width: 20px; text-align: center;
    opacity: .85; flex: 0 0 auto;
  }
  /* Neutralise le soulignement animé (::after) hérité du desktop */
  .cat-nav-list a::after { display: none; }

  .cat-nav-list a:hover,
  .cat-nav-list a:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }

  .cat-nav-list a.active {
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    border-bottom-color: transparent;
  }
}

/* ── Header Scroll Shadow ─────────────────────────────────── */
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.site-header.scrolled .header-top {
  padding: 8px 0;
}

/* ============================================================
   CATEGORIES SECTION — Ultra Professional Animations
   ============================================================ */

/* ── Background Effects ───────────────────────────────────── */
.categories-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

.categories-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cat-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blob-morph 15s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.15), transparent 70%);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 117, 187, 0.12), transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.1), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) scale(1);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%;
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    border-radius: 60% 40% 60% 30% / 70% 50% 40% 60%;
    transform: translate(20px, 10px) scale(1.05);
  }
}

/* ── Section Title ────────────────────────────────────────── */
.section-title-animated {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-animated .title-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.1), rgba(242, 101, 34, 0.05));
  border: 1px solid rgba(242, 101, 34, 0.2);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  animation: badge-pulse 3s ease-in-out infinite;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: badge-dot-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(242, 101, 34, 0);
  }
}

@keyframes badge-dot-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.section-title-animated h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 500px;
  line-height: 1.6;
}

/* ── Category Cards — Ultra Modern ────────────────────────── */
.categories-grid {
  display: flex;
  gap: 24px;
  perspective: 1000px;
  overflow-x: auto;
  padding: 20px 0 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Scrollbar masquée : le défilement se fait via les boutons ‹ › */
  scrollbar-width: none;
}

.categories-grid::-webkit-scrollbar {
  display: none;
}

.cat-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px 20px 32px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-decoration: none;
  color: var(--dark);
  overflow: hidden;
  transform-style: preserve-3d;
  flex: 0 0 200px;
  min-width: 200px;
  scroll-snap-align: start;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.03), rgba(27, 117, 187, 0.03));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--r-xl);
}

.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-light), var(--orange), var(--orange-dark));
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.cat-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(242, 101, 34, 0.1),
    0 0 0 1px rgba(242, 101, 34, 0.1);
  border-color: rgba(242, 101, 34, 0.2);
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-card:hover::after {
  transform: scaleX(1);
}

/* ── Icon Container ───────────────────────────────────────── */
.cat-card .icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card .icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue-bg), var(--orange-bg));
  transform: rotate(0deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-card:hover .icon-wrapper::before {
  transform: rotate(12deg) scale(1.1);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--orange-bg), rgba(242, 101, 34, 0.15));
}

.cat-card i {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  color: var(--blue);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-card:hover i {
  color: var(--orange);
  transform: scale(1.2) rotate(-10deg);
}

/* ── Card Content ─────────────────────────────────────────── */
.cat-card .cat-name {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.cat-card:hover .cat-name {
  color: var(--orange);
}

.cat-card .cat-name-ar {
  font-size: 12px;
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.cat-card:hover .cat-name-ar {
  color: var(--gray-500);
}

/* ── Floating Particles on Card ───────────────────────────── */
.cat-card .card-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  pointer-events: none;
}

.cat-card:hover .card-particle {
  animation: card-particle-float 2s ease-out forwards;
}

.cat-card:hover .card-particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.cat-card:hover .card-particle:nth-child(2) {
  top: 30%;
  right: 20%;
  animation-delay: 0.2s;
  background: var(--blue);
}

.cat-card:hover .card-particle:nth-child(3) {
  bottom: 30%;
  left: 30%;
  animation-delay: 0.4s;
}

@keyframes card-particle-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  20% {
    opacity: 1;
    transform: translate(10px, -10px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(30px, -40px) scale(0);
  }
}

/* ── Stagger Enhancement ──────────────────────────────────── */
.stagger-children.visible > .cat-card:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > .cat-card:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > .cat-card:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > .cat-card:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > .cat-card:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > .cat-card:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > .cat-card:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > .cat-card:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > .cat-card:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > .cat-card:nth-child(10) { transition-delay: 0.5s; }

/* ── Reveal Animation for Categories ──────────────────────── */
.categories-section.reveal.visible .cat-card {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.categories-section.reveal .cat-card {
  opacity: 0;
  transform: translateY(60px) rotateX(10deg);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Section Glow on Scroll ───────────────────────────────── */
.categories-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.05), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.categories-section.reveal.visible::before {
  opacity: 1;
}

/* ── Responsive Categories ────────────────────────────────── */
@media (max-width: 1100px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .categories-grid {
    gap: 16px;
  }
  
  .section-title-animated h2 {
    font-size: 2rem;
  }
  
  .cat-card {
    padding: 30px 16px 24px;
  }
  
  .cat-card .icon-wrapper {
    width: 64px;
    height: 64px;
  }
  
  .cat-card i {
    font-size: 1.6rem;
  }
}

@media (max-width: 540px) {
  .categories-grid {
    gap: 12px;
  }
  
  .cat-card {
    padding: 24px 12px 20px;
    border-radius: var(--r-lg);
  }
  
  .cat-card .icon-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }
  
  .cat-card i {
    font-size: 1.4rem;
  }
  
  .cat-card .cat-name {
    font-size: 13px;
  }
  
  .cat-card .cat-name-ar {
    font-size: 11px;
  }
}

/* ── Responsive Header Animations ─────────────────────────── */
@media (max-width: 1024px) {
  .header-mobile-toggle {
    display: flex;
    animation: fade-in 0.3s ease;
  }
  
  .header-nav {
    display: none;
  }

  /* .header-nav (flex:1) disparaît : sans lui, le logo et les actions se
     collent à gauche. On repousse les actions au bord droit pour garder une
     topbar justifiée (logo à gauche, actions/burger à droite). */
  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn-deposer span {
    display: none;
  }

  .header-actions .btn-deposer {
    padding: 10px 14px;
  }
}

@media (max-width: 768px) {
  /* La barre du bas (.bottom-nav) fournit déjà Menu + Publier ;
     on masque ici leurs doublons du header. Cette règle doit vivre dans
     animations.css (chargé APRÈS main.css) sinon le bloc @media 1024px
     ci-dessus réafficherait .header-mobile-toggle (display:flex). */
  .header-mobile-toggle {
    display: none;
  }

  .header-actions .btn-deposer {
    /* !important nécessaire : .header-actions .btn-deposer porte
       display: flex !important dans main.css (ligne ~332). */
    display: none !important;
  }

  .header-actions .header-action-btn .lbl {
    display: none;
  }

  .header-actions {
    gap: 2px;
  }
  
  .header-user-btn .lbl {
    display: none;
  }
  
  .header-user-btn {
    padding: 6px;
  }
}

/* ============================================================
   LISTINGS SECTION — Ultra Professional Animations
   ============================================================ */

/* ── Section Background ───────────────────────────────────── */
.reveal-listings {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.listings-bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.listing-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: shape-float 20s ease-in-out infinite;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.08), transparent 70%);
  top: -20%;
  right: -10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 117, 187, 0.06), transparent 70%);
  bottom: -20%;
  left: -10%;
  animation-delay: -7s;
}

.shape-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.05), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes shape-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ── Section Title Listings ───────────────────────────────── */
.listings-title {
  margin-bottom: 48px;
}

.badge-listings {
  background: linear-gradient(135deg, rgba(27, 117, 187, 0.1), rgba(27, 117, 187, 0.05));
  border-color: rgba(27, 117, 187, 0.2);
  color: var(--blue);
}

.badge-listings .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse-dot-blue 2s ease-in-out infinite;
}

@keyframes pulse-dot-blue {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 117, 187, 0.4);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.8);
    box-shadow: 0 0 0 6px rgba(27, 117, 187, 0);
  }
}

/* ── Tabs ─────────────────────────────────────────────────── */
.listings-tabs {
  display: flex;
  gap: 8px;
  background: var(--gray-100);
  padding: 6px;
  border-radius: var(--r-full);
  position: relative;
}

.tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tab-btn:hover {
  color: var(--dark);
}

.tab-btn.active {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.tab-btn:hover .tab-icon {
  transform: scale(1.2);
}

.tab-btn.active .tab-icon {
  animation: tab-icon-bounce 0.5s ease;
}

@keyframes tab-icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ── Loading Skeleton ─────────────────────────────────────── */
.loading-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.skeleton-listing-card {
  height: 380px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-200);
}

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

/* ── Listing Cards Enhanced ───────────────────────────────── */
.listings-animated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  perspective: 2000px;
}

.listings-animated-grid .listing-card {
  position: relative;
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.listings-animated-grid .listing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.listings-animated-grid .listing-card:hover::before {
  opacity: 1;
}

.listings-animated-grid .listing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 3;
}

.listings-animated-grid .listing-card:hover::after {
  left: 100%;
}

.listings-animated-grid .listing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(242, 101, 34, 0.08);
  border-color: rgba(242, 101, 34, 0.2);
}

/* Shine effect on image */
.listing-card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 3;
}

.listings-animated-grid .listing-card:hover .listing-card-shine {
  left: 100%;
}

/* Image hover zoom */
.listings-animated-grid .listing-card-img {
  position: relative;
  overflow: hidden;
}

.listings-animated-grid .listing-card-img img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.listings-animated-grid .listing-card:hover .listing-card-img img {
  transform: scale(1.1);
}

/* Badges animation */
.listings-animated-grid .listing-card .badges .badge {
  animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.listings-animated-grid .listing-card .badges .badge:nth-child(2) {
  animation-delay: 0.1s;
}

.listings-animated-grid .listing-card .badges .badge:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes badge-pop {
  0% {
    opacity: 0;
    transform: scale(0) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Favorite button */
.listings-animated-grid .listing-card .fav-btn {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 4;
}

.listings-animated-grid .listing-card .fav-btn:hover {
  transform: scale(1.2) rotate(15deg);
  background: var(--red);
  color: #fff;
}

.listings-animated-grid .listing-card .fav-btn.active {
  animation: fav-heartbeat 0.6s ease;
}

@keyframes fav-heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Price animation */
.listings-animated-grid .listing-card .price {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.listings-animated-grid .listing-card:hover .price {
  transform: scale(1.05);
  color: var(--orange-dark);
}

/* ── Stagger for Listings ─────────────────────────────────── */
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(1) { transition-delay: 0.05s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(2) { transition-delay: 0.1s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(3) { transition-delay: 0.15s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(4) { transition-delay: 0.2s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(5) { transition-delay: 0.25s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(6) { transition-delay: 0.3s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(7) { transition-delay: 0.35s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(8) { transition-delay: 0.4s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(9) { transition-delay: 0.45s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(10) { transition-delay: 0.5s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(11) { transition-delay: 0.55s; }
.listings-animated-grid.stagger-children.visible > .listing-card:nth-child(12) { transition-delay: 0.6s; }

/* ── Footer Button ────────────────────────────────────────── */
.listings-footer {
  text-align: center;
  margin-top: 48px;
}

.btn-view-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue), var(--blue-dark));
  background-size: 200% 100%;
  background-position: right;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-full);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(27, 117, 187, 0.3);
}

.btn-view-all:hover {
  background-position: left;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 117, 187, 0.4);
  gap: 16px;
}

.btn-view-all i {
  transition: transform 0.3s ease;
}

.btn-view-all:hover i {
  transform: translateX(4px);
}

.btn-view-all .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.btn-view-all:hover .btn-shine {
  left: 100%;
}

/* ── Responsive Listings ──────────────────────────────────── */
@media (max-width: 1100px) {
  .listings-animated-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .listings-animated-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .listings-tabs {
    padding: 4px;
  }
  
  .tab-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .tab-btn .tab-text {
    display: none;
  }
  
  .loading-skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .skeleton-listing-card {
    height: 300px;
  }
}

@media (max-width: 540px) {
  .listings-animated-grid {
    grid-template-columns: 1fr;
  }
  
  .loading-skeleton-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   WHATSAPP CTA SECTION — Modern Contact Section
   ============================================================ */

.whatsapp-cta-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 50%, #112a50 100%);
  overflow: hidden;
  margin-top: 40px;
}

/* Background Effects */
.whatsapp-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.whatsapp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: whatsapp-blob-morph 12s ease-in-out infinite;
}

.whatsapp-blob.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.15), transparent 70%);
  top: -20%;
  right: -10%;
}

.whatsapp-blob.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 117, 187, 0.12), transparent 70%);
  bottom: -20%;
  left: -10%;
  animation-delay: -6s;
}

@keyframes whatsapp-blob-morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) scale(1);
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(30px, -30px) scale(1.1);
  }
}

.whatsapp-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(37, 211, 102, 0.3);
  border-radius: 50%;
  animation: whatsapp-particle-float 8s ease-in-out infinite;
}

.whatsapp-particle:nth-child(3) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.whatsapp-particle:nth-child(4) {
  top: 60%;
  right: 15%;
  animation-delay: -3s;
  background: rgba(255, 255, 255, 0.2);
}

.whatsapp-particle:nth-child(5) {
  bottom: 30%;
  left: 50%;
  animation-delay: -6s;
}

@keyframes whatsapp-particle-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* Content */
.whatsapp-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.whatsapp-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--r-full);
  color: #25D366;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  position: relative;
  animation: badge-glow 3s ease-in-out infinite;
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: var(--r-full);
  border: 2px solid #25D366;
  opacity: 0;
  animation: pulse-ring-anim 2s ease-out infinite;
}

@keyframes pulse-ring-anim {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.2);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(37, 211, 102, 0.1);
  }
}

.whatsapp-cta-badge i {
  font-size: 20px;
}

.whatsapp-cta-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.whatsapp-cta-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Features */
.whatsapp-cta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.whatsapp-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.whatsapp-feature .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #25D366;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-feature:hover .feature-icon {
  background: rgba(37, 211, 102, 0.2);
  transform: scale(1.1) rotate(-5deg);
}

.whatsapp-feature span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* CTA Button */
.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  background-size: 200% 100%;
  background-position: right;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-full);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-whatsapp-cta:hover {
  background-position: left;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
  gap: 20px;
}

.btn-whatsapp-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.btn-whatsapp-cta:hover::before {
  transform: scale(1);
}

.whatsapp-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  z-index: 1;
  animation: whatsapp-icon-bounce 2s ease-in-out infinite;
}

@keyframes whatsapp-icon-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.btn-label {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 500;
}

.btn-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-whatsapp-cta:hover .btn-arrow {
  transform: translateX(6px);
}

/* Note */
.whatsapp-cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.whatsapp-cta-note i {
  color: var(--orange);
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-cta-section {
    padding: 60px 0;
  }
  
  .whatsapp-cta-title {
    font-size: 2rem;
  }
  
  .whatsapp-cta-subtitle {
    font-size: 1rem;
  }
  
  .whatsapp-cta-features {
    gap: 20px;
  }
  
  .btn-whatsapp-cta {
    padding: 14px 28px;
    font-size: 14px;
  }
  
  .whatsapp-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .btn-brand {
    font-size: 18px;
  }
}

@media (max-width: 540px) {
  .whatsapp-cta-title {
    font-size: 1.7rem;
  }
  
  .whatsapp-cta-features {
    flex-direction: column;
    gap: 16px;
  }
  
  .whatsapp-feature {
    flex-direction: row;
    gap: 12px;
  }
  
  .btn-whatsapp-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   MOBILE RESPONSIVE FIXES — Complete Mobile Optimization
   ============================================================ */

/* ── Base Mobile Styles ───────────────────────────────────── */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  
  /* Hero */
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-title-line {
    display: block;
    margin-bottom: 4px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    white-space: normal;
    border: none;
    animation: none;
    opacity: 0.85;
  }
  
  .hero-stats {
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .hero-stat-number {
    font-size: 1.5rem;
  }
  
  .hero-stat-divider {
    height: 30px;
  }
  
  .hero-trust {
    gap: 12px;
    margin-top: 20px;
  }
  
  .hero-trust-badge {
    padding: 6px 12px;
  }
  
  .hero-trust-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .hero-trust-text {
    font-size: 11px;
  }
  
  /* Modern Search */
  .modern-search {
    flex-direction: column;
    border-radius: var(--r-lg);
    max-width: 100%;
  }
  
  .modern-search .search-icon {
    display: none;
  }
  
  .modern-search input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .modern-search .search-divider {
    display: none;
  }
  
  .modern-search select {
    width: 100%;
    padding: 12px 16px;
    border-left: none;
    border-top: 1px solid var(--gray-200);
    border-radius: 0;
  }
  
  .modern-search button {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
  
  /* Scroll Indicator */
  .scroll-indicator {
    display: none;
  }
  
  /* Wave Separator */
  .wave-separator {
    height: 40px;
  }
}

/* ── Extra Small Mobile ───────────────────────────────────── */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Hero */
  .hero {
    padding: 48px 0 32px;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-stats {
    gap: 12px;
  }
  
  .hero-stat-number {
    font-size: 1.2rem;
  }
  
  .hero-stat-label {
    font-size: 9px;
  }
  
  .hero-stat-divider {
    height: 24px;
  }
  
  .hero-trust {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .hero-trust-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  /* Categories */
  .categories-grid {
    gap: 12px !important;
  }
  
  .cat-card {
    padding: 20px 8px 16px !important;
    border-radius: var(--r-lg) !important;
  }
  
  .cat-card .icon-wrapper {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 12px !important;
  }
  
  .cat-card i {
    font-size: 1.3rem !important;
  }
  
  .cat-card .cat-name {
    font-size: 12px !important;
  }
  
  .cat-card .cat-name-ar {
    font-size: 10px !important;
  }
  
  /* Listings */
  .listings-animated-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .listing-card {
    max-width: 100%;
  }
  
  .listing-card-img img {
    height: 220px;
  }
  
  /* Section Titles */
  .section-title-animated h2 {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  /* Tabs */
  .listings-tabs {
    width: 100%;
  }
  
  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 10px;
  }
  
  .tab-btn .tab-text {
    display: none;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  /* Cards */
  .form-card {
    padding: 24px 16px;
    margin: 16px auto;
  }
  
  /* Footer */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center;
  }
  
  .footer-brand .site-logo {
    justify-content: center;
  }
  
  .footer-col a {
    justify-content: center;
    margin-inline: auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  /* Tables */
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  /* Stats */
  .stat-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-card .stat-val {
    font-size: 1.6rem;
  }
  
  /* Dashboard */
  .dashboard-layout {
    grid-template-columns: 1fr !important;
  }
  
  .dashboard-sidebar {
    position: static !important;
    margin-bottom: 24px;
  }
  
  .dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .dashboard-nav a {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  /* Chat */
  .chat-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
  
  .conv-list {
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
  
  /* Mobile Menu */
  .header-mobile-menu {
    width: 100%;
    max-width: 100%;
  }
  
  /* Listing Detail */
  .listing-detail-layout {
    grid-template-columns: 1fr !important;
  }
  
  .contact-sidebar {
    position: static !important;
    margin-top: 24px;
  }
  
  /* Gallery */
  .gallery-main img {
    max-height: 300px;
  }
  
  .gallery-thumbs img {
    width: 60px;
    height: 44px;
  }
  
  /* Filters */
  .filter-sidebar {
    display: none;
  }
  
  .filter-sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
  }
  
  /* Pagination */
  .pagination a, .pagination span {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  
  /* Step Wizard */
  .steps-wizard {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .step {
    flex: 1;
    min-width: 80px;
  }
  
  .step-label {
    display: none;
  }
  
  /* Upload */
  .upload-zone {
    padding: 32px 16px;
  }
  
  .preview-item img {
    width: 70px;
    height: 54px;
  }
  
  /* How it Works */
  .how-step {
    padding: 16px;
  }
  
  .step-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.3rem !important;
  }
}

/* ── Fix Touch Targets ────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .tab-btn,
  .header-action-btn,
  .header-pill-btn,
  .cat-card,
  .listing-card,
  .fav-btn,
  .header-mobile-toggle,
  .mobile-menu-link,
  .dashboard-nav a {
    min-height: 44px;
  }
  
  .fav-btn {
    width: 44px;
    height: 44px;
  }
  
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ── Landscape Mobile ─────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 30px;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-stats {
    display: none;
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* ── Reduce Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-particle,
  .whatsapp-particle,
  .loader-particle,
  .cat-bg-blob,
  .listing-bg-shape {
    display: none;
  }
}

/* ============================================================
   HERO DREAM LINE — "Votre rêve d'entreprendre commence ici"
   ============================================================ */

.hero-dream-line {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em;
  font-size: 1.45rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 8px 0 28px;
  letter-spacing: 0.01em;
  min-height: 1.6em;
}

.dream-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: dream-word-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dream-word:nth-child(1) { animation-delay: 1.4s; }
.dream-word:nth-child(2) { animation-delay: 1.55s; }
.dream-word:nth-child(3) { animation-delay: 1.7s; }
.dream-word:nth-child(4) { animation-delay: 1.85s; }
.dream-word:nth-child(5) { animation-delay: 2.0s; }

.dream-highlight {
  font-weight: 700;
  background: linear-gradient(90deg, var(--orange-light), var(--orange), var(--orange-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Conserve l'animation d'entrée (opacité 0→1) puis ajoute le shimmer ;
     sans dream-word-in, ces mots restaient invisibles (opacity:0). */
  animation: dream-word-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             dream-shimmer 3s linear 2.5s infinite;
}

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

.dream-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  margin-left: 3px;
  align-self: center;
  opacity: 0;
  transform: scale(0);
  animation: dream-dot-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2.15s forwards;
  box-shadow: 0 0 10px rgba(242, 101, 34, 0.6);
}

@keyframes dream-word-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes dream-dot-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subtle underline reveal for dream line */
.hero-dream-line::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-light), transparent);
  border-radius: 2px;
  opacity: 0;
  animation: dream-line-expand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.3s forwards;
}

.hero-dream-line {
  position: relative;
}

@keyframes dream-line-expand {
  to {
    width: 80%;
    opacity: 1;
  }
}

/* Hero wave separator */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}

.hero-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: hero-wave-sway 8s ease-in-out infinite alternate;
}

@keyframes hero-wave-sway {
  0% { transform: translateX(0); }
  100% { transform: translateX(-2%); }
}

@media (max-width: 768px) {
  .hero-dream-line {
    font-size: 1.1rem;
    margin: 6px 0 20px;
    gap: 0.25em;
  }

  .dream-word {
    animation: dream-word-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .dream-word:nth-child(1) { animation-delay: 0.6s; }
  .dream-word:nth-child(2) { animation-delay: 0.72s; }
  .dream-word:nth-child(3) { animation-delay: 0.84s; }
  .dream-word:nth-child(4) { animation-delay: 0.96s; }
  .dream-word:nth-child(5) { animation-delay: 1.08s; }

  .dream-dot {
    animation-delay: 1.2s;
  }

  .hero-dream-line::after {
    animation-delay: 1.4s;
  }

  .hero-wave {
    height: 40px;
  }
}

/* ============================================================
   BOTTOM NAVIGATION — Mobile Only
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-fast);
  border: none;
  background: none;
  cursor: pointer;
  min-height: 56px;
}

.bottom-nav-item i {
  font-size: 20px;
  margin-bottom: 1px;
}

.bottom-nav-item.active {
  color: var(--orange);
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

.bottom-nav-cta {
  color: #25D366;
}

.bottom-nav-cta i {
  font-size: 24px;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  /* Réserve l'espace de la barre du bas (.bottom-nav, fixe) SUR le footer,
     dont le fond est foncé. Avant, le padding était sur le <body> (fond clair),
     ce qui laissait une bande claire visible après le footer. */
  .site-footer {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .page-wrapper {
    padding-bottom: 0;
  }
}

/* ── Hero search — clean stacked layout on mobile ──────────── */
@media (max-width: 860px) {
  .modern-search {
    padding: 0;
    gap: 0;
    border-radius: var(--r-lg);
  }
  .modern-search .search-icon {
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    transform: none;
  }
  .modern-search select {
    background: transparent;
    border-radius: 0;
    margin: 0;
    min-width: 0;
    font-weight: 500;
  }
  .modern-search button {
    box-shadow: none;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   CARTES RUBRIQUES — BANDEAU PHOTO
   (chargé après main.css → prioritaire)
   ═══════════════════════════════════════════════════════════ */
.cat-card.has-photo {
  padding: 0 0 24px;
}
.cat-card .cat-card-photo {
  position: relative;
  height: 120px;
  margin: 0 0 46px;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--gray-200);
}
.cat-card .cat-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-card:hover .cat-card-photo img {
  transform: scale(1.08);
}
.cat-card .cat-card-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,.10) 0%, rgba(10,22,40,.55) 100%);
}
/* L'icône chevauche le bas de la photo, posée sur une pastille blanche */
.cat-card.has-photo .icon-wrapper {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 66px; height: 66px;
  z-index: 2;
}
.cat-card.has-photo .icon-wrapper::before {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.14);
}
.cat-card.has-photo:hover .icon-wrapper::before {
  background: #fff;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.cat-card.has-photo .cat-name,
.cat-card.has-photo .cat-name-ar {
  padding: 0 14px;
}

/* ── Téléphone : les 13 rubriques en liste rectangulaire ──────
   Chaque rubrique occupe sa propre ligne (vignette à gauche,
   intitulés à droite) au lieu du carrousel horizontal. */
@media (max-width: 600px) {
  .categories-grid {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 8px 0 16px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .cat-card,
  .cat-card.has-photo {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    min-height: 88px;
    padding: 12px 44px 12px 96px !important;
    text-align: left !important;
    border-radius: var(--r-lg) !important;
    scroll-snap-align: none !important;
    /* On fige l'état "repos" : pas de soulèvement ni d'accent collé au tap */
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--gray-200) !important;
  }

  /* Neutralise les barres d'accent orange (::before en haut, ::after en bas)
     qui sont la cause du trait orange visible sur chaque carte en mode liste.
     NB : ::after est ensuite réutilisé ci-dessous comme chevron. */
  .cat-card::before,
  .cat-card.has-photo::before {
    display: none !important;
  }

  /* Vignette photo carrée, calée à gauche et centrée verticalement */
  .cat-card .cat-card-photo {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    border-radius: var(--r-md) !important;
  }

  /* L'icône en pastille n'a plus de sens en mode liste */
  .cat-card.has-photo .icon-wrapper {
    display: none !important;
  }

  /* Intitulés empilés, alignés à gauche */
  .cat-card .cat-name,
  .cat-card.has-photo .cat-name {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    margin-bottom: 4px !important;
    text-align: left !important;
    font-size: 15px !important;
  }
  .cat-card .cat-name-ar,
  .cat-card.has-photo .cat-name-ar {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    text-align: left !important;
    font-size: 12px !important;
  }

  /* Le pseudo ::after de .cat-card est, à l'origine, la barre d'accent
     orange (bottom:0; height:4px; background:dégradé orange; scaleX(0)).
     On le détourne ici en chevron : il faut donc ANNULER toute sa
     géométrie de barre (left/right/bottom/height/background/scaleX),
     sinon le dégradé orange réapparaît en pleine largeur. */
  .cat-card.has-photo::after {
    content: '\f054'; /* fa-chevron-right */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: auto !important;
    right: 16px !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    transform: translateY(-50%) !important;
    background: none !important;
    background-image: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    line-height: 1;
    color: var(--gray-400);
    font-size: 14px;
    pointer-events: none;
  }

  /* Flèches de défilement du carrousel inutiles en mode liste */
  .cat-grid-arrow { display: none !important; }
}
