﻿@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Noto+Sans:wght@400;500&family=Arya:wght@700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --noir:            #0A0A0F;
  --noir-profond:    #060609;
  --noir-surface:    #12121A;
  --noir-card:       #151520;
  --noir-border:     #252030;

  --bleu-imperial:   #0A1931;
  --bleu-hover:      #15305B;
  --bleu-glow:       rgba(10, 25, 49, 0.5);
  --bleu-light:      #4A7DC4;

  --argent:          #C0C0C0;
  --argent-clair:    #E0E6ED;
  --argent-fonce:    #8A9BB3;

  --or:              #4f8ef7;
  --or-hover:        #7fb0ff;
  --or-glow:         rgba(79, 142, 247, 0.35);
  --or-subtle:       rgba(79, 142, 247, 0.1);

  --rouge-royal:     #8B1A2B;
  --rouge-hover:     #A52238;
  --rouge-glow:      rgba(139, 26, 43, 0.3);

  --blanc:           #E0E6ED;
  --blanc-pur:       #FFFFFF;
  --blanc-muted:     rgba(224, 230, 237, 0.7);

  --font-serif:      "Rajdhani", "Segoe UI", sans-serif;
  --font-sans:       "Noto Sans", -apple-system, "Segoe UI", sans-serif;
  --particle-rgb:    79, 142, 247;
  --font-accent:     "Arya", "Rajdhani", sans-serif;
  --font-mono:       ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-arabic:     "Noto Sans Arabic", "Segoe UI", "Noto Sans", sans-serif;

  --glass-bg:        rgba(10, 10, 15, 0.72);
  --glass-border:    var(--noir-border);
  --blur:            blur(20px);
}

@media (prefers-color-scheme: light) {
  :root {
    --noir:            #FFFFFF;
    --noir-profond:    #F3F5F7;
    --noir-surface:    #F3F5F7;
    --noir-card:       #FFFFFF;
    --noir-border:     #E2E6EB;

    --bleu-imperial:   #1E4B73;
    --bleu-hover:      #186F9C;
    --bleu-glow:       rgba(30, 75, 115, 0.25);
    --bleu-light:      #12557A;

    --argent:          #57626F;
    --argent-clair:    #3A4652;
    --argent-fonce:    #6B7684;

    --or:              #12557A;
    --or-hover:        #186F9C;
    --or-glow:         rgba(18, 85, 122, 0.25);
    --or-subtle:       rgba(18, 85, 122, 0.08);

    --rouge-royal:     #8B1A2B;
    --rouge-hover:     #A52238;
    --rouge-glow:      rgba(139, 26, 43, 0.3);

    --blanc:           #0F1B2A;
    --blanc-pur:       #0F1B2A;
    --blanc-muted:     rgba(15, 27, 42, 0.7);

    --glass-bg:        rgba(255, 255, 255, 0.82);
  }

  .particles > div {
    mix-blend-mode: multiply;
  }

      --particle-rgb: 10, 25, 49;
      --orb-2-bg:        rgba(18, 85, 122, 0.15);
      --orb-3-bg:        rgba(139, 26, 43, 0.08);
      --orb-4-bg:        rgba(24, 111, 156, 0.08);
  }
}

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

body {
  background-color: var(--noir);
  color: var(--blanc);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--or);
  font-weight: 600;
}

/* ==== Ambient background (ported from the desktop app) ==== */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--bleu-imperial) 0%, var(--noir-profond) 70%);
  z-index: -4;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -3;
  pointer-events: none;
  will-change: transform, opacity;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--bleu-hover);
  top: -120px;
  left: -120px;
  animation: floatOrbA 31s infinite ease-in-out, breatheOrb 13s infinite ease-in-out;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: var(--orb-2-bg, rgba(79, 142, 247, 0.18));
  bottom: -80px;
  right: -80px;
  animation: floatOrbB 24s infinite ease-in-out, breatheOrb 9s infinite ease-in-out;
  animation-delay: -7s, -4s;
}

.orb-3 {
  width: 360px;
  height: 360px;
  background: var(--orb-3-bg, rgba(130, 80, 220, 0.1));
  top: 30%;
  right: -160px;
  animation: floatOrbA 38s infinite ease-in-out, breatheOrb 15s infinite ease-in-out;
  animation-delay: -14s, -6s;
}

.orb-4 {
  width: 220px;
  height: 220px;
  background: var(--orb-4-bg, rgba(0, 180, 160, 0.09));
  bottom: 20%;
  left: -80px;
  animation: floatOrbB 19s infinite ease-in-out, breatheOrb 11s infinite ease-in-out;
  animation-delay: -3s, -9s;
}

@keyframes floatOrbA {
  0%   { transform: translate(0px,   0px)  scale(1);    }
  10%  { transform: translate(35px, -25px) scale(1.04); }
  22%  { transform: translate(70px,  15px) scale(1.09); }
  35%  { transform: translate(50px,  65px) scale(1.02); }
  48%  { transform: translate(-5px,  90px) scale(0.94); }
  60%  { transform: translate(-55px, 60px) scale(0.97); }
  72%  { transform: translate(-70px, 10px) scale(1.06); }
  85%  { transform: translate(-35px,-35px) scale(1.03); }
  100% { transform: translate(0px,   0px)  scale(1);    }
}

@keyframes floatOrbB {
  0%   { transform: translate(0px,   0px)  scale(1);    }
  14%  { transform: translate(-45px, 30px) scale(1.06); }
  28%  { transform: translate(-75px,-15px) scale(0.96); }
  42%  { transform: translate(-30px,-55px) scale(1.05); }
  57%  { transform: translate(25px, -65px) scale(0.98); }
  71%  { transform: translate(55px, -20px) scale(1.07); }
  85%  { transform: translate(30px,  45px) scale(1.01); }
  100% { transform: translate(0px,   0px)  scale(1);    }
}

@keyframes breatheOrb {
  0%   { opacity: 0.30; }
  30%  { opacity: 0.50; }
  55%  { opacity: 0.22; }
  80%  { opacity: 0.45; }
  100% { opacity: 0.30; }
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .glow-orb,
  .particles > div {
    animation: none !important;
  }
}

nav {
  /* Three columns — brand | menu | spare — so the menu is centred on the bar itself and not on
   * the space left over by the brand (the converse.com header pattern). The side columns are
   * implicitly minmax(auto, 1fr): they stay equal, and centred, until the brand needs more than
   * its half, at which point the menu slides right instead of colliding with the wordmark.
   * display/justify-content below are the collapsed-layout fallback (see the 1680px block).
   * column-gap only: nav wraps once collapsed and a row-gap would push the open hamburger menu
   * far below the brand. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-content: space-between;
  align-items: center;
  column-gap: 2rem;
  /* Full-bleed bar: the brand sits hard against the left edge instead of being boxed into the
     site's 1200px reading width. */
  padding: 1.3rem 1.5rem;
    background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  text-decoration: none;
  justify-self: start;
}

.brand img {
    height: 34px;
  border-radius: 8px;
}

.brand h1 {
    font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--blanc-pur);
}

.nav-links {
  display: flex;
  align-items: center;
  grid-column: 2;
  justify-content: center;
  gap: 2.5rem;
}

/* chat.html holds a single logout button in its nav — centring one item would park it in the
   middle of an otherwise empty bar, so that one stays pinned right. */
.nav-links--compact {
  grid-column: 3;
  justify-self: end;
}

.nav-links a,
.nav-account {
  display: inline-block;
  color: var(--argent);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all 0.25s ease;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

/* The current page keeps a permanent pill: it is the reader's "you are here" cue. */
.nav-links a:hover, .nav-links a.active,
.nav-account:hover, .nav-account.active {
  color: var(--or);
  background: var(--or-subtle);
  border-color: var(--or-glow);
}

/* Links demoted from the bar live here — same block as Francia's footer. */
.footer-links {
  margin-top: 0.5rem;
  margin-bottom: 1.3rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--argent-fonce);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--or);
}

main {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

/* chat.html / compte.html: sparse pre-login content otherwise sits pinned under the nav with a
   large dead gap above the footer (body's site-wide min-height:100vh has nothing to balance it
   on these two short "app shell" pages). Vertically center main in the space between nav and
   footer instead — scoped to these 2 pages only, the other 92 pages are unaffected. */
body.app-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.app-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  text-align: center;
  padding: 6rem 0 4rem;
  animation: fadeIn 1s ease-out;
}

.hero h2 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--argent);
  max-width: 650px;
  margin: 0 auto 3rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--bleu-imperial);
  color: var(--blanc-pur);
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary:disabled {
  background-color: var(--noir-surface);
  color: var(--argent-fonce);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary:hover {
  background-color: var(--bleu-hover);
  box-shadow: 0 0 20px var(--bleu-glow);
  border-color: var(--bleu-light);
}

/* ===== SCROLL REVEAL ===== */
/* Applied by main.js (initScrollReveal) to .glass-card / .media-card / .team-card. Each element's
   own `transition: all …` (declared on the card class itself) animates opacity/transform once
   .is-visible lands, so this pair of rules only needs to set the two end states. */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
}

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

@media (prefers-reduced-motion: reduce) {
  /* Belt-and-suspenders: main.js already skips the observer under reduced motion, but content
     must never depend solely on JS running correctly to become visible. */
  .reveal-init {
    opacity: 1;
    transform: none;
  }
}

.glass-card {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 3.5rem;
  margin: 2rem 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.glass-card h3 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.glass-card p {
  color: var(--argent);
  font-size: 1.05rem;
}

.sibling-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.brand-logo-frame {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 2px solid;
  overflow: hidden;
}

.brand-logo-frame img {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-logo-frame--francia {
  border-color: #8F97A3;
  background: radial-gradient(circle, rgba(143, 151, 163, 0.35), rgba(143, 151, 163, 0.08));
  box-shadow: 0 0 18px rgba(143, 151, 163, 0.3);
}

.brand-logo-frame--authentis {
  border-color: #d4af37;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.08));
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
}

.brand-logo-frame--larai {
  border-color: #6cdaa1;
  background: radial-gradient(circle, rgba(108, 218, 161, 0.3), rgba(108, 218, 161, 0.08));
  box-shadow: 0 0 18px rgba(108, 218, 161, 0.3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

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

footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--noir-border);
  color: var(--argent-fonce);
  font-size: 0.9rem;
  margin-top: 5rem;
  background: var(--noir-surface);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  margin: 0 auto 1.3rem;
  text-decoration: none;
}

.footer-brand img {
  height: 32px;
  border-radius: 6px;
}

.footer-brand span {
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--blanc-pur);
}

.avatar-img {
  width: 240px;
  height: 240px;
  border-radius: 0;
  border: 2px solid var(--or);
  padding: 4px;
  margin-bottom: 1.5rem;
  object-fit: cover;
}

/* ===== DOWNLOAD PAGE ===== */
.hero--download {
  padding-bottom: 2rem;
}

.download-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  margin-bottom: 2rem;
}

.btn-primary--full {
  width: 100%;
  display: block;
  text-align: center;
}

.btn-primary--gold {
  background-color: var(--or);
  color: var(--noir);
  font-weight: 500;
  width: 100%;
  display: block;
  text-align: center;
}

.btn-primary--gold:hover {
  background-color: var(--or-hover);
  box-shadow: 0 0 20px var(--or-glow);
  border-color: var(--or);
}

/* ===== FEATURES PAGE ===== */
.hero--compact {
  padding: 3rem 0;
}

.glass-card--centered {
  text-align: center;
}

.voltagent-img {
  width: 180px;
  border-radius: 10px;
  border: 2px solid var(--or);
}

.agent-name {
  margin-top: 1rem;
}

/* ===== HAMBURGER NAV =====
   .nav-toggle-checkbox + <label class="nav-hamburger"> is a CSS-only checkbox hack: the menu
   opens/closes via the ~ sibling combinator below with zero JS required, so it still works if
   main.js never runs (blocked by a privacy extension / ad blocker — same reasoning as the
   #page-transition-overlay default-hidden state above). main.js still listens for nav-link
   clicks to auto-close the menu when JS *is* available, but that's a nice-to-have, not a
   requirement — unchecking on navigation happens naturally anyway since the page unloads. */
.nav-toggle-checkbox {
  display: none;
}

/* Right-hand cluster: account link + download CTA. Keeping the action out of the centred menu
   is what lets the bar carry four product links instead of ten. */
.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-actions a {
  white-space: nowrap;
}

.btn-nav {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: var(--bleu-imperial);
  color: var(--blanc-pur);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background-color: var(--bleu-hover);
  box-shadow: 0 0 20px var(--bleu-glow);
}

.nav-hamburger {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--argent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3),
.nav-toggle-checkbox:checked ~ .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== CARD FLEX (VoltAgent) ===== */
.voltagent-card {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* ===== RESPONSIVE NAV COLLAPSE. The bar needed ~1660px back when the menu carried all ten
   links, so it collapsed on any ordinary laptop. With four links in the centre and the account
   link + CTA on the right it needs 1139px in the widest locale (de), measured with Playwright
   across the 7 locales — 1160px keeps 1366/1440/1536 screens on the full bar. ===== */
@media (max-width: 1160px) {
  nav {
    /* Back to a wrapping flex row: brand + hamburger on the first line, the open menu as a full
       width block underneath. */
    display: flex;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 1rem;
    gap: 0;
    border-top: 1px solid var(--noir-border);
  }

  .nav-links.open,
  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }

  /* The right-hand cluster has nowhere to sit once the bar collapses, so it drops into the
     dropdown under the links rather than being duplicated there. */
  .nav-actions {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 0.85rem;
  }

  .nav-links.open ~ .nav-actions,
  .nav-toggle-checkbox:checked ~ .nav-actions {
    display: flex;
  }

  .nav-account {
    padding: 0.85rem 0.5rem;
  }

  .btn-nav {
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .nav-links a {
    display: block;
    white-space: normal;
    border-radius: 0;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--noir-border);
    font-size: 1rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--or-subtle);
    border-color: transparent;
    border-bottom-color: var(--noir-border);
  }

}

/* ===== RESPONSIVE 768px ===== */
@media (max-width: 768px) {
  main {
    margin: 2rem auto;
    padding: 0 1.2rem;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero h2 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .voltagent-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .voltagent-card img {
    width: 100px !important;
  }

  footer {
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
  }
}

/* ===== TEAM PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.team-card {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 142, 247, 0.35);
  box-shadow: 0 12px 35px rgba(0,0,0,0.55);
}

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

.team-portrait {
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: var(--noir-profond);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.5s ease;
}

.team-portrait--placeholder {
  font-size: 3.5rem;
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  letter-spacing: 2px;
}
.team-portrait--yao    { background: linear-gradient(135deg, #0d2a1a, #1b5e38); color: #4caf82; }
.team-portrait--durga  { background: linear-gradient(135deg, #2a1500, #5e3800); color: #ff9800; }
.team-portrait--jinwoo { background: linear-gradient(135deg, #0a1535, #1a3a7a); color: #6ea8fe; }
.team-portrait--john   { background: linear-gradient(135deg, #0f0f0f, #2a2a2a); color: #b0b0b0; }
.team-portrait--oksana { background: linear-gradient(135deg, #0a1a2a, #1a4a6a); color: #7bc4e8; }
.team-portrait--karl   { background: linear-gradient(135deg, #3a0a1a, #8b1a2b); color: #f48fb1; }
.team-portrait--wanda  { background: linear-gradient(135deg, #1a1500, #4a3800); color: #d4af37; }
.team-portrait--franco { background: linear-gradient(135deg, #0A1931, #1a1500); color: #D4AF37; }

.team-card:hover .team-portrait img {
  transform: scale(1.04);
}

.team-info {
  padding: 1.8rem 1.8rem 2rem;
}

.team-level {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  border: 1px solid rgba(79, 142, 247, 0.45);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  background: var(--or-subtle);
  margin-bottom: 0.9rem;
}

.team-info h3 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
  line-height: 1.1;
}

.team-role {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  color: var(--argent-fonce);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.team-info p {
  color: var(--argent);
  font-size: 0.93rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.4rem;
  }
  .team-portrait {
    height: 320px;
  }
}

/* ===== VERSION BADGE ===== */
.version-badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
  border: 1px solid rgba(79, 142, 247, 0.5);
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.8rem;
  background: var(--or-subtle);
}

/* ===== TAG NEW ===== */
.tag-new {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--noir);
  background: var(--or);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.6rem;
  vertical-align: middle;
  font-weight: 500;
}

/* ===== CHANGELOG LIST ===== */
.changelog-list {
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
}
.changelog-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--noir-border);
  color: var(--argent);
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.changelog-list li:last-child { border-bottom: none; }
.changelog-list li::before {
  content: '→';
  color: var(--or);
  flex-shrink: 0;
}

/* ===== LINUX BUTTON ===== */
.btn-primary--linux {
  background-color: #1a3a2a;
  color: var(--blanc-pur);
  border: 1px solid #2d6a4a;
  width: 100%;
  display: block;
  text-align: center;
}
.btn-primary--linux:hover {
  background-color: #245038;
  box-shadow: 0 0 20px rgba(45, 106, 74, 0.35);
  border-color: #3d8f63;
}

/* ===== SECURITY ICON CARD ===== */
.security-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

/* ===== RESPONSIVE 480px ===== */
@media (max-width: 480px) {
  

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

  .btn-primary {
    padding: 0.9rem 2rem;
    display: block;
    text-align: center;
  }

  .glass-card {
    padding: 1.5rem 1.2rem;
  }

  .glass-card h3 {
    font-size: 1.5rem;
  }
}

/* ===== ACCÈS DISTANT (compte.html / chat.html) ===== */
.auth-panel {
  max-width: 440px;
  margin: 0 auto;
}

.privacy-banner {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--or-subtle);
  border: 1px solid var(--noir-border);
  border-left: 3px solid var(--or);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--argent);
}

.privacy-banner strong {
  color: var(--or);
}

.form-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--noir-border);
}

.form-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--argent-fonce);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.8rem 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.form-tab.active {
  color: var(--or);
  border-bottom-color: var(--or);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-field label {
  font-size: 0.82rem;
  color: var(--argent-fonce);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
  background: var(--noir-surface);
  border: 1px solid var(--noir-border);
  border-radius: 4px;
  color: var(--blanc-pur);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}

.form-field input:focus {
  outline: none;
  border-color: var(--or);
}

.form-field.is-invalid input {
  border-color: var(--rouge-hover);
}
.form-field.is-invalid input:focus {
  border-color: var(--rouge-hover);
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
  color: var(--argent);
}

.form-status {
  min-height: 1.4em;
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

.form-status.is-error { color: var(--rouge-hover); }
.form-status.is-ok { color: var(--or); }

.btn-primary--block {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.contact-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 2.5rem;
}

.contact-form {
  text-align: left;
}

/* ---- Chat shell ---- */
.chat-shell {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.chat-status-pill {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--noir-border);
  color: var(--argent-fonce);
}

.chat-status-pill.is-ok { color: var(--or); border-color: var(--or); }
.chat-status-pill.is-warn { color: var(--rouge-hover); border-color: var(--rouge-hover); }

.pairing-panel {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  text-align: center;
}

.pairing-panel input {
  background: var(--noir-surface);
  border: 1px solid var(--noir-border);
  border-radius: 4px;
  color: var(--blanc-pur);
  font-size: 1.6rem;
  letter-spacing: 6px;
  text-align: center;
  padding: 0.6rem;
  width: 220px;
  margin: 0.8rem 0;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 320px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 1rem;
  background: var(--noir-surface);
  border: 1px solid var(--noir-border);
  border-radius: 6px;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--bleu-imperial);
  color: var(--blanc-pur);
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  color: var(--argent-clair);
}

.chat-input-row {
  display: flex;
  gap: 0.6rem;
}

.chat-input-row input {
  flex: 1;
  background: var(--noir-surface);
  border: 1px solid var(--noir-border);
  border-radius: 4px;
  color: var(--blanc-pur);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--or);
}

.chat-input-row button {
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0.75rem 1.2rem;
}

/* ==== Page transition (rideau + logo), inspiré de virtexsimulation.com ==== */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--noir);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Default state must be hidden (not covering): the page has to stay usable and visible
   even if main.js never runs (blocked by a privacy extension, ad blocker, or network
   failure) — this is the only element that used to sit on top of the entire viewport. */
#page-transition-overlay.is-covering {
  transform: scaleY(1);
}

#page-transition-overlay.is-instant {
  transition: none;
}

#page-transition-logo {
  width: 64px;
  height: 64px;
  opacity: 0;
  transform: scale(0.6) rotate(-12deg);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 18px var(--or-glow));
}

#page-transition-logo.is-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  #page-transition-overlay,
  #page-transition-logo {
    transition: none !important;
  }
}

/* ==== Floating language globe (replaces the old flag dropdown) ==== */
.lang-globe {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--argent);
  text-decoration: none;
  z-index: 300;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lang-globe svg {
  width: 24px;
  height: 24px;
}

.lang-globe:hover,
.lang-globe:focus-visible {
  color: var(--or);
  border-color: var(--or);
  box-shadow: 0 4px 20px var(--or-glow);
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .lang-globe {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }

  .lang-globe svg {
    width: 21px;
    height: 21px;
  }
}

/* ==== Arabic / RTL support ==== */
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .tag-new, html[lang="ar"] .version-badge {
  font-family: var(--font-arabic);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .lang-globe {
  right: auto;
  left: 1.5rem;
}

@media (max-width: 640px) {
  html[dir="rtl"] .lang-globe {
    right: auto;
    left: 1rem;
  }
}

/* ===== FAQ PAGE ===== */
.faq-category {
  margin: 3rem 0 1rem;
  font-family: var(--font-accent, var(--font-sans));
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--argent-fonce);
}

.faq-category:first-of-type {
  margin-top: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(79, 142, 247, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-serif);
  color: var(--or);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--argent-fonce);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--or);
}

.faq-answer {
  padding: 0 1.8rem 1.6rem;
  color: var(--argent);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--or);
}

@media (max-width: 480px) {
  .faq-item summary {
    padding: 1.1rem 1.2rem;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 1.2rem 1.3rem;
  }
}

/* ==== Language hub page (langue.html) ==== */
.lang-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--argent-clair);
}

.lang-card h3 {
  margin-bottom: 0;
}

.lang-card span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--argent-fonce);
}

/* ===== COOKIE BANNER (localStorage only, no tracker — same pattern as Francia/Authentis_Website) ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--noir-card);
  border-top: 1px solid var(--noir-border);
  color: var(--argent);
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 500;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner button {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.cookie-banner #accept-cookies {
  background: var(--bleu-imperial);
  color: var(--blanc-pur);
}

.cookie-banner #reject-cookies {
  background: transparent;
  color: var(--argent);
  border-color: var(--noir-border);
}

.cookie-banner #learn-more {
  background: transparent;
  color: var(--or);
  border-color: var(--or-glow);
}

/* "En savoir plus" opens a small list of every relevant national data-protection authority
   instead of guessing one country from the page language — French/Dutch/German are each shared
   by 2-4 EU countries on this site, so a single guessed link would be wrong for some visitors. */
.cookie-learn-more {
  position: relative;
  display: inline-block;
}

.cookie-learn-menu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--noir-card);
  border: 1px solid var(--noir-border);
  border-radius: 8px;
  padding: 0.4rem;
  min-width: 200px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.12);
  z-index: 510;
}

.cookie-learn-menu.open {
  display: flex;
}

.cookie-learn-menu a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 5px;
  color: var(--argent);
  text-decoration: none;
  font-size: 0.85rem;
  text-align: left;
  white-space: nowrap;
}

.cookie-learn-menu a:hover {
  background: var(--or-subtle);
  color: var(--or);
}

@media (max-width: 480px) {
  .cookie-banner button {
    margin: 0.4rem 0.3rem 0;
  }

  .cookie-learn-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
  }
}


.brand-logo-frame--laraivpn {
  border-color: #f2c14e;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.35), rgba(242, 193, 78, 0.08));
}

