﻿:root {
  --text-primary: #f5f5f5;
  --text-secondary: #a1a1a6;
  --bg-primary: #0b0b0d;
  --bg-secondary: #141418;
  --red-primary: #b11226;
  --red-hover: #d11c32;
  --glass: rgba(20, 20, 24, 0.65);
  --glass-strong: rgba(11, 11, 13, 0.65);
  --glass-border: rgba(245, 245, 245, 0.12);
  --pricing-featured-label: "Recommandé";
  --hero-overlay-1: rgba(11, 11, 13, 0.1);
  --hero-overlay-2: rgba(11, 11, 13, 0.85);
  --transition: all 250ms ease;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

[data-theme="light"] {
  --text-primary: #101114;
  --text-secondary: #4f5560;
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(11, 11, 13, 0.12);
  --hero-overlay-1: rgba(245, 245, 245, 0.15);
  --hero-overlay-2: rgba(245, 245, 245, 0.45);
  --field-bg: rgba(11, 11, 13, 0.03);
  --field-border: rgba(11, 11, 13, 0.22);
  --field-placeholder: rgba(11, 11, 13, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

/* Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--red-primary) var(--bg-secondary);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--red-primary);
  border-radius: 999px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-hover);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

.page-legal main {
  padding-top: 120px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.section {
  padding: clamp(40px, 6vh, 72px) 0;
  background: var(--bg-primary);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

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

/* Navbar */
.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  transform: none;
  z-index: 1000;
  width: 100%;
  padding: 0 24px;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  position: relative;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  flex: 1;
  justify-content: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-links a {
  display: inline-block;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--red-primary);
  transform: scale(1.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-contact {
  background: var(--red-primary);
  color: #f5f5f5;
}

.btn-contact:hover {
  background: var(--red-hover);
  transform: scale(1.03);
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(245, 245, 245, 0.06);
  color: var(--text-primary);
  padding: 10px 18px;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: rgba(245, 245, 245, 0.35);
  transform: scale(1.03);
}

.floating-controls {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-controls .theme-toggle,
.floating-controls .lang-toggle {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.lang-toggle {
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(245, 245, 245, 0.06);
  color: var(--text-primary);
  padding: 10px 16px;
  min-width: 52px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: rgba(245, 245, 245, 0.35);
  transform: scale(1.03);
}

[data-theme="light"] .theme-toggle {
  background: rgba(11, 11, 13, 0.05);
  border-color: rgba(11, 11, 13, 0.15);
}

[data-theme="light"] .lang-toggle {
  background: rgba(11, 11, 13, 0.05);
  border-color: rgba(11, 11, 13, 0.15);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-line {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  display: block;
  margin: 4px 0;
  transition: var(--transition);
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  padding: 110px 0 40px;
  position: relative;
  background-image: linear-gradient(180deg, var(--hero-overlay-1), var(--hero-overlay-2)),
    url("assets/devweb.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero + .section {
  padding-top: clamp(24px, 4vh, 48px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 36px);
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(140px, 16vw, 220px);
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 13, 0) 0%,
    rgba(11, 11, 13, 0.2) 45%,
    rgba(11, 11, 13, 0.45) 75%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero::after {
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 245, 0) 0%,
    rgba(245, 245, 245, 0.2) 45%,
    rgba(245, 245, 245, 0.45) 75%,
    var(--bg-primary) 100%
  );
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  max-width: none;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.feature-badge {
  width: min(340px, 90vw);
  padding: 16px 24px;
  text-align: center;
  background: rgba(255, 254, 254, 0.03);
  border: 1px solid rgba(245, 245, 245, 0.498);
  color: var(--text-primary);
  border-radius: 5px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  cursor: pointer;
}

.feature-badge:hover {
  background: rgba(245, 245, 245, 0.18);
  border-color: rgba(245, 245, 245, 0.55);
  color: var(--text-primary);
  transform: scale(1.03);
}

[data-theme="light"] .feature-badge {
  background: rgba(11, 11, 13, 0.04);
  border-color: rgba(11, 11, 13, 0.15);
}

[data-theme="light"] .feature-badge:hover {
  background: rgba(11, 11, 13, 0.08);
  border-color: rgba(11, 11, 13, 0.25);
  color: var(--text-primary);
}

/* Sections */
.about-card {
  padding: clamp(20px, 3vw, 32px);
  background: rgba(20, 20, 24, 0.7);
  border: 1px solid var(--red-primary);
  border-radius: 5px;
  color: var(--text-primary);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  font-weight: 600;
}

.about-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.about-secondary {
  margin-top: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
}

.about-text br {
  display: inline;
}

[data-theme="light"] .about-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(177, 18, 38, 0.45);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 28, 34, 0.75), rgba(14, 14, 18, 0.82));
  border: 1px solid rgba(245, 245, 245, 0.16);
  border-radius: 12px;
  padding: 22px 22px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pricing-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.pricing-sub {
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-card--featured {
  border-color: var(--red-primary);
  background: linear-gradient(180deg, rgba(36, 14, 18, 0.78), rgba(12, 8, 10, 0.86));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(177, 18, 38, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-10px) scale(1.02);
}

.pricing-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 245, 245, 0.35);
}

.pricing-card--featured:hover {
  border-color: var(--red-hover);
  transform: translateY(-12px) scale(1.03);
}

.pricing-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

.pricing-card--featured::before {
  content: var(--pricing-featured-label);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #f5f5f5;
  background: var(--red-primary);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(177, 18, 38, 0.35);
}

[data-theme="light"] .pricing-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 245, 0.92));
  border-color: rgba(11, 11, 13, 0.12);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pricing-card--featured {
  background: linear-gradient(180deg, rgba(255, 245, 247, 0.92), rgba(250, 238, 241, 0.92));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12), 0 0 16px rgba(177, 18, 38, 0.18);
}

.card {
  background: rgba(11, 11, 13, 0.55);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(11, 11, 13, 0.12);
}

.card h3 {
  margin-bottom: 12px;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 245, 245, 0.2);
}

.realisations .project-card {
  background: var(--bg-secondary);
}

.project-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-list {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.project-item {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.9fr);
  align-items: stretch;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 245, 0.14);
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.8), rgba(12, 12, 16, 0.88));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.project-media {
  position: relative;
  overflow: hidden;
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 11, 13, 0.1), rgba(11, 11, 13, 0.75));
  opacity: 0.65;
  pointer-events: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 400ms ease;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
}

.project-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  color: var(--text-secondary);
}

.project-info h3 {
  font-size: 1.2rem;
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 4px;
}

.project-tags li {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(245, 245, 245, 0.16);
  color: var(--text-secondary);
  background: rgba(245, 245, 245, 0.04);
}

.project-cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--text-primary);
}

.project-item:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 245, 245, 0.3);
}

.project-item:hover .project-media img {
  transform: scale(1.05);
}

[data-theme="light"] .project-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 245, 245, 0.92));
  border-color: rgba(11, 11, 13, 0.12);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .project-media::after {
  background: linear-gradient(120deg, rgba(245, 245, 245, 0.1), rgba(11, 11, 13, 0.25));
  opacity: 0.4;
}

.process-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.9fr);
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(20px, 3vw, 28px);
  border-radius: 16px;
  border: 1px solid var(--red-primary);
  background: rgba(20, 20, 24, 0.72);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .process-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(177, 18, 38, 0.6);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.process-left h2 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.process-left p {
  margin-bottom: 18px;
  max-width: 520px;
}

.process-cta {
  align-self: flex-start;
}

.process-steps {
  list-style: none;
  display: grid;
  gap: 18px;
  --timeline-x: 10px;
  padding-left: 32px;
  position: relative;
}

.process-steps li {
  position: relative;
  padding-left: 18px;
  color: var(--text-primary);
  font-weight: 500;
}

.process-steps li::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-x) - 10px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 0 4px rgba(177, 18, 38, 0.25);
}

.contact-panel {
  border: 1px solid rgba(245, 245, 245, 0.35);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(20, 20, 24, 0.7);
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

[data-theme="light"] .contact-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(11, 11, 13, 0.15);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.contact-grid {
  display: grid;
  gap: 18px 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
}

.field input,
.field textarea {
  background: rgba(245, 245, 245, 0.08);
  border: 1px solid rgba(245, 245, 245, 0.35);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  min-height: 52px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 245, 245, 0.55);
}

.field input:focus,
.field textarea:focus,
.custom-select__trigger:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 2px rgba(177, 18, 38, 0.2);
}

.field--message {
  grid-column: 1 / -1;
}

.custom-select {
  position: relative;
}

.custom-select__trigger {
  width: 100%;
  text-align: left;
  background: rgba(245, 245, 245, 0.08);
  border: 1px solid rgba(245, 245, 245, 0.35);
  border-radius: 10px;
  padding: 14px 44px 14px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  min-height: 52px;
  position: relative;
}

.custom-select__trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
  transform: translateY(-50%) rotate(45deg);
  transition: var(--transition);
}

.custom-select.is-open .custom-select__trigger::after {
  transform: translateY(-50%) rotate(-135deg);
}

.custom-select__options {
  list-style: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: rgba(16, 16, 20, 0.98);
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 12px;
  padding: 6px;
  display: none;
  z-index: 5;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.custom-select.is-open .custom-select__options {
  display: grid;
  gap: 4px;
}

.custom-select__options li {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.custom-select__options li:hover,
.custom-select__options li[aria-selected="true"] {
  background: rgba(177, 18, 38, 0.15);
  color: var(--text-primary);
}

[data-theme="light"] .field input,
[data-theme="light"] .field textarea,
[data-theme="light"] .custom-select__trigger {
  background: var(--field-bg);
  border-color: var(--field-border);
  color: var(--text-primary);
}

[data-theme="light"] .custom-select__options {
  background: #ffffff;
  border-color: rgba(11, 11, 13, 0.12);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder {
  color: var(--field-placeholder);
}

/* Legal + footer */
.legal-card {
  background: rgba(20, 20, 24, 0.7);
  border: 1px solid rgba(245, 245, 245, 0.16);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.legal-content {
  display: grid;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content p {
  margin: 0;
}

[data-theme="light"] .legal-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(11, 11, 13, 0.12);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.site-footer {
  padding: 32px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--red-primary);
  transform: scale(1.03);
}

.footer-copy {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
}

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

/* Offsets for fixed nav */
section {
  scroll-margin-top: 120px;
}

/* Responsive */
@media (max-width: 1200px) {
  .nav-links {
    gap: 20px;
  }

  .hero h1 {
    max-width: 700px;
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 0 16px;
  }

  .navbar {
    padding: 12px 18px;
  }

  .hero {
    padding-top: 90px;
  }

  .hero::after {
    height: clamp(100px, 20vw, 180px);
  }

  .pricing-card--featured {
    transform: none;
  }
}

@media (max-width: 900px) {
  .about-text {
    text-align: left;
  }

  .about-text br {
    display: none;
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .project-media img {
    min-height: 200px;
  }

  .process-card {
    grid-template-columns: 1fr;
  }

  .process-steps {
    padding-left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .field--message {
    grid-row: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 16px;
    background: var(--glass-strong);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: var(--transition);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    gap: 14px;
    flex: none;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .theme-toggle,
  .nav-actions .btn-contact {
    width: 100%;
    justify-content: center;
  }

  .nav-menu .btn-contact {
    width: 100%;
    margin-left: 0;
  }

  .site-header.nav-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.nav-open .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-top: 90px;
  }

  .feature-badge {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 0 12px;
  }

  .navbar {
    padding: 10px 14px;
    border-radius: 14px;
  }

  .about-text {
    text-align: left;
  }

  .hero {
    padding-top: 96px;
    min-height: 75vh;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.2rem);
    max-width: 22ch;
  }

  .hero-content {
    padding: 0 8px;
    gap: 18px;
  }

  .nav-menu {
    display: none;
  }

  .site-header.nav-open .nav-menu {
    display: flex;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle-line {
    width: 22px;
  }

  .feature-badge {
    padding: 12px 18px;
    max-width: 300px;
  }

  .contact-panel {
    padding: 20px;
  }

  .contact-panel .btn-contact {
    width: 100%;
  }

  .floating-controls {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }

  .floating-controls .theme-toggle,
  .floating-controls .lang-toggle {
    padding: 8px 14px;
  }

  .page-legal main {
    padding-top: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
