 body { font-family: Arial, sans-serif; background: #f8f8f8; color: #333; margin: 0; }
    header {
  background: url('images/background.png') no-repeat center center;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(29, 53, 87, 0.6);
  z-index: 1;
}

header h1,
header p {
  position: relative;
  z-index: 2;
}
footer { background: #1d3557; color: #fff; text-align: center; padding: 2rem 1rem; }
    nav { background: #457b9d; display: flex; justify-content: center; padding: 0.5rem; }
    nav a { color: white; margin: 0 1rem; text-decoration: none; font-weight: bold; }
    section { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
    h2 { color: #1d3557; border-bottom: 2px solid #ccc; padding-bottom: 0.5rem; }
    .project-preview { background: white; border: 1px solid #ddd; border-radius: 5px; padding: 1rem; margin: 1rem 0; }
    .btn { background: #457b9d; color: white; padding: 0.5rem 1rem; border-radius: 3px; text-decoration: none; }
.project-preview {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  max-width: 100%;
  box-sizing: border-box;
}

.project-preview iframe {
  display: block;
  width: 100%;
  height: 60vh;
  max-height: 700px;
  border: none;
  overflow: hidden;
}

/* Responsive mobile (meilleur ratio sur petits écrans) */
@media (max-width: 600px) {
  .project-preview iframe {
    height: 55vh;
  }
}

/* Si nécessaire, tu peux aussi contraindre les h2/h3 */
.project-preview h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-top: 0;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background-color: #316282;
  padding: 10px 20px;
  flex-wrap: wrap;
  font-family: sans-serif;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  display: inline-block;
}

.menu a:hover {
  background-color: #274d66;
  border-radius: 4px;
}

/* Burger icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding-left: 1rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

/* Menu desktop */
.menu {
  display: flex;
  gap: 10px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #316282;
    margin-top: 10px;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    padding: 12px;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
