/*.header {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr 150px 100px 1fr 2fr;
}
.tampo {
  background-color: #fff;
  grid-column: 1 / 3;
  grid-row: 4;
  z-index: 2;
}
.bulding-box {
  background-color: #88a5c2dd;
  grid-column: 1 / 3;
  grid-row: 3 / 6;
  z-index: 3;
  position: relative;
  padding-bottom: 40px;
  overflow: visible;
}
.bulding-box {
  display: flex;
  align-items: end;
  justify-content: space-evenly;
}
.construction-box {
  background-color: #4ab1d8;
  grid-column: 2 / 3;
  grid-row: 1 / 4;
}
.logo-box {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tagline {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 500;
  color: #1d3557;
  text-align: center;
}

.main-logo {
  width: 200px;
  height: auto;
}

img[src="./image/construction-large.jpeg"] {
  position: relative;
  width: 350px;
  height: 500px;
}

img[src="./image/construction-small.jpeg"] {
  width: 330px;
  height: 280px;
}

img[src="./image/bulding-large.jpeg"] {
  width: 330px;
  height: 280px;
}

img[src="./image/bulding-medium.png"] {
  width: 330px;
  height: 280px;
}

.menu {
  position: absolute;
  top: 50px;
  right: 0;
  padding: 0 40px 40px 40px;
}

.menu-item {
  display: inline-block;
  margin: 0 15px;
  position: relative;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
}
.menu-item::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  display: block;
  background: #fff;
  width: 0;
  transition: 0.5s all ease;
  height: 2px;
}
.menu-item:hover::after {
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.5s ease-in-out;
}*/

.header {
  width: 100%;
  margin-bottom: 100px;
}
.logo-box{
  padding: 30px;
  overflow-y: hidden!important;
}
.main-logo {
  width: 150px;
  height: auto;
}
.logo-box{
  text-align: center;
}

.menu {
  width: 100%;
  background-color: #4199b9;
  padding: 20px 30px;
  text-align: center;
  position: relative; /* <- au lieu de fixed */
  top: 0;
  left: 0;
  z-index: 99999999;
  transition: all 0.3s ease;
  overflow-y: hidden!important;
}

.menu.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #4199b9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 99999999; /* Plus haut que tout le reste */
}


/* Les liens du menu */
.menu-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Icône burger (cachée par défaut) */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Liens */
.menu-item {
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.menu-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.menu-item:hover::after {
  width: 100%;
}

/* ----- Responsive : menu burger ----- */
@media (max-width: 768px) {
  .menu {
    text-align: left;
    padding: 15px 20px;
  }

  /* Affiche le burger */
  .menu-toggle {
    display: block;
  }

  /* Cache les liens par défaut */
  .menu-links {
    display: none;
    flex-direction: column;
    width: fit-content;
    padding: 10px 0;
  }

  /* Quand on ouvre le menu */
  .menu-links.active {
    display: flex;
  }

  .menu-item {
    padding: 10px 20px;
  }
}

.bulding-box {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
  background-color: #88a5c2dd;
  padding: 20px 30px;
  align-items: stretch;
  flex: 1;
}

.bulding-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol */
.bulding-box img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ---- MOSAÏQUE ---- */
.bulding-box img:nth-child(1) {
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
}

.bulding-box img:nth-child(2) {
  grid-column: 4 / span 3;
  grid-row: 1 / span 1;
}

.bulding-box img:nth-child(3) {
  grid-column: 4 / span 2;
  grid-row: 2 / span 1;
}

.bulding-box img:nth-child(4) {
  grid-column: 6 / span 1;
  grid-row: 2 / span 1;
}

/* ---- RESPONSIVE ---- */

/* Tablette */
@media (max-width: 1108px) {
  .bulding-box {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 180px);
  }

  .bulding-box img:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }

  .bulding-box img:nth-child(2) {
    grid-column: 3 / span 1;
    grid-row: 1 / span 1;
  }

  .bulding-box img:nth-child(3) {
    grid-column: 3 / span 1;
    grid-row: 2 / span 1;
  }

  .bulding-box img:nth-child(4) {
    grid-column: 1 / span 3;
    grid-row: 3 / span 1;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .bulding-box {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .bulding-box img {
    grid-column: auto;
    grid-row: auto;
  }
}
