/* ═══════════════════════════════════════════
   G2CV Solutions — Global Stylesheet
   Brand: Hexagonal Identity System 2026
   ═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Manrope:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand Colors */
  --navy: #0A1628;
  --navy-mid: #1B2D4A;
  --navy-soft: #243652;
  --accent: #2E5BFF;
  --accent-lt: #5A82FF;
  --accent-pale: #E8EEFF;
  --white: #FFFFFF;
  --g50: #F5F6F8;
  --g100: #EAECF0;
  --g200: #D0D5DD;
  --g400: #98A2B3;
  --g600: #475467;
  --g800: #1D2939;
  --black: #000000;
  --ok: #12B76A;
  --warn: #F79009;
  --err: #F04438;

  /* Fonts */
  --fd: 'Libre Baskerville', Georgia, serif;
  --fb: 'Manrope', system-ui, sans-serif;
  --fm: 'IBM Plex Mono', monospace;

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
}

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

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

body {
  font-family: var(--fb);
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-lt); }

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

@media (min-width: 768px) {
  .container { padding: 0 44px; }
}

/* ══════════════════════
   NAVIGATION
   ══════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g100);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(10, 22, 40, 0.06);
}

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

@media (min-width: 768px) {
  .nav-inner { padding: 0 44px; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo svg { flex-shrink: 0; }

.nav-logo-text {
  font-family: var(--fb);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--navy);
}

.nav-logo-text .accent { color: var(--accent); }
.nav-logo-text .solutions {
  font-weight: 300;
  font-size: 14px;
  color: var(--g400);
  letter-spacing: 1px;
  margin-left: 2px;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--g600);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-size: 12px;
  font-weight: 600;
  color: var(--g400);
  cursor: pointer;
  border: 1px solid var(--g200);
  border-radius: 6px;
  padding: 4px 10px;
  background: transparent;
  font-family: var(--fb);
  transition: all 0.2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-github {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-github:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.nav-github svg { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .nav-github { display: flex; }
}

/* Mobile menu */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

@media (min-width: 900px) {
  .nav-hamburger { display: none; }
}

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

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--g100);
  padding: 24px;
  box-shadow: 0 10px 40px rgba(10, 22, 40, 0.1);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--g600);
  text-decoration: none;
  border-bottom: 1px solid var(--g100);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

.mobile-menu .nav-github-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  border-bottom: none;
}

.mobile-menu .nav-github-mobile:hover { color: var(--white); background: var(--navy-mid); }

/* ══════════════════════
   BUTTONS
   ══════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fb);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #1a4bef;
  border-color: #1a4bef;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-pale);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-dark:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ══════════════════════
   SECTIONS
   ══════════════════════ */
.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section { padding: 100px 0; }
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-gray {
  background: var(--g50);
}

.section-label {
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--fd);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title { font-size: 36px; }
}

.section-subtitle {
  font-size: 16px;
  color: var(--g600);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.section-dark .section-subtitle { color: var(--g400); }

/* ══════════════════════
   CARDS
   ══════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--g100);
  border-radius: 12px;
  padding: 36px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 10px 36px rgba(10, 22, 40, 0.06);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.card-title {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: var(--g600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover { gap: 8px; }

.card-link svg { width: 14px; height: 14px; transition: transform 0.2s; }

/* ══════════════════════
   GRID
   ══════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ══════════════════════
   CODE BLOCKS
   ══════════════════════ */
.code-block {
  background: var(--navy);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--navy-mid);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.code-lang {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--g400);
  letter-spacing: 1px;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--fm);
  font-size: 13px;
  line-height: 1.7;
  color: var(--g200);
}

.code-block .comment { color: var(--g400); }
.code-block .command { color: var(--accent-lt); }
.code-block .string { color: var(--ok); }

/* ══════════════════════
   FEATURE LIST
   ══════════════════════ */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--g600);
}

.feature-list li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--ok);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature-list li .check svg {
  width: 12px;
  height: 12px;
  color: var(--white);
}

/* ══════════════════════
   HERO
   ══════════════════════ */
.hero {
  min-height: calc(100vh - 72px);
  margin-top: 72px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(46, 91, 255, 0.04);
  border-radius: 50%;
}

.hero-bg::before {
  width: 800px;
  height: 800px;
  top: -300px;
  right: -200px;
}

.hero-bg::after {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -150px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--fd);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 48px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 52px; }
}

.hero p {
  font-size: 17px;
  color: var(--g400);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ══════════════════════
   PAGE HERO (inner pages)
   ══════════════════════ */
.page-hero {
  margin-top: 72px;
  padding: 80px 0 60px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(46, 91, 255, 0.04);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--fd);
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .page-hero h1 { font-size: 42px; }
}

.page-hero .tagline {
  font-size: 17px;
  color: var(--accent-lt);
  font-weight: 500;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--g400);
  line-height: 1.7;
  max-width: 600px;
}

.page-hero .hero-ctas { margin-top: 32px; }

/* ══════════════════════
   FOOTER
   ══════════════════════ */
.footer {
  background: var(--navy);
  color: var(--g400);
  padding: 64px 0 32px;
  border-top: 1px solid var(--navy-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 300px;
}

.footer h4 {
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--g200);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 14px;
  color: var(--g400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--navy-mid);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 12px;
  color: var(--g600);
}

.footer-bottom .license {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--g600);
}

/* ══════════════════════
   FORM
   ══════════════════════ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--g800);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--err);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--fb);
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.1);
}

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

.form-select { cursor: pointer; }

/* Honeypot */
.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* ══════════════════════
   STEPS
   ══════════════════════ */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--g100);
}

.step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--g600);
  line-height: 1.7;
}

/* ══════════════════════
   UTILITIES
   ══════════════════════ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.align-start { align-items: start; }
.flex-center { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ── Trust Badges ── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ══════════════════════
   ANIMATIONS
   ══════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

/* ══════════════════════
   SCROLL ANIMATIONS
   ══════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════
   BILINGUAL TOGGLE
   ══════════════════════ */
[data-lang="fr"] { display: none; }
html[lang="fr"] [data-lang="fr"] { display: initial; }
html[lang="fr"] [data-lang="en"] { display: none; }

/* Block-level bilingual */
[data-lang-block="fr"] { display: none; }
html[lang="fr"] [data-lang-block="fr"] { display: block; }
html[lang="fr"] [data-lang-block="en"] { display: none; }

/* Flex bilingual */
[data-lang-flex="fr"] { display: none; }
html[lang="fr"] [data-lang-flex="fr"] { display: flex; }
html[lang="fr"] [data-lang-flex="en"] { display: none; }
html[lang="fr"] [data-lang-flex-en] { display: none; }
