.instrument-sans-paragraph {
  font-family: "Instrument Sans", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

h1, h2, h3, h4, p {
  font-family: "Instrument Sans", serif;
}

h1 {
  font-size: 5em;
  line-height: 1em;
  margin: 0 auto;
}

h2 {
  font-size: 2.5em;
}

p {
  line-height: 1.5em;
  color: #191919;
}

html {
    scroll-behavior: smooth;
}

/*body {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}*/


/* Header Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.2); /* Transparent white */
    backdrop-filter: blur(10px); /* Blur effect */
    display: flex;
    align-items: center;
    padding: 10px 20px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    justify-content: center; /* Centers the container */
    z-index: 1000; /* Ensures it stays above other elements */
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Keeps the logo aligned to the left */
    max-width: 1800px;
    width: 100%;
    padding: 0 40px; /* Adds spacing */
}



/* Logo */
.logo img {
    height: 30px; /* Adjust logo size */
}

.half-section {
  display: flex;
  flex-direction: row;
  margin: 100px auto;
}

/* First section*/


.square-rounded {
  width: 30px;
}

body {
  background-color: #FAFAFA;
}

.custom-button {
  font-family: "Instrument Sans", serif;
  font-weight: 400;
  font-size: 1em;
  width: 350px;
  height: 60px;
  border-radius: 8px;
  border-color: transparent;
  background-color: #5133EA;
  color: white;
  display: flex;
  justify-content: space-between;
  padding-left: 25px;
  padding-right: 25px;
  align-items: center;

}

.custom-button .bold-text {
  font-weight: 600;
}

.custom-button::after {
    content: '→'; /* Unicode for the arrow */
    margin-left: auto; /* Pushes the arrow to the far right */
    font-size: 1rem; /* Adjust size as needed */
    color: inherit; /* Matches the text color */
    transition: transform 0.3s ease; /* Smooth hover animation */
}


.custom-button:hover::after {
    transform: translateX(5px); /* Slide the arrow on hover */
}

.bold {
  font-weight: 600;
}

.tag {
    display: inline-block;
    background-color: #B3B3B3; /* Light grey background */
    color: white;
/*    font-weight: bold;*/
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px; /* Makes it pill-shaped */
    text-align: center;
    white-space: nowrap;
    font-family: "Instrument Sans", serif;
}

.container {
    max-width: 1800px;   
    margin: 0 auto; /* Centers content */
    padding: 0 20px; /* Adds space on smaller screens */
}

/*Section 1*/

.text-section {
    flex: 1;
    max-width: 50%;
    justify-content: space-between;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    padding-right: 100px;
}

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

.image-section img {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    object-fit: cover;
}


/* Logos section */

/* Wrapper for the logo slider */
.logo-slider {
    overflow: hidden; /* Hides overflow */
    white-space: nowrap;
    position: relative;
    width: 100%;
/*    background: white; */
    padding: 20px 0;
}

/* Track for the moving logos */
.logo-track {
    display: flex;
    gap: 40px; /* Space between logos */
    width: max-content;
    animation: scrollLogos 20s linear infinite;
}

/* Logo styling */
.logo-track img {
    height: 50px; /* Adjust logo size */
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

/* Remove grayscale effect on hover */
.logo-track img:hover {
    filter: grayscale(0%);
}

/* Keyframes for infinite scrolling */
@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/*Section 2*/
.second-section {
    margin: 50px auto;
    padding: 20px;
}

.stats-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px; /* Spacing between boxes */
}

.stat-box {
    background-color: #F0F0F0; /* Light grey background */
    padding: 30px;
    margin: 10px;
    border-radius: 12px; /* Smooth corners */
    text-align: left;
    width: 500px; /* Adjust width as needed */
}
/*
.stat-box h3 {
    font-size: 5em;
    font-weight: bold;
    margin: 0;
    color: #111;
}*/

.stat-box p {
    font-size: 16px;
    color: #444;
    margin: 5px 0 0;
}

.stat-box h3 {
  font-size: 64px;
  font-weight: bold;
  margin: 0;
  color: black;
}


/*Section thermal*/
.thermal-section {
    padding: 80px 0;
    background-color: #FAFAFA;
}

.thermal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
    gap: 40px;
}

/* Left: Image Styling */
.thermal-image {
    flex: 1;
    max-width: 900px;
}

.thermal-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Right: Text Styling */
.thermal-text {
    flex: 1;
}

.thermal-text h2 {
    font-size: 36px;
    font-weight: bold;
    color: #191919;
}

.thermal-benefits {
    list-style: none;
    padding: 0;
}

.thermal-benefits li {
    color: #333;
    margin-bottom: 10px;
    font-family: "Instrument Sans", serif;
}

.contact-section {
    padding: 80px 0;
    background-color: #FAFAFA;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* Left: Contact Details */
.contact-details {
    flex: 1;
}

.contact-details h2 {
    font-size: 36px;
    font-weight: bold;
    color: #191919;
}

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

.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.info-box img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

/* Right: Contact Form */
.contact-form {
    flex: 1;
}

.contact-form .form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #000;
    border-radius: 8px;
    background-color: #fff;
}

.contact-form textarea {
    height: 150px;
}

.submit-btn {
    background-color: black;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #333;
}

.success-message {
    font-size: 16px;
    color: green;
    margin-top: 10px;
}


/*Footer*/

.footer {
    text-align: left; /* Align text to the left */
    padding: 0px;
    max-width: 1800px;
    margin: 0 auto; /* Centers the footer content */
    font-size: 14px;
    color: #666;
}

.footer hr {
    border: none;
    height: 1px;
    background-color: #E2E2E2; /* Light gray line */
    margin-bottom: 10px;
}

.footer p {
    margin: 0;
    font-weight: 400;
}

.map-section {
    margin: 100px auto;
}

#map {
    height: 700px;
    width: 100%;
}

/* ✅ General: Mobile-Friendly Styles */
@media (max-width: 1024px) {
    .container {
        width: 100%; /* Reduce width to adapt */
/*        padding: 0 20px;*/
    }

    h1 {
        font-size: 3em; /* Reduce main heading size */
        margin-top: 20px;
    }

    h2 {
        font-size: 2em;
    }
}

/* ✅ Header Adjustments for Mobile */
@media (max-width: 768px) {
    .header {
        display: flex;
        flex-direction: row; /* Ensures logo and text are in a row */
        align-items: center; /* Aligns vertically */
        justify-content: flex-start; /* Aligns everything to the left */
        height: auto;
        padding: 15px; /* Proper padding */
        gap: 10px; /* Adds spacing between logo and text */
    }

    .header .container {        
        padding: 0 15px; /* Proper padding */
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 40px; /* Adjust logo size */
        margin-right: 10px; /* Adds spacing between logo and text */
    }
}

@media (max-width: 768px) {
  body {
    width: 80%;
  }
}

/* ✅ Half-Section (Hero Section with Image & Text) */
@media (max-width: 768px) {
    .half-section {
        flex-direction: column;
        margin: 0;
/*        text-align: center;*/
    }

    .text-section, .image-section {
        width: 100%;
    }

    .text-section {
        padding: 0;
    }

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

/* ✅ Logos Section (Partners) */
@media (max-width: 768px) {
    .logo-track {
        animation: scrollLogos 15s linear infinite; /* Speed up on mobile */
        gap: 20px;
    }

    .logo-track img {
        height: 40px; /* Smaller logos on mobile */
    }

    video {
        max-width: 100%;
    }
}


/* ✅ Stats Section (Pourquoi Nous Choisir) */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-section {
        margin-bottom: 0;
    }

    .stat-box {
        width: 80%; /* Full width for better stacking */
        margin-left: 0;
        margin-righ: auto;
    }
}

/* ✅ Thermal Section (Image & Text) */
@media (max-width: 768px) {
    .thermal-content {
        flex-direction: column;
/*        text-align: center;*/
    }

    .thermal-image, .thermal-text {
        width: 100%;
    }
}

/* ✅ Contact Form Section */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;        
    }

    .contact-form, .contact-details {
        width: 90%;
    }

    .form-group {
        flex-direction: column;
    }

    .contact-form input, 
    .contact-form textarea {
        width: 100%;
    }
}

/* Champigny specific elements */

/* --- Champigny Map Section --- */
.champigny-map-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 80px auto;
}

.champigny-map-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* --- Clickable Dots --- */
.champigny-map-point {
  position: absolute;
  width: 30px;
  height: 30px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  font-family: "Instrument Sans", serif;
}

/* --- Modal Overlay --- */
.champigny-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 2000;
    }

.champigny-modal-content {
  background: white;
  max-width: 900px;
  width: 90%;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  font-family: "Instrument Sans", serif;
}

.champigny-modal-content video {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
}

.champigny-modal-text {
  flex: 1;
  font-size: 1em;
  color: #191919;
}

.champigny-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.8rem;
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #191919;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.color-0 {
  background-color: #779824;
}

.color-1 {
  background-color: #779824;
}

.color-2 {
  background-color: #F8C0B5;

}

.color-3 {
  background-color: #F2917D;
}
.color-4 {
  background-color: #ED6145;
}
.color-5 {
  background-color: #E03616;
    border: #191919;
}
.color-na {
  background-color: lightgray;
}
.color-other {
  background-color: black;
  color: white;
}

.color-0,
.color-1,
.color-2,
.color-3,
.color-4,
.color-5,
.color-na,
.color-other {
  font-family: "Instrument Sans", serif;
}

.legend-section {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: #FAFAFA;
  border-radius: 12px;
  font-family: "Instrument Sans", serif;
  text-align: center;
}

.legend-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #191919;
}

.legend-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
}

.scale-block {
  flex: 1;
  height: 20px;
  margin: 0 2px;
  border-radius: 4px;
  border: 1px solid #191919;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 1em;
  color: #333;
  margin-top: 5px;
  padding: 0 5px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 1em;
  color: #333;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 10px;
  border: 1px solid #191919;
}

/* === Centered layout styling === */
.centered .centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.centered .centered-title {
  text-align: center;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.centered h2 {
  font-size: 2.2em;
  line-height: 1.4em;
  color: #191919;
  font-family: "Instrument Sans", serif;
  font-weight: 600;
}

.centered .centered-footer {
  text-align: center;
}

.centered .centered-footer hr {
  width: 80%;
  margin: 20px auto;
}

.centered .centered-footer p {
  margin: 10px 0;
  font-size: 14px;
  color: #666;
}

/* Ensure centered logo stays centered at all breakpoints */
.centered-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  z-index: 1000;
}

.centered-header .centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.centered-header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.centered-header .logo img {
  height: 30px;
  max-width: 200px;
  margin: 0 auto;
}
