/**
 * AHI Audition Theme - Custom CSS
 * Additional styles and animations
 */

/* ========================================
   HERO MOBILE SLIDER
   ======================================== */
.hero-slider-mobile {
  display: none;
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  min-height: 520px;
  max-height: none;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.7) 100%);
}

.hero-slide-content {
  position: absolute;
  bottom: 18%;
  left: 1rem;
  right: 1rem;
  padding: 1.25rem;
  color: white;
  z-index: 2;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
}

.hero-slide-content h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slide-content .hero-title-line {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 0.25rem;
  color: #fff;
}

.hero-slide-content .hero-title-highlight {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-slide-content .hero-description {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.hero-slide-content .hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 280px;
  margin: 0 auto;
}

.hero-slide-content .btn {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  text-align: center;
}

.hero-slide-content .btn-primary {
  background: linear-gradient(135deg, #636947 0%, #4a5035 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 105, 71, 0.4);
}

.hero-slide-content .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-slider-dots {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-desktop {
  display: block;
  width: 100%;
}

.hero-desktop .container {
  max-width: 1280px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 1.5rem;
}

.hero-desktop .hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 120px 0 80px;
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-desktop .hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-desktop .hero-image {
  flex: 1;
  max-width: 500px;
}

/* Mobile Only - Show Slider */
@media (max-width: 768px) {
  .hero-slider-mobile {
    display: block;
    padding-top: 90px;
    box-sizing: border-box;
  }

  .hero-desktop {
    display: none;
  }

  .hero-section {
    padding: 0;
    min-height: auto;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

/* ========================================
   STICKY HEADER & NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 1.5rem 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Ajustement du logo au scroll */
.site-header .site-logo img {
  transition: height 0.4s ease;
}

.site-header.scrolled .site-logo img {
  height: 55px !important;
  width: auto;
}

/* Navigation Links Polish */
.main-nav ul li a {
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.site-header.scrolled .main-nav ul li a {
  color: var(--text-color);
}

/* ========================================
   TYPOGRAPHIE & ESPACEMENTS (PREMIUM POLISH)
   ======================================== */
body {
  line-height: 1.7;
  color: #4b5563;
  /* Gris plus doux pour la lecture */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1f2937;
  /* Gris très foncé presque noir */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Amélioration des ombres pour plus de profondeur */
:root {
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* Cartes avec effet de levée premium */
.service-card,
.tech-card,
.why-us-card,
.testimonial-card,
.patient-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.service-card:hover,
.tech-card:hover,
.why-us-card:hover,
.testimonial-card:hover,
.patient-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

/* Animation Reveal CSS Class (utilisé par JS) */
.section {
  opacity: 1;
  transform: none;
  transition: none;
}

.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Background Shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.hero-bg-shapes .shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  top: -200px;
  right: -200px;
  animation: morphShape 20s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-color);
  bottom: -100px;
  left: -100px;
  animation: morphShape 15s ease-in-out infinite reverse;
}

.hero-bg-shapes .shape-3 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  top: 50%;
  left: 30%;
  animation: floatShape 10s ease-in-out infinite;
}

@keyframes morphShape {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg);
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(180deg);
  }
}

@keyframes floatShape {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(99, 105, 71, 0.1), rgba(139, 154, 92, 0.1));
  border: 1px solid rgba(99, 105, 71, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease forwards;
}

.hero-badge .badge-icon {
  font-size: 1.25rem;
}

.hero-badge .badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Title Enhancement */
.hero-content h1 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-desktop .hero-title-line {
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  opacity: 1;
}

.hero-desktop .hero-title-highlight {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Button Glow Effect */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Micro-interactions */
.service-card,
.testimonial-card,
.tech-card,
.why-us-card,
.gallery-item-mini {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.testimonial-card:hover,
.tech-card:hover,
.why-us-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.gallery-item-mini:hover img {
  transform: scale(1.05);
}

/* Link hover effect */
.contact-item-content a,
.footer-links a {
  position: relative;
  display: inline-block;
}

.contact-item-content a::after,
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.contact-item-content a:hover::after,
.footer-links a:hover::after {
  width: 100%;
}

/* Icon bounce on hover */
.service-icon,
.tech-icon,
.why-us-icon,
.contact-icon {
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon,
.tech-card:hover .tech-icon,
.why-us-card:hover .why-us-icon,
.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

/* FAQ arrow rotation */
.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Trust avatars hover */
.trust-avatars img {
  transition: transform 0.3s ease, z-index 0s;
}

.trust-avatars img:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Enhanced CTA Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease, transform 0.2s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-glow {
  box-shadow: 0 4px 15px rgba(99, 105, 71, 0.4);
}

.btn-glow:hover {
  box-shadow: 0 6px 25px rgba(99, 105, 71, 0.5);
}

/* Floating CTA Enhancement */
.floating-cta {
  animation: floatCta 3s ease-in-out infinite, pulseCta 2s ease-in-out infinite;
}

.floating-cta a {
  position: relative;
}

.floating-cta a::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  animation: rippleCta 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatCta {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes pulseCta {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(99, 105, 71, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(99, 105, 71, 0.6);
  }
}

@keyframes rippleCta {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Visually Hidden - Accessible labels */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Visible Styles - Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.faq-question:focus-visible,
.hero-slider-dot:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

/* Skip to content link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 10px;
}

/* Mobile Menu Animation */
.mobile-menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .main-nav a {
    font-size: 1.25rem;
    padding: 1rem 2rem;
  }
}

/* Touch Target Sizes - WCAG 2.5.5 */
@media (max-width: 768px) {

  .btn,
  .btn-primary,
  .btn-secondary,
  .faq-question,
  .mobile-menu-toggle,
  .hero-slider-dot,
  .back-to-top,
  .floating-cta a {
    min-height: 44px;
    min-width: 44px;
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .contact-form .btn {
    min-height: 48px;
  }

  .hero-slider-dot {
    width: 12px;
    height: 12px;
    margin: 0 6px;
  }
}

/* Form Validation Styles */
.input-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

.input-valid {
  border-color: #16a34a !important;
  background-color: #f0fdf4 !important;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Trust Indicators */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  opacity: 1;
}

.trust-avatars {
  display: flex;
}

.trust-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -10px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.trust-avatars img:first-child {
  margin-left: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.trust-text span {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Hero Image Enhancements */
.hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  z-index: 2;
}

.hero-image-secondary {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: var(--shadow-xl);
  z-index: 3;
}

.hero-image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 768px) {
  .hero-image-secondary {
    width: 120px;
    height: 120px;
    bottom: -20px;
    left: -20px;
  }
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.hero-image-badge .badge-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.hero-image-badge .badge-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating Cards */
.hero-floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.hero-floating-card .floating-icon {
  font-size: 1.5rem;
}

.hero-floating-card .floating-text {
  display: flex;
  flex-direction: column;
}

.hero-floating-card .floating-text strong {
  font-size: 0.875rem;
  color: var(--primary-color);
}

.hero-floating-card .floating-text span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.hero-floating-card.card-1 {
  top: 20%;
  left: -30px;
  animation: floatCard 4s ease-in-out infinite, fadeInLeft 0.6s ease 1.2s forwards;
  opacity: 0;
}

.hero-floating-card.card-2 {
  bottom: 30%;
  right: -30px;
  animation: floatCard 4s ease-in-out infinite 2s, fadeInRight 0.6s ease 1.4s forwards;
  opacity: 0;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  transition: var(--transition);
}

.scroll-down:hover {
  color: var(--primary-color);
}

.scroll-down svg {
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(5px);
  }
}

/* ========================================
   SECTION ENHANCEMENTS
   ======================================== */

/* Section Dividers */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* Enhanced Section Headers */
.section-header .section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* Card Hover Effects */
.service-card,
.testimonial-card,
.tech-card {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before,
.tech-card:hover::before {
  transform: scaleX(1);
}

/* Testimonial Card Enhancement */
.testimonial-card {
  border-left: 4px solid var(--primary-color);
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Gallery Enhancement */
.gallery-item {
  position: relative;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 105, 71, 0.8), rgba(74, 82, 53, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: var(--radius-lg);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay svg {
  width: 40px;
  height: 40px;
  color: white;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
  .hero-floating-card.card-1 {
    left: 10px;
    top: auto;
    bottom: -20px;
  }

  .hero-floating-card.card-2 {
    right: 10px;
    bottom: 40px;
  }
}

@media (max-width: 768px) {
  .hero-title-line {
    font-size: 1.75rem;
  }

  .hero-title-highlight {
    font-size: 2.25rem;
  }

  .hero-floating-card {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-bg-shapes .shape-1 {
    width: 300px;
    height: 300px;
  }

  .hero-bg-shapes .shape-2 {
    width: 200px;
    height: 200px;
  }

  .hero-bg-shapes .shape-3 {
    display: none;
  }
}

/* Animations */
.animate-element {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-element.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grids */
.services-grid .service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
  transition-delay: 0.3s;
}

.testimonials-grid .testimonial-card:nth-child(1) {
  transition-delay: 0.1s;
}

.testimonials-grid .testimonial-card:nth-child(2) {
  transition-delay: 0.2s;
}

.testimonials-grid .testimonial-card:nth-child(3) {
  transition-delay: 0.3s;
}

.tech-grid .tech-card:nth-child(1) {
  transition-delay: 0.1s;
}

.tech-grid .tech-card:nth-child(2) {
  transition-delay: 0.15s;
}

.tech-grid .tech-card:nth-child(3) {
  transition-delay: 0.2s;
}

.tech-grid .tech-card:nth-child(4) {
  transition-delay: 0.25s;
}

.gallery-grid .gallery-item:nth-child(1) {
  transition-delay: 0.05s;
}

.gallery-grid .gallery-item:nth-child(2) {
  transition-delay: 0.1s;
}

.gallery-grid .gallery-item:nth-child(3) {
  transition-delay: 0.15s;
}

.gallery-grid .gallery-item:nth-child(4) {
  transition-delay: 0.2s;
}

.gallery-grid .gallery-item:nth-child(5) {
  transition-delay: 0.25s;
}

.gallery-grid .gallery-item:nth-child(6) {
  transition-delay: 0.3s;
}

/* Hero animations */
.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-image {
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Counter animation for stats */
.stat-number {
  display: inline-block;
  animation: countUp 1s ease forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for CTA buttons */
.hero-buttons .btn-primary {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  }

  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  }
}

/* Hero image - optimized and stable */
.hero-image img {
  transform: none;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Loading state for form */
.contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Focus states for accessibility */
.btn:focus,
.form-group input:focus,
.form-group textarea:focus,
.faq-question:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {

  .site-header,
  .mobile-cta,
  .cta-section,
  .contact-form-wrapper {
    display: none !important;
  }

  .section {
    padding: 2rem 0;
  }

  body {
    font-size: 12pt;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #636947;
    --secondary-color: #7a8450;
    --text-color: #000;
    --bg-light: #fff;
  }

  .btn-primary {
    background: #000;
    border: 2px solid #000;
  }

  .service-card,
  .testimonial-card,
  .tech-card {
    border: 2px solid #000;
  }
}

/* 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;
  }

  .animate-element {
    opacity: 1;
    transform: none;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode
    :root {
        --primary-color: #60a5fa;
        --primary-dark: #3b82f6;
        --text-color: #f3f4f6;
        --text-light: #9ca3af;
        --bg-light: #1f2937;
        --bg-white: #111827;
        --border-color: #374151;
    }

    .site-header {
        background: rgba(17, 24, 39, 0.95);
    }

    .service-card,
    .testimonial-card,
    .contact-form-wrapper,
    .faq-item {
        background: var(--bg-light);
    }
    */
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
}

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

/* Selection color */
::selection {
  background: var(--secondary-color);
  color: white;
}

/* Additional utility classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* ========================================
   ADDITIONAL ANIMATIONS
   ======================================== */

/* Section Reveal Animation */
.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section should always be visible */
.hero-section {
  opacity: 1;
  transform: none;
}

/* Subtle Pulse Animation */
@keyframes subtlePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 105, 71, 0.2);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(99, 105, 71, 0);
  }
}

/* Gradient Text - no animation */
.hero-title-highlight {
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Button Hover */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::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 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Card Tilt Effect on Hover */
.service-card:hover,
.why-us-card:hover,
.tech-card:hover {
  transform: translateY(-5px) perspective(1000px) rotateX(2deg);
}

/* Image Zoom on Gallery Hover */
.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Testimonial Card Slide Effect */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-xl);
}

/* Stats Number Glow */
.stat-number {
  text-shadow: 0 0 20px rgba(99, 105, 71, 0.3);
}

/* FAQ Smooth Expand */
.faq-answer {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contact Form Input Focus Animation */
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 4px rgba(99, 105, 71, 0.1);
}

/* Loading Spinner for Form */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Smooth Image Loading */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded,
img[src] {
  opacity: 1;
}

/* Navigation links - no underline animation */
.main-nav a {
  position: static;
}

/* Footer Link Hover */
.footer-links a {
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '→';
  opacity: 0;
  margin-left: 0;
  transition: opacity 0.3s ease, margin-left 0.3s ease;
}

.footer-links a:hover::after {
  opacity: 1;
  margin-left: 5px;
}

/* Mobile CTA Bounce */
.mobile-cta a {
  animation: mobileCtaBounce 2s ease-in-out infinite;
}

@keyframes mobileCtaBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* Scroll Progress Indicator (optional) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Brand Logo Hover */
.brand-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   ENHANCED CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a5235 100%);
}

.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-icon-wrapper {
  margin-bottom: 1.5rem;
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
}

.cta-icon.pulse-ring {
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.cta-feature svg {
  color: #a8e6cf;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  z-index: 10000;
  transition: width 0.05s linear;
}

/* ========================================
   TESTIMONIALS SLIDER
   ======================================== */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  background: white;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: var(--primary-color);
  color: white;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(99, 105, 71, 0.4);
  transition: all 0.3s ease;
}

.floating-cta a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(99, 105, 71, 0.5);
}

/* ========================================
   ENHANCED CARDS WITH GLASSMORPHISM
   ======================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   SECTION LABELS
   ======================================== */
.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 105, 71, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  margin: 1rem auto;
}

/* ========================================
   ENHANCED GALLERY WITH LIGHTBOX EFFECT
   ======================================== */
.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: inherit;
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  z-index: 2;
  transition: transform 0.3s ease;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ========================================
   COUNTER ANIMATION
   ======================================== */
.counter-number {
  display: inline-block;
}

.counter-number.counting {
  animation: countPulse 0.1s ease;
}

@keyframes countPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ========================================
   LOADING SKELETON
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-color);
  color: white;
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */
@media (max-width: 768px) {
  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }

  .floating-cta {
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ========================================
   PATIENTS SECTION - Grille de portraits
   ======================================== */
.patients-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

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

.patients-grid-8 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {

  .patients-grid,
  .patients-grid-8 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

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

@media (max-width: 480px) {

  .patients-grid,
  .patients-grid-8 {
    grid-template-columns: 1fr;
  }
}

.patient-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.patient-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.patient-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.patient-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.patient-card:hover .patient-image img {
  transform: scale(1.05);
}

.patient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.patient-card:hover .patient-overlay {
  background: linear-gradient(to top, rgba(99, 105, 71, 0.9) 0%, rgba(99, 105, 71, 0.5) 50%, transparent 100%);
}

.patient-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.patients-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 105, 71, 0.05), rgba(139, 154, 92, 0.1));
  border-radius: var(--radius-xl);
}

.patients-cta p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* ========================================
   GALLERY SECTION - Showcase Layout
   ======================================== */
.gallery-showcase {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-main {
  position: relative;
}

.gallery-featured {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 100%;
  min-height: 450px;
}

.gallery-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  color: white;
}

.featured-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.gallery-featured-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.gallery-featured-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.gallery-grid-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}

.gallery-item-mini {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 180px;
}

.gallery-item-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.gallery-item-mini:hover img {
  transform: scale(1.1);
}

.mini-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: white;
}

.mini-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 105, 71, 0.05), rgba(139, 154, 92, 0.1));
  border-radius: var(--radius-xl);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  font-size: 2rem;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-size: 1rem;
  color: var(--text-color);
}

.feature-text span {
  font-size: 0.85rem;
  color: var(--text-light);
}

@media (max-width: 992px) {
  .gallery-showcase {
    grid-template-columns: 1fr;
  }

  .gallery-featured {
    min-height: 350px;
  }

  .gallery-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid-side {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .gallery-item img,
  .gallery-item-tall img {
    height: 280px;
  }
}

/* ========================================
   TESTIMONIALS SECTION - Design Premium
   ======================================== */
.testimonials-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* Google Reviews Badge */
.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.google-reviews-badge .google-logo {
  flex-shrink: 0;
}

.google-reviews-badge .google-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.google-reviews-badge .rating-stars {
  color: #FBBC05;
  font-size: 1rem;
  letter-spacing: -1px;
}

.google-reviews-badge .google-rating strong {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.google-reviews-badge .reviews-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-color);
}

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

@media (max-width: 992px) {
  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--primary-color);
}

.testimonial-meta h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.2rem 0;
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  font-style: italic;
  margin: 0;
  border: none;
  padding: 0;
}

.testimonials-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 3rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-xl);
}

.testimonials-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.testimonials-stats .stat-icon {
  font-size: 2rem;
}

.testimonials-stats .stat-content {
  display: flex;
  flex-direction: column;
}

.testimonials-stats .stat-content strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.testimonials-stats .stat-content span {
  font-size: 0.85rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .testimonials-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}

/* ========================================
   ANIMATIONS AMÉLIORÉES
   ======================================== */
.animate-element {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered animations pour patients */
.patients-grid .patient-card:nth-child(1) {
  transition-delay: 0.05s;
}

.patients-grid .patient-card:nth-child(2) {
  transition-delay: 0.1s;
}

.patients-grid .patient-card:nth-child(3) {
  transition-delay: 0.15s;
}

.patients-grid .patient-card:nth-child(4) {
  transition-delay: 0.2s;
}

.patients-grid .patient-card:nth-child(5) {
  transition-delay: 0.25s;
}

.patients-grid .patient-card:nth-child(6) {
  transition-delay: 0.3s;
}

/* ========================================
   RESPONSIVE MOBILE - OPTIMISATIONS COMPLÈTES
   ======================================== */

/* === TABLETTE PAYSAGE (992px) === */
@media (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .trust-indicator {
    justify-content: center;
  }
}

/* === TABLETTE PORTRAIT (768px) === */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
    /* Un peu plus d'espace sur les côtés */
  }

  .section {
    padding: 60px 0;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 120px 0 40px;
    /* Augmenté pour éviter que le titre soit caché par le header */
    min-height: auto;
  }

  .hero-content {
    margin-top: 1rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-title-line {
    font-size: 1.8rem;
  }

  .hero-title-highlight {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  .hero-stats {
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 0.5rem;
  }

  .hero-stats .stat-item {
    padding: 0.5rem;
  }

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

  .hero-stats .stat-label {
    font-size: 0.7rem;
  }

  .hero-image {
    margin-top: 2rem;
    border-radius: var(--radius-xl);
  }

  .hero-image-wrapper {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }

  /* Header Mobile */
  .site-header {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    /* Fond blanc plus opaque sur mobile */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .site-header .site-logo img {
    height: 50px !important;
    /* Logo un peu plus petit sur mobile */
    width: auto;
    object-fit: contain;
  }

  .mobile-menu-toggle {
    color: var(--text-color);
  }

  /* Floating CTA Mobile Improvement */
  .mobile-cta {
    padding: 0.75rem 1rem;
    /* Moins de padding */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .mobile-cta a {
    padding: 0.8rem;
    /* Bouton moins haut */
    font-size: 0.95rem;
    border-radius: 50px;
    /* Plus arrondi */
    box-shadow: 0 4px 15px rgba(99, 105, 71, 0.25);
  }

  body {
    padding-bottom: 80px;
    /* Ajusté pour le CTA */
  }
}

/* === MOBILE LARGE (576px) === */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-title-line {
    font-size: 1.5rem;
  }

  .hero-title-highlight {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stats .stat-item {
    flex: 1 1 40%;
    /* 2 par ligne */
    min-width: 120px;
  }

  .trust-indicator {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {

  /* Désactivation de l'animation des chiffres sur mobile (évite le tremblement) */
  .stat-number,
  .counter-number,
  .counter-number.counting {
    animation: none !important;
  }

  .hero-stats .stat-number {
    font-variant-numeric: tabular-nums;
  }

  /* Patients Mobile */
  .patients-grid,
  .patients-grid-8 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .patient-image img {
    height: 220px;
  }

  .patient-overlay {
    padding: 0.75rem;
  }

  .patients-cta {
    padding: 1.5rem;
  }

  .patients-cta p {
    font-size: 0.95rem;
  }

  /* Gallery Mobile */
  .gallery-grid-side {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-features {
    grid-template-columns: 1fr 1fr;
  }

  /* Why Us Mobile */
  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 1.25rem;
  }

  /* Tech Mobile */
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brands-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === MOBILE PETIT (480px) === */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-label {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  /* Hero Mobile Petit */
  .hero-section {
    padding: 70px 0 30px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

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

  .hero-stats .stat-label {
    font-size: 0.65rem;
  }

  /* Patients Mobile Petit */
  .patients-grid,
  .patients-grid-8 {
    gap: 0.5rem;
  }

  .patient-image img {
    height: 180px;
  }

  .patient-name {
    font-size: 0.8rem;
  }

  .patient-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  /* Gallery Mobile Petit */
  .gallery-featured {
    min-height: 250px;
  }

  .gallery-featured-overlay {
    padding: 1rem;
  }

  .gallery-featured-overlay h3 {
    font-size: 1.1rem;
  }

  .featured-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
  }

  .gallery-features {
    padding: 1rem;
    gap: 0.75rem;
  }

  .feature-item {
    gap: 0.5rem;
  }

  .feature-icon {
    font-size: 1.25rem;
  }

  .feature-text strong {
    font-size: 0.8rem;
  }

  .feature-text span {
    font-size: 0.7rem;
  }

  /* Testimonials Mobile Petit */
  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-header {
    gap: 0.75rem;
  }

  .testimonial-avatar {
    width: 45px;
    height: 45px;
  }

  .testimonial-meta h4 {
    font-size: 0.9rem;
  }

  .testimonial-quote {
    font-size: 0.85rem;
  }

  .testimonials-stats .stat-icon {
    font-size: 1.5rem;
  }

  /* CTA Mobile Petit */
  .cta-section {
    padding: 2rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.25rem;
  }

  .cta-section p {
    font-size: 0.9rem;
  }

  /* Contact Mobile Petit */
  .contact-form input,
  .contact-form textarea {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  /* Buttons Mobile */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 1rem 1.75rem;
  }
}

/* === HEADER MOBILE === */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .site-logo img {
    height: 40px !important;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav a {
    display: block;
    padding: 1rem;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* === ANIMATIONS RÉDUITES SUR MOBILE === */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .hero-bg-shapes {
    display: none;
  }

  .patient-card:hover {
    transform: none;
  }

  .gallery-item-mini:hover img {
    transform: none;
  }

  .testimonial-card:hover {
    transform: none;
  }
}

/* ===== SECTION ENGAGEMENTS ===== */
.engagements-section {
  background: var(--bg-light);
}

.engagements-3cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.engagement-col {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.engagement-col-main {
  text-align: left;
  align-items: flex-start;
}

.engagement-col h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.engagement-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.engagement-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.engagement-feature span {
  color: var(--text-color);
  font-weight: 500;
}

.engagement-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
}

.engagement-icon-large svg {
  width: 40px;
  height: 40px;
}

/* ===== SECTION DEROULEMENT ===== */
.deroulement-section {
  background: white;
}

.deroulement-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.deroulement-step {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-light);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.step-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.step-content li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.deroulement-suivi {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2.5rem 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.suivi-icon {
  flex-shrink: 0;
}

.suivi-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.suivi-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.suivi-content li {
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

/* ===== SECTION POURQUOI S'APPAREILLER ===== */
.pourquoi-section {
  background: var(--bg-light);
}

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

.pourquoi-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.pourquoi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pourquoi-number {
  margin-bottom: 1rem;
}

.pourquoi-number span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 12px;
}

.pourquoi-card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.pourquoi-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive pour nouvelles sections */
@media (max-width: 992px) {

  .engagements-grid,
  .pourquoi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .engagements-3cols {
    grid-template-columns: 1fr;
  }

  .deroulement-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .engagements-grid,
  .pourquoi-grid,
  .engagements-3cols {
    grid-template-columns: 1fr;
  }

  .deroulement-suivi {
    flex-direction: column;
    text-align: center;
  }
}

body.home * {
  animation: none !important;
}

body.home img {
  opacity: 1 !important;
}

body.home .section,
body.home .reveal,
body.home .reveal-left,
body.home .reveal-right,
body.home .hero-title-line,
body.home .hero-title-highlight,
body.home .hero-trust,
body.home .hero-image,
body.home .hero-image-badge,
body.home .hero-floating-card {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ===== CORRECTIONS CENTRAGE ET ANIMATIONS ===== */

/* Services grid - centrer les 3 cartes */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Tech cards - retirer l'opacité au survol, garder visible */
.tech-card {
  opacity: 1 !important;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* About section - centrer l'image et le badge Google */
.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.about-image {
  position: relative;
}

.google-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials - Avatar placeholder pour vrais avis Google */
.testimonial-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-source {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonial-card .testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-card .testimonial-meta h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--text-color);
}

.testimonial-card .testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
}

/* ===== GOOGLE REVIEWS CAROUSEL ===== */
.google-reviews-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

.carousel-container {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.google-review-card {
  flex: 0 0 340px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-info {
  display: flex;
  flex-direction: column;
}

.review-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.review-meta .google-icon {
  flex-shrink: 0;
}

.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 10px;
}

.review-text {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.carousel-arrow:hover svg {
  stroke: white;
}

.carousel-arrow svg {
  stroke: var(--text-color);
}

@media (max-width: 992px) {
  .google-review-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .google-review-card {
    flex: 0 0 280px;
  }
}

/* ===== CORRECTIONS DISPLAY ===== */

/* Services cards - corriger les icônes coupées */
.service-card {
  overflow: visible !important;
}

.service-icon {
  overflow: visible !important;
}

/* About section - corriger le layout */
.about-section .about-inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
  align-items: center !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.about-section .about-content {
  display: block !important;
}

.about-section .about-content p {
  max-width: 100% !important;
  word-wrap: break-word !important;
}

@media (max-width: 992px) {
  .about-section .about-inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .about-section .about-content p {
    max-width: 100% !important;
  }
}

/* Footer - changer le bleu par vert kaki */
.site-footer {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
}

.site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(122, 132, 80, 0.5), transparent) !important;
}

/* ===== REASSURANCE BAR ===== */
.reassurance-bar {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
}

.reassurance-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
}

.reassurance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.reassurance-icon svg {
  width: 18px;
  height: 18px;
  color: white;
  stroke: white;
}

@media (max-width: 768px) {
  .reassurance-items {
    flex-direction: column;
    gap: 0.75rem;
  }
  .reassurance-item {
    justify-content: center;
    font-size: 0.85rem;
  }
}

/* ===== PATIENTS GRID 6 — clean 3x2 layout ===== */
.patients-grid-6 {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
  .patients-grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .patients-grid-6 {
    grid-template-columns: 1fr !important;
  }
}

/* ===== INNER PAGES — editorial content styling ===== */
.entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(99, 105, 71, 0.15);
}

.entry-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.entry-content {
  max-width: 800px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-color);
}

.entry-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem;
  color: var(--primary-color);
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-color);
  line-height: 1.3;
}

.entry-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-color);
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

.entry-content ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.entry-content a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.entry-content a:hover {
  color: var(--primary-dark);
}

.entry-content strong {
  font-weight: 700;
  color: var(--text-color);
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary-color);
  background: rgba(99, 105, 71, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-light);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.entry-content figure {
  margin: 2rem 0;
}

.entry-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.entry-content th {
  background: rgba(99, 105, 71, 0.08);
  font-weight: 700;
}

.entry-content hr {
  border: none;
  height: 2px;
  background: rgba(99, 105, 71, 0.12);
  margin: 2.5rem 0;
}

/* Inner page container padding */
body:not(.home) .site-main > .container.section {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.entry-content {
  margin: 0 auto;
}

/* ===== MISSING CSS VARIABLES — required by premium.css ===== */
:root {
  --primary-50: rgba(99, 105, 71, 0.06);
  --primary-100: rgba(99, 105, 71, 0.12);
  --primary-200: rgba(99, 105, 71, 0.2);
}

/* ===== SERVICE ICON FIX — ensure SVG icons are visible ===== */
.service-icon {
  color: var(--primary-color) !important;
  overflow: visible !important;
  background: linear-gradient(135deg, rgba(99,105,71,0.10), rgba(99,105,71,0.18)) !important;
}

.service-icon svg {
  width: 36px !important;
  height: 36px !important;
  stroke: var(--primary-color) !important;
  stroke-width: 1.8;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.service-card:hover .service-icon svg {
  stroke: white !important;
}

/* Service card - don't clip icon area */
.service-card {
  overflow: visible !important;
}

/* Service features list bullets */
.service-features li::before {
  color: var(--primary-color) !important;
}

/* ===== TECH ICON FIX — same invisible icon issue ===== */
.tech-card {
  background: rgba(99, 105, 71, 0.05) !important;
  border: 1px solid rgba(99, 105, 71, 0.08);
}

.tech-card:hover {
  background: white !important;
  border-color: var(--primary-color) !important;
}

.tech-icon {
  background: rgba(99, 105, 71, 0.12) !important;
  color: var(--primary-color) !important;
}

.tech-icon svg {
  width: 28px !important;
  height: 28px !important;
  stroke: var(--primary-color) !important;
  stroke-width: 1.8;
}

.tech-card:hover .tech-icon {
  background: var(--primary-color) !important;
  color: white !important;
}

.tech-card:hover .tech-icon svg {
  stroke: white !important;
}

/* ===== TESTIMONIALS — override premium.css dark theme (bg is now light) ===== */
.testimonials-section .section-title {
  color: var(--text-color) !important;
}

.testimonials-section .section-subtitle {
  color: #6b7280 !important;
}

.testimonials-section .section-label {
  color: var(--primary-color) !important;
}

.testimonials-section::before {
  display: none !important;
}

.testimonials-section .testimonial-card {
  background: white !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.testimonials-section .testimonial-card::before {
  color: rgba(0, 0, 0, 0.05) !important;
}

.testimonials-section .testimonial-quote {
  color: var(--text-color) !important;
}

/* ===== ENGAGEMENT CARDS — equal heights ===== */
.engagements-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2.5rem;
  align-items: stretch;
}

.engagement-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 768px) {
  .engagements-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== SECTION SPACING ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

/* ===== WHY-US SECTION FIX ===== */
.why-us-card {
  overflow: visible !important;
}

/* ===== DEROULEMENT SPACING ===== */
.deroulement-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== POURQUOI GRID — ensure 3x2 on desktop ===== */
.pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .pourquoi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .pourquoi-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BRAND LOGOS ===== */
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
}

.brand-logo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.brand-logo-img {
  max-height: 36px;
  max-width: 120px;
  width: auto;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-item:hover .brand-logo-img {
  transform: scale(1.05);
}

.brands-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 1rem !important;
  align-items: center;
  flex-wrap: unset !important;
}

.brands-section {
  padding: 2rem 0 !important;
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===== GOOGLE LOGO IN HERO TRUST ===== */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-google-logo {
  flex-shrink: 0;
}

.google-logo-img {
  height: 30px;
  width: auto;
}

/* ===== CONTACT SECTION — proper 2-col layout ===== */
.contact-inner {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto auto;
  gap: 2rem 3rem !important;
}

.contact-info {
  grid-column: 1;
  grid-row: 1;
}

.contact-map {
  grid-column: 2;
  grid-row: 1;
}

.contact-map iframe {
  width: 100%;
  height: 100% !important;
  min-height: 300px;
  border-radius: var(--radius-lg);
}

.contact-form-wrapper {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr !important;
  }
  .contact-info,
  .contact-map,
  .contact-form-wrapper {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ========================================
   UI POLISH — hover effects & refinements
   ======================================== */

/* --- Engagement cols hover --- */
.engagement-col {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.engagement-col:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* --- Deroulement steps hover --- */
.deroulement-step {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deroulement-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* --- Google review cards hover --- */
.google-review-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- About badge — prevent clipping by parent overflow:hidden --- */
.about-image {
  overflow: visible !important;
}

.about-badge {
  z-index: 2;
}

/* --- Contact map depth & polish --- */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* --- Deroulement timeline — wider for 2-col --- */
.deroulement-timeline {
  max-width: 1000px;
}

/* --- Google reviews carousel — small mobile --- */
@media (max-width: 480px) {
  .google-review-card {
    flex: 0 0 260px;
    padding: 1.25rem;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }

  .google-reviews-badge {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .google-reviews-badge .reviews-count {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
  }
}

/* --- Contact section mobile spacing --- */
@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 2rem 1.5rem !important;
    border-radius: 1.5rem !important;
  }

  .contact-details {
    gap: 1rem;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
  }
}

/* --- Deroulement suivi — improve icon alignment --- */
.deroulement-suivi .suivi-icon svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* --- Engagement feature icon hover --- */
.engagement-feature:hover .feature-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* --- Pourquoi card number hover --- */
.pourquoi-card:hover .pourquoi-number span {
  transform: scale(1.1) rotate(3deg);
  transition: transform 0.3s ease;
}

/* --- Testimonials stats responsive polish --- */
@media (max-width: 480px) {
  .testimonials-stats {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .testimonials-stats .stat-content strong {
    font-size: 1.25rem;
  }

  .testimonials-stats .stat-content span {
    font-size: 0.8rem;
  }
}

/* --- Section header text alignment --- */
.section-header {
  text-align: center;
}

.section-header .section-label {
  display: inline-block;
}

.section-header .section-divider {
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer logo --- */
.footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: none !important;
}

/* ========================================
   HOMEPAGE POLISH v2
   ======================================== */

/* --- Service cards — top accent border + hover --- */
.service-card {
  position: relative;
  border-top: 3px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card .service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.25rem;
}

.service-card .service-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.service-features li {
  position: relative;
  padding-left: 1.25rem;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* --- Tech cards — subtle border + hover depth --- */
.tech-card {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--primary-color) !important;
}

/* --- FAQ items — accent on hover + smooth expand --- */
.faq-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-left: 3px solid transparent;
}

.faq-item:hover {
  border-left-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-item.active {
  border-left-color: var(--secondary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
  transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
  color: var(--primary-color);
}

/* --- Patient cards — scale on hover --- */
.patient-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.patient-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.patient-card:hover .patient-image img {
  transform: scale(1.05);
  transition: transform 0.6s ease;
}

.patient-image img {
  transition: transform 0.6s ease;
}

/* --- Patients CTA bar — more prominent --- */
.patients-cta {
  margin-top: 3rem;
  background: var(--bg-light);
  padding: 2rem 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  flex-wrap: wrap;
  border: 1px solid var(--border-color);
}

/* --- Pourquoi cards numbers — more visible --- */
.pourquoi-number span {
  color: var(--primary-color) !important;
  opacity: 0.2;
  font-weight: 800;
}

.pourquoi-card:hover .pourquoi-number span {
  opacity: 0.35;
}

.pourquoi-card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* --- Brands section — cleaner layout --- */
.brands-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.brands-section h3 {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.brands-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.brand-item {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}

.brand-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* --- Reassurance bar — more visual weight --- */
.reassurance-item {
  transition: transform 0.3s ease;
}

.reassurance-item:hover {
  transform: translateY(-2px);
}

.reassurance-icon {
  transition: transform 0.3s ease;
}

.reassurance-item:hover .reassurance-icon {
  transform: scale(1.1);
}

/* --- CTA section — phone button contrast fix --- */
.cta-buttons .btn-primary {
  border: 2px solid white;
}

.cta-buttons .btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Contact section — better grid --- */
.contact-inner {
  display: grid !important;
  grid-template-columns: 1fr 1.2fr !important;
  gap: 3rem !important;
}

.contact-map {
  grid-column: 1 / -1;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr !important;
  }
}

/* --- Section dividers — consistent style --- */
.section-divider {
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* --- Smooth scroll indicator on hero --- */
.hero-section {
  position: relative;
}

/* --- Gallery section — better spacing --- */
.gallery-grid {
  gap: 1rem !important;
}

/* --- Why-us card hover refinement --- */
.why-us-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.why-us-icon {
  transition: transform 0.3s ease;
}

.why-us-card:hover .why-us-icon {
  transform: scale(1.1);
}

/* --- Footer refinements --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

/* --- Global subtle improvements --- */
::selection {
  background: var(--primary-color);
  color: white;
}

img {
  image-rendering: auto;
}

/* ========================================
   INNER PAGES — Article / Page / Archive
   ======================================== */

/* --- Article Hero Banner --- */
.article-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a5035 100%);
  padding: 8rem 0 3rem;
  color: white;
}

.article-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-hero .breadcrumbs a:hover {
  color: white;
}

.article-hero .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

.article-hero .breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: white;
  max-width: 800px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.article-meta a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.article-meta .meta-sep {
  color: rgba(255, 255, 255, 0.3);
}

.article-hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  max-width: 600px;
}

/* --- Featured Image --- */
.article-featured-image {
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.article-featured-image .container {
  max-width: 900px;
}

.featured-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* --- Article Body Layout --- */
.article-body {
  padding: 3rem 0;
}

.article-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.page-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* --- Article Content Typography --- */
.article-content {
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.article-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-color: rgba(99, 105, 71, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.3s ease;
}

.article-content a:hover {
  text-decoration-color: var(--primary-color);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-content th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--primary-color);
}

/* --- Sidebar --- */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-cta-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a5035 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  text-align: center;
}

.sidebar-cta-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.sidebar-cta-icon svg {
  stroke: white;
}

.sidebar-cta-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.sidebar-cta-card p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

.sidebar-cta-card .btn-primary {
  background: white;
  color: var(--primary-color);
  border: none;
  font-weight: 600;
}

.sidebar-cta-card .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.sidebar-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-phone:hover {
  color: white;
}

.sidebar-phone svg {
  stroke: currentColor;
}

.sidebar-info-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.sidebar-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1rem;
}

.sidebar-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-info-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.5;
}

.sidebar-info-card li svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--primary-color);
}

/* --- Article Footer CTA --- */
.article-footer-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a5035 100%);
  color: white;
  text-align: center;
}

.article-cta-box h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: white;
}

.article-cta-box p {
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-cta-buttons .btn-primary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
}

.article-cta-buttons .btn-primary:hover {
  background: transparent;
  color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* --- Related Articles --- */
.related-articles {
  padding: 4rem 0;
  background: var(--bg-light);
}

.related-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
}

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

.related-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.related-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.05);
}

.related-card-body {
  padding: 1.25rem;
}

.related-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  color: var(--text-color);
}

.related-card-body time {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Archive Page --- */
.archive-body {
  padding: 3rem 0 4rem;
}

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

.archive-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.archive-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.archive-card:hover .archive-card-image img {
  transform: scale(1.05);
}

.archive-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--text-light);
}

.archive-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.archive-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.archive-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  color: var(--text-color);
}

.archive-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

.archive-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.read-more-arrow {
  color: var(--primary-color);
  font-weight: 600;
  transition: transform 0.3s ease;
}

.archive-card:hover .read-more-arrow {
  transform: translateX(4px);
}

.archive-pagination {
  margin-top: 3rem;
  text-align: center;
}

.archive-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.archive-pagination .page-numbers.current {
  background: var(--primary-color);
  color: white;
}

.archive-pagination .page-numbers:hover:not(.current) {
  background: var(--bg-light);
}

.archive-pagination .prev,
.archive-pagination .next {
  width: auto;
  padding: 0 1rem;
  font-weight: 500;
}

.archive-empty {
  text-align: center;
  padding: 4rem 0;
}

.archive-empty h2 {
  margin-bottom: 0.5rem;
}

.archive-empty p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

/* --- Disable hover transforms on mobile (prevent touch jank) --- */
@media (max-width: 768px) {
  .engagement-col:hover,
  .deroulement-step:hover,
  .google-review-card:hover,
  .pourquoi-card:hover,
  .service-card:hover,
  .tech-card:hover,
  .why-us-card:hover,
  .patient-card:hover,
  .related-card:hover,
  .archive-card:hover {
    transform: none !important;
  }
}

/* --- Inner pages mobile --- */
@media (max-width: 992px) {
  .article-content-wrapper {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .related-grid,
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-hero {
    padding: 6.5rem 0 2rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-body {
    padding: 2rem 0;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.35rem;
  }

  .article-content h3 {
    font-size: 1.15rem;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .related-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .article-cta-box h2 {
    font-size: 1.35rem;
  }

  .article-cta-buttons {
    flex-direction: column;
  }

  .article-cta-buttons .btn-primary,
  .article-cta-buttons .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .patients-cta {
    padding: 1.5rem;
    gap: 1rem;
  }
}

/* --- Homepage mobile polish --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-stat {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    padding-left: 0;
  }

  .hero-stat:first-child {
    border-top: none;
    padding-top: 0;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }

  .engagements-3cols {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .deroulement-timeline {
    grid-template-columns: 1fr !important;
  }

  .pourquoi-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .brands-grid {
    gap: 1.5rem;
  }

  .brand-item img {
    max-height: 40px;
  }

  .google-reviews-carousel {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .carousel-arrow {
    display: none;
  }

  .google-review-card {
    flex: 0 0 280px;
  }

  .contact-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-form-wrapper {
    padding: 2rem !important;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .tech-grid {
    grid-template-columns: 1fr !important;
  }

  .article-hero {
    padding: 6rem 0 1.5rem;
  }

  .article-title {
    font-size: 1.3rem;
  }
}