* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body, html {
  font-family: 'Arial', sans-serif;
  height: 100%;
  background-color: #d7e3fa;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #222;
  color: white;
  width: 100%;
  z-index: 1001;
  position: fixed; /* Mantém visível */
  top: 0;
  left: 0;
  right: 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  z-index: 1002; /* Acima do header */
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Header */
header.background {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 65px; /* Compensa navbar fixa */
}

.content {
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

h1 {
  font-size: 2.5rem;
  opacity: 0;
  transform: translateY(-50px);
}

.btn-contact {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  color: white;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px);
}

/* Seção Missão, Visão, Valores */
.about-section {
  padding: 20px 20px;
  text-align: center;
  background-color: #f0f0f0;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.card {
  background: white;
  padding: 10px;
  border-radius: 10px;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 5px;
}

.card h3 {
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.card p {
  font-size: 1rem;
  color: #555;
}

/* Animações */
.animate {
  animation: fadeInMove 5s forwards;
}

@keyframes fadeInMove {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #222;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 1002;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }
}

@media (orientation: landscape) {
  header.background {
    background-image: url('../imaj/data_center_h.png');
  }
}

@media (orientation: portrait) {
  header.background {
    background-image: url('../imaj/data_center_v.png');
  }
}

/* Produits + Aside */
.produits-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
}

.produits h2 {
  margin-bottom: 1rem;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.product-card {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.product-card button {
  background: #ff6600;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
  cursor: pointer;
  margin-top: 0.5rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.product-card button:hover {
  background: #e05500;
}

/* Novo bloco de layout com aside + contact lado a lado */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.contact-wrapper .contact,
.contact-wrapper .info-flottante {
  flex: 1 1 300px;
  max-width: 500px;
}

.info-flottante {
  background-color: white;
  padding: 1rem;
  border-left: 4px solid #000;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Galerie */
.gallery {
  padding: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
}

/* Contact */
.contact {
  background: #f4f4f4;
  padding: 2rem;
  border-radius: 8px;
}

.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact form input {
  width: 100%;
}

.contact input,
.contact textarea {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.contact button {
  background: #111;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #333;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: white;
}
