:root {
  /* Couleurs principales */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #0f172a;
  --secondary-light: #1e293b;

  /* Couleurs de texte */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Couleurs de fond */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --bg-dark: #0f172a;

  /* Couleurs d'accent */
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;

  /* Espacements */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typographie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: "Fira Code", "Consolas", monospace;

  /* Tailles de police */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Bordures */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Largeur max container */
  --container-max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--bg-gray);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  font-size: var(--text-2xl);
}

.logo-text strong {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background-color: var(--bg-light);
}

.nav-link--outline {
  border: 1px solid var(--bg-gray);
}

.nav-link--primary {
  background-color: var(--primary);
  color: white !important;
}

.nav-link--primary:hover {
  background-color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before,
.hamburger::after {
  content: "";
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.hero {
  padding: calc(70px + var(--space-4xl)) 0 var(--space-4xl);
  background-image: url("https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 600px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.88) 0%,
    rgba(37, 99, 235, 0.82) 100%
  );
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

.code-window {
  background-color: var(--secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.code-header {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--secondary-light);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background-color: #ff5f56;
}
.dot.yellow {
  background-color: #ffbd2e;
}
.dot.green {
  background-color: #27ca40;
}

.code-content {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: #e2e8f0;
  line-height: 1.8;
  overflow-x: auto;
}

.code-content .keyword {
  color: #c792ea;
}
.code-content .property {
  color: #82aaff;
}
.code-content .string {
  color: #c3e88d;
}
.code-content .boolean {
  color: #ff9cac;
}

.how-it-works {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.step {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--bg-light);
  border-radius: var(--radius-xl);
  position: relative;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-color: var(--primary);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.step p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.freelances-section,
.clients-section {
  padding: var(--space-4xl) 0;
}

.freelances-section {
  background-color: var(--bg-light);
}

.clients-section {
  background-color: var(--bg-white);
}

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split-content.reverse {
  direction: rtl;
}

.split-content.reverse > * {
  direction: ltr;
}

.split-text h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.split-text p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.benefits-list {
  margin-bottom: var(--space-xl);
}

.benefits-list li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.profile-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.profile-card:hover {
  transform: translateX(10px);
}

.profile-avatar {
  font-size: 2.5rem;
}

.profile-info h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.profile-info p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.profile-rate {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-green);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.tech-tag {
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--bg-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background-color: var(--primary);
  color: white;
}

.tech-tag.large {
  font-size: var(--text-base);
  padding: var(--space-md) var(--space-xl);
  background-color: var(--primary);
  color: white;
}

.projects-section {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.project-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  height: 200px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-lg);
}

.project-type {
  background-color: rgba(255, 255, 255, 0.9);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.project-content {
  padding: var(--space-xl);
}

.project-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.project-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.project-tech {
  color: var(--primary);
  font-weight: 500;
}

.blog-section {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-gray);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--space-md);
}

.blog-category {
  background-color: var(--primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.blog-content {
  padding: var(--space-lg);
}

.blog-content time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.blog-content h3 {
  font-size: var(--text-lg);
  margin: var(--space-sm) 0;
  line-height: 1.4;
}

.blog-content h3 a {
  color: var(--text-primary);
}

.blog-content h3 a:hover {
  color: var(--primary);
}

.blog-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.blog-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

.contact-section {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.contact-info p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-features li {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.contact-form {
  background-color: var(--bg-white);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  border: 1px solid var(--bg-gray);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.faq-section {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--bg-gray);
}

.faq-question {
  padding: var(--space-lg) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  padding-right: var(--space-lg);
}

.faq-question::after {
  content: "+";
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer ul,
.faq-answer ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.faq-answer ul {
  list-style: disc;
}

.faq-answer ol {
  list-style: decimal;
}

.faq-answer li {
  margin-bottom: var(--space-sm);
}

.cta-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  text-align: center;
}

.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.cta-section .btn-primary {
  background-color: white;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background-color: var(--bg-light);
}

.cta-section .btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.cta-section .btn-secondary:hover {
  background-color: white;
  color: var(--primary);
}

.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-lg);
}

.footer-brand .logo:hover {
  color: white;
}

.footer-brand p {
  color: var(--text-light);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-nav h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: white;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  color: var(--text-light);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--text-light);
}

.footer-legal {
  display: flex;
  gap: var(--space-xl);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--text-light);
}

.footer-legal a:hover {
  color: white;
}

.page-header {
  padding: calc(70px + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.page-header p {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.page-content {
  padding: var(--space-4xl) 0;
}

.page-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.page-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--text-primary);
}

.page-content p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.8;
}

.page-content ul,
.page-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background-color: var(--bg-light);
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-header h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--bg-gray);
}

.auth-divider span {
  padding: 0 var(--space-md);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-footer a {
  font-weight: 600;
}

.article-meta {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--bg-gray);
}

.article-meta span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content p {
  font-size: var(--text-lg);
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .split-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .split-content.reverse {
    direction: ltr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .profile-cards {
    width: 100%;
  }

  .profile-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

@media print {
  .header,
  .footer,
  .nav-toggle,
  .btn,
  .contact-form {
    display: none !important;
  }

  .hero {
    padding-top: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }
}
