/* CSS Variables */
:root {
  --primary-color: #137070;
  --secondary-color: #E86925;
  --font-family: Arial, sans-serif;
  --background-color: #f4f4f4;
  --text-color: #333;
  --heading-font-size: 42px;
}

/* Global Styles */
body {
  font-family: var(--font-family);
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Header */
header {
  position: initial;
  top: 0;
  margin-bottom: 10px;
  z-index: 1000;
}

/* Navbar */
.navbar {
  background-color: transparent;
  /* Remove background color */
  position: absolute;
  /* Make it sit on top of the hero section */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem;
}

/* Logo */
.logo-img {
  width: 120px;
  /* Adjust the logo size to fit the menu */
}

.navbar-toggler {
  border: none;
  outline: none;
  /* Remove border on click */
  box-shadow: none;
  /* Ensure no shadow around the button */
}

.navbar-toggler-icon {
  background-color: white;
  border-radius: 4px;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  /* Remove outline on focus or active state */
  box-shadow: none;
  /* Ensure no shadow on active or focus */
}

.nav-link {
  color: white !important;
}

.nav-link:hover {
  color: #FFA500 !important;
}

/* Logo */
.logo-img {
  width: 120px;
  /* Adjust logo size to fit menu icon on one line */
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom, rgba(24, 104, 107, 0.8), rgba(24, 104, 107, 0.5)), url(/images/Hero_1.png) center/cover;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 104, 107, 0.5);
}

/* Adjust the hero section padding to move content down */
.hero-content {
  padding-top: 220px;
  /* Push the content down further for spacing */
  transition: padding-top 0.3s ease;
  /* Smooth transition when menu expands */
}

/* When the menu is collapsed (not expanded), add more top padding */
.navbar-collapse.collapse:not(.show)+.hero-content {
  padding-top: 160px;
  /* Default state */
}

h1.display-4 {
  margin-top: 30px;
  /* Add more spacing between the title and the top */
}

p.lead {
  margin-top: 20px;
  /* Add some spacing between the title and description */
}

/* When the navbar expands, it will push the hero section content down */
.navbar-collapse {
  background-color: rgba(24, 104, 107, 0.9);
  /* Background for mobile menu */
  padding: 1rem;
  /* Ensure spacing for the expanded menu */
  transition: all 0.3s ease;
  /* Smooth transition */
}

/* Ensure that the collapse pushes content down */
@media (max-width: 768px) {
  .navbar-collapse {
    position: relative;
    z-index: 1;
    /* Ensure it's not overlapping the hero section */
    background-color: rgba(24, 104, 107, 0.9);
  }

  .navbar-nav {
    text-align: center;
    padding-top: 20px;
  }

  .hero-section {
    height: auto;
    /* Allow the hero section to adjust based on content */
  }

  /* Ensure hero image doesn't overlap */
  .hero-section img {
    width: 100%;
    height: auto;
  }
}

/* Transition Effects */
.transition-transform {
  transition: transform 1.5s ease, opacity 1.5s ease;
}

.hidden-left {
  transform: translateX(-100%);
  opacity: 0;
}

.hidden-right {
  transform: translateX(100%);
  opacity: 0;
}

.visible {
  transform: none;
  opacity: 1;
}

/* Hero Bottom */
.hero-bottom {
  background-color: white;
  padding: 2rem;
  border-radius: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.green-line {
  border-top: 1px solid #2ECC71;
  width: 80%;
  margin: 15px auto;
}

/* How It Works Section */
.circle-icon {
  width: 80px;
  height: 80px;
  background-color: #E6F3F4;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.benefit-item {
  margin-bottom: 40px;
}

.btn-cta {
  background: linear-gradient(45deg, var(--secondary-color), #F8A02A);
  border-radius: 12px;
  padding: 15px 30px;
  color: white;
  font-weight: bold;
  border: none;
}

.btn-cta:hover {
  background: linear-gradient(45deg, #F8A02A, var(--secondary-color));
}

/* Nos Points Relais Section */
.relay-points-section {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 1rem;
}

.map-container {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  margin-top: 2rem;
  max-width: 90%;
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
}

.map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .map-container {
    max-width: 80%;
    max-height: 80vh;
  }
}

/* Catalog Section */
.catalog-section {
  padding: 2rem 1rem;
}

.catalog-left {
  text-align: center;
  margin-bottom: 2rem;
}

.catalog-left h2 {
  font-size: 36px;
  font-weight: 700;
}

.catalog-left p {
  font-size: 16px;
  color: var(--primary-color);
}

.slick-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.catalog-slide {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 220px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.catalog-slide img {
  max-width: 150px;
  margin-bottom: 1rem;
}

.catalog-slide h3 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 1rem;
}

.catalog-slide p {
  font-size: 14px;
}

.slick-dots {
  bottom: -25px;
}

.slick-dots li button:before {
  color: rgba(232, 105, 37, 0.3);
}

.slick-dots li.slick-active button:before {
  color: var(--secondary-color);
}

/* Discover Application Section */
.discover-section {
  padding: 1rem;
  background-color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 70px;
  max-width: 1400px;
  margin: 0 auto;
}

.discover-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  color: white;
}

@media (min-width: 1024px) {
  .discover-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    position: relative;
  }
}

.discover-image {
  margin-top: -100px;
  position: relative;
  z-index: 1;
}

.discover-image img {
  max-width: 100%;
  height: auto;
}

.discover-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.discover-text p.uppercase {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.discover-text h2 {
  font-size: var(--heading-font-size);
  font-weight: 700;
  line-height: 1.3;
}

.discover-links a {
  display: block;
  padding: 1rem;
  background-color: #2B7E7E;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.discover-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.discover-form input {
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  outline: none;
  width: 80%;
  font-size: 16px;
}

.discover-form button {
  padding: 0.75rem;
  border-radius: 8px;
  background-color: var(--secondary-color);
  color: white;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  width: 20%;
}

/* Testimonials Section */
.testimonial-section {
  padding: 2rem 1rem;
  text-align: center;
}

.testimonial-header p {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.testimonial-header h2 {
  font-size: var(--heading-font-size);
  font-weight: 700;
  margin-bottom: 10px;
}

.testimonial-header p.subheader {
  font-size: 16px;
  color: #555;
}

.testimonial-slider {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.testimonial-slide {
  background-color: #f4f7f8;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
}

.testimonial-slide p {
  font-size: 16px;
  color: #333;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.slick-prev:before, .slick-next:before {
  color: var(--secondary-color);
}

/* Partner Section */
.partner-section {
  padding: 2rem 1rem;
  text-align: center;
}

.partner-header p {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.partner-header h2 {
  font-size: var(--heading-font-size);
  font-weight: 700;
  margin-bottom: 10px;
}

.partner-header p.subheader {
  font-size: 16px;
  color: #555;
}

.partner-container {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  margin-top: 20px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #f4f7f8;
}

.partner-tabs {
  width: 100%;
  margin-bottom: 1rem;
}

.partner-tab-title {
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 1rem 0;
  color: #ffa879;
  transition: color 0.3s;
}

.partner-tab-title.active {
  color: var(--secondary-color);
}

.partner-content {
  display: none;
  font-size: 18px;
  font-weight: 300;
}

.partner-content.active {
  display: block;
  margin-top: -10px;
}

@media (min-width: 768px) {
  .partner-section {
    max-width: 1200px;
    margin: 0 auto;
  }

  .partner-container {
    flex-direction: row;
  }

  .partner-tabs {
    width: 30%;
    margin-bottom: 0;
  }

  .partner-content-container {
    width: 70%;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    margin-left: 2rem;
  }
}

/* FAQ Section */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background-color: var(--primary-color);
  color: white;
}

.faq-left {
  text-align: center;
  max-width: 600px;
}

.faq-left p {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.faq-left h2 {
  font-size: var(--heading-font-size);
  font-weight: 700;
  line-height: 1.2;
}

.faq-left .faq-description {
  font-size: 18px;
  font-weight: 300;
  padding: 1.5rem 0;
}

.faq-right {
  max-width: 600px;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid white;
  padding: 1rem 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  transition: color 0.3s;
}

.faq-question.active {
  color: white;
}

.faq-question.inactive {
  color: rgba(255, 255, 255, 0.5);
}

.faq-answer {
  font-size: 18px;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer.open {
  max-height: 10rem;
}

/* Icons */
.icon {
  font-size: 18px;
  transition: transform 0.3s;
}

.icon.open {
  transform: rotate(45deg);
}

/* Responsive */
@media (min-width: 768px) {
  .faq-section {
    flex-direction: row;
    padding: 4rem;
  }

  .faq-left {
    text-align: left;
    width: 40%;
  }

  .faq-right {
    width: 60%;
    padding-left: 2rem;
  }
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-details {
  flex: 1;
  padding: 20px;
}

.contact-details h2 {
  font-size: 36px;
  color: var(--primary-color);
}

.contact-details p {
  font-size: 16px;
  margin: 10px 0;
  color: #515151;
}

.contact-info {
  margin-top: 20px;
}

.contact-info img {
  vertical-align: middle;
  margin-right: 10px;
}

.contact-info a {
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
}

.contact-form {
  flex: 1;
  padding: 20px;
  background-color: #FFF6EA;
  border-radius: 10px;
}

.contact-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  width: 100%;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #d75b1f;
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

footer a {
  color: white;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE CORRECTIONS
   ============================================================ */

/* ---- Hero: reduce top padding on smaller screens ---- */
@media (max-width: 991px) {
  .hero-content {
    padding-top: 120px;
  }
}

@media (max-width: 575px) {
  .hero-content {
    padding-top: 90px;
  }

  /* Hero bottom: stack items vertically on small phones */
  .hero-bottom {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .hero-bottom > div {
    width: 100%;
  }
}

/* ---- Fluid heading sizes (h2 used as section headings) ---- */
@media (max-width: 767px) {
  .discover-text h2,
  .testimonial-header h2,
  .partner-header h2,
  .faq-left h2,
  .catalog-left h2 {
    font-size: 26px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .discover-text h2,
  .testimonial-header h2,
  .partner-header h2,
  .faq-left h2,
  .catalog-left h2 {
    font-size: 34px;
  }
}

/* ---- Catalog: layout colonne (texte au-dessus, carousel en dessous) sur tous les écrans ---- */
.catalog-section {
  display: block;
}

.catalog-left {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.catalog-carousel {
  width: 100%;
}

/* ---- Discover section: remove top offset on mobile/tablet ---- */
/* The position:relative + top:70px causes content overlap below 1024px */
@media (max-width: 1023px) {
  .discover-section {
    top: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0;
  }

  .discover-image {
    margin-top: 0;
  }
}

/* ---- Discover form: full-width stacked on mobile, inline on larger screens ---- */
.discover-form form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.discover-form input  { width: 100%; }
.discover-form button { width: 100%; }

@media (min-width: 576px) {
  .discover-form form {
    flex-direction: row;
    align-items: stretch;
  }

  .discover-form input  { flex: 1; width: auto; }
  .discover-form button { width: auto; min-width: 110px; }
}

/* ---- Testimonials: tighter padding on small screens ---- */
@media (max-width: 575px) {
  .testimonial-slider {
    padding: 1rem 0.25rem;
  }
}

/* ---- FAQ: smaller font on very small screens ---- */
@media (max-width: 575px) {
  .faq-question { font-size: 16px; }
  .faq-answer   { font-size: 15px; }
}

/* ---- Contact: tighter padding on small screens ---- */
@media (max-width: 575px) {
  .contact-details h2 { font-size: 26px; }
  .contact-details,
  .contact-form       { padding: 10px; }
}

/* ============================================================
   UI POLISH FIXES
   ============================================================ */

/* ---- 0. Logo: force correct width (overrides CDN cascade conflicts) ---- */
.navbar-brand .logo-img {
  width: 120px !important;
  max-width: 120px !important;
  height: auto;
}

/* ---- 1. Navbar: visible hamburger on dark hero background ---- */
/* White hamburger icon lines */
.navbar-toggler-icon {
  background-color: transparent;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  border-radius: 2px;
}

/* Visible toggler button border */
.navbar-toggler {
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

/* Subtle dark gradient at top so nav links are readable over hero text */
@media (max-width: 991px) {
  .navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
  }
}

/* ---- 2. Testimonials: justified text + arrows inside slider ---- */
.testimonial-slide p {
  text-align: justify;
  hyphens: auto;
}

/* Move slick arrows inside the slider boundary + above slides */
.testimonial-slider .slick-prev { left: 6px;  z-index: 10; }
.testimonial-slider .slick-next { right: 6px; z-index: 10; }

.testimonial-slider .slick-prev::before,
.testimonial-slider .slick-next::before {
  font-size: 28px;
}

/* ---- 3. Catalog: centered slides + arrows inside carousel ---- */
/* Ensure images are vertically consistent */
.catalog-slide img {
  max-height: 160px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
}

/* Move catalog arrows inside the carousel + above slides */
.catalog-carousel .slick-prev { left: 6px;  z-index: 10; }
.catalog-carousel .slick-next { right: 6px; z-index: 10; }

.catalog-carousel .slick-prev::before,
.catalog-carousel .slick-next::before {
  font-size: 28px;
  color: var(--secondary-color);
}

/* ---- 4. Contact: icône flottante gauche, texte qui s'enroule proprement ---- */
/* overflow:hidden = clearfix + empêche le débordement du conteneur           */
.contact-info p {
  overflow: hidden;
  margin-bottom: 1rem;
}

/* L'icône reste ancrée à gauche, le texte et le lien s'alignent à sa droite */
.contact-info p img {
  float: left;
  margin-right: 0.75rem;
  margin-top: 2px;
}

/* Masquer le <br> — label et lien s'enchaînent sur la même ligne si la place le permet */
.contact-info p br {
  display: none;
}

/* L'email long se coupe proprement plutôt que de déborder */
.contact-info p a {
  word-break: break-all;
}

/* ============================================================
   HERO DESKTOP IMPROVEMENTS (≥ 992px)
   ============================================================ */
@media (min-width: 992px) {

  /* A. Bandeau : supprimer le fond teal de la navbar-collapse en desktop
        (il ne doit exister qu'en mobile pour le menu hamburger déroulant) */
  .navbar-collapse {
    background-color: transparent !important;
    padding: 0 !important;
  }

  /* B. Navbar desktop : espacement vertical propre */
  .navbar {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  /* C. Hero-content : pousser sous la navbar + centrage vertical du contenu */
  .hero-content {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
  }

  /* D. Colonne texte : largeur max pour éviter que le titre soit trop étalé */
  #left-section {
    max-width: 52%;
  }
}