/* ===========================================================
   Neyar-Prod Sàrl — Design tokens
   =========================================================== */
:root {
  --bg: #050508;
  --bg-elevated: #0b0b12;
  --bg-card: #101018;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #f3f4f8;
  --text-secondary: #a6a6b8;
  --text-muted: #6f6f82;

  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-gradient: linear-gradient(120deg, var(--accent-cyan), var(--accent-blue) 55%, var(--accent-purple));

  --swiss-red: #e30613;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.18);
  --container-width: 1140px;
}

/* ===========================================================
   Reset
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-gradient);
  color: #050508;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(168, 85, 247, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent-blue); background: rgba(59, 130, 246, 0.08); }

.btn-small { padding: 10px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; padding: 15px 26px; }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex-shrink: 0; }
.brand-mark-full { width: auto; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}
.mobile-nav.open { display: flex; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), rgba(168, 85, 247, 0.1) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow { display: flex; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

/* Petit drapeau suisse en CSS (plus fiable que l'emoji, notamment sous Windows) */
.swiss-flag {
  --swiss-flag-size: 13px;
  display: inline-block;
  flex-shrink: 0;
  width: var(--swiss-flag-size);
  height: var(--swiss-flag-size);
  background-color: var(--swiss-red);
  border-radius: 2px;
  position: relative;
}
.swiss-flag::before,
.swiss-flag::after {
  content: "";
  position: absolute;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.swiss-flag::before { width: 58%; height: 16%; }
.swiss-flag::after { width: 16%; height: 58%; }

.footer-tagline { display: inline-flex; align-items: center; gap: 8px; }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  color: var(--text-primary);
  max-width: 16ch;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 46ch;
  color: var(--text-secondary);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  width: 220px;
  filter: drop-shadow(0 20px 60px rgba(139, 92, 246, 0.35));
  animation: float 6s ease-in-out infinite;
}

.orbit-card {
  position: absolute;
  width: 150px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: float 7s ease-in-out infinite;
}
.card-1 { top: 6%; left: -4%; animation-delay: 0.3s; }
.card-2 { bottom: 8%; right: -6%; animation-delay: 1.1s; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag-web { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
.tag-ia { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }

.mini-line { height: 6px; border-radius: 4px; background: var(--border-strong); margin-bottom: 6px; }
.mini-line.short { width: 60%; }

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

/* ===========================================================
   Sections (shared)
   =========================================================== */
.section { padding: 96px 0; scroll-margin-top: 76px; }
#top { scroll-margin-top: 76px; }
.section-alt { background: var(--bg-elevated); }

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--text-primary);
  max-width: 22ch;
}

.section-lead {
  max-width: 60ch;
  font-size: 1.02rem;
  margin-bottom: 48px;
}

/* ===========================================================
   Services
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.15));
  color: var(--accent-cyan);
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { font-size: 1.1rem; color: var(--text-primary); }
.service-card p { font-size: 0.94rem; margin-bottom: 0; }

/* ===========================================================
   Approche / values
   =========================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px 28px;
}

.value-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 10px;
}

.value-item h3 { font-size: 1.05rem; color: var(--text-primary); }
.value-item p { font-size: 0.94rem; margin-bottom: 0; }

/* ===========================================================
   Processus
   =========================================================== */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.process-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.process-index {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  background: var(--accent-gradient);
  color: #050508;
}

.process-item h3 { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 4px; }
.process-item p { margin-bottom: 0; font-size: 0.94rem; max-width: 56ch; }

/* ===========================================================
   Contact
   =========================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-intro .section-lead { margin-bottom: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Champ piège anti-spam (Web3Forms) : présent dans le HTML pour les robots, invisible pour les humains */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-row textarea { resize: vertical; min-height: 120px; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-tagline, .footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-legal-nav { display: flex; gap: 20px; }
.footer-legal-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.footer-legal-nav a:hover { color: var(--text-primary); }

/* ===========================================================
   Pages légales (Mentions légales / Confidentialité)
   =========================================================== */
.legal-page { padding-top: 64px; }

.legal-container { max-width: 780px; }

.legal-title { max-width: none; margin-bottom: 8px; }

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page p { font-size: 0.96rem; }

.legal-list {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}
.legal-list li {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-page a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.legal-page a:hover { color: var(--accent-blue); }

.legal-page code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0;
}
.legal-card p { margin: 0 0 6px; font-size: 0.94rem; }
.legal-card p:last-child { margin-bottom: 0; }

.legal-note { font-size: 0.88rem; color: var(--text-muted); }

.legal-back { margin-top: 48px; }
.legal-back a { text-decoration: none; font-weight: 600; }

/* ===========================================================
   Page de confirmation (merci.html)
   =========================================================== */
.confirm-page { padding-top: 80px; padding-bottom: 120px; }

.confirm-container {
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.15));
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.confirm-icon svg { width: 32px; height: 32px; }

.confirm-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text-primary);
}

.confirm-page p { max-width: 42ch; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 280px; order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-actions .btn-small { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
