/* ============================
   ALIOSPHÈRE — Design System
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Tokens --- */
:root {
  --teal-900: #0b3d3e;
  --teal-800: #0e4f50;
  --teal-700: #115f60;
  --teal-600: #167172;
  --teal-500: #1a8a8b;
  --teal-400: #22a7a8;
  --teal-300: #4fc4c5;
  --teal-200: #8adcdd;
  --teal-100: #c5eeee;
  --teal-50: #e8f8f8;

  /* Deep blue from logo */
  --deep-blue-900: #0a2330;
  --deep-blue-800: #0d2e3f;
  --deep-blue-700: #113a4f;
  --deep-blue-600: #164a63;
  --deep-blue-500: #1c5d7d;

  --red-accent: #d42e2e;
  --red-light: #fbe9e9;

  --neutral-900: #1a1a2e;
  --neutral-800: #2d2d44;
  --neutral-700: #444460;
  --neutral-600: #5e5e7a;
  --neutral-500: #8080a0;
  --neutral-400: #a0a0bc;
  --neutral-300: #c4c4d8;
  --neutral-200: #e0e0ec;
  --neutral-100: #f0f0f6;
  --neutral-50: #f7f7fb;
  --white: #ffffff;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .08), 0 4px 8px rgba(0, 0, 0, .03);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, .10);

  --max-width: 1200px;
  --header-height: 90px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--neutral-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Spacing --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 16px;
}

.section-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--deep-blue-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--neutral-600);
  max-width: 640px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Circuit Pattern Overlay --- */
.circuit-bg {
  position: relative;
}

.circuit-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image:
    linear-gradient(90deg, var(--teal-700) 1px, transparent 1px),
    linear-gradient(180deg, var(--teal-700) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

/* --- Hero Background with uploaded circuit image --- */
.hero-fond-bg {
  position: relative;
}

.hero-fond-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('fond.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .07;
  z-index: 0;
}

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--neutral-200);
  transition: box-shadow .3s;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 85px;
  width: auto;
  object-fit: contain;
}

.footer-logo-img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.nav-links a:hover {
  color: var(--teal-700);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  transition: all .25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-600), var(--deep-blue-800));
  color: var(--white);
  box-shadow:
    0 4px 14px rgba(14, 79, 80, .30),
    0 1px 3px rgba(14, 79, 80, .15),
    inset 0 1px 0 rgba(255, 255, 255, .15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(22, 113, 114, .4);
  animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(22, 113, 114, .4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(22, 113, 114, 0);
  }
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(14, 79, 80, .40),
    0 2px 6px rgba(14, 79, 80, .20),
    inset 0 1px 0 rgba(255, 255, 255, .15);
}

.btn-outline {
  background: transparent;
  color: var(--deep-blue-700);
  border: 2px solid var(--teal-300);
}

.btn-outline:hover {
  background: var(--teal-50);
  border-color: var(--teal-500);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================
   HERO
   ============================ */
.hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 100px;
  background: linear-gradient(170deg, var(--white) 0%, var(--teal-50) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--deep-blue-900);
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--neutral-600);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  color: var(--neutral-700);
  box-shadow: var(--shadow-sm);
}

.badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.badge-swiss svg {
  color: var(--red-accent);
}

.badge-shield svg {
  color: var(--teal-600);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.blob-1 {
  width: 380px;
  height: 380px;
  background: rgba(22, 113, 114, .12);
  top: -60px;
  right: -80px;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(79, 196, 197, .10);
  bottom: -40px;
  left: -60px;
}

/* ============================
   WHY SECTION (Values)
   ============================ */
.why-section {
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--deep-blue-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.value-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal-600);
}

.value-icon svg {
  width: 26px;
  height: 26px;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-blue-900);
  margin-bottom: 10px;
}

.value-card p {
  font-size: .92rem;
  color: var(--neutral-600);
  line-height: 1.65;
}

/* ============================
   SERVICES
   ============================ */
.services-section {
  background: var(--neutral-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: var(--teal-200);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--teal-700);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-blue-900);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 1rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--neutral-700);
}

.service-features li svg {
  width: 18px;
  height: 18px;
  color: var(--teal-500);
  flex-shrink: 0;
}

/* ============================
   SECURITY
   ============================ */
.security-section {
  background: var(--neutral-100);
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  align-items: center;
}

.security-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.security-point-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--red-light);
  border: 2px solid rgba(212, 46, 46, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-accent);
}

.security-point-icon svg {
  width: 22px;
  height: 22px;
}

.security-point h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-blue-900);
  margin-bottom: 4px;
}

.security-point p {
  font-size: .9rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

.security-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-graphic {
  width: 280px;
  height: 320px;
  background: linear-gradient(160deg, var(--teal-50) 0%, var(--white) 100%);
  border: 2px solid var(--teal-200);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.shield-graphic svg {
  width: 64px;
  height: 64px;
  color: var(--teal-600);
}

.shield-graphic .swiss-cross {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiss-cross-bg {
  width: 32px;
  height: 32px;
  background: var(--red-accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiss-cross-bg span {
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.shield-text {
  font-size: .85rem;
  font-weight: 700;
  color: var(--deep-blue-800);
  text-align: center;
  line-height: 1.4;
}

.security-promise {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--red-light);
  border-left: 4px solid var(--red-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--deep-blue-900);
}

.security-promise--green {
  background: #e6f9ed;
  border-left-color: #1fa855;
  color: var(--deep-blue-900);
}

/* ============================
   PROCESS (Timeline)
   ============================ */
.process-section {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 3px;
  background: linear-gradient(90deg, var(--teal-300), var(--teal-600));
  border-radius: 2px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-blue-700);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  transition: all .3s ease;
}

.timeline-step:hover .step-number {
  background: linear-gradient(135deg, var(--teal-600), var(--deep-blue-800));
  color: var(--white);
  transform: scale(1.1);
}

.timeline-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-blue-900);
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: .88rem;
  color: var(--neutral-600);
  line-height: 1.6;
  max-width: 200px;
}

/* ============================
   FAQ (Accordion)
   ============================ */
.faq-section {
  background: var(--neutral-50);
}

.faq-list {
  max-width: 780px;
  margin: 56px auto 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .3s ease;
}

.faq-item:hover {
  border-color: var(--teal-200);
}

.faq-item.active {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-900);
  text-align: left;
  gap: 16px;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--teal-500);
  transition: transform .3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: .95rem;
  color: var(--neutral-600);
  line-height: 1.7;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--neutral-500);
}

.footer h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: .9rem;
  color: var(--neutral-500);
  padding: 6px 0;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--teal-300);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--neutral-500);
  margin-bottom: 12px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal-400);
  flex-shrink: 0;
}

.footer-bar {
  border-top: 1px solid var(--neutral-800);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--neutral-600);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bar a {
  color: var(--neutral-500);
  transition: color .2s;
}

.footer-bar a:hover {
  color: var(--teal-300);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

/* ============================
   MOBILE NAV
   ============================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--neutral-700);
  border-bottom: 1px solid var(--neutral-100);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* Founder name in footer */
.footer-contact-item.founder span {
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .timeline::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .nav-links,
  .header .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header {
    height: 64px;
  }

  .logo-img {
    height: 42px;
  }

  .footer-logo-img {
    height: 50px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-visual {
    order: -1;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================
   ANIMATIONS
   ============================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 {
  transition-delay: .1s;
}

.fade-up-delay-2 {
  transition-delay: .2s;
}

.fade-up-delay-3 {
  transition-delay: .3s;
}

.fade-up-delay-4 {
  transition-delay: .4s;
}