*, *::before, *::after {
  box-sizing: inherit;
}

/* Root CSS variables for color consistency across the website */
:root {
  --primary-color: rgb(63, 60, 125);
  --light-primary-color: rgba(63, 60, 125, 0.10);
  --secondary-color: #e95052;
  --light-secondary-color: #e9505220;
  --accent-color: #FCC543;
  --light-accent-color: #FCC54320;
  --tertiary-color: rgb(135, 135, 135);
  --light-tertiary-color: rgb(135, 135, 135, 0.1);
}

/* Typography global setup for consistency */
html {
  width: 100%;
  scroll-behavior: smooth;
  font-size: clamp(14px, 2.5vw, 18px);
  box-sizing: border-box;
}

body {
  --navbar-height: 100px;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ====================
   COMPONENTS
   ==================== */

/* Navbar styling with sticky positioning */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background-color: white;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 5%;
}

/* Responsive navbar adjustments */
@media (max-width: 1250px) {
  .nav-right { display: none; }
  .hamburger { display: flex; }
}

/* Hero Section with centered text content */
.hero {
  height: calc(100vh - var(--navbar-height));
  background-color: var(--primary-color);
  color: white;
  display: grid;
  place-items: center;
}

/* ====================
   RESPONSIVE DESIGN
   ==================== */

@media (max-width: 1000px) {
  .plan-content,
  .collectif-content,
  .symptoms-impact-section,
  .dynamique-content,
  .more-content {
    flex-direction: column !important;
    display: flex !important;    /* ensure flex on all */
    align-items: center;
    gap: 1.5rem;
  }
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}
p, li {
  font-size: clamp(1.25rem, 1.5vw, 1.25rem);
}

html {
  width: 100%;
    scroll-behavior: smooth;
    font-size: clamp(14px, 2.5vw, 18px);
    box-sizing: border-box;
}

body {
    --navbar-height: 100px; /* Define navbar height variable */
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
}

body.menu-open main,
body.menu-open header,
body.menu-open section,
body.menu-open footer {
  opacity: 0.75;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}
#page-overlay {
  transition: opacity 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}
body.menu-open #page-overlay {
  pointer-events: auto;
  cursor: pointer;
}

/* Navbar styles */
.navbar.open {
  border-bottom: none;
}
.mobile-navbar {
  display: none;
  position: fixed;
  top: 0;
  right: -50%;
  width: fit-content;
  max-width: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: right;
  text-align: right;
  z-index: 9999;
  background-color: white;
  margin-top: 100px;
  padding-inline: 10%;
  transition: right 0.3s cubic-bezier(0.075, 0.42, 0.165, 1);

  a {
    text-align: center;
    margin-top: 50px;
  }
}
.mobile-navbar.open {
  right: 0;
}
.nav-left {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}
.firm-name {
    font-weight: 500;
    font-size: 30px;
}
.logo-link .logo {
    height: 50px;
    margin-top: 25px;
    margin-bottom: 25px;
}
.nav-right ul {
  display: flex;
  flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-right p {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
}
.logo-link {
    text-decoration: none;
}
.contact-link {
    text-decoration: none;
    color: var(--primary-color);
    background-color: var(--accent-color);
    font-size: 17.5px;
    font-weight: 600;
    padding: 16.25px;
    border-radius: 25px;
}
.classical  {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 17.5px;
    display: inline-block; /* Needed for transform */
}
.nav-right a {
  margin-left: 25px;
}
.nav-right a, .mobile-navbar a {
    transition: transform 0.2s ease, color 0.2s ease, text-decoration 0.2s ease;
}
.nav-right a b, .mobile-navbar a b {
    font-weight: 1000;
}
.classical:hover {
    color: var(--accent-color); /* Change color to grey on hover */
    transform: scale(0.95); /* Scale down slightly on hover */
}
.nav-right a.active, .mobile-navbar a.active {
    color: var(--accent-color);
}
.nav-right a.active:hover {
  color: var(--primary-color);
}
.contact-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(0.95);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
@media (max-width: 1250px) {
  .hamburger {
    display: flex;
  }
  .nav-right {
    display: none;
  }
}
@media (max-width: 1000px) {
  .hamburger {
    display: flex;
  }
  .nav-right p {
    font-size: 15px;
  }
  .nav-right ul {
    display: none;
  }
}

.hero {
  display: grid;
  grid-template-rows: 1fr auto;
  max-width: 100vw;
  height: calc(100vh - var(--navbar-height));
  background-color: var(--primary-color);
  position: relative; /* Ensure this line is present */
}
.hero-content {
  box-sizing: border-box; /* Ensure padding is included in width calculation */
  padding-inline: 5%; /* If you want some spacing on the sides */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.hero-content h1 {
  font-size: clamp(45px, 6vw, 100px);
  margin: 0 5% 20px;
  font-weight: 900;
}
.hero-content h2 {
  font-size: clamp(20px, 2vw, 35px);
  line-height: clamp(20px, 2vw, 35px);
  margin: 0 5% 20px;
  font-weight: 300;
}
.hero-content h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color); /* Example button color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.25s ease-in-out; 
}
.cta-button:hover {
    scale: 0.95;
    background-color: var(--accent-color);
    /* Darker color on hover */
}

/* Footer styles */
footer {
  max-width: 100vw;
    min-height: 150px;
    display: flex;
    align-items: self-start;
    background-color: var(--light-primary-color);
}
.footer-top {
    display: flex;
    align-items: center;
    font-size: 25px;
    color: var(--primary-color);/* Space below the top section */
}
.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.footer-contact {
  padding-left: 50px;
  padding-block: 30px;
}
.footer-contact h4 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--primary-color);
}
.footer-contact a {
    text-decoration: none;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.125s ease-in-out;
}
.footer-contact a:hover {
    color: var(--secondary-color);
}
footer .footer-contact-details p {
  font-size: 14px;
  margin: 0;
  color: var(--primary-color);
}
footer .dev-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}
footer .built-by {
  font-size: 14px;
  color: var(--primary-color);
}
footer .dev-section img {
  height: 25px;
  margin-left: 10px;
}
footer .TEC-name {
  font-size: 14px;
  font-family:'Futura', sans-serif;
  color: black;
}
.linkedin-link img {
  height: 50px;
  width: 50px;
  margin: 0;
  padding: 0;
  color: var(--primary-color);
  filter: drop-shadow(0 0 0 var(--primary-color));
  transition: filter 0.25s ease-in-out;
}
.linkedin-link:hover img {
  filter: drop-shadow(0 0 0 var(--secondary-color));
}
.linkedin-link {
  margin: 0;
  padding: 0;
}


/* Content Section styles */
.content-section { /* Set height to full viewport height minus navbar height */
    scroll-margin-top: var(--navbar-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}
.content-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-left: 5%;
    padding-right: 5%;
}

.vertical-line {
  height: calc((100vh - var(--navbar-height)) * 0.15);
  width: 2px;
  background-color: var(--accent-color);
}

.collectif-content {
  color: var(--primary-color);
  font-family: 'Roboto', serif;
  font-style: italic;
  display: grid;
  grid-template-columns: repeat(3, 30%);
  grid-gap: 3%;
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 100px;
}
.collectif-section h3 {
  font-size: 35px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  padding-left: 5%;
  padding-right: 5%;
}
.collectif-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: var(--navbar-height);
  position: relative;
  max-width: 100%;
}
.collectif-text {
    margin-left: 10%;
    margin-right: 10%;
    font-weight: 300;
}
.collectif-text p, .collectif-content p {
    color: var(--primary-color);
    text-align: center;
    font-size: 20px;
}
.collectif-text b {
  color: var(--secondary-color);
}


/* POURQUOI VOUS */

.pourquoi-vous, .pourquoi-nous, .pour-quoi-faire {
  background-color: var(--light-tertiary-color);
  padding: 4rem 0;
  color: var(--primary-color);
  text-align: center;
  min-height: calc(100vh - var(--navbar-height));
  align-items: center;      /* keep horizontal centering */
  justify-content: flex-start; /* keep h3 at top */
}
.pourquoi-vous h3, .organisations h3, .xp-section h3, .pourquoi-nous h3, .pour-quoi-faire h3, .conviction-section h3 {
  color: var(--primary-color);
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  padding-inline: 5%;
}
/*
.pourquoi-vous h3, .pour-quoi-faire h3, .pourquoi-nous h3 {
  margin-block: 125px;
}
*/
.organisations h3, .conviction-section h3 {
  margin-block: 75px;
}
.xp-section h3 {
  margin-bottom: 75px;
}
.organisations h4 {
  font-size: 20px;
}
.organisations {
  color: var(--primary-color);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: stretch;
  padding-inline: 5%;
}
.organisations .grid {
  gap: 25px;
}
.xp-section .grid {
  gap: 15px;
}
.organisations .grid .grid-cell {
  align-items:flex-start;
  padding-inline: 5%;
  border-left: 2px solid var(--accent-color);
  margin-block: 5%;
}
.clients-grid {
  text-align: center;
  padding: 4rem 0;
  color: var(--primary-color);
}
.clients-grid h3 {
  font-size: 40px;
  margin-bottom: 100px;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 3fr);
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}
.client-item img {
  height: clamp(35px, 55px, 75px);
  max-width: clamp(calc(45% - 2rem), 175px, 200px);
  object-fit: contain;
}
.img-header img {
  height: 50px;
  max-width: 75px;
  color: var(--primary-color);
}
.xp-section h4, .organisations h4 {
  font-size: 25px;
}
.grid-cell p {
  font-size: 20px;
  font-weight: 200;
}
.xp-section .grid-cell {
  padding-inline: 10%;
  padding-block: 10%;
  background-color: #e950521e;
  border-radius: 50px;
  color: var(--primary-color);
}
ul {
  list-style-position: outside;
  padding-inline: 20px;
}
.organisations {
  display: flex;
  flex-direction: column;
}
/* Pourquoi-vous @media */
@media (max-width: 1000px) {
  .pourquoi-panel {
    width: 90%;
  }
  .pourquoi-content {
    display: flex;
    flex-direction: column;
  }
  .grid {
    display: flex;
    flex-direction: column;
  }
}

/* COMPARISON SECTION */
.comparison-table {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.comparison-header {
  display: flex;
  justify-content: center;
  align-items: last baseline;
  gap: 32px;
}
.table-title-left {
  font-weight: bold;
  font-size: 30px;
  width: 100%;
  text-align: left;
  color: var(--secondary-color);
}
.table-title-right {
  font-weight: bold;
  font-size: 30px;
  width: 100%;
  text-align: right;
  color: var(--secondary-color);
}
.table-vs {
  font-weight: 300;
  font-size: 20px;
  width: 100%;
  text-align: center;
  color: var(--secondary-color);
}
.comparison-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.row-label-left {
  font-size: 22.5px;
  color: var(--primary-color);
  font-weight: 300;
  text-align: left;
}
.row-label-right {  
  font-size: 22.5px;
  color: var(--primary-color);
  text-align: right;
  font-weight: 300;
}
.row-label-left,
.row-label-right {
  width: 10vw;
}
.slider {
  display: flex;
  align-items: center;
  width: 100%;
  justify-self: center;
}
.dot {
  width: 17.5px;
  height: 17.5px;
  border-radius: 50%;
  background: var(--primary-color);
}
#red {
  color: var(--secondary-color);
}
#red-slider {
  background: var(--secondary-color);
}
.track {
  flex: 1;
  height: 3px;
  background: var(--primary-color);
}
.left-panel p {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 300;
  margin-top: 5px;
  text-align: left;
  align-items:start;
}
.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 5%;
}
.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-inline: 5%;
}
.vertical-line-long {
  width: 2px;
  background-color: var(--secondary-color);
  align-self: stretch;
}
.plan-content {
  display: flex;
  flex-direction: row;
  padding-block: var(--navbar-height);
}

/* Index.html @media */
@media (max-width: 1000px) {
  .comparison-table {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  /* 1. Make .collectif-content responsive */
  .collectif-content {
      grid-template-columns: 1fr;
      text-align: center;
  }
  /* 3. Fix .left-panel and .right-panel widths */
  .left-panel, .right-panel {
      width: 100%;
  }
  .row-label-left,
  .row-label-right {
    width: 20vw;
  }
  .comparison-header span {
    font-size: 4vw;
  }
  .row-label-left, .row-label-right {
    font-size: 2.75vw;
  }
  /* 4. Fix .dynamique-diagram img scaling */
  .dynamique-diagram img {
      height: auto;
      width: 90%;
      width: 500px;
      margin-inline: 5%;
  }
  .dynamique-collective-section {
    height: auto !important;
  }
  .dynamique-content {
      flex-direction: column;
      gap: 0px;
  }
  .dynamique-text, .dynamique-diagram {
      padding: 0;
      flex: none;
      width: 90%;
  }
  .dynamique-collective-section {
    gap: 0;
  }
  .dynamique-subcontent p {
    font-size: 17.5px;
  }
  .dynamique-subcontent h3 {
    font-size: 20px;
  }

  .symptoms-impact-section {
    flex-direction: column;
    align-items: center;
    height: auto !important;
    min-height: auto !important;
    gap: 20px;
  }
  .symptoms-card,
  .impact-card {
    width: 90% !important;
    margin: 5%;
  }

  /* Stack all main horizontal containers vertically */
  .plan-content,
  .more-content {
    align-items: stretch;
  }
  /* 6. Make .more-content stack vertically */
  .more-content {
      flex-direction: column;
      gap: 35px !important;
      padding-top: 10% !important;
      padding-bottom: 10% !important;
  }
  /* Let content sections grow naturally */
  .content-section {
    height: auto !important;
  }
  /* Ensure grid-based collectif section becomes single column */
  .collectif-content {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
}
@media (max-width: 1250px) {
  .vertical-line-long {
    height: 2px;
    width: 90%;
    margin: 5%;
    margin-top: 10%;
    margin-bottom: 10%;
  }
  .plan-content {
    flex-direction: column;
    height: 100%;
  }
  .left-panel,
  .right-panel {
    width: 100%;
  }
}

/* PLAN SECTION */
.plan-step {
  display: flex;
  flex-direction: column;
}
.plan-header {
  display: flex;
  align-items: last baseline;
  margin-bottom: 48px;
}
.step-number {
  font-size: 88px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-right: 35px;
  line-height: 1;
}
.step-content {
  flex: 1;
}
.step-title {
  font-size: 35px;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0 0 0;
}
.step-list {
  list-style: disc inside;
  padding: 0;
}
.step-list li {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* SYMPTOMS-IMPACTS SECTION */
.spacer {
  flex: 1;
}
.custom-shape {
  width: 150px;
  height: 150px;
  background-color: var(--primary-color); /* your --primary-color */
  clip-path: path("M 0 0 H 150 V 112.5 Q 150 150 112.5 150 H 0 Z");
}
.symptoms-impact-section {
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 5%;
 min-height: calc(100vh - var(--navbar-height));
 background-color: var(--light-tertiary-color);
}
.symptoms-card, .impact-card {
  flex: 1;
  padding: 40px;
  box-sizing: border-box;
  margin-top: 3%;
  margin-bottom: 3%;
}
.symptoms-card {
  background-color: var(--secondary-color);
  color: white;
  border-radius: 0 0 100px 100px;
  margin-left: 5%;
}
.impact-card {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 100px 100px 0 0;
  margin-right: 5%;
}
.symptoms-card h3, .impact-card h3 {
  font-size: 30px;
  margin-bottom: 25px;
  margin-top: 7.5%;
  margin-left: 7.5%;
}
.symptoms-card ul, .impact-card ul {
  list-style: disc inside;
  font-size: 22px;
  line-height: 2.5;
  padding: 0;
  margin-left: 7.5%;
}
.symptoms-conclusion, .impact-conclusion {
  margin-top: 30px;
  font-size: 20px;
  font-weight: bold;
  margin-left: 7.5%;
}
.symptoms-conclusion {
  color: white;
}
.impact-conclusion {
  color: var(--primary-color);
}

/* MORE CONTENT */
.more-content a p {
  font-size: 15px;
  font-weight: 300;
  color: var(--primary-color);
  text-align: center;
  text-decoration: none !important;
}
.more-content a {
  text-decoration: none !important;
}
.more-content {
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-direction: row;
  gap: 17.5%;
  background-color: var(--light-tertiary-color);
  padding-top: 5%;
  padding-bottom: 5%;
}
.qui-sommes-nous, .nos-clients, .nos-offres {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.image-wrapper {
  background-color: var(--primary-color);
  padding: 20px;
  border-radius: 1000px;
  display: flex;
  color: white;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
}
.colored-icon {
  filter: brightness(0) invert(1); /* white */
  transition: filter 0.3s ease;
}
.image-wrapper:hover .colored-icon {
  filter: invert(20%) sepia(79%) saturate(701%) hue-rotate(209deg) brightness(95%) contrast(89%);
}
.image-wrapper img {
  height: 50px;
  width: 50px;
  color: white;
  border-radius: 0;
}
.image-wrapper:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: scale(0.95);
}

.dynamique-collective-section {
  max-width: 100vw;
  background-color: var(--light-tertiary-color);
  display: flex;
  height: auto !important;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.dynamique-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin-top: 5%;
  margin-left: 5%;
  margin-right: 5%;
  flex-wrap: wrap;
}
.dynamique-text {
  flex: 1;
  padding-right: 5%;
}
.dynamique-text h2 {
  color: var(--primary-color);
  font-size: 35px;
  margin-bottom: 30px;
}
.dynamique-text p {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 20px;
}
.dynamique-text b {
  font-weight: bold;
}
.dynamique-text i {
  font-style: italic;
}
.dynamique-diagram {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dynamique-diagram img {
  width: 500px;
  max-width: 90%;
}
.dynamique-subcontent {
  text-align: center;
  max-width: 70%;
}
.dynamique-subcontent h3 {
  font-size: 25px;
  color: var(--primary-color);
  font-weight: 900;
  margin-bottom: 25px;
}
.dynamique-subcontent p {
  font-size: 22.5px;
  color: var(--primary-color);
  font-weight: 300;
  line-height: 1.5;
}

.offre-button {
  display: inline-block;
  margin-top: 20px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.offre-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(0.95);
}

/* Mobile adjustments for phone users */
@media (max-width: 600px) {
  .plan-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .left-panel,
  .right-panel {
    width: 100% !important;
  }
  .slider {
    width: 100%;
  }
  /* Adjust step layout */
  .plan-header {
    margin-bottom: 24px;
  }
  .step-list li {
    font-size: 18px;
  }

  /* Center symptoms and impact cards on mobile */
  .symptoms-impact-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .symptoms-card,
  .impact-card {
    width: 90% !important;
    margin-left: 5%;
    margin-right: 5%;
  }

  .symptoms-card {
    margin-top: 5%;
  }

  .impact-card {
    margin-bottom: 5%;
  }
}

/* --- POURQUOI CONTENT LAYOUT --- */
.pourquoi-content {
  display: flex;
  flex-direction: row;
  gap: 5%;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto 4rem;
  text-align: left;
  line-height: 27.5px;
  font-weight: 100;
  justify-content: center;
  margin-top: auto;   /* vertically center within the section */
  margin-bottom: auto;
}
.pourquoi-content p {
  margin: 0 0 1.5rem;
  font-size: 22.5px;
}
.pourquoi-panel {
  width: 45%;
}

/* --- Responsive rules for pourquoi-vous page --- */
@media (max-width: 1000px) {
  /* 1. Stack pourquoi-content vertically */
  .pourquoi-vous {
    height: auto;
  }
  .pourquoi-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 90%;
    align-items: center;
    text-align: center;
    margin: 0 auto 2rem;
  }
  .pourquoi-panel {
    width: 90%;
  }
  .pourquoi-content p {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.4;
  }
}

.animation-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 0px;
}
#animation-overlay {
  position: fixed;
  max-width: 100vw;
  inset: 0;
  background-color: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  gap: 0px; /* Adds space between logo-top and logo-new */
  text-align: center;
}
#animation-overlay .logo {
  font-size: 4rem;
  font-weight: 700;
  display: inline-block;
  position: relative;
  min-height: 1em;
}
.letter {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#logo-top,
#logo-new {
  display: block;
  width: 90%;
  margin-inline: 5%;
}
#logo-top .letter { color: var(--primary-color); padding-top: 100px}
#logo-new .letter { color: var(--secondary-color)}
.fade-in { opacity: 1 !important; transform: translateY(0) !important; }
.letter {
  font-size: clamp(1.5rem, 8vw, 4rem);
}

.building {
  padding: 10%;
  align-items: center;
  text-align: center;
}
.building h2 {
  font-weight: 900;
  color: var(--primary-color);
}

.pourquoi-nous {
  padding-inline: 5%;
}
.pourquoi-nous p {
  font-weight: 100;
}
.pourquoi-nous-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.pourquoi-nous-content :first-child, .pourquoi-nous-content :nth-child(3), .pourquoi-nous-content :nth-child(2) {
  text-align: left;
}
.explanation {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--navbar-height));
  align-items: center;
}
.ask {
  color: var(--accent-color);
}
.why {
  color: var(--secondary-color);
}
.partners {
  color: var(--primary-color);
}
.word-section {
  font-weight: 100;
}
.why {
  background-color: var(--light-secondary-color);
}
.ask {
  background-color: var(--light-accent-color);
}
.partners {
  background-color: var(--light-primary-color);
}
.why, .partners, .ask {
  padding: 5%;
}
.partners img {
  rotate: 180deg;
}
.word-section {
  display: flex;
  flex-direction: column;
}
.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.header img {
  height: 125px;
}
.word-description h3 {
  font-size: clamp(2.5rem, 5vw, 55px);
  margin: 0;
  padding: 0;
}
.word-description p {
  font-size: clamp(1.25rem, 2vw, 30px);
  margin: 0;
  padding: 0;
}
.word-description {
  display: flex;
  flex-direction: column;
  height: 125px;
  justify-content:center;
}
.conviction-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.conviction-component {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  margin-inline: 5%;
  padding: 2.5%;
  border-left: 2px solid var(--secondary-color);
}
.conviction-header h3, .conviction-component .conviction-header p {
  color: var(--secondary-color);
  text-align: left;
  margin: 0;
  padding: 0;
}
.conviction-component .conviction-header p {
  font-weight: 500;
}
.conviction-component p {
  margin: 0;
  padding: 0;
  font-weight: 100;
}
.conviction-component p {
  color: var(--primary-color);
}
.little-divider {
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 25px;
  width: 10px;
}
.manifeste {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 5%;
  padding-bottom: 5%;
  margin-top: 5%;
  background-color: var(--light-accent-color);
  min-height: calc(100vh - var(--navbar-height));
}
.manifeste h3 {
  color: var(--secondary-color);
  font-size: 55px;
  padding-top: 5%;
}
.manifeste .manifest-component h3 {
  color: var(--secondary-color);
  font-size: 45px;
  padding: 0;
  margin-bottom: 25px;
}
.manifest-component {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.manifest-component p {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 100;
  margin: 0;
}
@media (max-width: 1000px) {
  .pourquoi-nous {
    text-align: center;
  }
  .explanation img {
    height: clamp(5rem, 10vw, 150px);
  }
}
/*
.conviction-section :nth-child(1) .conviction-header, .conviction-section :nth-child(3) .conviction-header, .conviction-section :nth-child(5) .conviction-header {
  text-align: left;
  align-items: left;
}
.conviction-section :nth-child(2) .conviction-header, .conviction-section :nth-child(4) .conviction-header {
  text-align: right;
  align-items: right;
}
*/


.nous-contacter-main {
  width: 100vw;
  height: calc(100vh - var(--navbar-height));
  background-size: cover;
}
.contact-section {
  padding: 100px 5%;
  max-width: 800px;
  min-width: 400px;
  margin: 0 auto;
  color: var(--primary-color);
}
.contact-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 40px;
  color: var(--primary-color);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  padding: 15px;
  font-size: 16px;
  max-width: 800px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
}
.contact-form button {
  padding: 15px;
  background-color: var(--primary-color);
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-form button:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: scale(0.95);
}
.form-message {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.linkedin-link {
  position: relative;
  display: inline-block;
}

.pour-quoi-faire {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--navbar-height));
  gap: 25px;
  justify-content: center;  /* vertically center */
  align-items: center;       /* horizontally center */
}
.pour-quoi-faire .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: stretch;
  column-gap: 15px;
}
.pour-quoi-faire .grid-cell {
  padding: 5%;
  align-items: center;
  text-align: center;
  border-radius: 25px;
  justify-content: space-between;
}
.pour-quoi-faire .grid-cell {
  align-items: left;
  text-align: left;
  background-color: var(--light-primary-color);
}
.pour-quoi-faire .grid-cell img {
  height: 75px;
}
.pour-quoi-faire .grid-cell .niv-title {
  font-size: 50px;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 50;
}
.pour-quoi-faire .grid-cell a p {
  font-size: 25px;
  font-weight: 100;
  color: var(--primary-color);
  text-align: right;
  margin: 0;
}
.pour-quoi-faire a {
  text-decoration: none;
}
.pour-quoi-faire-content h4 {
  color: var(--primary-color);
  font-size: 40px;
}
.pour-quoi-faire-content p, .pour-quoi-faire-content li {
  font-size: 25px;
  color: var(--primary-color);
}
.yellow {
  color: var(--accent-color)  ;
}
.pour-quoi-faire-content ul {
  list-style: disc;
  list-style-position: outside;
  line-height: 50px;
}
.pour-quoi-faire-content {
  display: flex;
  flex-direction: column;
  padding-inline: 5%;
  text-align: left;
}
.pour-quoi-faire-content p {
  margin-block: 0;
}
.pqf-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 15px;
}
.afin-de {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: var(--light-primary-color);
  border-radius: 25px;
  padding: 5%;
}
.niv {
  padding-inline: 5%;
}
.niv h3 {
  color: var(--secondary-color);
  font-size: 40px;
  margin-top: 100px;
  margin-bottom: 50px;
}
.niv-title {
  font-size: 25px;
  font-weight: 100;
}
.niv p, .niv li {
  color: var(--primary-color);
  font-weight: 100;
}
.offer-header h4 {
  font-size: 30px;
  color: var(--secondary-color);
  margin-top: 0;
}
.offer-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 25px;
}
.offer-section .offer-component {
  padding: 10%;
}
.niv-collectif-content .offer-component {
  padding: 5%;
}
.offer-component {
  background-color: var(--light-primary-color);
  border-radius: 25px;
}
.offer-component .description {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.offer-component .description p {
  color: var(--secondary-color);
  margin: 0;
}
.niv .left-text-panel {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.niv .right-graphic-panel {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.niv .niv-collectif-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
@media(max-width: 1000px) {
  .niv h3 {
    font-size: 35px;
  }
  .niv .left-text-panel, .niv .right-graphic-panel {
    width: 100%;
  }
  .niv-collectif-content .offer-component {
    padding: 10%;
  }
  .offer-component h4 {
    font-size: 25px;
  }
  .offer-section, .niv .niv-collectif-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
#organisationnel, #indiv, #collectif {
  scroll-margin-top: calc(1.5 * var(--navbar-height));
}