/* ========================================
   MEDILIB - SECTIONS AVANCÉES
   ======================================== */

/* SECTION VIDÉO ÉLÉGANTE */
.video-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

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

.video-text h2 {
  font-size: 2.8em;
  color: #002B40;
  margin-bottom: 25px;
  font-weight: 600;
  line-height: 1.3;
}

.video-text p {
  font-size: 1.2em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 40px;
}

.video-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.video-feature:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-feature i {
  color: #00A5A7;
  font-size: 1.5em;
}

.video-feature span {
  font-weight: 600;
  color: #333;
}

/* Conteneur vidéo avec effets flip flap */
.video-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  position: relative;
  perspective: 1000px;
}

.video-frame {
  width: 500px;
  height: 300px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.video-frame:hover {
  transform: rotateY(5deg) rotateX(5deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-frame:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(0, 165, 167, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.play-button:hover {
  transform: scale(1.1);
  background: rgba(0, 165, 167, 1);
}

.play-button i {
  color: white;
  font-size: 2em;
  margin-left: 5px;
}

/* Décorations flottantes avec flip flap */
.video-decoration {
  position: absolute;
  background: linear-gradient(45deg, #00A5A7, #EAF9F8);
  border-radius: 15px;
  opacity: 0.8;
  animation: floatFlip 6s ease-in-out infinite;
}

.video-decoration-1 {
  width: 60px;
  height: 60px;
  top: -30px;
  left: -30px;
  animation-delay: 0s;
  transform: rotate(45deg);
}

.video-decoration-2 {
  width: 40px;
  height: 40px;
  top: 50%;
  right: -20px;
  animation-delay: 2s;
  transform: rotate(-30deg);
}

.video-decoration-3 {
  width: 80px;
  height: 80px;
  bottom: -40px;
  left: 20px;
  animation-delay: 4s;
  transform: rotate(60deg);
}

@keyframes floatFlip {
  0%, 100% {
    transform: translateY(0px) rotate(var(--rotation, 0deg));
  }
  25% {
    transform: translateY(-20px) rotate(calc(var(--rotation, 0deg) + 15deg));
  }
  50% {
    transform: translateY(-10px) rotate(calc(var(--rotation, 0deg) + 30deg));
  }
  75% {
    transform: translateY(-25px) rotate(calc(var(--rotation, 0deg) + 45deg));
  }
}

/* SECTION TÉMOIGNAGES */
.testimonials-section {
  background-color: #f8f9fa;
  padding: 100px 0;
}

.testimonials-section h2 {
  text-align: center;
  color: #002B40;
  font-size: 2.5em;
  margin-bottom: 60px;
  font-weight: 600;
}

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

.testimonial-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.testimonial-content .stars {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.testimonial-content .stars i {
  color: #ffd700;
  font-size: 1.1em;
}

.testimonial-content p {
  color: #555;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 25px;
  font-size: 1em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: #00A5A7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2em;
}

.author-info h4 {
  color: #002B40;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.author-info span {
  color: #777;
  font-size: 0.9em;
}

/* SECTION NEWSLETTER */
.newsletter-section {
  background: linear-gradient(135deg, #00A5A7 0%, #EAF9F8 100%);
  padding: 80px 0;
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.newsletter-text {
  flex: 1;
  color: white;
}

.newsletter-text h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: 600;
}

.newsletter-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f5fdfc;
}

.newsletter-form {
  flex: 1;
}

.newsletter-signup {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.newsletter-signup input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 35px;
  font-size: 1em;
  outline: none;
}

.newsletter-signup button {
  background: #002B40;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 35px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-signup button:hover {
  background: #004b66;
}

.newsletter-disclaimer {
  color: #f5fdfc;
  font-size: 0.85em;
  text-align: center;
  opacity: 0.8;
}

/* SECTION FAQ */
.faq-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.faq-section h2 {
  text-align: center;
  color: #002B40;
  font-size: 2.5em;
  margin-bottom: 60px;
  font-weight: 600;
}

/* Conteneur des cartes flip */
.faq-flip-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 50px;
  max-width: 1600px;
  margin: 0 auto;
  perspective: 1200px;
  position: relative;
  isolation: isolate;
  contain: layout;
}

/* Carte flip individuelle */
.faq-flip-card {
  width: 100%;
  aspect-ratio: 1;
  perspective: 1000px;
  position: relative;
  flex: 1;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  z-index: 1;
  overflow: visible;
}

/* Z-index spécifique pour chaque carte */
.faq-flip-card:nth-child(1) { z-index: 1; }
.faq-flip-card:nth-child(2) { z-index: 2; }
.faq-flip-card:nth-child(3) { z-index: 3; }
.faq-flip-card:nth-child(4) { z-index: 4; }

.faq-flip-card:hover {
  z-index: 1000 !important;
  transform: translateZ(0);
}

/* Effet de recul pour les cartes non survolées */
.faq-flip-container:hover .faq-flip-card:not(:hover) {
  opacity: 0.7;
  transform: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
}

.faq-flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Face avant et arrière */
.flip-card-front, .flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 15px;
  box-sizing: border-box;
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
  backface-visibility: hidden; /* <- clé principale */
  -webkit-backface-visibility: hidden; /* compatibilité Safari */
  overflow: hidden;
}

/* Face avant */
.flip-card-front {
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  color: white;
  border: 3px solid transparent;
  transform: rotateY(0deg);
  z-index: 2;
}

.flip-card-front::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.faq-flip-card:hover .flip-card-front::before {
  animation: shimmer 1.5s ease-in-out;
}

.faq-icon {
  font-size: 1.8em;
  margin-bottom: 12px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.faq-flip-card:hover .faq-icon {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

.flip-card-front h3 {
  font-size: 0.95em;
  margin-bottom: 12px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
}

.flip-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7em;
  opacity: 0.9;
  animation: bounceHint 2s ease-in-out infinite;
  padding: 0 10px;
}

.flip-hint i {
  font-size: 1.2em;
}

/* Face arrière */
.flip-card-back {
  background: white;
  color: #333;
  border: 3px solid #00A5A7;
  transform: rotateY(180deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  z-index: 1;
}

.answer-icon {
  font-size: 1.8em;
  color: #00A5A7;
  margin-bottom: 15px;
  animation: pulseIcon 2s ease-in-out infinite;
}

.faq-answer-content p {
  font-size: 0.9em;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #555;
  text-align: center;
  padding: 0 10px;
}

.flip-back-hint {
  font-size: 0.75em;
  color: #00A5A7;
  font-weight: 600;
  opacity: 0.8;
}

/* Animations */
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ==== SECTION PARTENAIRES - EFFETS COMBINÉS ==== */
.partners-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: visible;
}

/* Effet Parallax - Arrière-plan animé */
.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300A5A7" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
  animation: parallaxMove 20s ease-in-out infinite;
}

@keyframes parallaxMove {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-10px) translateY(-5px); }
  50% { transform: translateX(0) translateY(-10px); }
  75% { transform: translateX(10px) translateY(-5px); }
}

/* Particules flottantes */
.partners-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(0,165,167,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0,165,167,0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(0,165,167,0.05) 0%, transparent 50%);
  animation: particleFloat 15s ease-in-out infinite;
  z-index: 1;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.partners-section .container {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.partners-section h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 600;
}

.partners-subtitle {
  text-align: center;
  color: #6c757d;
  font-size: 1.1em;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Conteneur principal avec effet magnetic - pleine largeur */
.partners-container {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  perspective: 1000px;
  overflow: visible;
}

/* Carrousel avec défilement automatique - pleine largeur */
.partners-carousel {
  overflow: visible;
  position: relative;
  width: 100%;
  padding: 20px 0;
  background: transparent;
}

.partners-track {
  display: flex;
  gap: 30px;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Cartes flip avec effet magnetic */
.partner-flip-card {
  flex: 0 0 280px;
  height: 320px;
  perspective: 1000px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  animation: staggerIn 0.6s ease forwards;
}

/* Animation Stagger - Apparition en cascade */
@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.partner-flip-card:nth-child(1) { animation-delay: 0.1s; }
.partner-flip-card:nth-child(2) { animation-delay: 0.2s; }
.partner-flip-card:nth-child(3) { animation-delay: 0.3s; }
.partner-flip-card:nth-child(4) { animation-delay: 0.4s; }
.partner-flip-card:nth-child(5) { animation-delay: 0.5s; }
.partner-flip-card:nth-child(6) { animation-delay: 0.6s; }

/* Effet Magnetic - Les cartes suivent la souris */
.partner-flip-card:hover {
  transform: translateY(-20px) scale(1.05) translateZ(50px);
  z-index: 10;
}

.partner-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-flip-card:hover .partner-flip-inner {
  transform: rotateY(180deg);
}

/* Faces des cartes */
.partner-front, .partner-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.partner-front {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
}

.partner-back {
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  color: white;
  transform: rotateY(180deg);
}

/* Logo avec effet de rotation */
.partner-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.partner-logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.partner-flip-card:hover .partner-logo::before {
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.partner-logo i {
  font-size: 2em;
  color: white;
  transition: all 0.3s ease;
}

.partner-flip-card:hover .partner-logo {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 15px 30px rgba(0,165,167,0.4);
}

.partner-flip-card:hover .partner-logo i {
  transform: scale(1.1);
}

/* Texte des cartes */
.partner-front h4 {
  color: #2c3e50;
  font-size: 1.2em;
  margin-bottom: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.partner-front span {
  color: #6c757d;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.partner-flip-card:hover .partner-front h4,
.partner-flip-card:hover .partner-front span {
  transform: translateY(-5px);
}

/* Détails de la face arrière */
.partner-details {
  text-align: center;
  width: 100%;
}

.partner-details h4 {
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

.partner-details p {
  font-size: 0.9em;
  line-height: 1.4;
  margin-bottom: 20px;
  opacity: 0.9;
}

.partner-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.partner-specialties span {
  background: rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.partner-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.partner-rating i {
  color: #ffd700;
  font-size: 1.1em;
  animation: starTwinkle 2s ease-in-out infinite;
}

.partner-rating i:nth-child(2) { animation-delay: 0.2s; }
.partner-rating i:nth-child(3) { animation-delay: 0.4s; }
.partner-rating i:nth-child(4) { animation-delay: 0.6s; }
.partner-rating i:nth-child(5) { animation-delay: 0.8s; }

@keyframes starTwinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.partner-rating span {
  margin-left: 10px;
  font-weight: 600;
  font-size: 0.9em;
}

/* Navigation du carrousel */
.partners-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

/* Indicateur de drag */
.partners-section::after {
  content: "👆 Glissez pour naviguer";
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,165,167,0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.partners-section:hover::after {
  opacity: 1;
}

.partners-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.partner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,165,167,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.partner-dot:hover {
  background: rgba(0,165,167,0.6);
  transform: scale(1.2);
}

.partner-dot.active {
  background: #00A5A7;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(0,165,167,0.5);
}

.partner-dot.active::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid #00A5A7;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* ==== SECTION CONTACT - EFFETS COMBINÉS ==== */
.contact-section {
  padding: 20px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.contact-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Titre sans effet de glow */
.contact-title {
  text-align: center;
  color: #2c3e50;
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-self: center;
  width: 100%;
  max-width: 1200px;
}

/* Informations de contact avec effet Staggered */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.8);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-50px);
  animation: contactStaggerIn 0.6s ease forwards;
}

/* Animation Staggered - Apparition en cascade */
@keyframes contactStaggerIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.3s; }
.contact-item:nth-child(3) { animation-delay: 0.5s; }

/* Effet de survol avec glow */
.contact-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,165,167,0.12);
  background: rgba(255,255,255,0.95);
}

.contact-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,165,167,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.contact-item:hover .contact-hover-effect {
  opacity: 1;
}

/* Icônes interactives avec Bounce/Pulse */
.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8em;
  flex-shrink: 0;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.contact-icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: -1;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  animation: iconBounce 0.6s ease;
}

.contact-item:hover .contact-icon::before {
  opacity: 0.3;
  transform: scale(1.2);
  animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1.1) rotate(5deg); }
  50% { transform: scale(1.2) rotate(-5deg); }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1.2); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 0.1; }
}

.icon-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.contact-item:hover .icon-ripple {
  width: 100px;
  height: 100px;
  animation: rippleEffect 1s ease-out;
}

@keyframes rippleEffect {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.contact-details h4 {
  color: #2c3e50;
  font-size: 1.3em;
  margin-bottom: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-details p {
  color: #2c3e50;
  font-size: 1.1em;
  margin-bottom: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-details span {
  color: #6c757d;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-details h4,
.contact-item:hover .contact-details p {
  transform: translateX(5px);
  color: #00A5A7;
}

/* Carte interactive */
.contact-map-container {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.contact-item:hover .contact-map-container {
  opacity: 1;
  transform: translateY(0);
}

.contact-map {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.contact-map:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.contact-map iframe {
  border-radius: 15px;
  transition: all 0.3s ease;
}

/* Formulaire avec Floating Labels */
.contact-form {
  background: rgba(255,255,255,0.9);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,165,167,0.05) 0%, transparent 50%);
  z-index: 1;
}

.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 50px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

/* Form Groups avec Floating Labels */
.form-group {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 500px;
  padding: 20px 15px 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1em;
  background: rgba(255,255,255,0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
  z-index: 2;
  caret-color: #00A5A7;
}

.form-group textarea {
  resize: none;
  min-height: 120px;
  max-height: 200px;
}

.form-group label {
  position: absolute;
  top: 20px;
  left: 15px;
  color: #6c757d;
  font-size: 1em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 3;
  background: rgba(255,255,255,0.8);
  padding: 0 5px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #00A5A7;
  box-shadow: 0 0 0 3px rgba(0,165,167,0.1);
  background: white;
  caret-color: #00A5A7;
}

.form-group input::selection,
.form-group textarea::selection {
  background: transparent;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
  top: -8px;
  left: 10px;
  font-size: 0.8em;
  color: #00A5A7;
  font-weight: 600;
  background: transparent;
}

/* Lignes décoratives supprimées */

/* Bouton avec Hover Effect avancé */
.contact-submit-btn {
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  color: white;
  padding: 18px 40px;
  border: none;
  border-radius: 15px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,165,167,0.3);
}

.contact-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,165,167,0.25);
  background: linear-gradient(135deg, #00898b 0%, #007a7c 100%);
}

.contact-submit-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-text {
  transition: all 0.3s ease;
}

.btn-icon {
  transition: all 0.3s ease;
  transform: translateX(0);
}

.contact-submit-btn:hover .btn-icon {
  transform: translateX(5px) rotate(15deg);
}

.btn-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.contact-submit-btn:hover .btn-ripple {
  width: 300px;
  height: 300px;
  animation: buttonRipple 0.8s ease-out;
}

@keyframes buttonRipple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Effet de glow au survol du bouton */
.contact-submit-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #00A5A7 0%, #00898b 100%);
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(6px);
}

.contact-submit-btn:hover::before {
  opacity: 0.3;
  animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* SECTION SÉCURITÉ */
.security-section {
  background: linear-gradient(135deg, #002B40 0%, #00A5A7 100%);
  padding: 60px 0;
  color: white;
}

.security-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.security-text {
  flex: 1;
}

.security-text h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: 600;
}

.security-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #f5fdfc;
}

.security-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.security-features li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: #f5fdfc;
  font-size: 1em;
}

.security-features i {
  color: #00A5A7;
  font-size: 1.2em;
}

.security-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.security-visual {
  text-align: center;
}

.security-icon {
  font-size: 6em;
  color: #00A5A7;
  margin-bottom: 30px;
}

.security-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.1);
  padding: 15px 25px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.badge i {
  color: #00A5A7;
  font-size: 1.2em;
}

.badge span {
  font-weight: 600;
}


