/* Styles pour le site Eugenia */

/* ========================================
   VARIABLES CSS - THÈME UNIFIÉ
   ======================================== */

/* Optimisations de performance globales */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

/* Variables CSS personnalisées - Thème unifié */
:root {
  /* Palette sobre et professionnelle */
  --bg: #ffffff; /* blanc */
  --surface: #ffffff;
  --surface-2: #f8f9fa; /* gris très clair */
  --text: #000000; /* noir */
  --muted: #666666; /* gris moyen */
  
  /* Accents sobres - Couleurs Eugenia */
  --accent-violet: #671324; /* bordeaux Eugenia */
  --accent-turquoise: #DBA12D; /* doré Eugenia */
  --accent-vert: #671324; /* bordeaux Eugenia */
  
  /* Accent gradient - Couleurs Eugenia */
  --accent-start: #671324; /* bordeaux */
  --accent-end: #DBA12D; /* doré */
  
  /* States */
  --success: #000000; /* noir */
  --warning: #333333; /* gris foncé */
  --danger: #000000; /* noir */
  
  /* Anciennes variables pour compatibilité */
  --page-bg: var(--bg);
  --text-color: var(--text);
  --accent-color: var(--accent-start);
  --border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   LOGOS SUR L'ARBRE
   ======================================== */

/* Logo principal centré - apparaît au début */
.logo-tree-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: fadeInLogoTree 1.5s ease forwards;
  animation-delay: 10s;
  opacity: 0;
  pointer-events: none;
}

.logo-tree-center img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  transition: all 0.5s ease;
}

/* Texte Eugenia Consulting - apparaît plus tôt avec effet de particules */
.eugenia-text-bottom {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: particleAssembly 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 10s;
  opacity: 0;
  pointer-events: none;
}

.eugenia-text-bottom img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  transition: all 0.5s ease;
}

/* Animations */
@keyframes fadeInLogoTree {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes particleAssembly {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(50px) scale(0.5) rotate(-5deg);
    filter: blur(10px) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
  }
  30% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(20px) scale(0.8) rotate(2deg);
    filter: blur(5px) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
  60% {
    opacity: 0.8;
    transform: translateX(-50%) translateY(-5px) scale(1.05) rotate(-1deg);
    filter: blur(2px) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
    filter: blur(0px) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-tree-center img {
    width: 300px;
  }
  
  .eugenia-text-bottom img {
    width: 320px;
  }
  
  .eugenia-text-bottom {
    bottom: 8%;
  }
}

/* Light mode fallback */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff; /* blanc */
    --surface: #ffffff;
    --surface-2: #f8f9fa; /* gris très clair */
    --text: #000000; /* noir */
    --muted: #666666; /* gris moyen */
  }
}

/* Grain discret global */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   COMPOSANTS DE BASE UNIFIÉS
   ======================================== */

/* Séparateurs fluides entre sections - supprimés pour fluidité totale */
.section-separator {
  display: none;
}

/* Typographie unifiée */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cartes par défaut */
.unified-card {
  background: linear-gradient(135deg, rgba(10, 21, 32, 0.95) 0%, rgba(92, 142, 149, 0.1) 50%, rgba(118, 198, 209, 0.1) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(118, 198, 209, 0.2);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-out;
}

.unified-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(107, 79, 163, 0.2);
  border-color: rgba(118, 198, 209, 0.4);
}

/* Boutons unifiés */
.unified-btn-primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.unified-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.unified-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease-out;
}

.unified-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero {
  position: relative;
  height: 100vh; /* hauteur pleine écran pour fluidité */
  overflow: hidden;
  z-index: 0;
  margin: 0;
  padding: 0;
  top: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* S'assurer que tous les éléments prennent toute la largeur */
* {
  box-sizing: border-box;
}

/* Optimisation générale des vidéos */
video {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Qualité vidéo optimisée */
video[data-quality="high"] {
  filter: brightness(1.1) contrast(1.1) saturate(1.15) hue-rotate(5deg);
}

/* Amélioration de la netteté */
video[data-sharpness="enhanced"] {
  filter: brightness(1.1) contrast(1.1) saturate(1.2) unsharp-mask(1px 1px 1.5px);
}


.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(1.15) contrast(1.05) saturate(1.1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* Animation de zoom continu vers l'arbre quand la vidéo se termine */
.video-bg.video-ended {
  animation: zoomToTree 20s ease-in-out infinite;
}

@keyframes zoomToTree {
  0% {
    transform: scale(1) translateZ(0);
  }
  50% {
    transform: scale(1.15) translateZ(0);
  }
  100% {
    transform: scale(1) translateZ(0);
  }
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 70%), rgba(0,0,0,0.25);
  pointer-events: none;
  z-index: 1;
}

/* Active le défilement: 1ère section (landing) = 100vh, 2ème section en dessous */
body { overflow: auto; }

/* Bouton menu en haut à gauche */
.menu-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  color: #000000 !important;
  border: none;
  border-radius: 10px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  backdrop-filter: none;
  z-index: 100000 !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: top 200ms ease, left 200ms ease, right 200ms ease;
}

/* Quand le menu est ouvert, cacher le bouton menu - seul le X reste visible */
.side-panel.open ~ .menu-btn,
.menu-open .menu-btn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.menu-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
}

/* Cache le texte quand le menu est ouvert */
.menu-btn[aria-expanded="true"] .label { display: none; }

/* Titre en haut (fin et plus grand) */
.logo-title {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #000000;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 10;
}

/* Punchline centrée vers le bas de la vidéo */
.punchline {
  position: absolute;
  left: 50%;
  bottom: 15vh; /* texte plus haut */
  transform: translateX(-50%) translateY(30px);
  width: min(92vw, 1100px);
  color: #000000;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 5;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Animation d'apparition quand visible */
.punchline.animate {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Panneau latéral blanc (2/5 = 40% de la largeur) */
.side-panel {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 40vw;
  max-width: 720px;
  height: calc(100vh - 24px);
  background: #f7f5f0; /* blanc cassé */
  color: #111111;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 20px 60px rgba(0,0,0,0.35);
  border-radius: 16px;
  transform: translateX(-100%) scale(0.95);
  opacity: 0;
  transition: all 400ms cubic-bezier(.2,.7,.2,1);
  z-index: 99999 !important;
  overflow: visible;
  pointer-events: none;
}

.side-panel.open {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.side-panel .panel-content {
  padding: 0;
  font-family: 'Inter', sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header du menu */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  gap: 12px;
  position: relative;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0;
  letter-spacing: 0.1em;
  transform: translateX(20px);
}

.header-icon {
  font-size: 20px;
  color: #666;
  flex-shrink: 0;
}

/* Navigation principale */
.main-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 60px 24px;
  overflow-y: auto;
}

.nav-category {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 350px;
  margin-bottom: 50px;
}

.nav-category:last-child {
  margin-bottom: 0;
}

.nav-item {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  position: relative;
  font-family: 'Playfair Display', serif;
  display: block;
  padding: 20px 0;
  cursor: pointer;
  margin-bottom: 15px;
}

.nav-item:hover {
  color: #000;
  transform: scale(1.02);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #111;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item:hover::after {
  width: 100%;
}

/* Sous-menus */
.submenu {
  position: static;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  padding: 15px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform: translateY(-10px);
}

.nav-category:hover .submenu,
.nav-category.active .submenu {
  opacity: 1;
  visibility: visible;
  max-height: 300px;
  transform: translateY(0);
}

.submenu-item {
  display: block;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  border-left: 3px solid transparent;
}

.submenu-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
  border-left-color: #111;
  transform: translateX(5px);
}

/* Footer du menu */
.menu-footer {
  display: flex;
  justify-content: space-around;
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-link {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #111;
}

/* Animations pour le nouveau menu */
.nav-category {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.side-panel.open .nav-category {
  animation: slideInUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.side-panel.open .nav-category:nth-child(1) { animation-delay: 0.1s; }
.side-panel.open .nav-category:nth-child(2) { animation-delay: 0.2s; }
.side-panel.open .nav-category:nth-child(3) { animation-delay: 0.3s; }

/* Responsive pour mobile */
@media (max-width: 768px) {
  .main-nav {
    padding: 40px 20px;
  }
  
  .nav-category {
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .nav-item {
    font-size: 20px;
    padding: 15px 0;
  }
  
  .submenu-item {
    padding: 8px 20px;
    font-size: 14px;
  }
}

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

/* Animation du header */
.menu-header {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.side-panel.open .menu-header {
  animation: fadeInDown 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: 0.05s;
}

/* Animation du footer */
.menu-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.side-panel.open .menu-footer {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: 0.7s;
}

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

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

/* Bouton de fermeture (X) */
.panel-close {
  position: relative;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 100001;
}

.panel-close:focus-visible {
  outline: 2px solid rgba(0,0,0,0.4);
  outline-offset: 2px;
}

.panel-close .x {
  position: relative;
  width: 100%;
  height: 100%;
  display: inline-block;
}

.panel-close .x::before,
.panel-close .x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #333;
  transform-origin: center;
}

.panel-close .x::before { transform: translate(-50%, -50%) rotate(45deg); }
.panel-close .x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Fond derrière (backdrop) */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
  z-index: 99998 !important;
  backdrop-filter: blur(2px);
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Section QSN (Qui Sommes Nous) */
.qsn-section {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  background: #f8f9fa;
  color: #000000;
  transform: translateY(100%);
  animation: slideUpFromBottom 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 4s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
}

/* Effet de particules animées en arrière-plan */
.qsn-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
  animation: backgroundParticles 20s ease-in-out infinite;
  pointer-events: none;
}

/* Animation des particules de fond */
@keyframes backgroundParticles {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.6;
    transform: scale(1.1) rotate(90deg);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.9) rotate(180deg);
  }
  75% {
    opacity: 0.7;
    transform: scale(1.05) rotate(270deg);
  }
}

/* Effet de grille géométrique */
.qsn-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(107, 79, 163, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 198, 209, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 15s linear infinite;
  pointer-events: none;
  opacity: 0.3;
}

/* Animation de la grille */
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.qsn-content {
  max-width: 1400px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(1px);
}

.qsn-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #000000;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 5s forwards;
  text-shadow: 0 4px 20px rgba(107, 79, 163, 0.3);
  position: relative;
}

/* Effet de brillance sur le titre */
.qsn-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(118, 198, 209, 0.3), transparent);
  animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.qsn-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 60px;
  color: #666666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 5.2s forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.qsn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  margin-top: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 5.3s forwards;
}

.qsn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 40px 20px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.card-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin: 0;
}

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

/* Deuxième section avec fond gris-bleu (couvre le fond de la première) */
.page-white {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  background: #2c3e50;
  color: #000000;
  transform: translateY(100%);
  animation: slideUpFromBottom 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 4s forwards;
}

@keyframes slideUpFromBottom {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Ruban d'images animé */
.image-ribbon-container {
  position: relative;
  overflow: hidden;
  margin: 60px 0;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 5.4s forwards;
  display: flex;
  justify-content: center;
}

.image-ribbon {
  display: flex;
  gap: 30px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  padding: 0 50px;
  justify-content: center;
  width: calc(500px * 3 + 30px * 2); /* Largeur pour afficher exactement 3 images */
}

.image-card {
  flex-shrink: 0;
  width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.image-card:hover {
  transform: scale(1.03);
}

.image-placeholder {
  width: 100%;
  height: 350px;
  border-radius: 20px 20px 0 0;
}

.image-text {
  background: white;
  color: #333;
  padding: 15px;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-radius: 0 0 20px 20px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Statistiques */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 5.6s forwards;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Pastille décorative */
.stat-item::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #000000;
  border-radius: 50%;
  margin: 12px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
  .image-ribbon-container {
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .image-card {
    width: 400px;
  }
  
  .image-placeholder {
    height: 280px;
  }
  
  .image-ribbon {
    gap: 20px;
    padding: 0 30px;
    width: calc(400px * 3 + 20px * 2);
  }
  
  .image-text {
    font-size: 12px;
    padding: 12px;
    min-height: 45px;
  }
  
  .stats-container {
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .stat-value {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .image-card {
    width: 320px;
  }
  
  .image-placeholder {
    height: 220px;
  }
  
  .image-ribbon {
    gap: 15px;
    padding: 0 20px;
    width: calc(320px * 3 + 15px * 2);
  }
  
  .image-text {
    font-size: 11px;
    padding: 10px;
    min-height: 40px;
  }
}

/* ========================================
   SECTION GALERIE INTERACTIVE
   ======================================== */

/* ========================================
   SECTION SERVICES SCROLL - ANIMATION PROGRESSIVE
   ======================================== */

/* Section Services avec animation de scroll */
.services-scroll-section {
  position: relative;
  background: #f1f3f4;
  min-height: auto;
  z-index: 10;
  overflow: hidden;
}

/* Effet de particules animées plus sophistiqué - désactivé pour les performances */
.services-scroll-section::before {
  display: none;
}

@keyframes particlesFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  25% { 
    transform: translateY(-20px) rotate(90deg) scale(1.1);
    opacity: 1;
  }
  50% { 
    transform: translateY(-40px) rotate(180deg) scale(0.9);
    opacity: 0.7;
  }
  75% { 
    transform: translateY(-20px) rotate(270deg) scale(1.05);
    opacity: 1;
  }
}

/* Header fixe */
.services-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(103, 19, 36, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0 30px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 85px;
}

.services-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
  margin-top: -5px;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.services-subtitle {
  font-family: 'Raleway', 'Helvetica Neue', sans-serif;
  font-size: clamp(0.8rem, 1.4vw, 1.1rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* Container pour le scroll interne */
.services-content {
  position: relative;
  padding: 3rem 0;
  z-index: 1;
  margin-top: 120px;
  overflow: hidden;
}

/* Animation de particules supprimée pour les performances */

/* Effet de vague animée plus subtile */
.services-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    transparent 0%, 
    rgba(118, 198, 209, 0.01) 25%, 
    transparent 50%, 
    rgba(107, 79, 163, 0.01) 75%, 
    transparent 100%);
  animation: waveFlow 15s linear infinite;
  z-index: -1;
}

@keyframes waveFlow {
  0% { transform: translateX(-100%) translateY(0px); }
  50% { transform: translateX(0%) translateY(-5px); }
  100% { transform: translateX(100%) translateY(0px); }
}

/* Éléments de service individuels - Layout normal avec espaces */
.service-scroll-item {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 5%;
  margin-bottom: 0;
  opacity: 0.3;
  transform: translateY(100px) scale(0.9);
  transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
  perspective: 1000px;
}

/* Animation d'entrée spectaculaire */
.service-scroll-item.entering {
  opacity: 0;
  transform: translateY(200px) rotateX(45deg) scale(0.8);
  filter: blur(10px);
}

.service-scroll-item.entered {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
  filter: blur(0px);
  transition: all 0.3s ease;
  will-change: auto;
}

.service-scroll-item.active {
  opacity: 1;
  transform: translateY(0);
}

.service-scroll-item.fade-out {
  opacity: 0.3;
  transform: translateY(-20px);
}

/* Layout alternant pour les cadres */
.service-scroll-item:nth-child(odd) {
  flex-direction: row;
}

.service-scroll-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* Container de la carte avec effets 3D avancés */
.service-card-container {
  flex: 0 0 600px;
  height: 600px;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  perspective: 1000px;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
}

/* Effet de survol - carte qui s'approche */

.service-card-container:hover {
  transform: translateZ(50px) scale(1.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Animation de pulsation supprimée pour les performances */

.service-scroll-item:nth-child(odd) .service-card-container {
  margin-right: 0;
  margin-left: 0;
}

.service-scroll-item:nth-child(even) .service-card-container {
  margin-left: 0;
  margin-right: 0;
}

/* Cartes avec animations impressionnantes */
.service-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  transform: scale(1) rotateY(0deg);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: auto;
  transform-style: preserve-3d;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Effet de brillance supprimé */

/* Animation de flottement supprimée pour simplicité */

/* Animation de flottement supprimée - remplacée par cardFloat améliorée */

.service-scroll-item.active .service-card {
  transform: scale(1.05);
  animation: none;
}

/* Animation de pulsation pour les cartes actives */
@keyframes cardActivePulse {
  0%, 100% {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}

.service-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(1.2) contrast(1.05) saturate(1.1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform;
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}


.service-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 50px;
  color: #000000;
}

.service-tag {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: absolute;
  top: 20px;
  left: 30px;
}

.service-name {
  font-family: 'Allura', cursive;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 400;
  color: #000000;
  margin: 0;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 20px;
  animation: textGlow 4s ease-in-out infinite;
}

/* Animation de brillance pour le texte */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
                 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 40px rgba(107, 79, 163, 0.2);
  }
}

/* Texte à côté de la carte - optimisé */
.service-text {
  flex: 0 0 700px;
  max-width: 700px;
  padding: 4rem 3rem;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
  will-change: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  margin: 0;
}

.service-scroll-item:nth-child(1) .service-text,
.service-scroll-item:nth-child(3) .service-text {
  padding: 4rem 3rem;
  margin: 0 0 0 0;
}

.service-scroll-item:nth-child(2) .service-text,
.service-scroll-item:nth-child(4) .service-text {
  padding: 4rem 3rem;
  margin: 0 0 0 0;
  transform: translateX(0);
}

.service-scroll-item.active .service-text {
  opacity: 1;
  transform: translateX(0);
}

.service-text-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: #000000;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
  text-shadow: none;
  animation: titleFloat 3s ease-in-out infinite;
  transform: translateY(0);
  transition: all 0.3s ease;
  line-height: 1.3;
  min-height: 120px;
  display: block;
  text-align: left;
  width: 100%;
}

/* Titres centrés pour services 1, 2 et 3 */
.service-scroll-item:nth-child(1) .service-text-title,
.service-scroll-item:nth-child(2) .service-text-title,
.service-scroll-item:nth-child(3) .service-text-title {
  text-align: center;
}

/* Décalage léger pour le 4ème service pour éviter le débordement */
.service-scroll-item:nth-child(4) .service-text-title {
  text-align: center;
  margin-left: -40px;
}

/* Titre plus petit pour les éléments pairs (droite) */
.service-scroll-item:nth-child(even) .service-text-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
}

/* Animation de flottement pour les titres */
@keyframes titleFloat {
  0%, 100% { 
    transform: translateY(0) scale(1);
  }
  50% { 
    transform: translateY(-3px) scale(1.01);
  }
}

/* Animation de vague pour les titres */
@keyframes titleWave {
  0%, 100% {
    transform: translateY(0px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: translateY(-3px);
    text-shadow: 0 4px 8px rgba(219, 161, 45, 0.2),
                 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

.service-text-description {
  font-family: 'Raleway', 'Helvetica Neue', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: #000000;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 100%;
  min-height: 150px;
  display: block;
  font-weight: 400;
  text-align: center;
  width: 100%;
}

.service-btn {
  background: #671324;
  color: #ffffff;
  border: 1px solid #671324;
  border-radius: 50px;
  align-self: flex-start;
  padding: 20px 50px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: buttonFloat 4s ease-in-out infinite;
  align-self: center;
}

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

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

.service-btn:hover {
  background: #DBA12D;
  border-color: #DBA12D;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(103, 19, 36, 0.4);
}

/* Animation de flottement pour les boutons */
@keyframes buttonFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
}

/* Animation de pulsation pour les boutons - optimisée */
@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
  }
}

/* Optimisations de performance pour les animations */
.service-scroll-item,
.service-card,
.service-text,
.service-text-title,
.service-text-description,
.service-btn {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: auto;
}

/* Particules flottantes autour des cartes */
.service-card::before {
  display: none;
}

@keyframes particlesFloat {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.6;
    transform: scale(1.1) rotate(90deg);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.9) rotate(180deg);
  }
  75% {
    opacity: 0.7;
    transform: scale(1.05) rotate(270deg);
  }
}

/* Grain subtil sur le fond noir */
.services-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.services-premium-content {
  max-width: 2400px;
  margin: 0 auto;
  padding: 0 100px;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Header de la section */
.services-premium-header {
  margin-bottom: 80px;
}

.services-premium-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: #000000;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.services-premium-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.6;
}

/* Grille des services - 2 colonnes très larges sur desktop */
.services-premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
  margin-top: 60px;
  max-width: 2200px;
  margin-left: auto;
  margin-right: auto;
}

/* Cartes de service immersives */
.service-premium-card {
  position: relative;
  aspect-ratio: 1;
  min-height: 500px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: #000000;
}

.service-premium-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(118, 198, 209, 0.15);
}

/* Arrière-plan de la carte */
.service-premium-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-premium-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-premium-card:hover .service-premium-image {
  transform: scale(1.1);
}

/* Vidéo dans les cartes de service */
.service-premium-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: brightness(1.3) contrast(1.1) saturate(1.2);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.service-premium-card:hover .service-premium-video {
  transform: scale(1.1);
}

/* Overlay sombre pour la lisibilité */
.service-premium-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  transition: background 0.3s ease;
}

.service-premium-card:hover .service-premium-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* Contenu de la carte */
.service-premium-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 50px;
  color: #000000;
}

/* Tag d'accroche en haut */
.service-premium-tag {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: auto;
  align-self: flex-start;
  position: absolute;
  top: 20px;
  left: 30px;
}

/* Nom du service - masqué */
.service-premium-name {
  display: none;
}

.service-premium-card:hover .service-premium-name {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Bouton "En savoir plus" */
.service-premium-btn {
  background: transparent;
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 10px 28px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: auto;
  backdrop-filter: blur(10px);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.service-premium-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%) translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services-premium-content {
    padding: 0 60px;
  }
  
  .services-premium-grid {
    gap: 60px;
    max-width: 1800px;
  }
  
  .service-premium-card {
    min-height: 450px;
  }
  
  .service-premium-content {
    padding: 35px 45px;
  }
}

@media (max-width: 768px) {
  .services-premium {
    padding: 80px 0;
  }
  
  .services-premium-content {
    padding: 0 20px;
  }
  
  .services-premium-header {
    margin-bottom: 60px;
  }
  
  /* 1 colonne sur mobile */
  .services-premium-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
  }
  
  .service-premium-card {
    min-height: 400px;
  }
  
  .service-premium-content {
    padding: 30px 35px;
  }
  
  .service-premium-name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}

@media (max-width: 480px) {
  .services-premium {
    padding: 60px 0;
  }
  
  .services-premium-content {
    padding: 0 16px;
  }
  
  .service-premium-card {
    min-height: 350px;
  }
  
  .service-premium-content {
    padding: 25px 30px;
  }
  
  .service-premium-tag {
    font-size: 12px;
  }
  
  .service-premium-btn {
    padding: 10px 24px;
    font-size: 12px;
  }
}


/* Section galerie */
.gallery-section {
  position: relative;
  min-height: 100vh;
  padding: 80px 0 60px 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

/* Image de fond avec flou ULTRA agressif */
.gallery-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background-image: url('assets/amphi vide.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.9);
  -webkit-filter: blur(2px) brightness(0.9);
  transform: scale(1.3);
  z-index: 0;
}

/* Overlay sombre pour la lisibilité */
.gallery-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Titre de la section */
.gallery-title {
  text-align: center;
  color: #ffffff;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 40px 0 30px 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .gallery-title {
    font-size: 3rem;
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .gallery-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }
}

/* Container de la galerie */
.gallery-container {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: visible;
  margin-top: -40px;
  z-index: 10;
}

/* Container des images */
.gallery-images {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 100px;
  padding: 0 100px;
  transition: transform 300ms ease-out;
  justify-content: flex-start;
  width: max-content;
}

/* Items de la galerie */
.gallery-item {
  flex: 0 0 500px;
  height: 350px;
  border-radius: 20px;
  overflow: visible;
  transition: all 300ms ease-out;
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform-origin: center;
  display: block;
  filter: brightness(1.2);
  position: relative;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: #DBA12D;
  border-radius: 20px;
  z-index: -1;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item.active {
  transform: scale(1.05);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  filter: brightness(1.3);
}

.gallery-item:hover {
  filter: brightness(1.2);
  opacity: 1;
  box-shadow: none;
  border-color: rgba(118, 198, 209, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Textes sous les images */
.gallery-text {
  position: absolute;
  top: 360px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  padding: 8px 20px;
  opacity: 0;
  transition: opacity 300ms ease-out;
  z-index: 20;
  margin: 0 10px;
  width: calc(100% - 20px);
}

.gallery-item.active .gallery-text,
.gallery-item:hover .gallery-text {
  opacity: 1;
}

.gallery-text h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-text p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* Boutons de navigation */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: linear-gradient(135deg, rgba(26, 42, 58, 0.95) 0%, rgba(107, 79, 163, 0.2) 50%, rgba(118, 198, 209, 0.2) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(118, 198, 209, 0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.nav-btn:hover {
  background: rgba(118, 198, 209, 0.3);
  border-color: rgba(107, 79, 163, 0.4);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.nav-btn-prev {
  left: 20px;
}

.nav-btn-next {
  right: 20px;
}

.nav-btn svg {
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-container {
    height: 400px;
  }
  
  .gallery-item {
    height: 250px;
    flex: 0 0 450px;
  }
  
  .gallery-images {
    padding: 0 80px;
    gap: 60px;
  }
  
  .nav-btn {
    width: 50px;
    height: 50px;
  }
  
  .nav-btn-prev {
    left: 15px;
  }
  
  .nav-btn-next {
    right: 15px;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    height: 350px;
  }
  
  .gallery-item {
    height: 200px;
    flex: 0 0 350px;
  }
  
  .gallery-images {
    padding: 0 60px;
    gap: 40px;
  }
  
  .nav-btn {
    width: 45px;
    height: 45px;
  }
  
  .nav-btn-prev {
    left: 10px;
  }
  
  .nav-btn-next {
    right: 10px;
  }
}

/* ========================================
   SECTION TÉMOIGNAGES
   ======================================== */

/* Section principale */
.boards-testimonials-section {
  background: linear-gradient(180deg, #3a4a5a 0%, #2a3a4a 50%, #3a4a5a 100%);
  min-height: 100vh;
  position: relative;
  padding: 120px 0;
  margin: 0;
}

/* Container des boards */
.boards-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 350px 24px 80px 24px;
  z-index: 10;
}

/* Ruban d'images en arrière-plan */
.ribbon-background {
  position: absolute;
  top: 150px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.infinite-ribbon {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.ribbon-card {
  position: absolute;
  width: 220px;
  height: 220px;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.ribbon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Masque de fade pour les bords */
.ribbon-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Grille des boards */
.boards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .boards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* Cartes board */
.board-card {
  position: relative;
  border-radius: 32px;
  padding: 32px;
  height: 320px;
  min-height: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Contenu des boards */
.board-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.board-title-small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Inter', system-ui, sans-serif;
}

.board-title-bold {
  color: white;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  font-family: 'Inter', system-ui, sans-serif;
}

@media (min-width: 640px) {
  .board-title-bold {
    font-size: 36px;
  }
}

.board-ideas-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
}


/* Overlay subtil */
.board-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

/* ===== SECTION CONTACT ===== */

/* Section Contact */
.contact-section {
  background: #671324;
  min-height: 100vh;
  position: relative;
  padding: 20px 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
}

/* Wrapper professionnel */
.contact-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 60px;
  align-items: start;
  width: 100%;
  padding-top: 60px;
}

/* Partie gauche - Logo et infos */
.contact-left {
  position: relative;
  order: 1;
  display: block !important;
  width: 100%;
}

.contact-logo-container {
  margin-bottom: 10px;
}

.contact-logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.15));
}

.contact-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #DBA12D;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.contact-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 12px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.info-value:hover {
  color: #DBA12D;
  text-decoration: underline;
}

/* Partie droite - Formulaire */
.contact-right {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  order: 2;
  display: block !important;
  width: 100%;
}

.contact-form-pro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group-pro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-pro.full-width {
  grid-column: 1 / -1;
}

.form-group-pro label {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
  letter-spacing: 0.02em;
}

.form-group-pro input,
.form-group-pro textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  color: #000000;
  transition: all 0.3s ease;
}

.form-group-pro input:focus,
.form-group-pro textarea:focus {
  outline: none;
  border-color: #DBA12D;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(219, 161, 45, 0.1);
}

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

.contact-btn-pro {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 40px;
  background: #DBA12D;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 15px rgba(219, 161, 45, 0.3);
  width: 100%;
}

.contact-btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(219, 161, 45, 0.5);
  background: #c99128;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 60px;
  }
  
  .contact-left {
    position: relative;
    top: 0;
  }
  
  .contact-right {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-wrapper {
    padding: 0 20px;
  }
  
  .contact-logo {
    width: 150px;
  }
  
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-description {
    font-size: 1rem;
  }
  
  .contact-right {
    padding: 30px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Header de contact */
.contact-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 20px 0 15px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 400;
  color: #DBA12D;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #666666;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.5;
}

/* Contenu de contact */
.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Informations de contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(118, 198, 209, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(118, 198, 209, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(107, 79, 163, 0.2), rgba(118, 198, 209, 0.15));
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, rgba(107, 79, 163, 0.3), rgba(118, 198, 209, 0.25));
}

.contact-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #000000;
  margin: 0 0 6px 0;
}

.contact-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #666666;
  margin: 0;
  line-height: 1.4;
}

/* Formulaire de contact */
.contact-form {
  background: rgba(255, 255, 255, 0.06);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(118, 198, 209, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form:hover {
  border-color: rgba(118, 198, 209, 0.3);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(118, 198, 209, 0.3);
  border-radius: 10px;
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666666;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(118, 198, 209, 0.6);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(118, 198, 209, 0.1);
}

.contact-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(107, 79, 163, 0.8), rgba(118, 198, 209, 0.6));
  color: #000000;
  border: 1px solid rgba(118, 198, 209, 0.4);
  border-radius: 10px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-btn:hover {
  background: linear-gradient(135deg, rgba(107, 79, 163, 0.9), rgba(118, 198, 209, 0.7));
  border-color: rgba(118, 198, 209, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 79, 163, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 15px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  
  .contact-form {
    padding: 20px 15px;
  }
}

/* Grille des témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* Items de témoignage */
.testimonial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* Avatar */
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nom */
.testimonial-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Compteur d'idées */
.testimonial-ideas {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

/* Citation */
.testimonial-quote {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  max-width: 70ch;
  text-align: center;
}

/* Responsive pour les boards */
@media (max-width: 768px) {
  .boards-container {
    padding: 250px 16px 60px 16px;
  }
  
  .ribbon-background {
    top: 100px;
  }
  
  .board-card {
    height: 280px;
    padding: 24px;
  }
  
  .board-title-bold {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .boards-container {
    padding: 200px 16px 40px 16px;
  }
  
  .ribbon-background {
    top: 80px;
  }
  
  .board-card {
    height: 260px;
    padding: 20px;
  }
  
  .board-title-bold {
    font-size: 24px;
  }
}

/* Responsive pour les témoignages */
@media (max-width: 768px) {
  .testimonials-container {
    padding: 150px 16px 60px 16px;
  }
  
  .testimonials-grid {
    gap: 40px;
  }
  
  .testimonial-avatar {
    width: 56px;
    height: 56px;
  }
  
  .testimonial-name {
    font-size: 16px;
  }
  
  .testimonial-quote {
    font-size: 13px;
  }
}

/* Optimisations de performance */
.ribbon-card,
.testimonial-avatar img {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Focus visible pour l'accessibilité */
.board-card:focus-visible,
.testimonial-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Réduction des animations pour les utilisateurs qui préfèrent */
@media (prefers-reduced-motion: reduce) {
  .ribbon-card {
    transition: none;
  }
  
  .boards-testimonials-section * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== STYLES POUR LA SECTION "QUI SOMMES NOUS" SUR LA PAGE D'ACCUEIL ===== */

/* Fond magnifique pour AboutUsSlide */
section[class*="py-24"] {
  position: relative;
  background: linear-gradient(135deg, 
    #0A1520 0%, 
    #1a1f2e 25%, 
    #2d1b69 50%, 
    #1a1f2e 75%, 
    #0A1520 100%) !important;
  color: #E8ECF1 !important;
  overflow: hidden;
}

/* Effet de particules animées pour AboutUsSlide */
section[class*="py-24"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(107, 79, 163, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(118, 198, 209, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 35% 65%, rgba(107, 79, 163, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 65% 35%, rgba(118, 198, 209, 0.12) 0%, transparent 50%);
  animation: aboutUsParticles 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Animation des particules pour AboutUsSlide */
@keyframes aboutUsParticles {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1) rotate(0deg);
  }
  25% {
    opacity: 0.7;
    transform: scale(1.15) rotate(90deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95) rotate(180deg);
  }
  75% {
    opacity: 0.8;
    transform: scale(1.08) rotate(270deg);
  }
}

/* Effet de grille géométrique pour AboutUsSlide */
section[class*="py-24"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(107, 79, 163, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 198, 209, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: aboutUsGridMove 20s linear infinite;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
}

/* Animation de la grille pour AboutUsSlide */
@keyframes aboutUsGridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

/* Styles pour le contenu de AboutUsSlide */
section[class*="py-24"] h2 {
  color: #E8ECF1 !important;
  text-shadow: 0 4px 20px rgba(107, 79, 163, 0.3) !important;
  position: relative;
}

/* Effet de brillance sur le titre */
section[class*="py-24"] h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(118, 198, 209, 0.3), transparent);
  animation: aboutUsTitleShimmer 4s ease-in-out infinite;
}

@keyframes aboutUsTitleShimmer {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

/* Styles pour le sous-titre */
section[class*="py-24"] p {
  color: #A7B2C0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Z-index pour le contenu */
section[class*="py-24"] > div {
  position: relative;
  z-index: 10;
}

/* ========================================
   RESPONSIVE - SECTION SERVICES INDEX.HTML
   ======================================== */

/* MOBILE FIRST - Petits écrans jusqu'à 1024px */
@media (max-width: 1024px) {
  /* Service scroll items - Passage en colonne */
  .service-scroll-item {
    height: auto !important;
    min-height: auto !important;
    flex-direction: column !important;
    padding: 40px 20px !important;
    gap: 30px !important;
    margin-bottom: 20px !important;
  }
  
  .service-scroll-item:nth-child(odd),
  .service-scroll-item:nth-child(even) {
    flex-direction: column !important;
  }
  
  /* Cartes responsive */
  .service-card-container {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 350px !important;
    margin: 0 auto !important;
  }
  
  /* Textes responsive */
  .service-text {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    align-items: center !important;
  }
  
  .service-scroll-item:nth-child(1) .service-text,
  .service-scroll-item:nth-child(2) .service-text,
  .service-scroll-item:nth-child(3) .service-text,
  .service-scroll-item:nth-child(4) .service-text {
    padding: 0 !important;
    text-align: center !important;
    align-items: center !important;
  }
  
  /* Titres responsive */
  .service-text-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    min-height: auto !important;
    width: 100% !important;
  }
  
  .service-scroll-item:nth-child(1) .service-text-title,
  .service-scroll-item:nth-child(2) .service-text-title,
  .service-scroll-item:nth-child(3) .service-text-title,
  .service-scroll-item:nth-child(4) .service-text-title {
    text-align: center !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    transform: none !important;
  }
  
  /* Descriptions responsive */
  .service-text-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
    line-height: 1.6 !important;
  }
  
  /* Boutons responsive */
  .service-btn {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    align-self: center !important;
  }
  
  /* Services content */
  .services-content {
    padding: 20px 0 !important;
    margin-top: 80px !important;
  }
  
  /* Formation title - supprimer les décalages */
  .formation-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
    transform: none !important;
  }
}

/* TABLETTE - 768px à 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .service-scroll-item {
    padding: 50px 40px !important;
  }
  
  .service-card-container {
    height: 400px !important;
  }
  
  .service-text-title {
    font-size: clamp(2rem, 4vw, 2.8rem) !important;
  }
  
  .service-text-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
    max-width: 700px !important;
  }
}

/* PETITS MOBILES - Jusqu'à 480px */
@media (max-width: 480px) {
  .service-scroll-item {
    padding: 30px 15px !important;
    gap: 25px !important;
  }
  
  .service-card-container {
    height: 280px !important;
  }
  
  .service-text-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 12px !important;
  }
  
  .service-text-description {
    font-size: clamp(0.95rem, 3vw, 1.1rem) !important;
    margin-bottom: 18px !important;
  }
  
  .service-btn {
    padding: 12px 28px !important;
    font-size: 14px !important;
  }
  
  .services-header {
    padding: 12px 15px !important;
  }
  
  .services-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
  
  .services-subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1rem) !important;
  }
}

/* ========================================
   RESPONSIVE - GALERIE ET CONTACT
   ======================================== */

/* Galerie responsive - Garder le style desktop partout */
@media (max-width: 768px) {
  .gallery-section {
    padding: 40px 15px !important;
  }
  
  .gallery-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    margin-bottom: 30px !important;
  }
  
  .gallery-container {
    height: 400px !important;
  }
  
  .gallery-item {
    height: 250px !important;
    flex: 0 0 450px !important;
  }
  
  .gallery-images {
    padding: 0 80px !important;
    gap: 60px !important;
  }
  
  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  .gallery-text {
    position: absolute !important;
    top: 260px !important;
    opacity: 0 !important;
  }
  
  .gallery-item.active .gallery-text {
    opacity: 1 !important;
  }
  
  .nav-btn {
    width: 40px !important;
    height: 40px !important;
  }
  
  .nav-btn-prev {
    left: 10px !important;
  }
  
  .nav-btn-next {
    right: 10px !important;
  }
}

/* Contact responsive */
@media (max-width: 1024px) {
  .contact-section {
    padding: 50px 20px !important;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .contact-left {
    text-align: center !important;
  }
  
  .contact-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
  }
  
  .contact-description {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem) !important;
  }
  
  .contact-info-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  
  .form-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .form-group-pro {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .contact-btn-pro {
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .contact-wrapper {
    gap: 60px !important;
  }
  
  .contact-left {
    text-align: left !important;
  }
  
  .contact-info-item {
    flex-direction: row !important;
    text-align: left !important;
  }
  
  .form-row {
    flex-direction: row !important;
    gap: 20px !important;
  }
}

/* ========================================
   RESPONSIVE - PAGE AUTOMATISATION & AGENTS IA
   ======================================== */

/* Video Header */
@media (max-width: 768px) {
  .video-header {
    height: 60vh !important;
    min-height: 400px !important;
  }
  
  .page-title-video {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    margin-bottom: 20px !important;
  }
  
  .header-content {
    padding: 0 20px !important;
  }
  
  .header-content p,
  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem) !important;
  }
  
  .hero-cta-btn {
    padding: 14px 32px !important;
    font-size: 0.95rem !important;
  }
  
  .center-logo {
    width: 130px !important;
  }
}

/* Intro Section */
@media (max-width: 1024px) {
  .intro-section {
    padding: 60px 20px !important;
  }
  
  .intro-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 0 !important;
  }
  
  .section-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
  }
  
  .section-description {
    font-size: clamp(1rem, 2.5vw, 1.15rem) !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .stat-card {
    padding: 30px 20px !important;
  }
  
  .stat-number {
    font-size: clamp(2.5rem, 6vw, 3.5rem) !important;
  }
  
  .stat-label {
    font-size: clamp(0.85rem, 2vw, 0.9rem) !important;
  }
}

/* Demo Video Section */
@media (max-width: 1024px) {
  .demo-video-section {
    padding: 60px 20px !important;
  }
  
  .demo-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .demo-video-section.reverse .demo-container {
    grid-template-columns: 1fr !important;
  }
  
  .video-demo-container {
    order: 2 !important;
  }
  
  .demo-text {
    order: 1 !important;
  }
  
  .demo-video-section.reverse .video-demo-container {
    order: 2 !important;
  }
  
  .demo-video-section.reverse .demo-text {
    order: 1 !important;
  }
}

/* Portfolio Grid */
@media (max-width: 1024px) {
  .portfolio-section {
    padding: 60px 20px !important;
  }
  
  .portfolio-header {
    margin-bottom: 40px !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 30px !important;
    padding: 0 !important;
  }
  
  .portfolio-item:nth-child(1),
  .portfolio-item:nth-child(2),
  .portfolio-item:nth-child(3),
  .portfolio-item:nth-child(4) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  
  .portfolio-image {
    min-height: 300px !important;
  }
  
  .portfolio-overlay h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
  }
  
  .portfolio-overlay p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem) !important;
  }
}

/* Services Detail Grid */
@media (max-width: 1024px) {
  .services-detail-section {
    padding: 60px 20px !important;
  }
  
  .services-detail-header {
    margin-bottom: 40px !important;
  }
  
  .services-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  
  .service-detail-card {
    padding: 35px 25px !important;
  }
  
  .service-detail-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  }
  
  .service-detail-card p {
    font-size: clamp(0.9rem, 2vw, 0.98rem) !important;
  }
}

/* Process Timeline - Styles de base pour tous les écrans - Centrage parfait */
.step-number {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 auto 20px auto !important;
  text-indent: 0 !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

/* Correction du centrage vertical pour Playfair Display - Remonter les chiffres */
.step-number {
  padding-top: 0 !important;
  transform: translateY(-8px) !important;
}

.step-number::before {
  display: none !important;
}

/* Process Timeline - Tablette (garder layout desktop) */
@media (min-width: 769px) and (max-width: 1024px) {
  .process-section {
    padding: 80px 30px !important;
  }
  
  .process-timeline {
    flex-direction: row !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    align-items: flex-start !important;
  }
  
  .process-timeline::before {
    display: block !important;
    top: 50px !important;
    left: 8% !important;
    right: 8% !important;
  }
  
  .process-step {
    flex: 1 !important;
    text-align: center !important;
    position: relative !important;
  }
  
  .step-number {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
    margin: 0 auto 20px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #671324 !important;
    color: white !important;
    border-radius: 50% !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(103, 19, 36, 0.3) !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1 !important;
    text-align: center !important;
    padding: 0 !important;
    padding-top: 0 !important;
    transform: translateY(-8px) !important;
    box-sizing: border-box !important;
    text-indent: 0 !important;
    letter-spacing: 0 !important;
  }
  
  .process-step h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
    margin-bottom: 12px !important;
  }
  
  .process-step p {
    font-size: clamp(0.85rem, 2vw, 0.95rem) !important;
    line-height: 1.6 !important;
  }
}

/* Process Timeline - Mobile */
@media (max-width: 768px) {
  .process-section {
    padding: 60px 20px !important;
  }
  
  .process-header {
    margin-bottom: 50px !important;
  }
  
  .process-timeline {
    flex-direction: column !important;
    gap: 40px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .process-timeline::before {
    display: none !important;
  }
  
  .process-step {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto !important;
    text-align: center !important;
    position: relative !important;
  }
  
  .step-number {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
    margin: 0 auto 20px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #671324 !important;
    color: white !important;
    border-radius: 50% !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(103, 19, 36, 0.3) !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1 !important;
    text-align: center !important;
    padding: 0 !important;
    padding-top: 0 !important;
    transform: translateY(-8px) !important;
    box-sizing: border-box !important;
    text-indent: 0 !important;
    letter-spacing: 0 !important;
  }
  
  .process-step h3 {
    font-size: clamp(1.1rem, 3vw, 1.2rem) !important;
    margin-bottom: 12px !important;
  }
  
  .process-step p {
    font-size: clamp(0.9rem, 2vw, 0.95rem) !important;
    line-height: 1.6 !important;
  }
}

/* Final CTA Section */
@media (max-width: 768px) {
  .final-cta-section {
    padding: 80px 20px !important;
  }
  
  .final-cta-content h2 {
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
    margin-bottom: 20px !important;
  }
  
  .final-cta-content p {
    font-size: clamp(1.1rem, 3vw, 1.4rem) !important;
    margin-bottom: 35px !important;
  }
  
  .cta-button-large {
    padding: 18px 40px !important;
    font-size: 1rem !important;
  }
}

/* Sections communes */
@media (max-width: 768px) {
  .section-label {
    padding: 6px 16px !important;
    font-size: 0.75rem !important;
  }
  
  .container {
    padding: 50px 20px !important;
  }
  
  .content-section {
    padding: 30px 20px !important;
  }
  
  .content-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
  }
  
  .content-section p {
    font-size: clamp(1rem, 2.5vw, 1.1rem) !important;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .video-header {
    height: 50vh !important;
    min-height: 350px !important;
  }
  
  .page-title-video {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }
  
  .intro-section,
  .demo-video-section,
  .portfolio-section,
  .services-detail-section,
  .process-section {
    padding: 40px 15px !important;
  }
  
  .stat-card {
    padding: 25px 18px !important;
  }
  
  .service-detail-card {
    padding: 30px 20px !important;
  }
  
  .portfolio-image {
    min-height: 250px !important;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }
}

/* ========================================
   RESPONSIVE - PAGE VALEURS & VISION - SECTION NOS VALEURS
   ======================================== */

/* Section Nos Valeurs - Base responsive */
@media (max-width: 1024px) {
  .values-timeline {
    padding: 0 !important;
  }
  
  .value-item {
    flex-direction: column !important;
    margin-bottom: 60px !important;
    min-height: auto !important;
    gap: 30px !important;
  }
  
  .value-item:nth-child(odd),
  .value-item:nth-child(even) {
    flex-direction: column !important;
  }
  
  .value-content {
    flex: 1 1 auto !important;
    padding: 30px 20px !important;
    width: 100% !important;
    order: 2 !important;
    text-align: center !important;
  }
  
  .value-visual {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    margin-bottom: 0 !important;
    order: 1 !important;
  }
  
  .value-content .text-6xl {
    font-size: clamp(3rem, 8vw, 4.5rem) !important;
  }
  
  .value-content .text-4xl {
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
  }
  
  .value-content .text-xl {
    font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
  }
  
  .hexagon-card {
    width: 100% !important;
    height: 100% !important;
  }
  
  .hexagon-content {
    padding: 30px !important;
  }
  
  .hexagon-content .text-5xl {
    font-size: clamp(3rem, 8vw, 4rem) !important;
  }
  
  .values-header h2 {
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
  }
  
  .values-header p {
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
    padding: 0 20px !important;
  }
}

/* Mobile - Petits écrans */
@media (max-width: 768px) {
  .value-item {
    margin-bottom: 50px !important;
    gap: 25px !important;
  }
  
  .value-content {
    padding: 25px 15px !important;
  }
  
  .value-visual {
    height: 250px !important;
    min-height: 250px !important;
  }
  
  .hexagon-content {
    padding: 20px !important;
  }
  
  .values-header {
    margin-bottom: 40px !important;
    padding: 0 15px !important;
  }
  
  .values-header h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    margin-bottom: 20px !important;
  }
  
  .values-header p {
    font-size: clamp(0.95rem, 3vw, 1.1rem) !important;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .value-item {
    margin-bottom: 40px !important;
    gap: 20px !important;
  }
  
  .value-content {
    padding: 20px 12px !important;
  }
  
  .value-visual {
    height: 220px !important;
    min-height: 220px !important;
  }
  
  .hexagon-content {
    padding: 15px !important;
  }
  
  .value-content .text-6xl {
    font-size: clamp(2.5rem, 9vw, 3.5rem) !important;
    margin-bottom: 10px !important;
  }
  
  .value-content .text-4xl {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 15px !important;
  }
  
  .value-content .text-xl {
    font-size: clamp(0.95rem, 3vw, 1.1rem) !important;
    line-height: 1.7 !important;
  }
}