/* 
 * COOP2T - Bouton CTA flottant
 * Style pour le bouton d'inscription flottant qui suit le scroll
 */

.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2d3f2f;
  padding: 0.5rem 2rem;
  height: 2cm; /* Hauteur réduite de moitié (de 4cm à 2cm) */
  gap: 1rem;
  flex-wrap: nowrap; /* Empêche le wrapping des éléments en ligne */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  font-family: var(--font-primary), 'Open Sans', sans-serif;
}

/* Section gauche */
.floating-cta-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center; /* Centre verticalement le contenu */
  height: 100%;
}

.floating-cta-left h2 {
  color: white;
  font-size: 1rem; /* Taille de police réduite pour s'adapter à la hauteur */
  margin: 0;
  font-family: var(--font-secondary), 'Lora', serif;
  line-height: 1.2;
  text-align: center; /* Centre le texte horizontalement */
}

.floating-cta-left .highlight {
  color: #c7ab72;
  font-weight: bold;
  display: inline;
}

/* Section centrale */
.floating-cta-center {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre horizontalement */
  justify-content: center; /* Centre verticalement */
  margin: 0 auto;
  height: 100%;
}

.floating-cta-email {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center; /* Centre horizontalement */
}

.floating-cta-email input {
  padding: 0.3rem 0.8rem;
  border-radius: 30px 0 0 30px;
  border: none;
  width: 240px;
  outline: none;
  background-color: white;
  font-size: 0.85rem;
  height: 30px; /* Hauteur réduite */
}

.floating-cta-email button {
  padding: 0.3rem 0.8rem;
  border-radius: 0 30px 30px 0;
  border: none;
  background-color: #c7ab72;
  color: #2d3f2f;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  height: 30px; /* Hauteur réduite */
  font-size: 0.85rem;
}

.floating-cta-privacy {
  font-size: 0.7rem;
  color: #ccc;
  text-align: center;
  margin-top: 0.2rem;
  width: 100%;
}

/* Section droite */
.floating-cta-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center; /* Centre horizontalement */
  height: 100%;
}

.floating-cta-social {
  display: flex;
  align-items: center; /* Centre verticalement */
}

.floating-cta-social .social-links {
  margin: 0;
  display: flex;
  align-items: center; /* Centre verticalement */
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: all 0.3s ease;
}

.floating-cta-social .social-link svg {
  margin-left: 0.8rem;
  stroke: white;
  width: 16px; /* Taille réduite */
  height: 16px; /* Taille réduite */
  stroke-width: 2;
}

.social-link:hover {
  transform: translateY(-2px);
}

/* Styles responsifs pour les différentes tailles d'écran */
@media (max-width: 992px) {
  .floating-cta {
    padding: 0.5rem 1.5rem;
    height: auto;
    min-height: 2cm;
  }
  
  .floating-cta-left, .floating-cta-center, .floating-cta-right {
    flex: 0 0 auto;
    height: auto;
  }
  
  .floating-cta-center {
    flex: 1 1 auto;
    margin: 0 1rem;
  }
}

@media (max-width: 768px) {
  .floating-cta {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem;
    height: auto;
  }

  .floating-cta-left h2 {
    font-size: 0.9rem;
    text-align: left;
  }
  
  .floating-cta-center {
    flex: 1 1 100%;
    margin: 0.5rem 0;
    order: 3;
  }
  
  .floating-cta-email {
    width: 100%;
  }
  
  .floating-cta-email input {
    font-size: 0.85rem;
    flex: 1;
  }
  
  .floating-cta-right {
    order: 2;
  }
}

@media (max-width: 576px) {
  .floating-cta {
    padding: 0.5rem;
  }
  
  .floating-cta-left h2 {
    font-size: 0.85rem;
  }
  
  .floating-cta-email input {
    font-size: 0.8rem;
    width: auto;
    flex: 1;
  }
  
  .floating-cta-email button {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
}

/* Styles pour la production - ajoutés pour assurer la compatibilité avec coop2t.org */
/* Ces styles vont prévaloir sur les styles ci-dessus en cas de conflit */
.floating-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2d3f2f;
  padding: 0.7rem 2rem;
  flex-wrap: nowrap;
  gap: 1rem;
  transform: scaleY(0.7); /* réduit visuellement la hauteur de 30% */
  transform-origin: top;
}

.floating-cta-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cta-left h2 {
  font-size: 1.2rem;
  margin: 0;
  color: white;
  text-align: center;
}

.floating-cta-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.floating-cta-email {
  display: flex;
  gap: 0;
  justify-content: center;
}

.floating-cta-email input {
  padding: 0.5rem 1rem;
  border-radius: 30px 0 0 30px;
  border: none;
  width: 260px;
  font-size: 1rem;
  height: 38px;
}

.floating-cta-email button {
  padding: 0.5rem 1.2rem;
  border-radius: 0 30px 30px 0;
  background-color: #c7ab72;
  color: #2d3f2f;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  height: 38px;
}

.floating-cta-privacy {
  font-size: 0.6rem;
  color: #ccc;
  text-align: center;
}

.floating-cta-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cta-social {
  display: flex;
  align-items: center;
}

.floating-cta-social .social-links {
  display: flex;
  align-items: center;
}

.floating-cta-social .social-link svg {
  stroke: white;
  margin-left: 0.5rem;
}
