/* 
 * COOP2T - Style des icônes réseaux sociaux
 * Amélioration du contraste et de la visibilité des icônes
 */

.social-links {
  display: flex;
  justify-content: center;
  align-items: center; /* Alignement vertical */
  margin: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
}

.social-link:hover {
  transform: translateY(-3px);
}

/* Section newsletter optimisée */
.newsletter-section {
  background-color: #2d3f2f;
  padding: 0;
  height: 4cm;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter-content {
  display: flex;
  align-items: center; /* Alignement vertical des éléments */
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  height: calc(4cm - 2rem);
  padding: 1rem 2rem;
}

.newsletter-text {
  flex: 0 0 auto;
  display: flex;
  align-items: center; /* Centre verticalement le contenu */
  height: 100%;
}

.newsletter-text h2 {
  color: white;
  font-size: 1.3rem;
  margin: 0;
  font-family: var(--font-secondary), 'Lora', serif;
  line-height: 1.4;
  text-align: center; /* Centre le texte horizontalement */
}

.newsletter-text .highlight {
  color: #c7ab72;
  font-weight: bold;
}

.newsletter-form-container {
  flex: 0 1 auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre horizontalement */
  justify-content: center; /* Centre verticalement */
  height: 100%;
}

.newsletter-form-large .form-group {
  display: flex;
  align-items: center;
  justify-content: center; /* Centre les éléments du formulaire */
  width: 100%;
}

.newsletter-form-large input {
  padding: 0.5rem 1rem;
  border-radius: 30px 0 0 30px;
  border: none;
  width: 240px;
  height: 38px;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form-large button {
  padding: 0.5rem 1.2rem;
  border-radius: 0 30px 30px 0;
  border: none;
  background-color: #c7ab72;
  color: #2d3f2f;
  font-weight: bold;
  cursor: pointer;
  height: 38px;
  white-space: nowrap;
}

.newsletter-social-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center; /* Centre verticalement */
  justify-content: center; /* Centre horizontalement */
  height: 100%;
}

.newsletter-social-links .social-links {
  display: flex;
  align-items: center; /* Centre verticalement */
}

.newsletter-social-links .social-link svg {
  margin-left: 0.8rem;
  stroke: white;
}

.privacy-note {
  text-align: center;
  color: #ccc;
  font-size: 0.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
}

/* Connexion avec le footer */
.newsletter-section + .footer {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styles responsifs */
@media (max-width: 992px) {
  .newsletter-section {
    height: auto;
    padding: 1rem 0;
  }

  .newsletter-content {
    height: auto;
    justify-content: center;
    padding: 0 1.5rem;
  }
  
  .newsletter-text {
    text-align: center;
    margin-bottom: 0.5rem;
    height: auto;
  }

  .newsletter-form-container {
    margin: 0 1rem;
    height: auto;
  }
  
  .newsletter-social-links {
    margin-left: 0;
    height: auto;
  }
}

@media (max-width: 768px) {
  .newsletter-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .newsletter-form-container {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0;
  }
  
  .newsletter-form-large .form-group {
    width: 100%;
  }
  
  .newsletter-form-large input {
    flex: 1;
  }
  
  .newsletter-social-links {
    margin-top: 0.5rem;
  }
  
  .newsletter-social-links .social-link svg {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}
