body {
  background-color: white;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
}

main {
  background-color: white;
  margin-left: 10%;
  margin-right: 10%;
  margin-top: 60px;
  margin-bottom: 60px;
}

/* Hero */
.hero {
  margin-bottom: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2d2d2d;
  letter-spacing: 0.4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d67;
  display: inline-block;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: auto;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.shape {
  position: absolute;
  z-index: 1;
  display: block;
}

.shape-red {
  width: 90px;
  height: 90px;
  background: #d63d4a;
  top: -35px;
  left: -45px;
}

.shape-yellow {
  width: 160px;
  height: 160px;
  background: #f1c842;
  border-radius: 50%;
  bottom: -55px;
  right: -60px;
}

.shape-blue {
  width: 110px;
  height: 110px;
  background: #3b5c78;
  bottom: -40px;
  left: -25px;
}

.contenu {
  margin-top: 20px;
}

@media (max-width: 1440px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  h1 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
  }
}

#logoMADD {
  display: block;
  float: left;
  max-width: 200px;
  height: auto;
}

#imgMADDbatiment {
  display: block;
  float: right;
  height: 450px;
}

.imgleft,
.imgright,
.imgmiddle,
.p-gauche,
.p-droite {
  float: none;
  width: auto;
}

.imgmiddle {
  display: block;
  float: left;
  height: auto;
}

.imgleft {
  display: block;
  float: left;
  height: auto;
  width: 80%;
  padding: 10px;
}

.imgright {
  display: block;
  float: right;
  height: auto;
  width: 80%;
  padding: 10px;
}

.p-gauche,
.p-droite {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-droite {
  text-align: left;
}

.p-gauche {
  text-align: left;
}

@media (max-width: 1440px) {
  .block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.block img {
  width: 100%;
  height: auto;
  display: block;
}

.block img {
  max-height: 360px;
  object-fit: cover;
}

.block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 100px 0;
}

.logo3 {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  text-align: right;
  gap: 16px;
  border-left: 9px solid;
  border-bottom: 3px solid;
  padding: 15px;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.logo3:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.red-b {
  border-color: #d63d4a;
}

.yellow-b {
  border-color: #f1c842;
}

.blue-b {
  border-color: #3b5c78;
}

#cartes {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 60px;
}

@media (max-width: 1440px) {
  main {
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  /* Correction du débordement de la section hero sur mobile */
  .hero {
    margin-bottom: 60px;
    overflow-x: hidden;
    max-width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
  }

  .hero-left {
    gap: 16px;
    max-width: 100%;
  }

  .hero-title img {
    max-width: 100%;
    height: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .boutton {
    width: 100%;
    text-align: center;
  }

  .hero-right {
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-visual {
    max-width: 100%;
    width: 100%;
  }

  .hero-visual img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .block {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 60px 0;
  }

  .img-left,
  .img-right {
    width: 100%;
    padding: 0;
    order: 1;
  }

  .p-gauche,
  .p-droite {
    order: 2;
    text-align: left;
  }

  #cartes {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .logo3 {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    text-align: right;
    gap: 16px;
    border-left: 9px solid;
    border-bottom: 3px solid;
    padding: 5px 5px;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
  }

  .red-b {
    border-color: #d63d4a;
  }

  .yellow-b {
    border-color: #f1c842;
  }

  .blue-b {
    border-color: #3b5c78;
  }

  .logo3 .p-gauche {
    width: 100%;
  }

  .logo3 .img-right {
    order: 3;
    margin-bottom: 10px;
    width: 100%;
  }

  .logo3 .img-right img {
    max-width: 100px;
    height: auto;
  }

  .logo3 h4 {
    margin-bottom: 8px;
  }
}

@media (max-width: 1440px) {
  main {
    margin-left: 3%;
    margin-right: 3%;
  }

  .hero {
    margin-bottom: 40px;
  }

  .hero-left {
    gap: 12px;
  }

  .block {
    margin: 40px 0;
  }

  #cartes {
    gap: 15px;
  }

  .logo3 {
    padding: 15px 12px;
  }
}
