* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  background: #07111d;
  color: #eef;
  padding-top: 70px;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(8px);
  background: rgba(6, 12, 20, 0.75);
  padding: 14px;
  z-index: 1000;
  text-align: center;
}

header a {
  color: #8fd0ff;
  text-decoration: none;
  margin: 0 14px;
  font-weight: 600;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(7, 17, 29, 0.7)
  );
  z-index: 1;
}

.heroButtons {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 2;
}

/* BOUTONS */
.btn {
  background: #1976d2;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.25s;
  box-shadow: 0 0 12px rgba(25, 118, 210, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(50, 150, 255, 0.8);
}

/* BANDE */
.band {
  background: #10233d;
  padding: 10px;
  text-align: center;
}

/* SECTIONS */
section {
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px;
}

/* GRILLE */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* CARDS */
.card {
  background: #13243b;
  border: 1px solid #21456d;
  padding: 22px;
  border-radius: 14px;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

/* FLOAT SUPPRIMÉ (plus de bouton doublon) */

/* MODAL */
#modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modalbox {
  background: #14253b;
  padding: 30px;
  border-radius: 16px;
  max-width: 560px;
  width: 92%;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background: #0b1a2b;
  color: #8aaac7;
  font-size: 14px;
  margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .heroButtons {
    flex-direction: column;
    align-items: center;
    bottom: 5%;
  }

  header a {
    display: inline-block;
    margin: 6px 10px;
  }
}