:root {
  /* shadcn/ui color system mappings */
  --background: 45 38% 91%;
  --foreground: 72 14% 12%;
  --card: 40 33% 94%;
  --card-foreground: 72 14% 12%;
  --popover: 40 33% 97%;
  --popover-foreground: 72 14% 12%;
  --primary: 16 60% 52%;
  --primary-foreground: 0 0% 100%;
  --secondary: 72 7% 33%;
  --secondary-foreground: 40 33% 97%;
  --muted: 40 20% 88%;
  --muted-foreground: 72 7% 52%;
  --accent: 38 91% 54%;
  --accent-foreground: 72 14% 12%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 72 14% 12% / 0.08;
  --input: 72 14% 12% / 0.08;
  --ring: 16 60% 52%;
  --radius: 0.5rem;

  /* Custom Color Palette variables */
  --color-sand-base: #F6F1E3;   /* confort + identité : sable chaud adouci (était #F4EED8) */
  --color-sand-light: #F1ECDC;  /* bandes alternées (était #F7F2E7) */
  --color-sand-lighter: #FFFFFF;/* cartes / surfaces blanches (était #FAF8F0) */
  --color-sand-warm: #EAE3D4;   /* placeholders / chips / bordure (était #F0E6C8) */
  --color-earth-dark: #2A2D23;
  --color-earth-medium: #5A5D4F;
  --color-earth-light: #626658; /* Redefined from #8A8D7F to meet WCAG AA 4.5:1 contrast against sand-base */
  --color-earth-light-original: #8A8D7F; /* Preserved for borders or non-text decorative elements */
  --color-terracotta: #D4623B;
  --color-terracotta-dark: #B8502E;
  --color-terracotta-soft: #E87A4F;
  --color-water-blue: #299DD1;
  --color-water-blue-dark: #196D92; /* Accessible blue text on light background */
  --color-nature-green: #6FA018; /* olive-forêt (était #93C020 chartreuse — confort visuel) */
  --color-nature-green-dark: #4A6310; /* Accessible green text on light background */
  --color-solar-amber: #F5A71E;
  --color-solar-amber-dark: #A65F0C; /* Accessible amber text on light background */
  --color-solar-warm: #E8941F;
  --color-whatsapp: #25D366;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', sans-serif;
  background-color: var(--color-sand-base);
  color: var(--color-earth-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Custom layout classes matching React code components */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-body {
  font-family: 'Figtree', sans-serif;
}

.text-label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 5vw, 6rem);
  padding-right: clamp(1rem, 5vw, 6rem);
}

.section-padding {
  padding-top: clamp(5rem, 10vh, 8rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
}

/* Scroll reveal animations (Replicating Framer Motion whileInView) */
/* Scroll reveal animations (Scoped under .js-enabled for progressive enhancement) */
.js-enabled .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered loading for list cards */
.scroll-reveal.delay-0 { transition-delay: 0ms; }
.scroll-reveal.delay-100 { transition-delay: 100ms; }
.scroll-reveal.delay-200 { transition-delay: 200ms; }
.scroll-reveal.delay-300 { transition-delay: 300ms; }
.scroll-reveal.delay-400 { transition-delay: 400ms; }
.scroll-reveal.delay-500 { transition-delay: 500ms; }

/* Custom Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Confort : plus de pulsation permanente — ombre statique, effet réservé au survol
   (le bouton porte aussi hover:scale-110). */
.animate-whatsapp-pulse {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.animate-whatsapp-pulse:hover {
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.42);
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Custom Interactive Effects */
.magnetic {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
  will-change: transform;
}

.tilt-card {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* =========================================================================
   NAVBAR — "Living Rail" : la barre s'affine au scroll + une pastille sable
   glisse sous les liens (suit le survol/focus, se pose sur la page active).
   Piloté par #main-nav[data-scrolled] (JS) + #nav-indicator (JS).
   ========================================================================= */
/* La barre intérieure devient une PILULE arrondie, centrée et flottante (pill nav).
   Le header reste transparent ; la pilule porte le fond/ombre et se resserre au scroll. */
#main-nav { background: transparent !important; border-bottom: 0; }
#main-nav > .section-container {
  width: calc(100% - 2rem);
  max-width: 1100px;
  height: 60px;
  margin: 10px auto 0;
  padding-left: 1.5rem;
  padding-right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(42, 45, 35, 0.06);
  border-radius: 9999px;
  box-shadow: 0 8px 30px rgba(42, 45, 35, 0.08);
  transition: max-width var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) ease,
              background-color var(--dur-base) ease;
}
#main-nav[data-scrolled="true"] > .section-container {
  max-width: 980px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 34px rgba(42, 45, 35, 0.12);
}

/* Pastille glissante (déplacée en JS via transform/width — GPU only, sans boucle) */
#nav-indicator {
  will-change: transform, width;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
}
#main-nav .nav-link { transition: color var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart); }
@media (prefers-reduced-motion: no-preference) {
  #main-nav .nav-link:hover { transform: translateY(-1px); }
}

/* Méga-menu : ouverture chorégraphiée (fade + montée) + colonnes en cascade + chevron */
#solutions-menu { opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo); }
#solutions-menu.is-open { opacity: 1; transform: translateY(0); }
#solutions-menu [data-col] { opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo); }
#solutions-menu.is-open [data-col] { opacity: 1; transform: translateY(0); }
#solutions-menu.is-open [data-col]:nth-child(1) { transition-delay: 40ms; }
#solutions-menu.is-open [data-col]:nth-child(2) { transition-delay: 90ms; }
#solutions-menu.is-open [data-col]:nth-child(3) { transition-delay: 140ms; }
#solutions-trigger .lucide-chevron-down { transition: transform var(--dur-fast) var(--ease-out-quart); }
#solutions-trigger[aria-expanded="true"] .lucide-chevron-down { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  #main-nav, #main-nav > .section-container { transition: none; }
  #nav-indicator { transition: opacity 0.2s ease; }
  #main-nav .nav-link:hover { transform: none; }
  #solutions-menu, #solutions-menu [data-col] { transition: none; transform: none; opacity: 1; }
}

/* Routing Views */
.page-view {
  transition: opacity 0.3s ease;
  min-height: calc(100vh - 72px);
}

.page-view.hidden {
  display: none !important;
}

/* Scroll progress bar (Top fixed) */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--color-terracotta);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Lenis smooth scrolling tweaks */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Custom Toast Styling matching Sonner */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100% - 2rem);
}

.toast {
  background-color: #ffffff;
  color: var(--color-earth-dark);
  border: 1px solid rgba(42, 45, 35, 0.08);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--color-nature-green);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

/* Custom Scrollbar for modern aesthetics */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-sand-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-earth-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-earth-medium);
}

/* =========================================================================
   PROJECT OVERLAY MODAL STYLING
   ========================================================================= */

/* Backdrop overlay with blur effect */
#project-modal {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

/* Modal Content Box Container */
#project-modal-content {
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  outline: none;
  scrollbar-width: thin;
}

/* Slide flex images wrapper */
#modal-gallery-images-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  will-change: transform;
}

#modal-gallery-images-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

#project-modal.photo-only-modal #project-modal-backdrop {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#project-modal.photo-only-modal #project-modal-content {
  width: 100%;
  height: 100%;
  max-height: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

#project-modal.photo-only-modal #project-modal-body {
  height: 100%;
}

#project-modal.photo-only-modal #project-modal-close,
#project-modal.photo-only-modal .photo-lightbox-control {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

#project-modal.photo-only-modal #project-modal-close:hover,
#project-modal.photo-only-modal .photo-lightbox-control:hover {
  background: rgba(0, 0, 0, 0.65);
}

.photo-lightbox-stage {
  min-height: 100vh;
  min-height: 100dvh;
}

.photo-lightbox-stage #modal-gallery-images-container img {
  object-fit: contain;
}

/* Gallery hover arrows micro-animation */
.group-modal-gallery:hover #modal-gallery-prev,
.group-modal-gallery:hover #modal-gallery-next {
  opacity: 1;
}

/* Gallery dot transitions */
.modal-gallery-dot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive Card Focus states and Premium transitions */
.project-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-card:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 4px;
}

/* Accessibility: Keyboard focus visual feedback */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-terracotta) !important;
  outline-offset: 2px !important;
}

/* Adjust scrollbar inside modal content for elegant aesthetics */
#project-modal-content::-webkit-scrollbar {
  width: 6px;
}

#project-modal-content::-webkit-scrollbar-track {
  background: var(--color-sand-lighter);
  border-radius: 0 24px 24px 0;
}

#project-modal-content::-webkit-scrollbar-thumb {
  background: var(--color-earth-light);
  border-radius: 3px;
}

#project-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-earth-medium);
}

/* =========================================================================
   PULSE HIGHLIGHT ANIMATION & B2B DARK STYLING
   ========================================================================= */

@keyframes highlight-pulse {
  0% {
    transform: scale(1);
    outline: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  25% {
    transform: scale(1.03);
    outline: 3px solid var(--color-terracotta);
    box-shadow: 0 12px 40px rgba(212, 98, 59, 0.25);
  }
  100% {
    transform: scale(1);
    outline: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
}

.pulse-highlight {
  animation: highlight-pulse 2.2s cubic-bezier(0.25, 1, 0.5, 1) 1;
  z-index: 50;
  position: relative;
}

/* Glassmorphism Pro B2B styling */
.glass-pro-dark {
  background: rgba(26, 27, 22, 0.65);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.text-glow-solar {
  text-shadow: 0 0 12px rgba(245, 167, 30, 0.25);
}

/* =========================================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION (WCAG 2.2 compliance)
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .project-card:hover {
    transform: none !important;
  }

  .animate-whatsapp-pulse,
  .animate-float,
  .pulse-highlight {
    animation: none !important;
  }

  #project-modal,
  #project-modal-content {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================================================
   PREMIUM UX ENHANCEMENTS & MODERN ACCENTS
   ========================================================================= */

/* Cross-browser custom scrollbar styling (standard properties for Firefox) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-earth-light) var(--color-sand-light);
}

/* Tactile interactive micro-animations */
.active-tactile {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.active-tactile:active {
  transform: scale(0.96) !important;
}

/* Premium tactile focus-visible ring styles for form inputs and fields */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-terracotta) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(212, 98, 59, 0.15) !important;
  border-color: var(--color-terracotta) !important;
  transition: all 0.2s ease;
}

/* Glassmorphism Pro Light styling */
.glass-pro-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(42, 45, 35, 0.06);
}

/* Custom Toast additional alert states */
.toast-warning {
  border-left: 4px solid var(--color-solar-amber);
}

.toast-info {
  border-left: 4px solid var(--color-water-blue);
}

/* =========================================================================
   2026 ENHANCEMENTS — LOADER · AURORA · HERO ANIMATION · MOBILE CTA
   ========================================================================= */

/* Page Loader */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--color-sand-base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: loader-fade-in 0.45s ease 0.1s forwards;
}

.loader-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-earth-dark);
}

.loader-logo-accent {
  color: var(--color-terracotta);
}

@keyframes loader-fade-in {
  to { opacity: 1; }
}

.loader-bar-track {
  width: 100px;
  height: 2px;
  background-color: var(--color-sand-warm);
  border-radius: 99px;
  overflow: hidden;
  opacity: 0;
  animation: loader-fade-in 0.45s ease 0.25s forwards;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-solar-amber));
  border-radius: 99px;
  width: 0%;
  animation: loader-bar-progress 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes loader-bar-progress {
  0%   { width: 0%; }
  55%  { width: 65%; }
  100% { width: 100%; }
}

/* Hero Aurora Blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero-blob-terracotta {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(212, 98, 59, 0.13) 0%, transparent 68%);
  top: -140px;
  right: 5%;
  filter: blur(64px);
}

.hero-blob-water {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41, 157, 209, 0.10) 0%, transparent 68%);
  bottom: -80px;
  left: 3%;
  filter: blur(72px);
}

.hero-blob-solar {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 167, 30, 0.09) 0%, transparent 68%);
  top: 35%;
  left: 28%;
  filter: blur(50px);
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(28px, -18px) scale(1.06); }
  66%       { transform: translate(-14px, 16px) scale(0.96); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-22px, 14px) scale(1.08); }
  66%       { transform: translate(18px, -10px) scale(0.94); }
}

/* Animated gradient terracotta text */
.text-gradient-terracotta {
  background: linear-gradient(135deg, #D4623B 0%, #E87A4F 35%, #F5A71E 65%, #D4623B 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 8s ease-in-out infinite alternate;
}

@keyframes gradient-flow {
  to { background-position: 220% center; }
}

/* Hero section entrance stagger */
.hero-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 0.75s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.hero-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.18s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.30s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.42s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.54s; }
.hero-stagger > *:nth-child(6) { animation-delay: 0.66s; }

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Enhanced primary CTA button glow */
.btn-primary-glow {
  box-shadow: 0 4px 22px rgba(212, 98, 59, 0.30) !important;
  transition: box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s ease !important;
}

.btn-primary-glow:hover {
  box-shadow: 0 8px 36px rgba(212, 98, 59, 0.44), 0 0 0 3px rgba(212, 98, 59, 0.13) !important;
}

/* Mobile Sticky CTA Bar (hidden on desktop) */
#mobile-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  #mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    padding: 0.6rem 1rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(42, 45, 35, 0.1);
    gap: 0.625rem;
    align-items: center;
    box-shadow: 0 -4px 24px rgba(42, 45, 35, 0.08);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #mobile-cta-bar.bar-hidden {
    transform: translateY(110%);
  }

  /* Body bottom padding so content isn't hidden behind bar */
  body {
    padding-bottom: 76px;
  }
}

/* Partners marquee scroll */
.partners-marquee-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.partners-marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: partners-scroll 60s linear infinite;
}

.partners-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Dot-grid decorative background */
.dot-grid-subtle {
  background-image: radial-gradient(circle, rgba(42, 45, 35, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Stat numbers subtle glow */
.stat-number-lit {
  text-shadow: 0 0 36px rgba(212, 98, 59, 0.18);
}

/* =========================================================================
   NOS RÉALISATIONS — emplacements photo (placeholder tant que la vraie
   photo n'est pas déposée). L'<img onerror="this.remove()"> se retire si le
   fichier n'existe pas encore → le libellé sable apparaît dessous.
   ========================================================================= */
.ph-slot { background-color: var(--color-sand-warm); }
.ph-label {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-earth-light-original);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.5rem;
  pointer-events: none;
}

/* =========================================================================
   MOBILE MENU — M1 plein écran immersif (fondu + grands liens en cascade)
   ========================================================================= */

#mobile-menu-overlay { pointer-events: none; }
#mobile-menu-overlay.menu-open { pointer-events: auto; }

#menu-backdrop {
  will-change: opacity;
  transition: opacity 0.3s ease;
}
#mobile-menu-overlay.menu-open #menu-backdrop { opacity: 1 !important; }

/* Le panneau couvre tout l'écran et apparaît en fondu */
#menu-panel {
  will-change: opacity;
  opacity: 0;
  transition: opacity 0.32s ease;
}
#mobile-menu-overlay.menu-open #menu-panel { opacity: 1; }

/* Grands liens : entrée en cascade à l'ouverture */
@media (prefers-reduced-motion: no-preference) {
  #menu-panel .m-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  }
  #mobile-menu-overlay.menu-open #menu-panel .m-item { opacity: 1; transform: translateY(0); }
  #mobile-menu-overlay.menu-open #menu-panel .m-item:nth-child(1) { transition-delay: 0.10s; }
  #mobile-menu-overlay.menu-open #menu-panel .m-item:nth-child(2) { transition-delay: 0.15s; }
  #mobile-menu-overlay.menu-open #menu-panel .m-item:nth-child(3) { transition-delay: 0.20s; }
  #mobile-menu-overlay.menu-open #menu-panel .m-item:nth-child(4) { transition-delay: 0.25s; }
  #mobile-menu-overlay.menu-open #menu-panel .m-item:nth-child(5) { transition-delay: 0.30s; }
  #mobile-menu-overlay.menu-open #menu-panel .m-item:nth-child(6) { transition-delay: 0.35s; }
}

/* Accordéon Solutions : le chevron pivote quand le groupe est ouvert */
#menu-panel [data-accordion-trigger] .lucide-chevron-down { transition: transform 0.25s ease; }
#menu-panel [data-accordion-trigger][aria-expanded="true"] .lucide-chevron-down { transform: rotate(180deg); }

.mobile-menu-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
}

/* =========================================================================
   PRO PAGE — overrides « nav sur fond sombre » : OBSOLÈTES depuis la pilule
   blanche flottante. La nav est maintenant une pilule blanche sur toutes les
   pages (y compris la page Pro sur héros sombre) → encre foncée lisible,
   aucun override de couleur nécessaire.
   ========================================================================= */

/* =========================================================================
   GLOBAL TOUCH TARGET & INTERACTION FIXES
   ========================================================================= */

button, a, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* iOS zoom prevention on form inputs */
input, select, textarea {
  font-size: max(16px, 1em) !important;
}

/* =========================================================================
   SPACING & RESPONSIVITY IMPROVEMENTS
   ========================================================================= */

/* Better section padding on mobile */
@media (max-width: 767px) {
  .section-padding {
    padding-top: clamp(3.5rem, 8vh, 5rem);
    padding-bottom: clamp(3.5rem, 8vh, 5rem);
  }

  .section-container {
    padding-left: clamp(1rem, 5vw, 1.5rem);
    padding-right: clamp(1rem, 5vw, 1.5rem);
  }

  /* Hero on mobile — la photo doit passer SOUS la navbar (comme les pages axes).
     Le padding-top du contenu est géré par .section-container (pt-[132px]). */
  #view-home > section:first-child {
    min-height: 100dvh;
  }

  /* Team section photo grid on mobile */
  #equipe .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  /* Stats grid: 2 cols on mobile, remove dividers */
  .hidden.md\\:block.w-px {
    display: none !important;
  }
}

/* Better card hover on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .tilt-card {
    transform: none !important;
  }
}

/* Hero min-height fix for mobile (dvh instead of vh) */
.min-h-screen {
  min-height: 100dvh;
}

/* =========================================================================
   DESKTOP NAV ALIGNMENT FIXES
   ========================================================================= */

/* Ensure nav links have consistent spacing on laptop */
@media (min-width: 768px) and (max-width: 1199px) {
  #main-nav > div > .hidden.md\\:flex.items-center.gap-8 {
    gap: 1.25rem !important;
  }

  #main-nav > div > .hidden.md\\:flex.items-center.gap-8 .nav-link {
    font-size: 0.8125rem !important;
  }
}

/* =========================================================================
   SECTION VERTICAL RHYTHM — More breathing room
   ========================================================================= */

/* Add consistent top label spacing */
.text-label + h2 {
  margin-top: 0.5rem;
}

/* Services card content alignment */
#services .tilt-card .flex.flex-col.justify-between {
  height: 100%;
}

/* Hero image rounded on mobile */
@media (max-width: 639px) {
  #hero-parallax-img {
    border-radius: 1.25rem;
  }

  /* Pillar cards: smaller padding on very small screens */
  .scroll-reveal.delay-500 button.rounded-2xl {
    padding: 1rem;
  }
}

/* Better footer spacing on mobile */
@media (max-width: 767px) {
  footer .grid {
    gap: 2rem !important;
  }
}
