/*#region Générale */
/*!
=======================================================================
*Générale
=======================================================================
*/

.navlinks li:nth-child(4) a {
  color: #f3931b;
  border-bottom: 1px solid #f3931b;
}
.centertxt {
  text-align: center;
  width: 90vw;
  max-width: 100%;
  color: #00343b;
  font-size: 40px;
  margin-bottom: 40px;
}

:root {
  --primary-color: #00343b;
  --secondary-color: #f4f4f4;
  --text-color: #333;
  --accent-color: #f3931b;
  --border-radius: 8px;
  --transition: all 0.3s ease-in-out;
}

.headersection {
  height: 50vh;
  width: 100vw;
  max-width: 100%;
  background: url(../Images/Midle\ Largz@4x.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
  color: var(--text-color);
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/*#endregion */

/*#region containers */
/*!
=======================================================================
*containers
=======================================================================
*/
:root {
  --primary-color: #03464f;
  --secondary-color: #f3931b;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #333333;
  --font-main: "Inter", sans-serif;
  --font-secondary: "Montserrat", sans-serif;
}

/* Section Contact */
.contact-section {
  background-color: var(--white);
  color: var(--dark-gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-section .contact-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

.contact-section .contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-section .contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-secondary);
}

.contact-section .contact-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--dark-gray);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact-section .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Formulaire de contact */
.contact-section .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-section .form-group label {
  font-weight: 500;
  color: var(--primary-color);
}

.contact-section .form-group input,
.contact-section .form-group textarea {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(243, 147, 27, 0.2);
}

.contact-section .form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-section .submit-btn {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.contact-section .submit-btn:hover {
  background: #e08719;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 147, 27, 0.3);
}

/* Carte Google Maps */
.contact-section .map-container {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-section .contact-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* Réseaux sociaux */
.contact-section .social-media {
  margin-top: 3rem;
}

.contact-section .social-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-family: var(--font-secondary);
}

.contact-section .social-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-section .social-item {
  flex: 1 1 calc(20% - 1rem);
  min-width: 120px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.contact-section .social-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-section .social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  height: 100%;
}

.contact-section .social-item i {
  font-size: 1.2rem;
}

/* Couleurs des réseaux sociaux */
.contact-section .social-item.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.contact-section .social-item.linkedin {
  background: linear-gradient(90deg, #0077b5, #005582);
}
.contact-section .social-item.behance {
  background: linear-gradient(90deg, #1769ff, #3f3f3f);
}
.contact-section .social-item.github {
  background: linear-gradient(120deg, #24292e, #6e7681);
}
.contact-section .social-item.pinterest {
  background: linear-gradient(90deg, #bd081c, #ff5441);
}
.contact-section .social-item.dribbble {
  background: linear-gradient(120deg, #ea4c89, #ff789f, #ffafc1);
}
.contact-section .social-item.telegram {
  background: linear-gradient(135deg, #0088cc, #33b3e4, #5edcf3);
}
.contact-section .social-item.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e, #075e54);
}
.contact-section .social-item.email {
  background: linear-gradient(90deg, #ea4335, #fbbc05, #34a853, #4285f4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-section .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-section .contact-map {
    min-height: 300px;
  }

  .contact-section .social-item {
    flex: 1 1 calc(25% - 1rem);
  }
}

@media (max-width: 768px) {
  .contact-section .contact-container {
    padding: 1.5rem;
  }

  .contact-section .social-item {
    flex: 1 1 calc(33% - 1rem);
  }
}

@media (max-width: 576px) {
  .contact-section .social-item {
    flex: 1 1 calc(50% - 1rem);
    min-width: auto;
  }

  .contact-section .social-item a {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }

  .contact-section .submit-btn {
    width: 100%;
  }
}
/*#endregion */

/*#region News Letter */
/*!
=======================================================================
*News Letter
=======================================================================
*/

.newsletter :root {
  --primary-color: #03464f;
  --secondary-color: #f3931b;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --font-main: "Inter", sans-serif;
  --font-secondary: "Montserrat", sans-serif;
}

/* Section Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary-color) 0%, #022a30 100%);
  color: var(--white);
  padding: 3rem 0; /* Réduit de 5rem à 3rem */
  position: relative;
  overflow: hidden;
}

.newsletter .newsletter-container {
  width: 90%;
  max-width: 1200px; /* Réduit de 1700px pour un meilleur espacement */
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 3rem; /* Réduit de 4rem */
}

.newsletter .newsletter-content {
  flex: 1;
  max-width: 550px; /* Légèrement réduit */
  z-index: 2;
}

.newsletter .newsletter-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.newsletter .newsletter-img {
  max-width: 100%; /* Modifié pour mieux s'adapter */
  width: 400px; /* Taille fixe pour contrôler la hauteur */
  height: auto;
  border-radius: 8px;
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
  object-fit: contain;
}

/* Ajustements pour les grands écrans */
@media (min-width: 1600px) {
  .newsletter .newsletter-container {
    max-width: 1400px;
  }
}

@media (min-width: 992px) {
  .newsletter {
    padding: 3.5rem 0; /* Légèrement plus que sur mobile mais moins qu'avant */
  }

  .newsletter .newsletter-img {
    max-width: 80%;
  }
}

/* Le reste de votre CSS reste inchangé */
.newsletter .newsletter-img:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.newsletter .newsletter-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.2rem; /* Réduit de 1.5rem */
  font-family: var(--font-secondary);
  line-height: 1.3;
}

.newsletter .newsletter-title span {
  color: var(--secondary-color);
  position: relative;
}

.newsletter .newsletter-title span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  transform: scaleX(0.8);
  transform-origin: left;
}

.newsletter .newsletter-text {
  font-size: 1.1rem;
  line-height: 1.5; /* Légèrement réduit */
  margin-bottom: 1.5rem; /* Réduit de 2rem */
  opacity: 0.9;
}

.newsletter .newsletter-form {
  margin-bottom: 1rem; /* Réduit de 1.5rem */
}

.newsletter .form-group {
  display: flex;
  max-width: 500px;
  position: relative;
}

.newsletter .newsletter-input {
  flex: 1;
  padding: 0.9rem 1.5rem; /* Légèrement réduit */
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.newsletter .newsletter-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(173, 101, 12, 0.3);
}

.newsletter .newsletter-btn {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 0 1.8rem; /* Légèrement réduit */
  margin-left: -50px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.newsletter .newsletter-btn:hover {
  background: #c5760e;
  transform: translateX(5px);
}

.newsletter .newsletter-btn i {
  font-size: 0.9rem;
}

.newsletter .newsletter-privacy {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter .newsletter-privacy i {
  color: var(--secondary-color);
}

/* Responsive Design - Mobile */
@media (max-width: 992px) {
  .newsletter .newsletter-container {
    flex-direction: column;
    gap: 2rem; /* Réduit de 3rem */
    text-align: center;
  }

  .newsletter .newsletter-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .newsletter .newsletter-title span::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0.8);
    width: 80%;
  }

  .newsletter .form-group {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .newsletter {
    padding: 2.5rem 0; /* Réduit de 3rem */
  }

  .newsletter .newsletter-container {
    padding: 0 1.5rem;
  }

  .newsletter .newsletter-input {
    padding: 0.8rem 1.2rem;
  }

  .newsletter .newsletter-btn {
    padding: 0 1.5rem;
  }

  .newsletter .newsletter-img {
    max-width: 90%;
    width: 100%;
  }
}
/*#endregion */
