/* =========================================================
   DNC — Styles partages (extraits des <style> inline des 5 pages)
   Charge en complement de theme.css.
   ========================================================= */

/* ---------- Polices auto-hebergees (variables fonts) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- BASE (commun a toutes les pages) ---------- */
body {
  font-family: "Manrope", sans-serif;
  background-color: #060815;
  color: #e2e8f0;
  overflow-x: hidden;
}
.font-display {
  font-family: "Space Grotesk", sans-serif;
}
.font-mono {
  font-family: "JetBrains Mono", monospace;
}

/* Background grid pattern */
.grid-bg {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Nav glass */
.nav-glass {
  background: rgba(6, 8, 21, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #060815;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px -8px rgba(6, 182, 212, 0.5);
}
.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(6, 182, 212, 0.6);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
}

/* HUD-like badge */
.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #67e8f9;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hud-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #06b6d4;
  border-radius: 50%;
  box-shadow: 0 0 8px #06b6d4;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    padding 0.35s ease;
  padding-top: 0;
  padding-bottom: 0;
}
#mobile-menu.open {
  max-height: 380px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 40;
  pointer-events: none;
  transition: background 0.3s ease;
}
#menu-overlay.active {
  background: rgba(6, 8, 21, 0.6);
  pointer-events: auto;
}

/* ---------- ACCUEIL (index.html) ---------- */
.hero-drone {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #060815;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 21, 0.55) 0%,
    rgba(6, 8, 21, 0.92) 100%
  );
}
.hero-drone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-drone > .relative,
.hero-drone > .glow-cyan {
  z-index: 3;
}
.glow-cyan {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.18) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.tech-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.5),
    transparent
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.tech-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-4px);
}
.tech-card:hover::before {
  transform: scaleX(1);
}
.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #06b6d4;
  letter-spacing: 0.1em;
}
.zone-tag {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

/* ---------- FORMULAIRES (contact.html, devis-en-ligne.html) ---------- */
/* Honeypot anti-bot — visuellement cache, mais pas via display:none (les bots detectent) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  color: #f1f5f9;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.2s ease;
}
.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.form-input:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.form-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- DEVIS EN LIGNE (devis-en-ligne.html) ---------- */
.service-option {
  position: relative;
}
.service-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.service-option label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.service-option label:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(255, 255, 255, 0.04);
}
.service-option input:checked + label {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.5);
  color: white;
}
.service-option input:checked + label .check-mark {
  background: #06b6d4;
  border-color: #06b6d4;
}
.service-option input:checked + label .check-mark::after {
  content: "";
  width: 10px;
  height: 6px;
  border: 2px solid #060815;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(2px, -1px);
}
.check-mark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.file-upload-zone {
  border: 2px dashed rgba(6, 182, 212, 0.25);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: rgba(6, 182, 212, 0.025);
  transition: all 0.2s ease;
  cursor: pointer;
}
.file-upload-zone:hover {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.05);
}
.step-marker {
  font-family: "JetBrains Mono", monospace;
  color: #06b6d4;
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ---------- FAQ (faq.html) ---------- */
details.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s ease;
}
details.faq-item[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.25);
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item .faq-num {
  font-family: "JetBrains Mono", monospace;
  color: #06b6d4;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 4px;
}
details.faq-item .faq-q {
  flex: 1;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #f1f5f9;
}
details.faq-item .faq-icon {
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.3s ease;
}
details.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
details.faq-item .faq-a {
  padding: 0 1.5rem 1.5rem 4.25rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}
.faq-filter {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.faq-filter:hover {
  color: white;
}
.faq-filter.active {
  background: #06b6d4;
  color: #060815;
  border-color: #06b6d4;
}

/* ---------- NOS OFFRES (nos-offres.html) ---------- */
.offer-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.offer-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
}
.offer-image {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
}
.offer-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 8, 21, 0.7) 100%
  );
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
}

/* ---------- PAGES LEGALES (mentions-legales.html, confidentialite.html) ---------- */
.legal-page {
  padding: 7rem 1.5rem 4rem;
  max-width: 880px;
  margin: 0 auto;
}
.legal-page .legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #67e8f9;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.legal-page h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.legal-page > p:first-of-type,
.legal-intro {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-block {
  margin-bottom: 2.5rem;
}
.legal-block h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.legal-block p,
.legal-block li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal-block ul {
  padding-left: 1.5rem;
  list-style: disc;
}
.legal-block strong {
  color: #f1f5f9;
  font-weight: 600;
}
.legal-block a {
  color: #67e8f9;
  border-bottom: 1px solid rgba(103, 232, 249, 0.3);
  transition: border-color 0.3s;
}
.legal-block a:hover {
  border-bottom-color: #67e8f9;
}
.legal-block dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.5rem 1.5rem;
}
.legal-block dt {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  padding-top: 0.2rem;
}
.legal-block dd {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}
.legal-todo {
  display: inline-block;
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
  padding: 0.1rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-style: italic;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #67e8f9;
  margin-bottom: 2rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  transition: gap 0.3s;
}
.legal-back:hover {
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .legal-block dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .legal-block dd {
    margin-bottom: 1rem;
  }
}

/* ---------- PAGES LEGALES — overrides theme clair ---------- */
[data-theme="light"] .legal-page h1 {
  color: #0a0a0a !important;
}
[data-theme="light"] .legal-block h2 {
  color: #0a0a0a !important;
  border-bottom-color: rgba(10, 10, 10, 0.08) !important;
}
[data-theme="light"] .legal-block strong,
[data-theme="light"] .legal-block dt {
  color: #0a0a0a !important;
}
[data-theme="light"] .legal-block p,
[data-theme="light"] .legal-block li,
[data-theme="light"] .legal-block dd {
  color: rgba(10, 10, 10, 0.72) !important;
}
[data-theme="light"] .legal-intro,
[data-theme="light"] .legal-page > p:first-of-type {
  color: rgba(10, 10, 10, 0.6) !important;
  border-bottom-color: rgba(10, 10, 10, 0.08) !important;
}
[data-theme="light"] .legal-block a {
  color: #c2410c !important;
  border-bottom-color: rgba(194, 65, 12, 0.3) !important;
}
[data-theme="light"] .legal-block a:hover {
  border-bottom-color: #c2410c !important;
}
[data-theme="light"] .legal-back {
  color: #c2410c !important;
}
[data-theme="light"] .legal-eyebrow {
  background: rgba(234, 88, 12, 0.1) !important;
  border-color: rgba(234, 88, 12, 0.3) !important;
  color: #c2410c !important;
}
[data-theme="light"] .legal-todo {
  background: rgba(234, 88, 12, 0.08) !important;
  border-color: rgba(234, 88, 12, 0.3) !important;
  color: #c2410c !important;
}
