.banner {
  width: 100%;
  height: 400px; /* Hauteur fixe pour maintenir les proportions */
  overflow: hidden;
  position: relative;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintient les proportions et remplit l'espace */
  object-position: top; /* Centre l'image */
  display: block;
}

.section {
  padding: 32px 24px;
}

/* Section sans fond pour engagement et différence */
.section.no-background {
  padding: 32px 24px;
  background: none;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.section-title .title-text {
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
  line-height: 18.4px;
}

.section-title .line {
  flex-grow: 1;
  height: 1px;
  background-color: #ffffff;
  margin-left: 12px;
}

.section-title .line.short {
  flex-grow: 0;
  width: 40%;
}

h1 {
  text-align: center;
  font-weight: 700;
  font-size: 26px;
}

.section-box {
  background-color: #444444;
  padding: 24px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.engagement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Nouvelle grille pour les sections côte à côte sans fond */
.engagement-grid-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.inner .line {
  display: none;
}

p {
  font-size: 17px;
  line-height: 1.2em;
}

/* Justification des paragraphes spécifiques */
.section-box p,
.engagement-column p,
.difference-column p {
  text-align: justify;
}

.bottom {
  margin-top: 30px;
  width: 100%;
  height: 1px;
  background-color: white;
}

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

/* Tablettes (768px et moins) */
@media screen and (max-width: 768px) {
  .banner {
    height: 300px; /* Hauteur réduite sur tablette */
  }

  .section {
    padding: 24px 16px;
  }

  .section.no-background {
    padding: 24px 16px;
  }

  .section-box {
    padding: 20px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 22px;
  }

  .section-title .title-text {
    font-size: 12px;
    line-height: 16px;
  }

  p {
    font-size: 16px;
  }

  /* Grilles passent en une colonne */
  .engagement-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .engagement-grid-inline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Ajustement de la grille principale */
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobiles (480px et moins) */
@media screen and (max-width: 480px) {
  .banner {
    height: 250px; /* Hauteur réduite sur mobile */
  }

  .section {
    padding: 20px 12px;
  }

  .section.no-background {
    padding: 20px 12px;
  }

  .section-box {
    padding: 16px;
    margin-bottom: 16px;
  }

  h1 {
    font-size: 20px;
  }

  .section-title .title-text {
    font-size: 11px;
    line-height: 15px;
  }

  .section-title .line {
    margin-left: 8px;
  }

  p {
    font-size: 15px;
    line-height: 1.3em;
  }

  .engagement-grid-inline {
    gap: 24px;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }

  .bottom {
    margin-top: 24px;
  }
}

/* Très petits écrans (320px et moins) */
@media screen and (max-width: 320px) {
  .banner {
    height: 200px; /* Hauteur encore plus réduite sur très petits écrans */
  }

  .section {
    padding: 16px 8px;
  }

  .section.no-background {
    padding: 16px 8px;
  }

  .section-box {
    padding: 12px;
  }

  h1 {
    font-size: 18px;
  }

  .section-title .title-text {
    font-size: 10px;
    line-height: 14px;
  }

  p {
    font-size: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
