/* ============================================
   main.css — Design final
   drone-academy.ch
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ───────────────────────────── */
:root {
  --bg:        #080c14;
  --bg2:       #0d1320;
  --bg3:       #111a2e;
  --surface:   #162035;
  --border:    #1e2d4a;
  --border2:   #243558;
  --accent:    #f97316;
  --accent2:   #fb923c;
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #4a6080;
  --white:     #ffffff;
  --success:   #22c55e;
  --error:     #ef4444;
  --radius:    10px;
  --font-main: 'Space Grotesk', sans-serif;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ── Typographie ─────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.05;
}

h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
h3 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 10px; }

p  { color: var(--text2); margin-bottom: 12px; line-height: 1.7; }
a  { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ── Navigation ──────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 48px;
  height: 64px;
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 1;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

nav ul a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  opacity: 1;
}

nav ul a:hover,
nav ul a[aria-current="page"] {
  color: var(--white);
  background: var(--surface);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Sélecteur de langue ─────────────────── */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}

.lang-switcher a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  padding: 4px 10px;
  border-radius: 7px;
  transition: all 0.15s;
  opacity: 1;
}

.lang-switcher a:hover { color: var(--white); }
.lang-switcher a.active,
.lang-switcher a[aria-current="page"] {
  background: var(--accent);
  color: var(--white);
}

/* ── Boutons ─────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  opacity: 1;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  opacity: 1;
}

.btn-secondary:hover {
  border-color: var(--text2);
  color: var(--white);
  transform: translateY(-1px);
  opacity: 1;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--error);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--error);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-danger:hover {
  background: var(--error);
  color: var(--white);
}

/* ── Hero ────────────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
  gap: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.12;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.25);
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.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.4; transform:scale(0.7); }
}

.hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.95;
  margin-bottom: 8px;
}

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

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text2);
  margin: 24px 0 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  font-size: 15px;
  padding: 13px 28px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-num span { color: var(--accent); }

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Drone diagram animé ─────────────────── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drone-diagram {
  position: relative;
  width: 340px;
  height: 340px;
}

.drone-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: var(--surface);
  border: 2px solid var(--border2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0%,100% { transform: translate(-50%,-50%) translateY(0); }
  50%      { transform: translate(-50%,-50%) translateY(-12px); }
}

.drone-arm {
  position: absolute;
  background: var(--border2);
  border-radius: 4px;
  z-index: 1;
}

.arm-tl { top:82px; left:82px;  width:60px; height:2px; transform:rotate(45deg);  transform-origin:right center; }
.arm-tr { top:82px; right:82px; width:60px; height:2px; transform:rotate(-45deg); transform-origin:left center; }
.arm-bl { bottom:82px; left:82px;  width:60px; height:2px; transform:rotate(-45deg); transform-origin:right center; }
.arm-br { bottom:82px; right:82px; width:60px; height:2px; transform:rotate(45deg);  transform-origin:left center; }

.drone-motor {
  position: absolute;
  width: 52px; height: 52px;
  background: var(--bg3);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
}

.motor-tl { top:54px; left:54px; }
.motor-tr { top:54px; right:54px; }
.motor-bl { bottom:54px; left:54px; }
.motor-br { bottom:54px; right:54px; }

.spin     { animation: spin 2s linear infinite; }
.spin-rev { animation: spin 2s linear infinite reverse; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Sections ────────────────────────────── */
section { padding: 96px 48px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-tag::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-header { margin-bottom: 52px; }
.section-header p {
  font-size: 16px;
  color: var(--text2);
  font-weight: 300;
  max-width: 520px;
  margin-top: 12px;
}

/* ── Phase cards ─────────────────────────── */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.phase-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.phase-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}

.phase-card.free { border-color: rgba(249,115,22,0.3); }

.phase-card.free::after {
  content: 'GRATUIT';
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 3px 8px;
  border-radius: 100px;
}

.phase-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.phase-card h3 { margin-bottom: 8px; }

.phase-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.phase-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.module-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 100px;
}

/* ── Pricing ─────────────────────────────── */
.pricing-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
}

.pricing-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: transform 0.2s;
}

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

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(249,115,22,0.06) 0%, var(--bg3) 100%);
}

.featured-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}

.pricing-price {
  font-family: var(--font-head);
  font-size: 58px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup { font-size: 22px; vertical-align: super; color: var(--text2); }
.pricing-period { font-size: 13px; color: var(--text3); margin-bottom: 28px; }

.pricing-features { list-style: none; }

.pricing-features li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
}

.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no { color: var(--text3); }
.pricing-features li.no::before { content: '—'; color: var(--text3); }

.pricing-cta { margin-top: 24px; }

/* ── Formulaires ─────────────────────────── */
.form-container {
  max-width: 440px;
  margin: 80px auto;
  padding: 40px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.form-container h1 { margin-bottom: 8px; }

.form-container > p {
  color: var(--text2);
  margin-bottom: 28px;
  font-size: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

input[type="email"],
input[type="password"],
input[type="text"] {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder { color: var(--text3); }

.form-container .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  font-size: 15px;
}

.form-container p {
  text-align: center;
  font-size: 13px;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ── Messages feedback ───────────────────── */
.message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}

.message.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--success);
}

.message.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--error);
}

.message.info {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  color: var(--accent2);
}

/* ── Dashboard ───────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.dashboard-card h3 {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text2);
}

.progress-bar-container {
  background: var(--bg3);
  border-radius: 100px;
  height: 6px;
  margin: 8px 0 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
}

.module-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}

.module-item:hover {
  border-color: var(--border2);
  transform: translateX(4px);
  opacity: 1;
}

.module-item.locked { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.module-item.completed { border-color: rgba(34,197,94,0.3); }

.module-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.module-info { flex: 1; }

.module-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.module-phase {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
}

.module-status {
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Pages légales ───────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px;
}

.legal-page h1 { margin-bottom: 24px; }
.legal-page p  { color: var(--text2); line-height: 1.8; }
.legal-page em { color: var(--text3); font-style: italic; }

/* ── Danger zone ─────────────────────────── */
.danger-zone {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  background: rgba(239,68,68,0.04);
}

.danger-zone h2 { color: var(--error); }
.danger-zone p  { font-size: 14px; margin-bottom: 16px; }

/* ── Footer ──────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text3);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text3);
  opacity: 1;
}

.footer-links a:hover { color: var(--text2); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
}

/* ── Main ────────────────────────────────── */
main { min-height: calc(100vh - 64px - 85px); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 12px 20px; height: auto; }
  nav ul { display: none; }
  .hero { padding: 60px 20px; min-height: auto; }
  section { padding: 60px 20px; }
  footer { padding: 24px 20px; flex-direction: column; align-items: center; text-align: center; }
  .form-container { margin: 40px 16px; padding: 28px 20px; }
  .phases-grid { grid-template-columns: 1fr; }
}
