*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080c10;
  --bg2: #0d1318;
  --bg3: #111820;
  --accent: #00d4aa;
  --accent2: #0099ff;
  --text: #e8edf2;
  --muted: #7a8a98;
  --border: rgba(255,255,255,0.07);
  --card: rgba(255,255,255,0.03);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 4rem;
  background: rgba(8,12,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 100px;
  transform: scale(1.2);
  transform-origin: left center;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

nav ul { display: flex; gap: 2.5rem; list-style: none; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,153,255,0.08) 0%, transparent 70%);
  bottom: -100px; left: 30%;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions { display: flex; gap: 1rem; animation: fadeUp 0.7s 0.3s ease both; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover { background: #00efc0; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.7s 0.4s ease both;
}

.stat-val { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }

.drone-float {
  position: absolute;
  right: 4rem; top: 50%;
  transform: translateY(-50%);
  width: 420px;
  animation: float 6s ease-in-out infinite;
  opacity: 0.85;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 18px)) translateX(8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }

.section-inner { max-width: 1100px; margin: 0 auto; padding: 6rem 4rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-desc { color: var(--muted); font-size: 1.05rem; max-width: 560px; font-weight: 300; }

/* ── ABOUT ── */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.pilot-logo {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0,180,220,0.25));
}

.about-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; text-align: center; }
.about-role { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.25rem; text-align: center; }
.about-text { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

.cert-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }

.cert-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); }

.cert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.about-text-block h3 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; margin-bottom: 1.25rem; line-height: 1.3; }

/* ── SERVICES ── */
#services { background: var(--bg); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.service-card:hover { border-color: rgba(0,212,170,0.3); transform: translateY(-4px); }

.service-img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.service-card:hover .service-img { transform: scale(1.05); }

.service-img-wrap { overflow: hidden; position: relative; height: 180px; }

.service-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,12,16,0.85) 100%);
}

.service-body { padding: 1.5rem; }
.service-icon { font-size: 1.4rem; margin-bottom: 0.75rem; }
.service-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

/* ── RÉALISATIONS ── */
#realisations { background: var(--bg3); }

.real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }

.real-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border);
}

.real-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  transition: transform 0.4s ease;
  background-size: cover;
  background-position: center;
}

.real-card:hover .real-bg { transform: scale(1.05); }

.real-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,16,0.95) 0%, rgba(8,12,16,0.3) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.real-card:hover .real-overlay { opacity: 1; }

.real-tag-top {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,170,0.12);
  border: 1px solid rgba(0,212,170,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.real-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,212,170,0.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  opacity: 0;
}

.real-card:hover .real-play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }

.real-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.real-desc { font-size: 0.82rem; color: var(--muted); }

/* ── VIDEO MODAL ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center; justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-inner { position: relative; width: 90vw; max-width: 900px; }

.modal-close {
  position: absolute; top: -3rem; right: 0;
  background: none; border: none;
  color: var(--text); font-size: 1.5rem;
  cursor: pointer; opacity: 0.7; padding: 0.5rem;
}

.modal-close:hover { opacity: 1; }

.modal-video { width: 100%; border-radius: 12px; background: #000; max-height: 75vh; }

/* ── PROCESS ── */
#process { background: var(--bg2); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem; left: 2.5rem; right: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  opacity: 0.25;
}

.process-step { position: relative; text-align: center; }

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(0,212,170,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  color: var(--accent);
  margin: 0 auto 1.25rem;
  position: relative; z-index: 1;
}

.step-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── CONTACT ── */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; font-weight: 300; }

.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 0.9rem; }

.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.contact-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-val { font-weight: 500; color: var(--text); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

/* ── FORMULAIRE ── */
.form-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0;
}

.form-row .form-group {
  flex: 1 1 0;
  min-width: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0,212,170,0.5);
  background: rgba(0,212,170,0.03);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8a98' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option { background: var(--bg2); color: var(--text); }

.submit-btn {
  width: 100%;
  padding: 1rem;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #000;
  border: none;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.submit-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

footer p { font-size: 0.82rem; color: var(--muted); }

.footer-logo { height: 125px; width: auto; object-fit: contain; filter: drop-shadow(0 0 6px rgba(0,180,220,0.2)); }

footer a { transition: color 0.2s ease; }
footer a:hover { color: var(--accent) !important; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 25px; right: 25px;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 12px;
  transform: translateY(120px);
  opacity: 0;
  transition: 0.4s ease;
  z-index: 9999;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0.8rem 1.5rem; }
  nav ul { display: none; }
  .drone-float { display: none; }
  #hero { padding: 7rem 1.5rem 3rem; }
  .section-inner { padding: 4rem 1.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .real-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  footer { flex-direction: column; gap: 1rem; padding: 2rem 1.5rem; text-align: center; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .real-overlay { opacity: 1; }
}

@media (max-width: 580px) {
  .services-grid, .real-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }
  .form-row { flex-direction: column; }
}

/* ── PAGES LÉGALES ── */
.legal-page {
  min-height: 100vh;
  padding: 120px 20px 80px;
  background: var(--bg);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.legal-container h1 { margin-bottom: 30px; }

.legal-container h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-head);
}

.legal-container p,
.legal-container li { color: var(--muted); }

.back-link {
  display: inline-flex;
  margin-top: 40px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
