/* Fonts Lato locaux */
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

/* Color Variables */
:root {
  /* Core Palette */
  --primary-navy: #2C4766;
  --dark-slate: #242F3C;
  --light-blue: #8FA3BB;
  --light-ice-blue: #DFEAF4;
  --white: #FFFFFF;
  --black: #000000;
  --maritime-blue: #1B3B5C;
  --ocean-foam: #B8D4E3;

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--maritime-blue) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(143, 163, 187, 0.15), transparent 70%);

  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px rgba(44, 71, 102, 0.05);
  --shadow-md: 0 10px 30px rgba(44, 71, 102, 0.1);
  --shadow-lg: 0 20px 50px rgba(44, 71, 102, 0.15);
  --shadow-glow: 0 0 20px rgba(143, 163, 187, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-blur: blur(12px);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--dark-slate);
  overflow-x: hidden;
  background-color: var(--light-ice-blue);
  /* Subtle background tint */
}

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

/* Utility Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

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

.stagger-delay-1 {
  animation-delay: 0.1s;
}

.stagger-delay-2 {
  animation-delay: 0.2s;
}

.stagger-delay-3 {
  animation-delay: 0.3s;
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

header::after {
  display: none;
  /* Removing the old bottom border effect for a cleaner glass look */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  width: 100%;
}

.logo img {
  height: 50px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

/* Old nav styles removed to prevent conflicts */

nav a:hover {
  color: var(--maritime-blue);
}

/* Menu Hamburger Amélioré */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(44, 71, 102, 0.1);
  transform: scale(1.05);
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--primary-navy);
  margin: 4px 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 3px;
  position: relative;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--maritime-blue);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--maritime-blue);
}

.mobile-social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.mobile-social-icons a {
  color: var(--white);
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.mobile-social-icons a:hover {
  transform: scale(1.1);
  color: var(--maritime-blue);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(223, 234, 244, 0.98);
  /* Fond clair ice blue */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  width: 100%;
  margin-bottom: auto;
  /* Push content above up */
}

.mobile-nav-links li {
  margin-bottom: 25px;
  overflow: hidden;
}

.mobile-link {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  /* Texte sombre sur fond clair */
  text-decoration: none;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
}

.mobile-menu-overlay.active .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger Delays for Menu Items */
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) .mobile-link {
  transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) .mobile-link {
  transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) .mobile-link {
  transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) .mobile-link {
  transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-cta-btn {
  transition-delay: 0.5s;
}

.mobile-link:hover {
  color: var(--maritime-blue);
  /* Bleu plus foncé au hover */
  transform: scale(1.1) !important;
}

.mobile-cta-btn {
  background: linear-gradient(135deg, var(--white), var(--light-ice-blue));
  color: var(--primary-navy);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active .mobile-cta-btn {
  transform: translateY(0);
  opacity: 1;
}

/* Hide desktop nav on mobile */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (min-width: 993px) {
  .mobile-menu-overlay {
    display: none;
  }
}

/* Hero Section */
#accueil {
  background: linear-gradient(135deg, var(--light-ice-blue) 0%, var(--white) 100%);
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#accueil::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background-image: repeating-linear-gradient(45deg,
      transparent,
      transparent 40px,
      rgba(44, 71, 102, 0.03) 40px,
      rgba(44, 71, 102, 0.03) 80px);
  animation: mariniere-slide 20s linear infinite;
  pointer-events: none;
}

@keyframes mariniere-slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(80px);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.3rem;
  color: var(--dark-slate);
  margin-bottom: 30px;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-navy), var(--maritime-blue));
  color: var(--white);
  padding: 16px 36px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(44, 71, 102, 0.2);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.3) 10px,
      rgba(255, 255, 255, 0.3) 20px);
  transform: translateY(-50%);
  transition: left 0.8s ease;
}

.cta-button:hover::after {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(44, 71, 102, 0.4);
  border-color: var(--light-blue);
}

/* Solutions Section */
#solutions {
  padding: 100px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 60px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.solution-card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(44, 71, 102, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Bloquer complètement toutes animations */
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}

/* Forcer les cartes à rester visibles même avec classe animate-on-scroll */
.solution-card.animate-on-scroll,
.solution-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(44, 71, 102, 0.15);
}

.solution-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Bloquer complètement toutes animations */
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

/* Bloquer aussi au hover */
.solution-card:hover .icon {
  transform: none !important;
  animation: none !important;
}

/* Bloquer absolument toutes les animations appliquées par JS ou classes */
.solution-card .icon,
.solution-card .icon *,
.solution-card:hover .icon,
.solution-card:hover .icon *,
#solutions .icon,
#solutions .icon * {
  transform: none !important;
  animation: none !important;
  transition: color 0.3s ease !important;
  will-change: auto !important;
}

/* Changement de couleur au hover pour icônes Font Awesome */
.solution-card:hover .icon i {
  color: #3498DB !important;
  transform: none !important;
  animation: none !important;
}

.solution-card .icon img {
  width: 100%;
  height: 100%;
}

/* Standardisation stricte des icônes SVG */
.solution-card .icon svg {
  width: 64px !important;
  height: 64px !important;
  fill: transparent !important;
  stroke: #2C4766 !important;
  stroke-width: 2px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  transition: stroke 0.3s ease;
  display: block;
  margin: 0 auto;
  /* Pas de transformation */
  transform: none !important;
}

/* Hover sur la carte - sans changement de taille */
.solution-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(44, 71, 102, 0.15);
}

/* Hover sur l'icône - changement de couleur uniquement, aucune transformation */
.solution-card:hover .icon {
  transform: none !important;
  animation: none !important;
}

.solution-card:hover .icon svg {
  stroke: #3498DB !important;
  transform: none !important;
  animation: none !important;
  scale: 1 !important;
}

.solution-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 20px;
}

.solution-card p {
  color: var(--dark-slate);
  opacity: 0.8;
}

/* About Section - Version propre */
#a-propos {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-text {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(44, 71, 102, 0.1);
  border: 1px solid rgba(143, 163, 187, 0.1);
  position: relative;
}

.about-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--maritime-blue), var(--light-blue), var(--primary-navy));
  border-radius: 20px 20px 0 0;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: 20px;
  line-height: 1.7;
  font-weight: 500;
  text-align: justify;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(44, 71, 102, 0.1);
  border: 1px solid rgba(143, 163, 187, 0.1);
}

.about-visual img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 15px;
  margin-bottom: 25px;
}

.about-visual svg {
  width: 85%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(44, 71, 102, 0.2));
}

/* Carte citation fondateur */
.founder-quote {
  width: 100%;
  text-align: left;
}

.founder-quote h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  font-family: 'Lato', sans-serif;
}

.founder-quote blockquote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--dark-slate);
  font-style: normal;
  margin: 0;
  padding: 20px;
  background: rgba(223, 234, 244, 0.3);
  border-radius: 10px;
  border-left: 3px solid var(--primary-navy);
}

/* Bouton LinkedIn */
.linkedin-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 24px;
  background: #0077b5;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.2);
}

.linkedin-button:hover {
  background: #005885;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 119, 181, 0.3);
}

.linkedin-button i {
  font-size: 1.2rem;
}

/* Client Banner (temporairement désactivé) */
/* Cette section sera réactivée avec de vrais logos clients */

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Contact Section Redesign */
#contact {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 50%, #1B3B5C 0%, #0F172A 100%);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.6;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(143, 163, 187, 0.3);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(44, 71, 102, 0.4);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.contact-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 60px;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-header p {
  color: rgba(223, 234, 244, 0.8);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.contact-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-tile:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tile-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.tile-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tile-label {
  color: rgba(223, 234, 244, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tile-value {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
}

.social-actions {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.social-actions p {
  color: rgba(223, 234, 244, 0.6);
  margin-bottom: 20px;
  font-weight: 500;
}

.social-links-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links-row a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links-row a:hover {
  background: #FFFFFF;
  color: #1B3B5C;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.social-links-row svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .contact-glass-card {
    padding: 30px;
  }

  .contact-header h2 {
    font-size: 2.2rem;
  }

  .contact-tiles-grid {
    grid-template-columns: 1fr;
  }
}

.contact-cta {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(143, 163, 187, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 60px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg,
      rgba(143, 163, 187, 0.3),
      rgba(255, 255, 255, 0.1),
      rgba(27, 59, 92, 0.2));
  border-radius: 32px;
  z-index: -1;
}

.contact-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.03) 20px,
      rgba(255, 255, 255, 0.03) 40px);
  animation: diagonal-slide 15s linear infinite;
  pointer-events: none;
}

.contact-cta h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.contact-cta p {
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
  color: rgba(223, 234, 244, 0.95);
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.7;
  font-size: 1.1rem;
  max-width: 400px;
}

/* Dynamic Contact Form Styles */
.dynamic-contact-form {
  margin-top: 60px;
  width: 100%;
}

.glass-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Progress Bar */
.form-progress {
  margin-bottom: 40px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 0;
}

.steps-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.step {
  width: 40px;
  height: 40px;
  background: var(--dark-slate);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  transition: all 0.3s ease;
}

.step.active {
  background: var(--light-blue);
  color: var(--primary-navy);
  border-color: var(--white);
  box-shadow: 0 0 15px rgba(143, 163, 187, 0.5);
}

.step.completed {
  background: var(--maritime-blue);
  color: var(--white);
  border-color: var(--light-blue);
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  text-align: center;
  color: var(--white);
  margin-bottom: 30px;
  font-size: 1.8rem;
}

/* Selection Grid (Step 1) */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.selection-card {
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
}

.selection-card input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.card-content {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.card-icon {
  font-size: 2.5rem;
}

.card-title {
  color: var(--white);
  font-weight: 600;
}

.selection-card input:checked+.card-content {
  background: rgba(143, 163, 187, 0.2);
  border-color: var(--light-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.selection-card:hover .card-content {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Inputs (Step 2 & 3) */
.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  color: rgba(223, 234, 244, 0.9);
  margin-bottom: 10px;
  font-weight: 500;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  color: var(--white);
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--light-blue);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(143, 163, 187, 0.2);
}

.input-group select option {
  background: var(--dark-slate);
  color: var(--white);
}

/* Professional Checkbox Tiles (Step 2) */
.checkbox-tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.tile-checkbox {
  cursor: pointer;
  position: relative;
  display: block;
}

.tile-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tile-checkbox-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tile-checkbox:hover .tile-checkbox-content {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(143, 163, 187, 0.4);
  transform: translateX(4px);
}

.tile-checkbox input:checked+.tile-checkbox-content {
  background: rgba(143, 163, 187, 0.15);
  border-color: var(--light-blue);
  box-shadow: 0 0 0 1px var(--light-blue), 0 4px 12px rgba(143, 163, 187, 0.2);
}

.tile-checkbox-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: transparent;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.tile-checkbox input:checked+.tile-checkbox-content .tile-checkbox-icon {
  background: var(--light-blue);
  border-color: var(--light-blue);
  color: var(--primary-navy);
  transform: scale(1.1);
}

.tile-checkbox-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.tile-checkbox input:checked+.tile-checkbox-content .tile-checkbox-text {
  color: var(--white);
  font-weight: 600;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
}

.btn-next,
.btn-submit {
  background: linear-gradient(135deg, var(--white), var(--light-ice-blue));
  color: var(--primary-navy);
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-prev {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (max-width: 768px) {
  .glass-form {
    padding: 25px;
  }

  .selection-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .selection-card {
    width: 100%;
    display: block;
  }

  .card-content {
    padding: 20px 15px;
    min-height: 100px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .card-content .icon {
    font-size: 2.2rem;
    pointer-events: none;
  }

  .card-content .label {
    font-size: 1.05rem;
    line-height: 1.3;
    pointer-events: none;
  }

  .form-step h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .checkbox-tiles {
    gap: 10px;
  }

  .tile-checkbox-content {
    padding: 16px 18px;
  }

  .tile-checkbox-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Footer */
footer {
  background: var(--dark-slate);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 20px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--light-blue);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-slate);
  color: var(--white);
  padding: 20px;
  z-index: 1001;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-text {
  flex: 1;
}

.cookie-text a {
  color: var(--light-blue);
}

.cookie-buttons {
  display: flex;
  gap: 15px;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.cookie-accept {
  background: var(--light-blue);
  color: var(--dark-slate);
}

.cookie-decline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

/* Legal Pages Styles */
.legal-page {
  padding: 140px 0 80px;
  background: var(--white);
}

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

.legal-content h1 {
  font-size: 2.5rem;
  color: var(--primary-navy);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.8rem;
  color: var(--primary-navy);
  margin: 30px 0 15px;
}

.legal-content h3 {
  font-size: 1.4rem;
  color: var(--primary-navy);
  margin: 25px 0 10px;
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.legal-content ul {
  margin: 15px 0 15px 30px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* FAQ Section */
#faq {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.faq-item {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(44, 71, 102, 0.1);
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid rgba(143, 163, 187, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(44, 71, 102, 0.15);
}

.faq-question {
  background: var(--light-ice-blue);
  padding: 25px;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-navy);
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover {
  background: rgba(223, 234, 244, 0.8);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: var(--white);
}

.faq-item.active .faq-answer {
  padding: 25px;
  max-height: 2000px;
}

.faq-answer p {
  margin-bottom: 15px;
  color: var(--dark-slate);
  line-height: 1.7;
}

.faq-answer ul {
  margin: 15px 0;
  padding-left: 25px;
}

.faq-answer li {
  margin-bottom: 10px;
  color: var(--dark-slate);
  line-height: 1.6;
}

.faq-answer strong {
  color: var(--primary-navy);
  font-weight: 700;
}

.faq-cta {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(44, 71, 102, 0.1);
  transition: all 0.3s ease;
}

.faq-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(44, 71, 102, 0.15);
}

/* Animations SVG */
@keyframes slash-animate {
  0% {
    transform: translateX(-100%) rotate(-10deg);
    opacity: 0;
  }

  50% {
    transform: translateX(-30%) rotate(-5deg);
    opacity: 0.7;
  }

  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes fade-up {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slash-pulse {

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

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

@keyframes path-draw {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0.3;
  }

  70% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

@keyframes float {

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

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

/* Animations avancées supplémentaires */
@keyframes wave-motion {

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

  25% {
    transform: translateY(-15px) translateX(10px) rotate(2deg);
  }

  50% {
    transform: translateY(5px) translateX(-5px) rotate(-1deg);
  }

  75% {
    transform: translateY(-10px) translateX(-10px) rotate(1deg);
  }
}

@keyframes morph-shape {

  0%,
  100% {
    border-radius: 20px;
    transform: scale(1) rotate(0deg);
  }

  33% {
    border-radius: 30px 10px 25px 15px;
    transform: scale(1.05) rotate(2deg);
  }

  66% {
    border-radius: 15px 25px 10px 30px;
    transform: scale(0.98) rotate(-2deg);
  }
}

@keyframes text-glow {

  0%,
  100% {
    text-shadow: 0 0 5px rgba(44, 71, 102, 0.2);
  }

  50% {
    text-shadow: 0 0 20px rgba(44, 71, 102, 0.4),
      0 0 30px rgba(143, 163, 187, 0.3);
  }
}

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

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

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

@keyframes border-dance {

  0%,
  100% {
    border-width: 2px;
    border-color: var(--maritime-blue);
  }

  25% {
    border-width: 4px;
    border-color: var(--light-blue);
  }

  50% {
    border-width: 2px;
    border-color: var(--ocean-foam);
  }

  75% {
    border-width: 3px;
    border-color: var(--primary-navy);
  }
}

@keyframes slide-up-fade {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

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

@keyframes reveal-line {
  0% {
    width: 0;
    opacity: 0;
  }

  50% {
    width: 100%;
    opacity: 1;
  }

  100% {
    width: 100%;
    opacity: 0.8;
  }
}

@keyframes diagonal-slide {
  0% {
    transform: translateX(-100px) translateY(-100px) rotate(45deg);
  }

  100% {
    transform: translateX(100px) translateY(100px) rotate(45deg);
  }
}

/* SVG Classes */
.svg-animated {
  animation: fade-up 1s ease-out forwards;
}

.svg-slash-animated {
  animation: slash-animate 1.2s ease-out forwards, slash-pulse 4s ease-in-out infinite;
  animation-delay: 0.3s;
}

.hero-svg-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-svg-container svg {
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 10px 30px rgba(44, 71, 102, 0.2));
  transform-origin: center;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-svg-container svg.scroll-zoom {
  transform: scale(1.3) rotate(15deg) translateY(-20px);
  filter: drop-shadow(0 15px 50px rgba(44, 71, 102, 0.35));
}

@keyframes hero-rotate {
  0% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1.3) rotate(15deg) translateY(-20px);
  }
}

.hero-svg-container svg path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: path-draw 2.5s ease-out forwards;
}

.hero-svg-container svg path:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-svg-container svg path:nth-child(3) {
  animation-delay: 1s;
}

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

.slash-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.slash-background svg {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 80%;
  height: auto;
  transform: rotate(15deg);
  animation: float 8s ease-in-out infinite;
}

.about-svg-background {
  position: absolute;
  top: -30%;
  left: -15%;
  width: 50%;
  height: auto;
  opacity: 0.1;
  z-index: 0;
  transform: rotate(-20deg);
  animation: float 10s ease-in-out infinite;
  animation-delay: -2s;
  pointer-events: none;
}

.contact-svg-accent {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  opacity: 0.1;
  z-index: 0;
  animation: slash-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

/* Section dupliquée supprimée - utiliser la première déclaration sans animations */


/* Header amélioré */
header {
  background: transparent;
  box-shadow: none;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 20px 0;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 5px 30px rgba(44, 71, 102, 0.1);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

header.scrolled .header-content {
  padding: 0;
}

header.scrolled .logo img {
  height: 40px;
}

.logo {
  transition: transform 0.4s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav a {
  display: inline-block;
  /* Fix for padding/background */
  text-decoration: none;
  color: var(--primary-navy);
  font-weight: 600;
  position: relative;
  padding: 10px 24px;
  /* Slightly larger padding */
  border-radius: 50px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--primary-navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(44, 71, 102, 0.1);
  transform: translateY(-1px);
}

/* Liquid Glass Button */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

/* Liquid Glass Button - Restyled to Solid Primary */
.liquid-glass-btn {
  display: inline-block;
  padding: 10px 24px;
  margin-left: 20px;
  background: var(--primary-navy);
  border: 1px solid var(--primary-navy);
  border-radius: 50px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 71, 102, 0.2);
}

.liquid-glass-btn:hover {
  background: var(--maritime-blue);
  border-color: var(--maritime-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 71, 102, 0.3);
  color: var(--white);
}

/* Remove old complex effects */
.liquid-glass-btn::before,
.liquid-glass-btn::after {
  display: none;
}

/* CTA Button avec effet liquid glass */
.cta-button {
  display: inline-block;
  background: rgba(44, 71, 102, 0.15);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: var(--primary-navy);
  padding: 18px 40px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 8px 32px rgba(44, 71, 102, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(44, 71, 102, 0.3);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(27, 59, 92, 0.9) 0%,
      rgba(44, 71, 102, 0.9) 50%,
      rgba(36, 47, 60, 0.9) 100%);
  transition: left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: -1;
  border-radius: 50px;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.1) 30%,
      transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s ease;
  z-index: 1;
  pointer-events: none;
}

.cta-button:hover {
  color: var(--white);
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 20px 60px rgba(44, 71, 102, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

.cta-button:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.1s ease;
}

/* Hero Section améliorée */
.hero-text {
  opacity: 0;
  animation: fade-up 1s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-visual {
  position: relative;
  opacity: 0;
  animation: fade-up 1s ease-out forwards;
  animation-delay: 0.8s;
}

/* Animation d'entrée pour les sections */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-slash {
  opacity: 0;
  transform: translateX(-100px) rotate(-10deg);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.animate-slash.visible {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {

  /* Header collant sur tablette avec réduction */
  header {
    position: fixed !important;
  }

  header.scrolled {
    padding: 2px 0;
  }

  header.scrolled .header-content {
    padding: 8px 0;
  }

  header.scrolled .logo img {
    height: 35px;
  }
}

@media (max-width: 768px) {

  /* Header mobile - garder le header sticky mais avec une hauteur réduite */
  header {
    position: fixed;
  }

  #accueil {
    padding-top: 100px;
  }

  /* Header mobile */
  .hamburger {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 82px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    gap: 40px;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 30px rgba(44, 71, 102, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 16px 32px;
    display: block;
    text-align: center;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-ice-blue) 100%);
    border: 2px solid var(--maritime-blue);
    min-width: 200px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 71, 102, 0.1);
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 600;
  }

  .nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(27, 59, 92, 0.8) 0%,
        rgba(143, 163, 187, 0.8) 50%,
        rgba(184, 212, 227, 0.8) 100%);
    transition: left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
    border-radius: 25px;
  }

  .nav-menu a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s ease;
    pointer-events: none;
  }

  .nav-menu a:hover {
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 45px rgba(44, 71, 102, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .nav-menu a:hover::before {
    left: 0;
  }

  .nav-menu a:hover::after {
    width: 200px;
    height: 200px;
    opacity: 0;
  }

  /* Bouton CTA mobile spécial */
  .mobile-cta-btn {
    display: inline-block !important;
    padding: 20px 36px !important;
    margin-top: 30px;
    background: linear-gradient(135deg, var(--primary-navy), var(--maritime-blue)) !important;
    border: 2px solid var(--white) !important;
    border-radius: 35px;
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease !important;
    box-shadow: 0 8px 30px rgba(27, 59, 92, 0.3) !important;
    min-width: 260px;
    text-align: center;
  }

  .mobile-cta-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        rgba(27, 59, 92, 0.9) 0%,
        rgba(44, 71, 102, 0.95) 25%,
        rgba(36, 47, 60, 0.9) 50%,
        rgba(27, 59, 92, 0.9) 75%,
        rgba(44, 71, 102, 0.95) 100%);
    transform: rotate(45deg) scale(0);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
    border-radius: 50%;
  }

  .mobile-cta-btn::after {
    content: '✨';
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%) scale(0) rotate(0deg);
    font-size: 1.2rem;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
  }

  .mobile-cta-btn:hover {
    color: var(--white);
    transform: translateY(-5px) scale(1.08);
    box-shadow:
      0 25px 70px rgba(27, 59, 92, 0.35),
      inset 0 2px 0 rgba(255, 255, 255, 0.4),
      inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .mobile-cta-btn:hover::before {
    transform: rotate(45deg) scale(1.5);
  }

  .mobile-cta-btn:hover::after {
    transform: translateY(-50%) scale(1) rotate(360deg);
    opacity: 1;
  }

  .mobile-cta-btn:active {
    transform: translateY(-3px) scale(1.02);
    transition: all 0.1s ease;
  }

  /* Masquer le body scroll quand le menu est ouvert */
  body.menu-open {
    overflow: hidden;
  }

  /* Contenu principal */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual img {
    max-width: 250px;
  }

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

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

  .about-content {
    padding: 20px;
    margin: 0;
    max-width: 100%;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  /* Contact section responsive */
  .contact-method a {
    font-size: 0.95rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

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

  .solution-card {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .faq-item {
    padding: 20px 15px;
    margin-bottom: 15px;
  }

  .faq-question {
    font-size: 1rem;
    line-height: 1.4;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  .about-content {
    padding: 20px;
    margin: 10px;
  }

  .contact-content {
    padding: 0 10px;
  }

  .contact-method {
    gap: 15px;
    padding: 15px;
  }

  .contact-method .contact-icon-text {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .contact-method h4 {
    font-size: 1.1rem;
  }

  .contact-method a {
    font-size: 0.9rem;
    padding: 6px 12px;
    word-break: break-all;
    line-height: 1.4;
    max-width: 100%;
  }

  .contact-method p {
    font-size: 0.95rem;
  }

  .nav-menu a {
    font-size: 1.1rem;
    min-width: 180px;
  }
}

/* ==========================================
   SECTION CLIENTS - BANDEAU DÉFILANT
   ========================================== */

.clients-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #DFEAF4 0%, #f8f9fa 100%);
  overflow: hidden;
  position: relative;
}

.clients-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 71, 102, 0.2), transparent);
}

.clients-section .section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-navy);
}

.clients-scroll-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}

/* Effet de dégradé sur les bords */
.clients-scroll-container::before,
.clients-scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-scroll-container::before {
  left: 0;
  background: linear-gradient(to right, #DFEAF4, transparent);
}

.clients-scroll-container::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}

.clients-scroll {
  display: flex;
  align-items: center;
  animation: scroll-left 40s linear infinite;
  gap: 80px;
}

.clients-scroll:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow:
    0 4px 15px rgba(44, 71, 102, 0.08),
    0 1px 3px rgba(44, 71, 102, 0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.client-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 71, 102, 0.03) 0%, rgba(143, 163, 187, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 12px 35px rgba(44, 71, 102, 0.15),
    0 4px 10px rgba(44, 71, 102, 0.1);
}

.client-logo:hover::before {
  opacity: 1;
}

.client-logo img {
  max-width: 140px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .clients-section {
    padding: 60px 0;
  }

  .clients-section .section-title {
    margin-bottom: 40px;
    font-size: 2rem;
  }

  .clients-scroll {
    gap: 50px;
    animation-duration: 30s;
  }

  .client-logo {
    width: 140px;
    height: 80px;
    padding: 15px;
  }

  .client-logo img {
    max-width: 110px;
    max-height: 60px;
  }

  .clients-scroll-container::before,
  .clients-scroll-container::after {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .clients-section {
    padding: 50px 0;
  }

  .clients-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .clients-scroll {
    gap: 40px;
    animation-duration: 25s;
  }

  .client-logo {
    width: 120px;
    height: 70px;
    padding: 12px;
  }

  .client-logo img {
    max-width: 95px;
    max-height: 50px;
  }

  .clients-scroll-container::before,
  .clients-scroll-container::after {
    width: 50px;
  }
}


/* ==========================================
   MOBILE OPTIMIZATION TWEAKS
   ========================================== */

/* Enforce base font size and improve touch targets */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

/* Better spacing for mobile form */
@media (max-width: 480px) {
  .form-actions {
    flex-direction: column;
    gap: 15px;
  }

  .btn-next,
  .btn-prev,
  .btn-submit {
    width: 100%;
    padding: 18px;
  }

  .glass-form {
    padding: 20px 15px;
  }

  .form-step h3 {
    font-size: 1.5rem;
  }

  /* Adjust Hero Title for small screens */
  .hero-text h1 {
    font-size: 1.8rem;
  }

  /* Adjust Section Titles */
  .section-title {
    font-size: 1.8rem;
  }
}

/* ==========================================
   CONTACT SECTION OVERHAUL (SPLIT LAYOUT)
   ========================================== */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* Left Panel: Info */
.contact-info-panel {
  background: var(--primary-navy);
  /* Dark Navy Background */
  color: var(--white);
  /* White Text */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.contact-info-panel p {
  color: rgba(255, 255, 255, 0.9);
  /* High contrast for paragraph text */
}

.info-header {
  margin-bottom: 40px;
}

.info-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.info-header p {
  color: rgba(223, 234, 244, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Tiles Grid */
.contact-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-tile:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.tile-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tile-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tile-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.tile-value {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Right Panel: Form */
.contact-form-panel {
  margin-top: 0;
  background: var(--primary-navy);
  /* Match left panel */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* Ensure border-radius clips content */
}

.contact-form-panel .glass-form {
  background: transparent;
  /* Remove double background */
  border: none;
  box-shadow: none;
}

.contact-form-panel h3,
.contact-form-panel label {
  color: var(--white);
}

/* Mobile Menu Styling */
.mobile-menu-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: transparent;
  /* Fond transparent pour voir le fond clair du overlay */
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
}

.mobile-logo-img {
  height: 40px;
  width: auto;
  /* Logo sombre visible sur fond clair */
}

.mobile-close-btn {
  color: var(--primary-navy);
  /* Bouton fermeture sombre sur fond clair */
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
}

.mobile-close-btn:hover {
  transform: rotate(90deg);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.mobile-social-icons {
  margin-top: auto;
  display: flex;
  gap: 24px;
  justify-content: center;
  padding-bottom: 32px;
}

.mobile-social-icons a {
  color: var(--primary-navy);
  /* Icônes sociales sombres sur fond clair */
  font-size: 24px;
  transition: color 0.3s ease;
}

.mobile-social-icons a:hover {
  color: var(--maritime-blue);
  /* Hover bleu plus foncé */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info-panel {
    padding: 30px;
  }
}

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

  .contact-tile {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    padding: 15px 20px;
  }

  .tile-icon {
    margin-bottom: 0;
    font-size: 1.5rem;
  }
}