/* -------------------------------------------------
   Main stylesheet – loaded async (preload)
   ------------------------------------------------- */

/* CSS Variables for theming */
:root {
  /* Timing functions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Durations */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
}
:root {
  --bg-primary: #041819;
  --bg-secondary: rgb(249 250 251 / var(--tw-bg-opacity, 1));
  --bg-dark: #1d1c1b;
  --text-primary: #253C42;
  --text-secondary: #424242;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --input-bg: #ffffff;
  --input-border: #cccccc;
  --card-bg: #ffffff;
  --overlay-dark: rgba(17,24,39,0.5);
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #43585a;
  	--bg-secondary: #253C42;
    --bg-dark: #121212;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-light: #ffffff;
    --border-color: #4f4f4f;
    --input-bg: #2d2d2d;
    --input-border: #4f4f4f;
    --card-bg: #1f2937;
    --overlay-dark: rgba(17,24,39,0.5);
  }

}

/* Reset / base */
html { font-size: 100%; scroll-behavior: smooth; }
body { 
  line-height: 1.6; 
  background-color: var(--bg-primary);
  color: var(--text-primary);
}
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}
@font-face {
  font-family: 'Gill Sans';
  src: url('../assets/fonts/Gill Sans Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
#nav-links a{

    font-family:'Gill Sans',sans-serif;
    font-weight:500;
    letter-spacing:.08em;
    text-transform:uppercase;
    font-size:.85rem;
}
.bg-clair
{
  background-color: #CBD4D5;
}
.bg-ancien
{
  background-color: #E5EBEB;
}
h1 {
    font-weight: 700;
}

h2 {
    font-weight: 700 !important;
}

h3 {
    font-weight: 500;
}

p,
li {
    font-weight: 300;
}

strong {
    font-weight: 700;
}

blockquote,
.quote {
    font-style: italic;
    font-weight: 500;
}
/* Media Queries */
@media (max-width:575.98px){
  #hero h1{font-size:24px}
  #hero p{font-size:18px}
}
@media (min-width:576px) and (max-width:1023.98px){
  #hero h1{font-size:40px}
}

/* Testimonial slider - infinite scroll */
.testimonial-slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.testimonial-slider {
  display: flex;
  gap: 1.5rem;
  padding-left: 1rem;
  animation: scrollTestimonials 40s linear infinite;
}

.testimonial-slider:hover {
  animation-play-state: paused;
}

.testimonial-slide {
  flex-shrink: 0;
  width: 450px;
}
.font-title {
    font-family: 'Gill Sans', sans-serif !important;
    font-weight: 500;
    text-transform: uppercase;
}
.bg-beige {
    background: #E7EEEE;
}
.testimonial-card {
  background-color: var(--bg-secondary);
  border-radius: 0;
  padding: 1rem 2rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.testimonial-card .quote-icon {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.testimonial-card .quote-text {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card .quote-author {
  flex-shrink: 0;
  margin-top: 1.5rem;
  text-align: center;
}

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

/* Footer adjustments */
footer ul{list-style:none;padding:0}
footer li{margin-bottom:.5rem;}

/* Form styling – modern compact */
.form-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin:0 auto;max-width:600px;}
.form-group{display:flex;flex-direction:column;}
.form-group input,
.form-group select,
.form-group textarea{
  padding:.6rem;
  border:1px solid var(--input-border);
  border-radius:0;
  font-size:1rem;
  background-color: var(--input-bg);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-out-expo);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.full-width{grid-column:1 / -1;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px overflow:hidden;clip:rect(0,0,0,0);border:0;}
.submit-btn{
  background: var(--text-primary);
  color: var(--bg-primary);
  padding:.8rem 1.2rem;
  border:none;
  font-size:1rem;
  cursor:pointer;
}

/* Accessibility helpers */
.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;margin:-1px;padding:0;border:0;clip:rect(0 0 0 0);
  overflow:hidden;
}

/* Custom animation for scroll arrow */
@keyframes bounce-updown {
  0% { transform: translateY(0); }
  30% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}
.animate-bounce-slow {
  animation: bounce-updown 2s infinite ease-in-out;
}

/* Header background image */
.header-bg {
  position: relative;
  background-image: url('../assets/headerbg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 0;
}
.header-bg > * {
  position: relative;
  z-index: 2;
}

.header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.8) 0%, rgba(0,0,0,0) 100%); /*linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%)*/
  pointer-events: none;
  z-index: 1;
}

/* Footer background with overlay and gradient */
.footer-bg {
  position: relative;
  background-image: url('../assets/TRENZ%20PIERRE%20FOND_RVB.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.footer-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 0;
}
.footer-bg > * {
  position: relative;
  z-index: 2;
}
.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) -70%, rgba(17,24,39,1) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Dark section background with overlay and gradient */
.dark-section {
  position: relative;
  background-image: url('../assets/TRENZ%20PIERRE%20FOND_RVB.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 0;
}
@media (prefers-color-scheme: dark) {
  .dark-section::before {
    background: rgb(37, 60, 66) !important;
  }
  
  .dark-section::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0) -70%, rgb(37, 60, 66) 70%) !important;
  }
}
.dark-section > * {
  position: relative;
  z-index: 2;
}
.dark-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) -70%, rgba(17,24,39,1) 70%);
  pointer-events: none;
  z-index: 1;
}
.dark-section * {
  color: #fff !important;
}

/* Parallax fade-in animation for expertise columns */
.parallax-col {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.parallax-col.animate-in {
  opacity: 1;
  transform: translateY(0);
}
.parallax-col.animate-in:nth-child(2) {
  transition-delay: 0.15s;
}
.parallax-col.animate-in:nth-child(3) {
  transition-delay: 0.3s;
}

/* FAQ Accordion Styles */
.faq-toggle svg {
  transition: transform 0.3s ease;
}
.faq-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Section scroll margin */
section {
  scroll-margin-top: 80px;
}

/* Tabs Réalisations */
.tab-panel {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.tab-panel.active {
  opacity: 1;
  transform: translateY(0);
}

.tab-panel.hidden {
  display: none;
}

/* Tab buttons hover states */
.realisation-tab {
  cursor: pointer;
}

.realisation-tab:hover {
  transform: translateY(-1px);
}

.realisation-tab.active {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Active tab hover - texte noir en mode light, blanc en dark */
.realisation-tab.active:hover {
  color: var(--text-primary) !important;
}

/* Image hover effects in realisations */
#realisations .group:hover img {
  transform: scale(1.05);
}

/* Overlay transition */
#realisations .group .absolute {
  transition: opacity 0.3s ease;
}




#contact button[type="submit"] {
  background-color: var(--text-primary);
  border: 1px solid var(--text-primary);
}
 #contact input::placeholder,
 #contact textarea::placeholder {
  opacity: 1;
  color: var(--text-primary);
  
}
#contact button[type="submit"]:hover {
  opacity: 0.9;
}
@media (prefers-color-scheme: dark) {
	#contact input,
#contact textarea {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--input-border);
}
#contact button[type="submit"] {
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
  border: 1px solid var(--text-light);
}
.dark #contact input::placeholder,
.dark #contact textarea::placeholder {
  opacity: 1;
  color: rgba(255, 255, 255, 1);
}
	}
/* Expertise cards */
#expertises .bg-white {
  background-color: var(--card-bg);
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  #expertises .bg-white {
    background-color: rgb(14, 41, 47) !important;
  }
  .logo-slide
  {
    height: 150px;
  }
}


/* Expertise card titles (over images) must always be white */
#expertises .relative h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-weight: 500;
}

/* FAQ items */


/* Certification cards */
.bg-gray-50 {
  background-color: var(--bg-secondary);
}

/* Testimonial text */
#temoignages .font-title {
  color: var(--text-primary);
}

#temoignages .text-gray-600,
#temoignages .text-gray-800 {
  color: var(--text-secondary);
}

/* Testimonial card dark mode support */
.testimonial-card {
  background-color: var(--bg-secondary);
}

.testimonial-card .quote-text p {
  color: var(--text-primary);
}

.testimonial-card .quote-author p {
  color: var(--text-secondary);
}



/* Ensure footer text is always white */
.footer-bg,
.footer-bg * {
  color: #ffffff !important;
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
  /* Expertises section background */
  #expertises {
    background-color: rgb(37, 60, 66) !important;
  }
  
  /* Partenaires section background */
  #partenaires {
    background-color: rgb(14, 41, 47) !important;
  }
  
  /* Partenaires1 section background */
  #partenaires1 {
    background-color: rgb(14, 41, 47) !important;
  }
  
  /* Engagements section background */
  #engagements {
    background-color: rgb(37, 60, 66) !important;
  }
  
  /* Fade sections within engagements in dark mode */
  #engagements .fade-section {
    background-color: rgb(14, 41, 47) !important;
  }
  
  /* Chiffres section background */
  #chiffres {
    background-color: rgb(14, 41, 47) !important;
  }
  
  /* Realisations section background */
  #realisations {
    background-color: rgb(14, 41, 47) !important;
  }
  
  /* Contact section background */
  #contact {
    background-color: rgb(14, 41, 47) !important;
  }
  
  /* Savoir-faire section background */
  #savoir-faire {
    background-color: rgb(37, 60, 66) !important;
  }
  
  /* FAQ section background */
  #faq {
    background-color: rgb(37, 60, 66) !important;
  }
  
  /* Remove blue outline on focus */
  input:focus,
  textarea:focus,
  button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--border-color);
  }
  
  /* Links */
  a {
    color: var(--text-primary);
  }
  
  a:hover {
    opacity: 0.8;
  }
  
  /* Header specific */
  .header-bg {
    background-color: transparent;
  }
}

/* Grille Metro pour Réalisations */
.metro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 0.75rem;
}


@media (min-width: 768px) {
  .metro-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
  }
  #chiffres br,#expertises br,#savoir-faire br{display:none;}
}

.metro-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.metro-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Taille standard : 1x1 */
.metro-item {
  grid-column: span 1;
  grid-row: span 1;
}

/* Large : 2x2 */
.metro-item.metro-large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Wide : 2x1 */
.metro-item.metro-wide {
  grid-column: span 2;
  grid-row: span 1;
}

/* Tall : 1x2 */
.metro-item.metro-tall {
  grid-column: span 1;
  grid-row: span 2;
}
@media (max-width: 879px) {
	#nav-links{ display:none;}
	}

@media (max-width: 767px) {
  .metro-item.metro-large,
  .metro-item.metro-wide {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .metro-item.metro-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

}

/* Overlay et effets hover */
.metro-item .absolute {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.metro-item:hover .absolute {
  opacity: 0 !important;
}

/* Tabs styling amélioré */
.realisation-tab {
  position: relative;
  cursor: pointer;
}

.realisation-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.realisation-tab:hover::after {
  width: 80%;
}

.realisation-tab.active::after {
  width: 100%;
}

/* Header scroll effect */
header {
  transition: background-color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              padding var(--duration-normal) var(--ease-out-expo);
}

header.header-scrolled {
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Enhanced focus states for accessibility */
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
  transition: box-shadow var(--duration-fast) var(--ease-out-expo);
}

/* FAQ enhanced transitions */
.faq-content {
  transition: max-height var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-normal) var(--ease-out-expo);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.faq-content:not(.hidden) {
  max-height: 500px;
  opacity: 1;
}

/* FAQ toggle background in dark mode */
@media (prefers-color-scheme: dark) {
  .faq-toggle {
    background-color: rgb(14, 41, 47) !important;
  }
  
  .faq-content,
  .faq-content * {
    color: #000000 !important;
  }
}

/* Metro grid item enhancements */
.metro-item {
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.metro-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

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

/* Logo hover effect in header */
header img {
  transition: transform var(--duration-normal) var(--ease-spring),
              filter var(--duration-normal) var(--ease-out-expo);
}

header img:hover {
  transform: scale(1.02);
}

/* Navigation link hover enhancement */
#nav-links a {
  position: relative;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

#nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--duration-normal) var(--ease-out-expo);
}

#nav-links a:hover::after {
  width: 100%;
}

/* Footer link hover */
footer a {
  transition: opacity var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-out-expo);
}

footer a:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

/* Form input focus animation */
#contact input,
#contact textarea {
  transition: border-color var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-out-expo);
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Dark mode input focus */
@media (prefers-color-scheme: dark) {
  #contact input:focus,
  #contact textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  }
}

/* Scroll arrow enhancement */
.animate-bounce-slow {
  animation: bounce-updown 2s var(--ease-in-out-sine) infinite;
}


/* Tab button enhanced transitions */
.realisation-tab {
  transition: color var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-out-expo);
}

.realisation-tab:hover {
  transform: translateY(-1px);
}

/* Loading state for submit button */
button[type="submit"]:disabled {
  cursor: not-allowed;
  transform: none !important;
}

button[type="submit"].loading {
  position: relative;
  color: transparent;
}

button[type="submit"].loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==================================================
   MICRO-TRANSITIONS & MICRO-INTERACTIONS
   ================================================== */

/* Fade-in animation for sections */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.fade-section:nth-child(1) { transition-delay: 0ms; }
.fade-section:nth-child(2) { transition-delay: 100ms; }
.fade-section:nth-child(3) { transition-delay: 200ms; }
.fade-section:nth-child(4) { transition-delay: 300ms; }

/* Hover lift effect for cards */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

@media (hover: none) {
  .hover-lift:hover {
    transform: none;
    box-shadow: none;
  }

  .img-zoom:hover img {
    transform: none;
  }
}

/* Smooth image scale on hover */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* Button ripple effect base */
.btn-interactive {
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.btn-interactive::after {
  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 var(--duration-slow) var(--ease-out-expo),
              height var(--duration-slow) var(--ease-out-expo);
}

.btn-interactive:active::after {
  width: 300%;
  height: 300%;
}

.btn-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

.btn-interactive:active {
  transform: translateY(0);
}

/* Link underline animation */
.link-underline {
  position: relative;

}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.link-underline:hover::after {
  width: 100%;
}

/* Icon bounce on hover */
.icon-bounce {
  transition: transform var(--duration-normal) var(--ease-spring);
}

.icon-bounce:hover {
  transform: translateX(4px);
}

/* Card border glow effect */
.card-glow {
  position: relative;
  transition: box-shadow var(--duration-normal) var(--ease-out-expo);
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  z-index: -1;
}

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

/* Number counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter-animate {
  opacity: 0;
}

.counter-animate.animate {
  animation: countUp var(--duration-slower) var(--ease-out-expo) forwards;
}

/* Text reveal animation */
@keyframes textReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.text-reveal {
  animation: textReveal var(--duration-slower) var(--ease-out-expo) forwards;
}

/* Pulse animation for CTAs */
@keyframes pulse-soft {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
  }
}

.pulse-cta {
  animation: pulse-soft 2s var(--ease-in-out-sine) infinite;
}

/* Magnetic button effect (CSS only) */
.magnetic-btn {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

/* Grayscale to color transition */
.grayscale-hover {
  filter: grayscale(100%);
  transition: filter var(--duration-normal) var(--ease-out-expo);
}

.grayscale-hover:hover {
  filter: grayscale(0%);
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.float-animation {
  animation: float 3s var(--ease-in-out-sine) infinite;
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }

/* Focus visible enhancement */
*:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  transition: outline-offset var(--duration-fast) var(--ease-out-expo);
}

/* Smooth page transitions */
html {
  scroll-behavior: smooth;
}

/* 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;
  }
  
  html {
    scroll-behavior: auto;
  }
}

#expertises ul {
    margin-bottom: 20px;
}

/* Swiper Client Logo Slider */
.logoSwiper {
  width: 100%;
  padding: 2rem 0;
}

.logoSwiper .swiper-wrapper {
  align-items: center;
}

.logo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0px;
  transition: all 0.3s ease;
}

.logo-slide img,
.logo-slide svg {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.logo-slide:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.logo-slide:hover img,
.logo-slide:hover svg {
  filter: grayscale(0%);
  opacity: 1;
}

/* Swiper Pagination Dots */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: rgb(1, 35, 110);
  transform: scale(1.3);
}

/* Hide pagination on desktop (5 slides visible) */
@media (min-width: 769px) {
  .swiper-pagination {
    display: none !important;
  }
}

/* Dark mode pagination */
.dark .swiper-pagination-bullet {
  background: #475569;
}

.dark .swiper-pagination-bullet-active {
  background: rgb(99, 141, 245);
}
/* Dark mode adjustments for testimonial cards */
@media (prefers-color-scheme: dark) {
  .testimonial-card {
    background-color: var(--bg-secondary);
  }
   .logo-slide img, .logo-slide svg{
	 opacity:1;
	 }
	 .logo-slide:hover{ background:transparent;}
}