:root {
  /* Colors */
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-elevated: #1A1A2E;
  --accent-primary: #6366F1;
  --accent-secondary: #8B5CF6;
  --accent-glow: #818CF8;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --gradient-hero: linear-gradient(135deg, #6366F1, #8B5CF6, #A78BFA);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 800ms;
}

/* 1. Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent-primary);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* 2. Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-out-expo);
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn--primary {
  background: var(--gradient-hero);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--border-hover);
  background: var(--surface-glass);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

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

/* 3. Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.navbar--scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.navbar__logo span {
  /* Targeted to 'W' if nested inside span or direct styling */
}

.navbar__nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  position: relative;
}

.navbar__nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration-fast);
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--text-primary);
}

.navbar__indicator {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out-expo);
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.navbar__indicator.active {
  opacity: 1;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out-expo);
  transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: right var(--duration-normal) var(--ease-out-expo);
}

.navbar__mobile.active {
  right: 0;
}

.navbar__mobile a,
.navbar__mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  transition: color var(--duration-fast);
}

.navbar__mobile a:hover {
  color: var(--accent-glow);
}

/* 4. Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 800px;
}

.hero__title .typewriter-cursor {
  display: inline-block;
  width: 3px;
  background: var(--accent-primary);
  animation: blink 1s infinite;
  height: 1em;
  vertical-align: text-bottom;
  margin-left: 4px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 1.5rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  display: block;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 5. Services Bento Grid */
.services {
  padding: var(--section-padding) 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.bento__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

.bento__card--lg {
  grid-column: span 2;
}

.bento__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bento__card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
  fill: none;
}

.bento__card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bento__card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.bento__card-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-glow);
  font-weight: 500;
}

/* 6. Portfolio */
.portfolio {
  padding: var(--section-padding) 0;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* --- RÉALISATION CARDS --- */
.real-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.real-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: filter var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.real-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Default state: image sharp, title faded at bottom */
.real-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10, 10, 15, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
}



.real-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.5;
  transition: opacity var(--duration-normal);
}

.real-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-normal) var(--ease-out-expo);
}

/* Hover: blur image, brighten title, reveal desc */
@media (hover: hover) {
  .real-card:hover .real-card__image {
    filter: blur(3px) brightness(0.4);
    transform: scale(1.05);
  }

  .real-card:hover .real-card__overlay {
    background: rgba(10, 10, 15, 0.7);
  }

  .real-card:hover .real-card__title {
    opacity: 1;
  }

  .real-card:hover .real-card__desc {
    max-height: 200px;
    opacity: 1;
  }
}

/* Mobile: show title faded always, no hover effects */
@media (hover: none) {
  .real-card__title {
    opacity: 0.7;
  }
}

/* --- RÉALISATION MODAL --- */
.real-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
  padding: 1.5rem;
}

.real-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.real-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.real-modal-overlay.active .real-modal {
  transform: translateY(0) scale(1);
}

.real-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--duration-fast);
}

.real-modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Desktop: side-by-side layout */
.real-modal__content {
  display: flex;
  flex-direction: row;
  max-height: 90vh;
}

.real-modal__image-wrapper {
  flex: 0 0 55%;
  max-height: 90vh;
}

.real-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.real-modal__details {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.real-modal__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.real-modal__desc {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Mobile: stacked layout with scroll */
@media (max-width: 768px) {
  .real-modal__content {
    flex-direction: column;
    overflow-y: auto;
    max-height: 85vh;
  }

  .real-modal__image-wrapper {
    flex: none;
    width: 100%;
    height: 250px;
    flex-shrink: 0;
  }

  .real-modal__details {
    padding: 1.5rem;
    overflow-y: visible;
  }

  .real-modal__title {
    font-size: 1.5rem;
  }
}
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 7. Process Timeline */
.process {
  padding: var(--section-padding) 0;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline__line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-glass);
}

.timeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gradient-hero);
  transition: height 0.1s linear;
}

.timeline__step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}

.timeline__dot {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 2;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.timeline__step.active .timeline__dot {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.timeline__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.25rem 0 0.5rem;
}

.timeline__content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 8. Marquee */
.marquee-section {
  overflow: hidden;
  padding: 1.5rem 0;
  margin: 5rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.marquee {
  display: flex;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.marquee__item svg {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  fill: currentColor;
}

/* 9. Contact */
.contact__desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.contact {
  padding: var(--section-padding) 0;
}

.contact__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.contact__info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.contact__info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
  fill: none;
}

.contact__info-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact__info-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* 10. Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-primary);
}

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

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* 11. Booking Modal */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.booking-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.booking-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.booking-modal::-webkit-scrollbar {
  width: 6px;
}
.booking-modal::-webkit-scrollbar-track {
  background: transparent;
}
.booking-modal::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 6px;
}
.booking-modal::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.booking-overlay.active .booking-modal {
  transform: scale(1);
}

.booking-modal__close {
  position: absolute;
  top: 4rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--duration-fast);
}

.booking-modal__close:hover {
  color: var(--text-primary);
}

.booking-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  z-index: 20;
  border-bottom: 1px solid var(--border-glass);
}

.booking-progress__segment {
  height: 4px;
  flex: 1;
  background: var(--border-glass);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.booking-progress__segment-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-primary);
  transition: width 0.4s ease;
  opacity: 0.5;
}

.booking-progress__segment.completed .booking-progress__segment-fill {
  width: 100%;
  opacity: 1;
}

.booking-progress__segment.active .booking-progress__segment-fill {
  width: 100%;
  opacity: 1;
}

.booking-progress__shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  display: none;
}

.booking-progress__segment.active .booking-progress__shimmer {
  display: block;
  animation: progressShimmer 1.5s infinite linear;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.booking-progress__dots {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.booking-progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--duration-fast);
  background: var(--bg-secondary);
}

.booking-progress__dot.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.booking-progress__dot.completed {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.booking-steps {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
  animation: stepFadeIn var(--duration-normal) var(--ease-out-expo);
}

.booking-step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 12. Calendar */
.calendar {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1rem;
}

.calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar__month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

.calendar__nav {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar__nav:hover {
  background: var(--surface-glass);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

.calendar__day:hover:not(.disabled):not(.selected) {
  background: var(--surface-glass);
}

.calendar__day.selected {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
}

.calendar__day.today {
  border: 1px solid var(--accent-primary);
}

.calendar__day.disabled {
  color: var(--text-muted);
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar__day.other-month {
  opacity: 0.2;
}

/* 13. Time Picker (Scroll Wheel) */
.timepicker-body {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1rem;
  height: 220px;
  margin-top: 1.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
}
.timepicker-lens {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 48px;
  transform: translateY(-50%);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
}
.timepicker-col {
  flex: 1;
  max-width: 120px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  padding: 86px 0; /* (220 - 48)/2 */
  z-index: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.timepicker-col::-webkit-scrollbar {
  display: none;
}
.timepicker-item {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  scroll-snap-align: center;
  cursor: pointer;
  transition: all var(--duration-fast);
  font-family: var(--font-display);
}
.timepicker-item.selected {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.time-slot:hover:not(.selected) {
  border-color: var(--accent-primary);
  transform: scale(1.02);
}

.time-slot.selected {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.booking-timezone {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
  display: block;
}

/* 14. Booking Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--duration-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

.budget-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  padding: 0;
  margin-top: 0.5rem;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--accent-glow);
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: var(--border-glass);
  border-radius: 2px;
}

input[type=range]:focus {
  outline: none;
}

.booking-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.booking-nav .btn {
  flex: 1;
}

/* 15. Booking Confirmation */
.booking-confirm {
  text-align: center;
  padding: 2rem 0;
}

.checkmark-svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: block;
}

.checkmark-circle {
  stroke: var(--accent-primary);
  stroke-width: 2;
  fill: none;
  transform-origin: center;
  animation: checkmark-circle 0.6s var(--ease-out-expo) forwards;
}

.checkmark-check {
  stroke: var(--accent-primary);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmark-draw 0.5s 0.3s var(--ease-out-expo) forwards;
}

.booking-summary {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.booking-summary__item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.booking-summary__item:not(:last-child) {
  border-bottom: 1px solid var(--border-glass);
}

.booking-summary__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.booking-summary__value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* --- SOLUTIONS & VIDEOS --- */
.solutions {
  padding: var(--section-padding) 0;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.solution-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 1.5rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  cursor: pointer;
}

.solution-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.solution-video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  aspect-ratio: 16/10;
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
}

.browser-bar {
  position: relative;
  z-index: 10;
  height: 30px;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.browser-url {
  flex: 1;
  background: var(--bg-primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.solution-video {
  width: 100%;
  flex: 1;
  object-fit: contain;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-fast);
  z-index: 5;
  pointer-events: none;
}

.play-overlay svg {
  width: 48px;
  height: 48px;
  color: white;
  opacity: 0.8;
}

/* Premium Default State Placeholder */
.solution-video-placeholder {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 2rem;
  text-align: center;
  transition: opacity var(--duration-normal) var(--ease-out-expo),
              visibility var(--duration-normal);
  border-radius: 12px;
}

.placeholder-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
  line-height: 1.3;
  max-width: 90%;
}

@media (hover: hover) {
  .solution-video-wrapper:hover .play-overlay {
    opacity: 1;
  }
  
  .solution-video-wrapper:hover .solution-video-placeholder {
    opacity: 0;
    visibility: hidden;
  }
}

/* Mobile behavior: tap to play logic is handled by JS, but we'll hide the placeholder when the video is playing */
.solution-video-wrapper.is-playing .solution-video-placeholder {
  opacity: 0;
  visibility: hidden;
}

.solution-card__content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.solution-card__content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}


/* --- VIDEO MODAL --- */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  padding: 1rem;
}

.video-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-modal-overlay.active .video-modal {
  transform: scale(1);
}

.video-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-glass);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.video-modal__close:hover {
  background: var(--accent-primary);
}

.video-modal__content {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

.video-modal__player {
  flex: 7;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
}

.video-modal__player .browser-bar {
  position: relative;
  border-radius: 0;
}

.video-modal__player video {
  width: 100%;
  height: 100%;
  max-height: calc(90vh - 30px);
  object-fit: contain;
}

.video-modal__info {
  flex: 3;
  padding: 2.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--border-glass);
  background: var(--bg-primary);
}

.video-modal__info h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.video-modal__info p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- TRUST MARQUEES --- */
.trust-marquee {
  padding: 6rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-primary);
  overflow: hidden;
}

.trust-marquee__header {
  text-align: center;
  margin-bottom: 3rem;
}

.trust-marquee__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: max-content;
}

.marquee-track--left {
  animation: marquee-left 30s linear infinite;
}

.marquee-track--right {
  animation: marquee-right 30s linear infinite;
}

.marquee-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  /* Default: grayscale for colored logos so they blend */
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--duration-normal), transform var(--duration-normal);
}

.marquee-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* For logos that are black-on-transparent, we invert them to white for the dark theme */
.marquee-logo.invert-logo {
  filter: grayscale(100%) invert(1) opacity(0.7);
}

.marquee-logo.invert-logo:hover {
  filter: grayscale(0%) invert(1) opacity(1);
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 2rem)); }
}

@keyframes marquee-right {
  0% { transform: translateX(calc(-50% - 2rem)); }
  100% { transform: translateX(0); }
}

/* 16. Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out-expo), transform var(--duration-slow) var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* 17. Keyframes */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

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

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

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes checkmark-circle {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkmark-draw {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}

@keyframes stepFadeIn {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

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

/* 18. Responsive */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__card--lg {
    grid-column: span 1;
  }
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar__inner {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    justify-content: space-between;
  }
  .navbar__logo {
    font-size: 1.8rem;
    white-space: nowrap;
  }
  .navbar__nav {
    display: flex;
    width: 100%;
    order: 3;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  .navbar__nav::-webkit-scrollbar {
    display: none;
  }
  .navbar__nav a {
    flex: 0 0 auto;
  }
  .navbar__indicator {
    bottom: 2px;
  }
  .navbar .btn--primary.btn--sm {
    display: inline-flex;
    width: auto;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .navbar .lang-btn {
    width: auto;
    margin-left: auto;
    margin-right: 0.6rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .navbar__hamburger {
    display: none;
  }
  .hero {
    padding-top: 160px;
  }

  .bento {
    grid-template-columns: 1fr;
  }
  .hero__stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .contact__info {
    grid-template-columns: 1fr;
  }
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .video-modal__content {
    flex-direction: column;
    overflow-y: auto;
  }
  .video-modal__player {
    flex: none;
    height: auto;
  }
  .video-modal__player video {
    max-height: 50vh;
  }
  .video-modal__info {
    flex: none;
    border-left: none;
    border-top: 1px solid var(--border-glass);
  }
  .solutions__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .contact__form-btn {
    width: 100%;
  }
  .time-slots {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MULTILINGUAL (FR / AR)
   ============================================================ */
.lang-btn {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 1rem;
}

body.lang-ar [data-i18n] {
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', var(--font-body);
}

body.lang-ar .section-title[data-i18n],
body.lang-ar .trust-marquee__title[data-i18n],
body.lang-ar .booking-step h3[data-i18n] {
  text-align: center;
}

body.lang-ar .hero__title,
body.lang-ar .hero__subtitle {
  direction: rtl;
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

body.lang-ar .booking-progress {
  direction: rtl;
}

body.lang-ar .booking-progress__segment-fill {
  left: auto;
  right: 0;
}

body.lang-ar .booking-progress__shimmer {
  background: linear-gradient(to left, transparent, rgba(255,255,255,0.4), transparent);
}

body.lang-ar .booking-progress__segment.active .booking-progress__shimmer {
  animation: progressShimmerRtl 1.5s infinite linear;
}

@keyframes progressShimmerRtl {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

body.lang-ar .hero__title .typewriter-cursor {
  margin-right: 4px;
  margin-left: 0;
}

body.lang-ar .hero__stats,
body.lang-ar .timeline__content,
body.lang-ar .contact__info-item {
  text-align: right;
  direction: rtl;
}


body.lang-ar .timeline__step {
  direction: rtl;
}

body.lang-ar .timeline__line {
  left: auto;
  right: 24px;
}

body.lang-ar .hero__actions,
body.lang-ar .booking-nav {
  direction: rtl;
}
