/* =================================================================
   VIVA-COM Design System v2 (Trust & Authority)
   - Marque : vert #7ed957 (logo, accents, CTAs)
   - Trust : navy + slate neutrals (P1 contrast WCAG AA+)
   - Typo  : Inter
   ================================================================= */
:root {
  /* === Marque VIVA-COM (conservés) === */
  --primary:       #7ed957;
  --primary-dark:  #5cb83a;
  --primary-light: #a8e87c;
  --primary-glow:  rgba(126, 217, 87, 0.32);
  --primary-soft:  rgba(126, 217, 87, 0.08);

  /* === Trust palette (Slate / Navy) === */
  --slate-950: #020617;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* === Sémantique === */
  --color-foreground:        var(--slate-950);
  --color-foreground-muted:  var(--slate-500);
  --color-background:        var(--slate-50);
  --color-surface:           var(--white);
  --color-surface-alt:       var(--slate-100);
  --color-border:            var(--slate-200);
  --color-border-strong:     var(--slate-300);

  --color-success:     #16A34A;
  --color-warning:     #d8613c;
  --color-destructive: #DC2626;
  --color-info:        #0369A1;

  /* === Alias rétrocompatibilité === */
  --dark:        var(--slate-900);
  --dark-light:  var(--slate-800);
  --gray:        var(--slate-500);
  --light-gray:  var(--slate-200);
  --bg:          var(--slate-50);
  --accent:      var(--color-warning);

  /* === Spacing scale (4/8px) === */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* === Radius scale === */
  --radius-sm: 6px; --radius: 10px; --radius-md: 12px;
  --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;

  /* === Shadow scale (slate-based) === */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow:    0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.12);
  --shadow-ring: 0 0 0 3px var(--primary-soft);

  /* === Transitions === */
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  /* === Type scale === */
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-3xl: 1.875rem; --text-4xl: 2.25rem; --text-5xl: 3rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--slate-800);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  opacity: 0;
  animation: pageFadeIn 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-950);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.03em; }

p { text-wrap: pretty; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons (refined) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  letter-spacing: 0.005em;
  position: relative;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-ring), 0 0 0 1px var(--primary-dark);
}

.btn-primary {
  background: var(--primary);
  color: var(--slate-900);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px var(--primary-glow);
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--slate-950);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  padding: 7px 0;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 22px;
}

/* Groupe d'auth à droite (Mein Konto + Abmelden / Anmelden) */
.top-bar-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.top-bar-contact a,
.intranet-link {
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.top-bar-contact a i { color: rgba(255, 255, 255, 0.5); font-size: 0.85em; }

.top-bar-contact a:hover {
  color: var(--white);
}

.top-bar-contact a:hover i { color: var(--primary); }

.intranet-link {
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.intranet-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .logo img {
  height: 38px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ===== Bouton CTA "JETZT BEWERBEN" — orange gradient ===== */
.nav-cta-bewerben {
  margin-left: 24px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #ffffff !important;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.4px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
  white-space: nowrap;
}
.nav-cta-bewerben:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.5);
  color: #ffffff !important;
}
.nav-cta-bewerben i { font-size: 0.9em; }

/* ===== Karriere Seite ===== */
.viva-karriere-hero {
  text-align: center;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 32px;
}
.viva-karriere-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: var(--slate-900);
  font-weight: 800;
}
.viva-karriere-hero .lead {
  font-size: 1.05rem;
  color: var(--slate-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
.viva-karriere-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}
.viva-benefit {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.viva-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.viva-benefit i {
  font-size: 1.8rem;
  color: #FF6B35;
  margin-bottom: 12px;
}
.viva-benefit h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--slate-900);
  font-weight: 700;
}
.viva-benefit p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.55;
}
.viva-karriere-positions {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.viva-karriere-positions li {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 14px;
}
.viva-karriere-positions li i {
  color: #16a34a;
  font-size: 1.05rem;
  width: 24px;
  text-align: center;
}

/* 2 catégories sur la page Karriere */
.viva-karriere-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 0;
}
.viva-karriere-cat {
  border-radius: 14px;
  padding: 22px 24px;
}
.viva-karriere-cat--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
}
.viva-karriere-cat--orange {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fdba74;
}
.viva-karriere-cat h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}
.viva-karriere-cat--blue h3 { color: #1e3a8a; }
.viva-karriere-cat--orange h3 { color: #7c2d12; }
.viva-karriere-cat-sub {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--slate-600);
  font-style: italic;
}
.viva-karriere-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.viva-karriere-cat li {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--slate-700);
}
@media (max-width: 760px) {
  .viva-karriere-cats { grid-template-columns: 1fr; }
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(126, 217, 87, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(126, 217, 87, 0.08) 0%, transparent 65%),
    linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 50%, #0b1224 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--slate-800);
}

/* Subtle dot-grid texture (institutionnel, pas template) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 75%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 80px 0;
}

/* Eyebrow badge (trust signal) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  margin-bottom: 28px;
  background: rgba(126, 217, 87, 0.08);
  color: var(--primary-light);
  border: 1px solid rgba(126, 217, 87, 0.18);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease forwards 0.1s;
}

.hero-eyebrow i {
  color: var(--slate-950);
  background: var(--primary);
  font-size: 0.7em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.9s;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.93rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.35);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  color: var(--white);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards 0.2s;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 44px;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.5s;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.highlight {
  background: linear-gradient(120deg, var(--primary-light) 0%, var(--primary) 60%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 8px;
  margin-bottom: 0;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.7s;
}

.stat {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat::after {
  content: '';
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 44%;
  background: rgba(255, 255, 255, 0.1);
}

.stat:last-child::after { display: none; }

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-top: 8px;
}

.stat-label i { color: var(--primary); margin-right: 4px; }

.hero .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.9s;
}

/* =================================================================
   VIVACOM-GRID — Section "Unsere Leistungen" (Grid 2×2)
   ================================================================= */
.vivacom-grid-section {
  padding: 96px 0;
  background: var(--slate-50);
}

.vivacom-grid-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.vivacom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.vivacom-grid .grid-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.vivacom-grid .grid-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.vivacom-grid .grid-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.vivacom-grid .grid-item:hover img {
  transform: scale(1.05);
}

.vivacom-grid .grid-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 22px 26px 10px;
  color: #1a1a1a;
  line-height: 1.3;
}

.vivacom-grid .grid-item p {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  margin: 0 26px 26px;
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 768px) {
  .vivacom-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .vivacom-grid .grid-item img { height: 220px; }
  .vivacom-grid-section { padding: 64px 0; }
}

/* ===== Partners ===== */
.partners {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}

.partners-label {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partner-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  opacity: 0.4;
  transition: var(--transition);
  letter-spacing: 0.04em;
}

.partner-logo-item:hover .partner-name {
  opacity: 0.8;
  color: var(--primary-dark);
}

/* ===== Trust Strip ===== */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  padding: 72px 0;
  position: relative;
}

.trust-strip {
  border-top: 1px solid var(--color-border);
}

.trust-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 32px;
}

.trust-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.trust-partner span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: 0.04em;
  opacity: 0.55;
  filter: grayscale(1);
  transition: var(--transition);
  cursor: default;
}

.trust-partner:hover span {
  opacity: 1;
  filter: grayscale(0);
  color: var(--slate-900);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 968px) {
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .trust-badges { grid-template-columns: 1fr; }
  .trust-partners { gap: 36px; }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.trust-badge:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.trust-badge i {
  font-size: 1.1rem;
  color: var(--primary-dark);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border: 1px solid rgba(126, 217, 87, 0.2);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.trust-badge strong {
  display: block;
  color: var(--slate-900);
  font-size: var(--text-sm);
  font-weight: 700;
}

.trust-badge span {
  display: block;
  color: var(--slate-500);
  font-size: var(--text-xs);
  margin-top: 2px;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--slate-950);
}

.about-text .section-title {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--slate-500);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 auto 64px;
  max-width: 620px;
  text-wrap: balance;
}

/* ===== Leistungen / Tabs ===== */
.leistungen {
  padding: 112px 0 112px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}

/* Tab Navigation */
.leistungen-tabs {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 56px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.leistungen-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-500);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.leistungen-tab i {
  font-size: 0.95em;
  color: var(--slate-400);
  transition: color 0.2s ease;
}

.leistungen-tab:hover {
  color: var(--slate-900);
  background: var(--slate-100);
}

.leistungen-tab:hover i { color: var(--slate-600); }

.leistungen-tab.active {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.leistungen-tab.active i { color: var(--primary); }

.leistungen-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

@media (max-width: 640px) {
  .leistungen-tabs {
    left: auto;
    transform: none;
    display: flex;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .leistungen-tabs::-webkit-scrollbar { display: none; }
  .leistungen-tab { flex-shrink: 0; }
}

/* Tab Panels */
.leistungen-panels {
  position: relative;
}

.leistungen-panel {
  display: none;
  animation: panelFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.leistungen-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Panel Card */
.panel-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.panel-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.panel-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.panel-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-card:hover .panel-image img {
  transform: scale(1.04);
}

.panel-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.panel-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--slate-900);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.panel-content {
  padding: 32px 32px 32px 0;
}

.panel-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border: 1px solid rgba(126, 217, 87, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.panel-card:hover .panel-icon {
  background: rgba(126, 217, 87, 0.18);
  border-color: rgba(126, 217, 87, 0.45);
}

.panel-content h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--dark);
}

.panel-content p {
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 0.98rem;
}

.panel-features {
  margin-bottom: 32px;
}

.panel-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--dark);
  transition: var(--transition);
}

.panel-features li:hover {
  transform: translateX(4px);
}

.panel-features li i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.panel-content .btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.panel-content .btn:hover i {
  transform: translateX(4px);
}

/* ===== About ===== */
.about {
  padding: 112px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Variante "texte seul" (sans grille d'images) */
.about-text-only .about-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.about-text-only .about-text .section-title {
  text-align: center;
}
.about-text-only .about-highlights {
  justify-content: center;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.about-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.about-highlight:hover {
  background: var(--slate-50);
}

.about-highlight i {
  font-size: 1.25rem;
  color: var(--primary-dark);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid rgba(126, 217, 87, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-highlight span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
}

/* Grille 2×2 d'images pour la section "Über VIVA-COM" */
.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  aspect-ratio: 1 / 1;
  max-height: 540px;
}

.about-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
}

/* L'image fille remplit toute la tuile de la grille */
.about-image-grid .about-image-card {
  width: 100%;
  height: 100%;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

/* Le grand mode (sans grille parente) garde l'ancienne hauteur fixe */
.about-image > .about-image-card img {
  height: 460px;
}

.about-image-card:hover img {
  transform: scale(1.04);
}

/* Décalage subtil des tuiles paires pour effet mosaïque */
.about-image-grid .about-image-card:nth-child(2),
.about-image-grid .about-image-card:nth-child(3) {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image-grid .about-image-card:nth-child(2):hover,
.about-image-grid .about-image-card:nth-child(3):hover {
  transform: translateY(16px);
}

/* ===== Contact ===== */
.contact {
  padding: 112px 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.contact-card i {
  font-size: 1.05rem;
  color: var(--primary-dark);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid rgba(126, 217, 87, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-card h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-card a {
  color: var(--dark);
  font-weight: 600;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.contact-card a:hover {
  color: var(--primary-dark);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--slate-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--slate-400);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--color-border-strong);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--slate-900);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

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

.contact-form .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 112px 0;
  background: var(--slate-50);
  position: relative;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary-dark);
  padding: 6px 14px;
  background: var(--primary-soft);
  border: 1px solid rgba(126, 217, 87, 0.25);
  border-radius: var(--radius-full);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}

@media (max-width: 968px) {
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; margin: 12px auto 0; }
}

.testimonial-card {
  position: relative;
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.5rem;
  color: var(--slate-300);
  opacity: 0.7;
  line-height: 1;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #DE7921;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.testimonial-card blockquote {
  color: var(--slate-700);
  font-size: var(--text-base);
  line-height: 1.7;
  flex: 1;
  margin: 0 0 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: var(--slate-900);
  font-size: var(--text-sm);
  font-weight: 700;
}

.testimonial-author span {
  display: block;
  color: var(--slate-500);
  font-size: var(--text-xs);
  margin-top: 2px;
}

/* ===== FAQ ===== */
.faq {
  padding: 112px 0;
  background: var(--white);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--color-border-strong);
}

.faq-item[open] {
  border-color: var(--color-border-strong);
  background: var(--white);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

/* Hide default details marker */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

.faq-item summary:hover { color: var(--primary-dark); }

.faq-item summary > span { flex: 1; line-height: 1.5; }

.faq-item summary i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--slate-500);
  border-radius: 50%;
  font-size: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.faq-item:hover summary i { color: var(--slate-900); }

.faq-item[open] summary i {
  transform: rotate(180deg);
  background: var(--slate-100);
  color: var(--slate-900);
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--primary-soft);
}

.faq-content {
  padding: 0 24px 22px 24px;
  color: var(--slate-600);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-content p { margin: 0; }
.faq-content strong { color: var(--slate-900); font-weight: 600; }

/* Smooth content reveal */
.faq-item[open] .faq-content {
  animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.faq-cta p {
  color: var(--slate-500);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--slate-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 96px 0 32px;
  border-top: 1px solid var(--slate-800);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  padding: 6px 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
  font-variant-numeric: tabular-nums;
}

.footer-col a i {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.45);
  width: 16px;
  text-align: center;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-col a:hover i { color: var(--primary); }

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(1.05);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 28px;
  text-wrap: pretty;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  background: var(--primary);
  color: var(--slate-950);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-socials a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 28px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--primary); }

/* ===== Chatbot Widget ===== */
.chat-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--slate-900);
  color: var(--white);
  border: 1px solid var(--slate-800);
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--slate-950);
}

.chat-widget-btn.open {
  background: var(--slate-950);
}

.chat-widget-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-md);
}

.chat-widget-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--slate-950);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 400px;
  height: 540px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.2);
  z-index: 901;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatWindowIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-window.open {
  display: flex;
}

@keyframes chatWindowIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chat-header-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-header-info span {
  font-size: 0.75rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-info span i {
  font-size: 0.45rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f7f8fa;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  animation: msgIn 0.25s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--dark);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-msg p { margin-bottom: 6px; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg strong { font-weight: 600; }

.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chat-quick-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.chat-quick-btn:hover {
  border-color: var(--primary);
  background: rgba(126, 217, 87, 0.08);
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--light-gray);
  animation: typeBounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typeBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--light-gray);
  background: var(--white);
  flex-shrink: 0;
}

.chat-input-area input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 8px 0;
  background: transparent;
}

.chat-input-area button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-input-area button:hover {
  background: var(--primary-dark);
}

.chat-input-area button:disabled {
  background: var(--light-gray);
  cursor: not-allowed;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .panel-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .panel-image img {
    height: 260px;
    border-radius: 20px 20px 0 0;
  }

  .panel-image {
    border-radius: 20px 20px 0 0;
  }

  .panel-content {
    padding: 28px 24px 32px;
  }

  .leistungen-tabs {
    gap: 6px;
  }

  .leistungen-tab {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-grid {
    aspect-ratio: 1 / 1;
    max-height: none;
    gap: 12px;
  }

  .about-image-grid .about-image-card:nth-child(2),
  .about-image-grid .about-image-card:nth-child(3) {
    transform: translateY(0);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-card {
    flex: 1;
    min-width: 140px;
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .top-bar-contact {
    flex-direction: column;
    gap: 4px;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 8px;
  }

  .mobile-toggle {
    display: flex;
  }

  /* CTA bouton orange réduit sur mobile */
  .nav-cta-bewerben {
    margin-left: auto;
    margin-right: 12px;
    padding: 9px 14px;
    font-size: 0.78rem;
  }
  .nav-cta-bewerben span { display: none; }
  .nav-cta-bewerben i { font-size: 1rem; }

  .viva-karriere-hero h1 { font-size: 1.6rem; }
  .viva-karriere-hero .lead { font-size: 0.95rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat::after {
    display: none;
  }

  .leistungen-tab span {
    display: none;
  }

  .leistungen-tab {
    padding: 12px 16px;
  }

  .leistungen-tab i {
    font-size: 1.1rem;
  }

  .about-highlights {
    flex-direction: column;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
  }

  /* Chat widget mobile */
  .chat-window {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .chat-widget-btn {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
  }
}

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

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

/* Section reveal on scroll (subtle, professional) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body { opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Scrollbar ===== */
.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border-radius: 3px;
}

/* =============================================================================
   Sélecteur de langue (DE / EN / ES)
   ============================================================================= */
.viva-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.viva-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  line-height: 1;
}

.viva-lang-toggle:hover,
.viva-lang-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.viva-lang-flag {
  display: inline-flex;
  width: 18px;
  height: 13px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16) inset;
  flex-shrink: 0;
}

.viva-lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.viva-lang-caret {
  font-size: 0.6rem;
  opacity: 0.78;
  transition: transform 0.2s ease;
}

.viva-lang-toggle[aria-expanded="true"] .viva-lang-caret {
  transform: rotate(180deg);
}

.viva-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #fff;
  color: var(--slate-900);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.22);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.viva-lang.is-open .viva-lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.viva-lang-menu li {
  margin: 0;
  padding: 0;
}

.viva-lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate-800);
  text-decoration: none;
  transition: background 0.15s ease;
}

.viva-lang-menu a:hover {
  background: var(--slate-100);
  color: var(--slate-950);
}

.viva-lang-menu a.is-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.viva-lang-menu .viva-lang-flag {
  width: 22px;
  height: 16px;
}

@media (max-width: 640px) {
  .viva-lang-toggle .viva-lang-code { display: none; }
  .viva-lang-menu { right: -20px; min-width: 160px; }
}
