/* ===========================================
   Relto.io - Professional Landing Page Styles
   Modern, Clean, Dynamic yet Serious
   =========================================== */

:root {
  /* Professional Color Palette - New Brand Colors */
  --primary-blue: #3B82F6;        /* Bleu clair - confiance, technologie */
  --primary-dark: #1E40AF;        /* Bleu profond - sérieux et pro */
  --accent-gold: #FBBF24;         /* Jaune doré - énergie, connexion, optimisme */
  --accent-blue-light: #60A5FA;   /* Bleu plus clair pour hovers */
  
  --gray-50: #F9FAFB;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --success-green: #10b981;
  --warning-amber: #f59e0b;
  
  /* Spacing & Typography */
  --max-width: 1200px;
  --border-radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

/* ===========================================
   Base Styles & Reset
   =========================================== */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================================
   Navigation
   =========================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.navbar-logo img {
  height: 50px;
  width: auto;
  display: block;
}

.navbar-logo:hover {
  transform: translateY(-2px);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-link:hover {
  color: var(--primary-blue);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width var(--transition-base);
}

.navbar-link:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--gray-800);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--gray-100);
  color: var(--gray-800);
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  display: inline-block;
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background-color: var(--gray-200);
  border-color: var(--gray-400);
}

/* ===========================================
   Hero Section
   =========================================== */

.hero {
  background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
  padding: 6rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: white;
  color: var(--primary-blue);
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  transition: all var(--transition-base);
  display: inline-block;
  box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ===========================================
   Sections
   =========================================== */

.section {
  padding: 5rem 2rem;
}

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

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

/* ===========================================
   Feature Cards
   =========================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===========================================
   Stats Section
   =========================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ===========================================
   Content Blocks
   =========================================== */

.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.content-text p {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-visual {
  background-color: var(--gray-100);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* ===========================================
   Documentation Styles
   =========================================== */

.docs-sidebar {
  position: sticky;
  top: 100px;
  width: 250px;
}

.docs-nav {
  list-style: none;
}

.docs-nav li {
  margin-bottom: 0.5rem;
}

.docs-nav a {
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.docs-nav a:hover {
  background-color: var(--gray-100);
  color: var(--primary-blue);
}

.docs-nav a.active {
  background-color: var(--primary-blue);
  color: white;
  font-weight: 600;
}

.docs-content {
  flex: 1;
  max-width: 800px;
}

.docs-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.docs-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.docs-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.docs-content li {
  margin-bottom: 0.5rem;
}

.docs-content code {
  background-color: var(--gray-100);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary-dark);
}

.docs-content pre {
  background-color: var(--gray-900);
  color: var(--gray-100);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.docs-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-info {
  background-color: #dbeafe;
  border-color: var(--primary-blue);
  color: #1e40af;
}

.alert-warning {
  background-color: #fef3c7;
  border-color: var(--warning-amber);
  color: #92400e;
}

.alert-success {
  background-color: #d1fae5;
  border-color: var(--success-green);
  color: #065f46;
}

/* ===========================================
   Footer
   =========================================== */

.footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
}

/* ===========================================
   Responsive Design
   =========================================== */

/* Tablet and Mobile - Menu Hamburger */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  
  .navbar-menu.active {
    right: 0;
  }
  
  .navbar-menu li {
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .navbar-menu li:last-child {
    border-bottom: none;
    margin-top: 1rem;
  }
  
  .navbar-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    width: 100%;
  }
  
  .navbar-link::after {
    display: none;
  }
  
  .navbar-menu .btn-primary {
    width: 100%;
    text-align: center;
    display: block;
    padding: 1rem;
    margin-top: 0.5rem;
  }
  
  .navbar-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    max-width: 70%;
  }
  
  .navbar-logo img {
    height: 60px !important;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar-container {
    padding: 0 1rem;
    position: relative;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .content-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
}

/* ===========================================
   Animations
   =========================================== */

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===========================================
   Utility Classes
   =========================================== */

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

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

