html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

main {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

header,
footer {
  flex-shrink: 0;
}

#hero-section {
  flex-grow: 1;
  background: url('../images/background.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
  overflow: hidden;
}

#hero-section span {
  font-size: 2.3rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
  color: #155225;
  margin-top: 20px;
}

#hero-section img.construction-icon {
  max-width: 120px;
  height: auto;
}

header {
  background-color: #155225;
  padding: 2px 0;
  color: white;
}

/* header container en colonne */
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
}

/* centrer le logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* taille logo plus grande sur mobile */
.logo img {
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.language-select {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.language-select button {
  background-color: #155225;
  color: white;
  border: none;
  padding: 1px 6px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
  min-width: 30px;
  transition: all 0.2s ease-in-out;
}

.language-select button.active-lang {
  background-color: #C00D0D;
  color: white;
  border: 1px solid #155225;
  font-weight: bold;
}

footer {
  background-color: #155225;
  padding: 6px 0;
  color: white;
  text-align: center;
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: center;
  }

  .language-select {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
}
@media (max-width: 768px) {
  .logo img {
    max-height: 45px;
	max-width : 300px;
  }
  #hero-section span {
  font-size: 1.3em;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
  color: #155225;
  margin-top: 20px;
}
  footer p {
    font-size: 0.65rem;
  }
}
