:root {
  color-scheme: light;
  --header-height: 5.5rem;
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --primary-hover: #1d4ed8;
  --accent: #059669;
  --accent-light: #d1fae5;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(226, 232, 240, 0.8);
  --tag-bg: #e2e8f0;
  --tag-text: #1e293b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --bg-main: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-elevated: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #cbd5e1;
    --text-muted: #9ca3af;
    --border-color: #1f2937;
    --primary: #3b82f6;
    --primary-light: rgba(59, 130, 246, 0.15);
    --primary-hover: #60a5fa;
    --accent: #10b981;
    --accent-light: rgba(16, 185, 129, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(17, 24, 39, 0.85);
    --header-border: rgba(31, 41, 55, 0.8);
    --tag-bg: #1f2937;
    --tag-text: #e2e8f0;
  }
}
[data-theme=light] {
  color-scheme: light;
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --primary-hover: #1d4ed8;
  --accent: #059669;
  --accent-light: #d1fae5;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(226, 232, 240, 0.8);
  --tag-bg: #e2e8f0;
  --tag-text: #1e293b;
}

[data-theme=dark] {
  color-scheme: dark;
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #cbd5e1;
  --text-muted: #9ca3af;
  --border-color: #1f2937;
  --primary: #3b82f6;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-hover: #60a5fa;
  --accent: #10b981;
  --accent-light: rgba(16, 185, 129, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(17, 24, 39, 0.85);
  --header-border: rgba(31, 41, 55, 0.8);
  --tag-bg: #1f2937;
  --tag-text: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 4.5rem);
}

h1 {
  font-size: 30px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover {
  color: var(--primary-hover);
}

.highlight {
  color: var(--primary);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-wrap: wrap;
  max-width: min-content;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.site-logo:hover {
  color: var(--primary);
}

.site-logo__sub {
  font-size: 10px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
@media (min-width: 768px) and (max-width: 820px) {
  .nav-links {
    gap: 0.8rem;
  }
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--primary);
}

.site-nav--desktop {
  display: none;
}

.drawer-trigger--theme {
  display: inline-flex;
  order: 2;
}

.drawer-trigger--nav {
  display: inline-flex;
  order: 1;
}

@media (min-width: 768px) {
  .site-nav--desktop {
    display: flex;
    order: 2;
  }
  .drawer-trigger--theme {
    display: inline-flex;
    order: 1;
  }
  .drawer-trigger--nav {
    display: none;
  }
}
.drawer-trigger {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
  min-width: 100px;
}
.drawer-trigger:hover {
  background-color: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.drawer-trigger .drawer-trigger__icon {
  flex-shrink: 0;
}

body.drawer-open {
  overflow: hidden;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}
.drawer--open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.drawer--open .drawer__content {
  transform: translateX(0);
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.drawer__content {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.drawer__close-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer__close-btn:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-option:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}
.theme-option--active {
  border-color: var(--primary);
  background-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.theme-option--active .theme-option__indicator {
  opacity: 1;
}
.theme-option--active .theme-option__name {
  color: var(--primary);
}

.theme-option__icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  color: var(--primary);
  flex-shrink: 0;
}

.theme-option__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.theme-option__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.theme-option__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.theme-option__indicator {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-links--drawer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}
.nav-links--drawer a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links--drawer a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.site-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-main.site-main--curtain-peek {
  will-change: transform;
  backface-visibility: hidden;
  animation: curtainRisePeek 1.5s cubic-bezier(0.33, 1, 0.68, 1) both;
}
.site-main.site-main--curtain-peek .hero-section {
  will-change: clip-path;
  backface-visibility: hidden;
  animation: curtainClipReveal 1.5s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

section {
  padding: 1rem 0;
}
section .intro {
  font-size: 1.25rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  section .intro {
    font-size: 1.8rem;
  }
}
section .section-title {
  text-align: center;
}
@media (min-width: 768px) {
  section {
    max-width: 900px;
    margin: 0 auto;
  }
}
section.hero-section {
  max-height: 100dvh;
  min-height: calc(100svh - 5.9rem);
}

.hero-section {
  position: relative;
  padding: 6rem 0 0;
}
.hero-section .hero-content {
  text-align: center;
}
@media (min-width: 768px) {
  .hero-section .hero-content {
    padding: 4rem 0;
  }
}
.hero-section .hero-content h1 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.hero-section .hero-content .hero-tagline {
  margin-top: 0.375rem;
}
.hero-section .hero-content .hero-presentation {
  margin-top: 1rem;
}
.hero-section .hero-content .hero-presentation p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 800px;
}
.hero-section .hero-content .hero-presentation p + p {
  margin-top: 0.75rem;
}
.hero-section .hero-content .hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.25rem;
}
@media (min-width: 768px) {
  .hero-section .hero-content .hero-cta {
    flex-direction: row;
  }
}
.hero-section .hero-content .hero-cta .cta-button {
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-section .hero-content .hero-cta .cta-button.--primary {
  background-color: var(--primary);
  color: #fff;
}
.hero-section .hero-content .hero-cta .cta-button.--primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
}
.hero-section .hero-content .hero-cta .cta-button:hover {
  background-color: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.hero-section .hero-content .hero-social {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  color: var(--text-primary);
}

@keyframes curtainRisePeek {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-40px);
  }
  55% {
    transform: translateY(-40px);
  }
  85% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes curtainClipReveal {
  0% {
    clip-path: inset(0 0 0 0);
  }
  30% {
    clip-path: inset(0 0 40px 0);
  }
  55% {
    clip-path: inset(0 0 40px 0);
  }
  85% {
    clip-path: inset(0 0 5px 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-main.site-main--curtain-peek {
    animation: none;
  }
  .site-main.site-main--curtain-peek .hero-section {
    animation: none;
  }
}
.presentation-skills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .presentation-skills {
    grid-template-columns: 1fr 1fr;
  }
}

.presentation-skills__card {
  background-color: var(--bg-surface);
  border-radius: 12px;
  padding: 1.5rem;
}
.presentation-skills__card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 1rem;
}
.presentation-skills__card p {
  margin-top: 0.5rem;
}
.presentation-skills__card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  margin-left: auto;
  margin-right: auto;
}

.projects-section, .parcours-section, .contact-section, .about-section {
  border-top: 1px solid var(--border-color);
}

.blog-index-section {
  padding: 2.5rem 0 4rem;
  min-height: auto;
}
.blog-index-section h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.blog-index-section .section-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}
.blog-index-section .presentation-layout__presentation {
  color: var(--text-secondary);
  font-size: 1.05rem;
  text-align: center;
  margin-top: 2rem;
}
.blog-index-section .presentation-layout__presentation .intro {
  line-height: 1.2;
}
@media (min-width: 768px) {
  .blog-index-section .presentation-layout__presentation .intro {
    line-height: 1.6;
  }
}
.blog-index-section .presentation-layout__presentation p + p {
  margin-top: 0.75rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.project-card .project-card-header h3 {
  font-size: 1.2rem;
}
.project-card .project-card-header .project-category {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.25rem;
}
.project-card .project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 1rem;
  flex: 1;
}
.project-card .project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1.25rem;
}
.project-card .project-tech-tags li {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 500;
}
.project-card .btn-case-study, .project-card .btn-read {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 1.5rem;
}
.project-card .btn-case-study:hover, .project-card .btn-read:hover {
  text-decoration: underline;
}
.project-card--featured {
  border-color: var(--primary-light);
  background-color: var(--bg-surface);
  position: relative;
}
@media (min-width: 768px) {
  .project-card--featured {
    grid-column: 1/-1;
  }
}

.parcours-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .parcours-timeline {
    grid-template-columns: 3fr 2fr;
  }
}

.timeline-block h3 {
  font-size: 1.3rem;
  color: var(--primary);
}

.timeline-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.25rem;
}
.timeline-item:first-of-type {
  margin-top: 1.5rem;
}
.timeline-item .timeline-item-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
}
.timeline-item .timeline-item-header .timeline-company {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.25rem;
}
.timeline-item .timeline-item-header .timeline-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.timeline-item ul {
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}
.timeline-item ul li + li {
  margin-top: 0.375rem;
}
.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.contact-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-links-list li {
  font-size: 1.05rem;
}
.contact-links-list li strong {
  color: var(--text-primary);
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.article-card .article-card-header h2 {
  line-height: 1;
}
.article-card .article-card-header h2 a {
  color: var(--text-primary);
  font-size: 1.35rem;
}
.article-card .article-card-header h2 a:hover {
  color: var(--primary);
}
.article-card .article-card-header .article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}
.article-card .article-summary {
  color: var(--text-secondary);
  margin-top: 0.75rem;
}
.article-card .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.article-card .article-tags .tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.article-card .btn-read {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 1rem;
}
.article-card .btn-read:hover {
  text-decoration: underline;
}

.case-study-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0 0;
}
@media (min-width: 768px) {
  .case-study-article {
    padding: 1rem 1.5rem 0;
  }
}
.case-study-article .article-header .back-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}
.case-study-article .article-header .back-link:hover {
  text-decoration: underline;
}
.case-study-article .article-header .header-badge-wrapper {
  margin-top: 1.5rem;
}
.case-study-article .article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .case-study-article .article-header h1 {
    font-size: 2.6rem;
  }
}
.case-study-article .article-header .article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}
.case-study-article .article-content {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: 3rem;
}
.case-study-article .article-content section {
  min-height: auto;
  padding: 0;
}
.case-study-article .article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.case-study-article .article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2rem;
}
.case-study-article .article-content p {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}
.case-study-article .article-content ul, .case-study-article .article-content ol {
  padding-left: 1.5rem;
  margin-top: 1rem;
}
.case-study-article .article-content ul li + li, .case-study-article .article-content ol li + li {
  margin-top: 0.5rem;
}
.case-study-article .article-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.case-study-article .article-footer .btn-back {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
}
.case-study-article .article-footer .btn-back:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.inline-code {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  color: var(--accent);
  font-family: "Fira Code", "Cascadia Code", monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding: 1.25rem 5px;
  border-radius: 10px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  font-family: "Fira Code", "Cascadia Code", monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  pre {
    padding: 1.25rem;
  }
}
pre code {
  font-family: inherit;
  color: inherit;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.tok-keyword {
  color: #d946ef;
  font-weight: 600;
}

.tok-attribute {
  color: #f59e0b;
  font-weight: 600;
}

.tok-string {
  color: #10b981;
}

.tok-comment {
  color: #64748b;
  font-style: italic;
}

.tok-variable {
  color: #3b82f6;
}

.tok-class {
  color: #8b5cf6;
  font-weight: 600;
}

.tok-function {
  color: #06b6d4;
}

.tok-twig {
  color: #f97316;
}

.tok-html-tag {
  color: #ef4444;
}

.diagram {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-family: "Fira Code", "Cascadia Code", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.architecture-flowchart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: overlay;
}
@media (min-width: 768px) {
  .architecture-flowchart {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem;
  }
}
.architecture-flowchart .flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.architecture-flowchart .flow-step .step-badge {
  min-width: max-content;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}
.architecture-flowchart .flow-step .step-card {
  flex: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.architecture-flowchart .flow-step .step-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.architecture-flowchart .flow-step .step-card strong {
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.3;
}
.architecture-flowchart .flow-step .step-card .step-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}
.architecture-flowchart .flow-step .step-card .step-desc code {
  font-size: 0.85em;
  background-color: var(--bg-surface-elevated);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  color: var(--accent);
}
.architecture-flowchart .flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  user-select: none;
}
@media (max-width: 767px) {
  .architecture-flowchart .flow-arrow {
    transform: rotate(90deg);
    margin: -0.25rem 0;
  }
}

.article-content .callout {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  border-radius: 0 10px 10px 0;
  color: var(--text-primary);
}
.article-content .callout p {
  margin: 0;
}
.article-content .callout p + p {
  margin-top: 0.75rem;
}
.article-content .callout ul {
  margin-top: 0.5rem;
}
.article-content .tech-table,
.article-content .comparison-table,
.article-content .regex-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.92rem;
}
.article-content .tech-table th, .article-content .tech-table td,
.article-content .comparison-table th,
.article-content .comparison-table td,
.article-content .regex-table th,
.article-content .regex-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}
.article-content .tech-table th,
.article-content .comparison-table th,
.article-content .regex-table th {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 700;
}
.article-content .tech-table tr:nth-child(even),
.article-content .comparison-table tr:nth-child(even),
.article-content .regex-table tr:nth-child(even) {
  background-color: var(--bg-surface);
}

.resume-box {
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-left-width: 5px;
  padding: 1.75rem;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.resume-box h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 0;
}
.resume-box p {
  margin-top: 1rem;
  color: var(--text-primary);
}
.resume-box ul {
  padding-left: 1.25rem;
  margin-top: 1rem;
  color: var(--text-primary);
}
.resume-box ul li + li {
  margin-top: 0.375rem;
}
.resume-box ul li strong {
  color: var(--text-primary);
}

.contact-section__intro {
  color: var(--text-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.contact-form-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}
.alert + .contact-form {
  margin-top: 1.5rem;
}
.alert--success {
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.alert--error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form__group--hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}
.contact-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.contact-form__input, .contact-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-form__input:focus, .contact-form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.contact-form__input::placeholder, .contact-form__textarea::placeholder {
  color: var(--text-muted);
}
.contact-form__submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-form__submit-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.contact-form__submit-btn:active {
  transform: translateY(0);
}

altcha-widget,
.contact-form__group--altcha,
.altcha-main {
  --altcha-color-base: var(--bg-main);
  --altcha-color-base-content: var(--text-primary);
  --altcha-color-neutral: var(--border-color);
  --altcha-color-neutral-content: var(--text-secondary);
  --altcha-color-primary: var(--primary);
  --altcha-color-primary-content: #ffffff;
  --altcha-color-success: var(--accent);
  --altcha-color-success-content: #ffffff;
  --altcha-border-color: var(--border-color);
  --altcha-border-radius: 8px;
  --altcha-checkbox-border-color: var(--border-color);
  --altcha-checkbox-outline-color: var(--primary);
  --altcha-max-width: 100%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/*# sourceMappingURL=app.output.css.map */
