/* ============================================================
   NILUX STUDIO v4 — Design pro, minimal, performant
   ============================================================ */

:root {
  --bg: #F7F4EF;
  --bg-white: #FFFFFF;
  --bg-sand: #EFE9DF;
  --bg-sand-deep: #E5DDCB;
  --bg-dark: #1A3540;
  --bg-darker: #132730;

  --cyan: #0891B2;
  --cyan-bright: #1FE5FF;
  --cyan-glow: rgba(8, 145, 178, 0.25);

  --text: #0F141C;
  --text-muted: #4A5568;
  --text-faint: #8B95A7;
  --text-light: #EAF7FF;

  --line: #E5E0D7;
  --line-dark: #204551;

  --success: #059669;
  --whatsapp: #25D366;

  --font-display: 'Syne', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 52px;
  transition: opacity 0.15s ease;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--cyan); }
.nav-links .cta {
  color: var(--bg-white);
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark);
  padding: 9px 18px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links .cta:hover { background: var(--cyan); border-color: var(--cyan); color: var(--bg-white); }
.nav-links .highlight {
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

@media (max-width: 1024px) { .nav { padding: 12px 24px; } .nav-links { gap: 18px; font-size: 11px; } .nav-logo { height: 46px; } }
@media (max-width: 768px) { .nav { padding: 10px 18px; } .nav-logo { height: 42px; } .nav-links { gap: 10px; font-size: 10px; } .nav-links .cta { padding: 7px 11px; } }
/* Mobile : priorité au logo + Location + Contact ; on cache Accueil / Services / Studio */
@media (max-width: 640px) {
  .nav-logo { height: 44px; }
  .nav-links li:nth-child(1),
  .nav-links li:nth-child(2),
  .nav-links li:nth-child(4) { display: none; }
}

/* BOUTONS */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--bg-dark);
  padding: 16px 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--bg-dark);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary:hover { background: var(--cyan); border-color: var(--cyan); }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  transition: color 0.15s ease;
}
.btn-ghost:hover { color: var(--cyan); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 22px;
  transition: opacity 0.15s ease;
}
.btn-wa:hover { opacity: 0.9; }
.btn-wa svg { width: 18px; height: 18px; }

/* Sections */
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-sand { background: var(--bg-sand); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* Eyebrow + titres */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.section-dark .eyebrow { color: var(--cyan-bright); }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.section-title em { color: var(--cyan); font-style: italic; font-weight: 500; }
.section-dark .section-title em { color: var(--cyan-bright); }
.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 680px;
  margin-bottom: 40px;
}
.section-dark .section-desc { color: #B0B8C4; }

/* HERO */
.hero {
  position: relative;
  min-height: 90vh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 140px 48px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(8,145,178,0.10), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(26,53,64,0.06), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 50%; right: -200px;
  width: 600px; height: 600px;
  background: url('img/logo-hero.jpg') center/contain no-repeat;
  opacity: 0.08;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 1300px; margin: 0 auto; width: 100%; z-index: 2; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--cyan);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--text);
}
.hero h1 em { color: var(--cyan); font-style: italic; font-weight: 500; }
.hero .lede {
  max-width: 580px;
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--bg-dark); color: var(--bg-white); border-color: var(--bg-dark); }
.hero-actions .btn-primary:hover { background: var(--cyan); border-color: var(--cyan); }
.hero-actions .btn-ghost { color: var(--text-muted); }

/* PAGE HERO (intérieur) */
.page-hero {
  background: var(--bg);
  color: var(--text);
  padding: 150px 48px 70px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(8,145,178,0.08), transparent 60%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.page-hero h1 em { color: var(--cyan); font-style: italic; font-weight: 500; }
.page-hero .lede {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* SERVICES GRID (accueil) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease;
}
.service-card:hover { border-color: var(--cyan); }
.service-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 16px;
}
.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.service-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}
.service-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.service-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 5px 10px;
}

/* PRODUCT CARDS (location) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

.product {
  background: var(--bg-white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.product:hover { border-color: var(--cyan); }

.product-visual {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-sand);
  overflow: hidden;
  position: relative;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-visual .ref-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-light);
  background: rgba(15, 20, 28, 0.75);
  padding: 5px 10px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.product-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.product-meta .ref { color: var(--cyan); }
.product-meta .status { color: var(--success); display: flex; align-items: center; gap: 6px; }
.product-meta .status::before { content: '●'; }

.product-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}
.product-specs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.product-specs span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

.product-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}
.price-block .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.price-block .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.price-block.featured .amount { color: var(--cyan); font-size: 20px; }
.price-block .currency { font-size: 10px; color: var(--text-faint); font-weight: 500; }

.product-cta {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 11px;
  margin-top: auto;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-cta:hover { background: var(--cyan); color: var(--bg-white); }

/* Drone prices (3 variantes) */
.drone-prices {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.drone-prices .row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-muted);
}
.drone-prices .row:last-child { border-bottom: 0; }
.drone-prices .row strong { color: var(--text); font-family: var(--font-body); }
.drone-prices .row.featured strong { color: var(--cyan); }

/* FILTRES */
.filter-bar {
  padding: 32px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--bg-white);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 10px 18px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--cyan); }
.filter-btn.active { color: var(--bg-white); background: var(--text); border-color: var(--text); }

/* FOOTER */
.footer {
  background: var(--bg-sand);
  color: var(--text);
  padding: 60px 48px 32px;
  border-top: 2px solid var(--cyan);
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}
.footer-brand p { color: var(--text-muted); max-width: 320px; font-size: 13px; line-height: 1.6; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 13px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Service row (page services) */
.service-row {
  padding: 80px 48px;
  border-bottom: 1px solid var(--line);
}
.service-row:nth-child(even) { background: var(--bg-sand); }
.service-row-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-row:nth-child(even) .service-row-inner { direction: rtl; }
.service-row:nth-child(even) .service-row-inner > * { direction: ltr; }
@media (max-width: 900px) { .service-row-inner { grid-template-columns: 1fr; direction: ltr !important; gap: 32px; } }
.service-row .number { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--cyan); margin-bottom: 16px; }
.service-row h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.service-row h2 em { color: var(--cyan); font-style: italic; font-weight: 500; }
.service-row .desc { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; line-height: 1.7; }
.service-row ul { list-style: none; margin-bottom: 28px; }
.service-row li { padding: 8px 0; color: var(--text); display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.service-row li::before { content: '→'; color: var(--cyan); font-weight: 500; }
.service-row .visual {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-sand);
}
.service-row .visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
