/* ============================================
   ACLBOT — Optimized Design System v2.0
   Apple-inspired | Dual Theme | Performance First
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  /* Colors - Dark (default) */
  --bg-primary: #000000;
  --bg-secondary: #0d0d0d;
  --bg-tertiary: #141414;
  --bg-elevated: #1a1a1a;
  --bg-card: rgba(255, 255, 255, 0.03);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.50);
  --text-quaternary: rgba(255, 255, 255, 0.30);

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-muted: rgba(0, 113, 227, 0.15);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.8);

  --overlay: rgba(0, 0, 0, 0.72);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --nav-bg-scrolled: rgba(0, 0, 0, 0.9);

  /* System Colors */
  --success: #32d74b;
  --warning: #ff9f0a;
  --error: #ff453a;
  --purple: #af52de;
  --pink: #ff375f;
  --teal: #64d2ff;
  --indigo: #5856d6;

  /* Gradients */
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 113, 227, 0.15), transparent);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, hsla(210, 100%, 15%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 100%, 15%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(240, 100%, 15%, 1) 0, transparent 50%);

  /* Typography Scale */
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 17px;
  --font-size-lg: 19px;
  --font-size-xl: 21px;
  --font-size-2xl: 24px;

  /* Spacing */
  --nav-height: 52px;
  --container-padding: 22px;
  --container-padding-mobile: 16px;
  --section-padding: 160px;
  --section-padding-lg: 200px;
  --section-padding-sm: 100px;
  --section-padding-mobile: 100px;

  /* Layout */
  --container-max: 1024px;
  --container-wide-max: 1200px;
  --container-narrow-max: 692px;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-3xl: 32px;
  --radius-full: 980px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-entrance: 800ms cubic-bezier(0, 0, 0.2, 1);
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f0f2;
  --bg-elevated: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.03);

  --text-primary: #1d1d1f;
  --text-secondary: rgba(0, 0, 0, 0.56);
  --text-tertiary: rgba(0, 0, 0, 0.40);
  --text-quaternary: rgba(0, 0, 0, 0.20);

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-muted: rgba(0, 113, 227, 0.10);

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.16);

  --overlay: rgba(255, 255, 255, 0.85);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.95);

  /* System Colors - Adjusted for light */
  --success: #34c759;
  --warning: #ff9500;
  --error: #ff3b30;
  --teal: #5ac8fa;

  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 113, 227, 0.08), transparent);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.47;
  font-weight: 400;
  letter-spacing: -0.022em;
  background: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  transition: background var(--transition-slow), color var(--transition-slow);
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: white;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
.t-hero {
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.t-hero-xl {
  font-size: clamp(48px, 10vw, 96px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.t-headline {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.t-title-1 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.t-title-2 {
  font-size: var(--font-size-xl);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.021em;
}

.t-title-3 {
  font-size: var(--font-size-lg);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.t-body {
  font-size: var(--font-size-base);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
}

.t-body-xl {
  font-size: var(--font-size-xl);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.021em;
  color: var(--text-secondary);
}

.t-body-lg {
  font-size: var(--font-size-lg);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.021em;
  color: var(--text-secondary);
}

.t-caption {
  font-size: var(--font-size-xs);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.t-caption-blue {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   4. UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 12px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 24px;
}

.mb-5 {
  margin-bottom: 32px;
}

.mb-6 {
  margin-bottom: 40px;
}

.mb-7 {
  margin-bottom: 60px;
}

.mb-8 {
  margin-bottom: 80px;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 12px;
}

.mt-3 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 24px;
}

.mr-2 {
  margin-right: 8px;
}

.mr-3 {
  margin-right: 12px;
}

.mr-4 {
  margin-right: 16px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   5. LAYOUT
   ============================================ */
.container,
.container-wide,
.container-narrow {
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container {
  max-width: var(--container-max);
}

.container-wide {
  max-width: var(--container-wide-max);
}

.container-narrow {
  max-width: var(--container-narrow-max);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-lg {
  padding: var(--section-padding-lg) 0;
}

.section-sm {
  padding: var(--section-padding-sm) 0;
}

/* ============================================
   6. NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-base);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.nav-scrolled {
  background: var(--nav-bg-scrolled);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity var(--transition-base);
}

.nav-logo:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============================================
   LANGUAGE SELECTOR - Improved Design
   ============================================ */
.lang-selector {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  padding: 8px 32px 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 90px;
}

.lang-selector:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.lang-selector:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

[data-theme="light"] .lang-selector {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .lang-selector:hover {
  background-color: #f5f5f7;
  border-color: var(--accent);
}

/* Force emoji display */
.lang-selector option {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* Fallback si emoji ne s'affiche pas */
.lang-selector option[value="fr"]::before {
  content: "FR";
}

.lang-selector option[value="en"]::before {
  content: "EN";
}

/* Hide emoji on very small screens */
@media (max-width: 360px) {
  .lang-selector {
    font-size: 12px;
    padding: 6px 24px 6px 10px;
    min-width: 70px;
  }
}

/* ============================================
   THEME TOGGLE & HAMBURGER MENU
   ============================================ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: rotate(15deg);
}

/* HAMBURGER BUTTON - Hidden by default (desktop) */
.nav-mobile-btn {
  display: none;
}

/* MOBILE ONLY - Show hamburger */
@media (max-width: 768px) {
  .nav-mobile-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 16px;
    transition: all var(--transition-base);
    position: relative;
    padding: 8px;
  }

  /* Hamburger Lines */
  .nav-mobile-btn .hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  /* Hamburger Active State (X) */
  .nav-mobile-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav-mobile-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-mobile-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .nav-mobile-btn:hover {
    background: var(--bg-tertiary);
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.btn-primary,
.btn-primary:visited,
.btn-primary:active {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--border);
  font-weight: 600;
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  box-shadow: inset 0 0 0 1.5px var(--border), 0 2px 4px rgba(0,0,0,0.05);
}

/* Force texte blanc sur bouton primaire en mode clair */
[data-theme="light"] .btn-primary {
  background: #0071e3;
  color: #ffffff !important;
  text-shadow: none;
}

[data-theme="light"] .btn-primary:hover {
  background: #0051a3;
  color: #ffffff !important;
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  box-shadow: inset 0 0 0 2px var(--accent), 0 4px 8px rgba(0,0,0,0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
}

.btn-ghost:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-base);
}

.btn-block {
  width: 100%;
}

/* ============================================
   8. HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh);
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-muted);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  margin-bottom: 24px;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-visual {
  margin-top: 100px;
  width: 100%;
  max-width: 900px;
}

/* Hero Animations */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-actions {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s cubic-bezier(0, 0, 0.2, 1) forwards;
}

.hero-badge {
  animation-delay: 0.2s;
}

.hero-title {
  animation-delay: 0.4s;
}

.hero-subtitle {
  animation-delay: 0.6s;
}

.hero-actions {
  animation-delay: 0.8s;
}

.hero-visual {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s cubic-bezier(0, 0, 0.2, 1) 1s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   9. CARDS
   ============================================ */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  transition: transform var(--transition-slow),
    border-color var(--transition-slow),
    box-shadow var(--transition-slow);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 24px;
  transition: transform var(--transition-slow);
}

.card:hover .card-icon {
  transform: scale(1.05);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  letter-spacing: -0.021em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-text {
  font-size: var(--font-size-base);
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: 24px;
}

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  padding: 48px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-slow), border-color var(--transition-slow);
}

.bento-item:hover {
  transform: scale(1.01);
  border-color: var(--border-hover);
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item-large {
  grid-row: span 2;
}

/* ============================================
   10. FEATURE SECTIONS
   ============================================ */
.feature,
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.feature-content {
  padding: 40px 0;
}

.feature-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.feature-title {
  margin-bottom: 24px;
}

.feature-text {
  margin-bottom: 32px;
}

.feature-visual {
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-secondary);
}

.feature-check i {
  color: var(--success);
  font-size: 16px;
}

/* ============================================
   11. STATS
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ============================================
   12. PAGE HEADER
   ============================================ */
.page-header {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

/* ============================================
   13. FORMS
   ============================================ */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--accent-muted);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-quaternary);
}

.form-select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================
   14. CODE BLOCKS
   ============================================ */
.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-copy {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.code-copy:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.code-block pre {
  padding: 24px;
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ============================================
   15. LANGUAGE GRID (index.html)
   ============================================ */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 16px;
}

.lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base), opacity 0.6s ease;
}

.lang-item.animate {
  opacity: 0;
  transform: translateY(20px);
}

.lang-item.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.lang-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-tertiary);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.15);
}

[data-theme="dark"] .lang-item:hover {
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.25);
}

.lang-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.lang-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Contrast improvements */
/* LANGAGES - MODE CLAIR */
[data-theme="light"] .lang-icon-bun { color: #b8860b; }
[data-theme="light"] .lang-icon-lua { color: #191970; }
[data-theme="light"] .lang-icon-csharp { color: #6b2e68; }

/* LANGAGES - MODE SOMBRE (CONTRASTES AMÉLIORÉS) */
[data-theme="dark"] .lang-icon-bun { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
[data-theme="dark"] .lang-icon-lua { color: #a5b4fc; text-shadow: 0 0 10px rgba(165, 180, 252, 0.3); }
[data-theme="dark"] .lang-icon-csharp { color: #e9d5ff; text-shadow: 0 0 10px rgba(233, 213, 255, 0.3); }

/* NOUVEAU : Fonds colorés pour meilleure visibilité */
.lang-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.lang-item:hover .lang-icon-wrapper {
  transform: scale(1.1);
}

/* Mode Clair - Fonds */
[data-theme="light"] .lang-nodejs { background: rgba(104, 160, 99, 0.15); color: #2d5a27; }
[data-theme="light"] .lang-bun { background: rgba(255, 215, 0, 0.15); color: #8B6914; }
[data-theme="light"] .lang-python { background: rgba(55, 118, 171, 0.15); color: #1e4b75; }
[data-theme="light"] .lang-csharp { background: rgba(155, 79, 150, 0.15); color: #6b2e68; }
[data-theme="light"] .lang-go { background: rgba(0, 173, 216, 0.15); color: #007a99; }
[data-theme="light"] .lang-java { background: rgba(237, 139, 0, 0.15); color: #b36b00; }
[data-theme="light"] .lang-rust { background: rgba(222, 165, 132, 0.2); color: #8b4513; }
[data-theme="light"] .lang-lua { background: rgba(25, 25, 112, 0.1); color: #191970; }
[data-theme="light"] .lang-mariadb { background: rgba(0, 53, 69, 0.1); color: #003545; }

/* Mode Sombre - Fonds avec meilleur contraste */
[data-theme="dark"] .lang-nodejs { background: rgba(104, 160, 99, 0.25); color: #90EE90; box-shadow: 0 0 20px rgba(104, 160, 99, 0.1); }
[data-theme="dark"] .lang-bun { background: rgba(255, 215, 0, 0.15); color: #ffd700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.1); }
[data-theme="dark"] .lang-python { background: rgba(135, 206, 235, 0.15); color: #87CEEB; box-shadow: 0 0 20px rgba(135, 206, 235, 0.1); }
[data-theme="dark"] .lang-csharp { background: rgba(221, 160, 221, 0.15); color: #dda0dd; box-shadow: 0 0 20px rgba(221, 160, 221, 0.1); }
[data-theme="dark"] .lang-go { background: rgba(0, 255, 255, 0.1); color: #00ffff; box-shadow: 0 0 20px rgba(0, 255, 255, 0.1); }
[data-theme="dark"] .lang-java { background: rgba(255, 179, 71, 0.15); color: #ffb347; box-shadow: 0 0 20px rgba(255, 179, 71, 0.1); }
[data-theme="dark"] .lang-rust { background: rgba(244, 164, 96, 0.15); color: #f4a460; box-shadow: 0 0 20px rgba(244, 164, 96, 0.1); }
[data-theme="dark"] .lang-lua { background: rgba(176, 196, 222, 0.15); color: #b0c4de; box-shadow: 0 0 20px rgba(176, 196, 222, 0.1); }
[data-theme="dark"] .lang-mariadb { background: rgba(135, 206, 250, 0.15); color: #87cefa; box-shadow: 0 0 20px rgba(135, 206, 250, 0.1); }

.lang-version {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================
   16. CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 100px;
  align-items: start;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-layout form {
    padding: 32px 24px !important;
  }
}

/* ============================================
   17. TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: #ffb800;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-tertiary);
}

.trust-logos {
  text-align: center;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   18. TOOL CARDS (index.html)
   ============================================ */
.tool-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ============================================
   17. PRICING (pricing.html)
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.pricing-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-name {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.021em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-description {
  font-size: 14px;
  color: var(--text-tertiary);
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-muted);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.price-free {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--success);
  line-height: 1;
}

.price-currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.price-period {
  font-size: 15px;
  color: var(--text-tertiary);
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li i {
  color: var(--success);
  font-size: 14px;
  flex-shrink: 0;
}

.plan-features li.renewal {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

.plan-features li.renewal i {
  color: var(--warning);
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 80px 0 40px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-badge i {
  color: var(--success);
  font-size: 18px;
}

.credits-info {
  text-align: center;
  margin-top: 60px;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.credits-info-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.credits-info-text {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.credits-info-subtext {
  font-size: 15px;
  color: var(--text-tertiary);
}

/* ============================================
   18. FAQ
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}

.faq-question {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   19. FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
  color: var(--text-primary);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--text-tertiary);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: var(--font-size-xs);
  color: var(--text-quaternary);
}

/* ============================================
   20. ANIMATIONS
   ============================================ */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-entrance), transform var(--transition-entrance);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger>*,
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0, 0, 0.2, 1), transform 0.6s cubic-bezier(0, 0, 0.2, 1);
}

/* Stagger delays using CSS custom properties */
.stagger>*:nth-child(1),
.stagger-children>*:nth-child(1) {
  transition-delay: 0s;
}

.stagger>*:nth-child(2),
.stagger-children>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger>*:nth-child(3),
.stagger-children>*:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger>*:nth-child(4),
.stagger-children>*:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger>*:nth-child(5),
.stagger-children>*:nth-child(5) {
  transition-delay: 0.4s;
}

.stagger>*:nth-child(6),
.stagger-children>*:nth-child(6) {
  transition-delay: 0.5s;
}

.stagger>*:nth-child(7),
.stagger-children>*:nth-child(7) {
  transition-delay: 0.6s;
}

.stagger>*:nth-child(8),
.stagger-children>*:nth-child(8) {
  transition-delay: 0.7s;
}

.stagger>*:nth-child(9),
.stagger-children>*:nth-child(9) {
  transition-delay: 0.8s;
}

.stagger.visible>*,
.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   21. RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-item-large {
    grid-row: span 1;
  }

  .feature,
  .feature-section {
    gap: 60px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   22. RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 100px;
  }

  .page-header {
    padding: 140px 0 80px;
  }

  /* ============================================
     MOBILE SIDEBAR - Full height
     ============================================ */
  .nav-links {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    height: calc(100vh - 52px);
    min-height: calc(100vh - 52px);
    background: #0d0d0d;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    z-index: 9998;
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  /* Fallback pour iOS Safari */
  @supports (-webkit-touch-callout: none) {
    .nav-links {
      height: -webkit-fill-available;
      min-height: -webkit-fill-available;
    }
  }
  
  .nav-links.active {
    display: flex;
  }
  
  /* Empêche le scroll du body quand menu ouvert */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  [data-theme="light"] .nav-links {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
  }
  
  /* Mobile menu links */
  .nav-links.active .nav-link {
    font-size: 18px;
    font-weight: 500;
    opacity: 1;
    padding: 16px 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: #ffffff;
  }
  
  [data-theme="light"] .nav-links.active .nav-link {
    color: #1d1d1f;
    border-bottom-color: #e5e5e5;
  }
  
  .nav-links.active .nav-link:last-child {
    border-bottom: none;
  }

  .nav-mobile-btn {
    display: flex;
  }

  /* Hero Mobile */
  .hero {
    padding-top: 100px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Feature Mobile */
  .feature,
  .feature-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-visual {
    order: -1;
  }

  /* Stats Mobile */
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stat-number {
    font-size: 40px;
  }

  /* Grid Mobile */
  .lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    flex-direction: column;
    text-align: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* Form Mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   23. RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }
  
  /* Header compact for small screens */
  .nav-container {
    padding: 0 12px;
    gap: 8px;
  }
  
  .nav-logo {
    font-size: 17px;
    letter-spacing: -0.02em;
  }
  
  /* Compact controls */
  .nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .lang-selector {
    padding: 6px 22px 6px 10px;
    font-size: 12px;
    min-width: 65px;
    background-position: right 8px center;
    border-radius: 8px;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .t-hero {
    font-size: 26px;
    line-height: 1.15;
  }
  
  .t-headline {
    font-size: 24px;
  }
  
  .t-title-1 {
    font-size: 20px;
  }
  
  .page-header .t-headline {
    font-size: 24px;
  }
  
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .page-header {
    padding: 120px 0 60px;
  }

  .bento-item,
  .card {
    padding: 28px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .lang-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .lang-item {
    padding: 16px 12px;
  }

  .lang-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .price-amount,
  .price-free {
    font-size: 36px;
  }
}

/* ============================================
   24. ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate,
  .stagger>*,
  .stagger-children>* {
    opacity: 1;
    transform: none;
  }

  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero-actions,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Focus Visible - Amélioré pour accessibilité */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--accent-muted);
}

/* Liens avec meilleur contraste */
a {
  color: var(--accent);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--accent-hover);
}

[data-theme="light"] a {
  color: #0066cc;
}

[data-theme="light"] a:hover {
  color: #0052a3;
}

/* Réinitialisation des boutons pour éviter l'héritage de la couleur des liens */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:visited,
a.btn-primary:active {
  color: #ffffff !important;
}

a.btn-secondary,
a.btn-secondary:hover,
a.btn-secondary:visited,
a.btn-secondary:active {
  color: var(--accent) !important;
}

/* Liens dans le texte secondaire */
.t-body a,
.t-body-lg a,
.t-body-xl a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer links plus visibles */
.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --text-secondary: rgba(255, 255, 255, 0.9);
  }

  [data-theme="light"] {
    --border: rgba(0, 0, 0, 0.3);
    --text-secondary: rgba(0, 0, 0, 0.8);
  }
}