﻿/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BASE ================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e4e8e6;
  line-height: 1.6;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= BACKGROUNDS ================= */
body.accueil  { background-image: url("images/fond-drone.jpg"); }
body.services { background-image: url("images/fond-services.jpg"); }
body.projets  { background-image: url("images/fond-projets.jpg"); }

/* ================= OVERLAY LÉGER ================= */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* très léger, juste pour le contraste */
body.accueil .page-overlay  { background: rgba(0,0,0,0.18); }
body.services .page-overlay { background: rgba(0,0,0,0.22); }
body.projets .page-overlay  { background: rgba(0,0,0,0.20); }

/* ================= HEADER ================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 28px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

header h1 {
  font-size: 1.4rem;
  font-weight: 600;
}

/* ================= NAV ================= */
nav {
  display: flex;
  gap: 22px;
}

nav a {
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
}

/* ================= BURGER ================= */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;

    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);

    flex-direction: column;
    align-items: center;
    padding: 20px 0;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }
}

/* ================= HERO ================= */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);

  padding: 50px;
  border-radius: 20px;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
}

.hero p {
  margin: 20px 0;
  opacity: 0.85;
}

/* ================= BOUTON ================= */
#btnDevis {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 30px;

  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
}

#btnDevis:hover {
  background: rgba(255,255,255,0.25);
}

/* ================= SECTIONS ================= */
section {
  padding: 70px 20px;
  text-align: center;
}

/* ================= CARTES ================= */
.cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);

  padding: 30px;
  border-radius: 20px;

  width: 300px;
}

.card video {
  width: 100%;
  height: 200px;           /* hauteur fixe */
  object-fit: cover;      /* recadrage propre */
  border-radius: 14px;
  margin-top: 15px;
  background: #000;
}

.card:hover {
  background: rgba(0,0,0,0.55);
}

/* ================= FOOTER ================= */
footer {
  background: rgba(0,0,0,0.6);
  padding: 25px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}
