/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #071126;
  color: white;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
header {
  background: #000;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.logo span:first-child {
  color: #ff3b30;
}

.logo span:last-child {
  color: #fff;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  font-size: 14px;
  color: #fff;
}

/* HERO DESKTOP */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 60px 24px;

  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("images/hero.jpg");

  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 58px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: #ccc;
}

/* BOUTONS */
.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 22px;
  border: 1px solid white;
  border-radius: 8px;
  font-size: 16px;
  min-width: 200px;
  text-align: center;
}

.btn.red {
  background: #f44336;
  border: none;
}

/* SERVICES */
.services,
.realisations {
  padding: 60px 20px;
  text-align: center;
}

.services h2,
.realisations h2 {
  font-size: 40px;
  margin-bottom: 30px;
}

.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #111;
  padding: 20px;
  flex: 1;
  border-radius: 10px;
  min-width: 280px;
}

.card img {
  width: 100%;
  border-radius: 8px;
}

.gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
}

/* FOOTER */
footer {
  padding: 20px;
  text-align: center;
  background: black;
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */

@media (max-width: 768px) {

  nav {
    display: none;
  }

  header {
    padding: 15px;
  }

  /* HERO MOBILE */
  .hero {
    min-height: auto;
    padding: 30px 18px 40px;

    background:
      linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
      url("images/hero-mobile.jpg");

    background-size: cover;
    background-position: center -60px; /* 👈 ajuste si besoin */
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  /* 🔥 BOUTONS RÉDUITS */
  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 70%;           /* 👈 réduit largeur */
    margin: 0 auto;       /* 👈 centré */
    font-size: 13px;      /* 👈 plus petit */
    padding: 10px;        /* 👈 moins haut */
    min-width: 0;
  }

  .services h2,
  .realisations h2 {
    font-size: 26px;
  }

  .cards {
    flex-direction: column;
  }

  .gallery {
    flex-direction: column;
  }
}

/* ========================= */
/* 📱 MOBILE PAYSAGE */
/* ========================= */

@media (max-width: 950px) and (orientation: landscape) {

  .hero {
    padding: 20px;

    background:
      linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
      url("images/hero-mobile.jpg");

    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;

    background-color: black;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 13px;
  }

  .btn {
    font-size: 12px;
    padding: 8px;
    min-width: 140px;
  }

}