/* ===== SmartSeek — Dark Cyber Landing ===== */

:root {
  --bg-dark: #050508;
  --bg-mid: #0a0a12;
  --bg-card: rgba(15, 15, 25, 0.6);
  --neon-cyan: #00f5ff;
  --neon-blue: #0088ff;
  --neon-glow: rgba(0, 245, 255, 0.4);
  --text-primary: #e8e8f0;
  --text-muted: #a8a8c8;
  --border-subtle: rgba(0, 245, 255, 0.15);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --risk-low: #22c55e;
  --risk-medium: #eab308;
  --risk-elevated: #f97316;
  --risk-high: #ef4444;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== Grid Overlay ===== */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--neon-cyan);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.glow-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--neon-blue);
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 2rem;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.95), transparent);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: block;
  padding: 8px 14px;
  margin-right: 2rem;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.logo-link:hover {
  background: rgba(0, 245, 255, 0.15);
  border-color: rgba(0, 245, 255, 0.6);
}

.logo {
  height: 72px;
  width: auto;
  display: block;
  filter: brightness(1.4) contrast(1.2);
  transition: filter 0.3s ease;
}

.logo-link:hover .logo {
  filter: brightness(1.6) contrast(1.25);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #b8b8d0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-glow);
}

.nav-cta {
  color: var(--neon-cyan) !important;
  border: 2px solid var(--neon-cyan);
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow:
    inset 0 0 0 1px rgba(0, 245, 255, 0.2),
    0 0 20px rgba(0, 245, 255, 0.12);
}

.nav-cta:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(0, 245, 255, 0.3),
    0 0 28px rgba(0, 245, 255, 0.2);
}

/* Hamburger — masqué sur desktop */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* ===== Main ===== */
main {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

/* ===== Hero ===== */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  max-width: 600px;
}

.hero-headline strong {
  color: var(--neon-cyan);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ===== Score Gauge ===== */
.score-gauge {
  width: 100%;
  max-width: 480px;
  margin-bottom: 2.5rem;
  text-align: center;
}

.gauge-bar {
  position: relative;
  height: 24px;
  border-radius: 4px;
  overflow: visible;
  display: flex;
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
}

.gauge-segment {
  flex: 1;
  transition: opacity 0.3s ease;
}

.gauge-low {
  background: var(--risk-low);
}

.gauge-medium {
  background: var(--risk-medium);
}

.gauge-elevated {
  background: var(--risk-elevated);
}

.gauge-high {
  background: var(--risk-high);
}

.gauge-pointer {
  position: absolute;
  top: 50%;
  left: 76%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #fff;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
  z-index: 2;
  pointer-events: none;
}

.score-display {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  white-space: nowrap;
}

.score-value {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-glow);
}

.score-separator,
.score-max {
  color: var(--text-muted);
}

.score-label {
  color: var(--risk-elevated);
  font-size: 1.25rem;
  margin-left: 0.5rem;
}

.score-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.btn-hero {
  margin-top: 0.5rem;
}

/* ===== Buttons ===== */
.btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 2px solid;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-glow);
}

.btn-primary:hover {
  background: transparent;
  color: var(--neon-cyan);
  box-shadow: 0 0 30px var(--neon-glow);
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* ===== Sections ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--neon-cyan);
  text-align: center;
}

.section-title .bracket {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.section-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Features Section ===== */
.features-section {
  text-align: center;
}

.features-section .section-title {
  text-align: center;
  display: block;
  margin-inline: auto;
}

.features-section .cards {
  max-width: 1100px;
  margin-inline: auto;
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-4 .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cards-4 .card p {
  flex: 1;
}

.features-section .card {
  text-align: center;
}

/* ===== About Section ===== */
.about-section {
  text-align: center;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ===== Report Section ===== */
.report-section {
  text-align: center;
}

.report-section .section-title {
  text-align: center;
}

.report-section .section-text {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: center;
}

.report-preview {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.08);
  background: var(--bg-card);
  display: flex;
  justify-content: center;
}

.report-preview .report-image {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Contact Form ===== */
.contact-section {
  text-align: center;
  padding-bottom: 6rem;
}

.contact-section .section-text {
  margin: 0 auto 1rem;
}

.contact-pricing {
  font-size: 1rem;
  color: var(--neon-cyan);
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}

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

.form-group label {
  display: block;
  font-family: var(--font-display);
  color: var(--neon-cyan);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.form-legal a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.form-legal a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--neon-cyan);
  text-decoration: none;
}

/* ===== Scroll Reveal ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .logo-link {
    margin-right: auto;
    flex-shrink: 0;
    padding: 6px 10px;
    position: relative;
    z-index: 55;
  }

  .logo {
    height: 44px;
  }

  /* Hamburger visible sur mobile (au-dessus du menu overlay) */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.4);
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 55;
  }

  .nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menu déroulant sur mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 5rem 1.5rem 2rem;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(12px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-toggle:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.1rem;
    text-align: center;
  }

  .nav-cta {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .score-display {
    font-size: 2rem;
  }

  .score-label {
    font-size: 1.1rem;
    display: block;
    margin-left: 0;
  }

}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--surface, #111);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.testimonial-card:hover { border-color: rgba(0,229,255,0.45); }
.testimonial-stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-body {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff33, #00e5ff66);
  border: 1px solid #00e5ff55;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #00e5ff;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.9rem; color: #eee; font-weight: 500; }
