/* ═══════════════════════════════════════════════════════════
   Hover — Modern Landing Page Stylesheet
   No external dependencies. Mobile-first responsive design.
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors — Emerald palette */
  --primary: #34d399;
  --primary-dark: #059669;
  --primary-light: #6ee7b7;
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --primary-200: #a7f3d0;

  --dark: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;

  --text: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;

  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;

  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;

  /* Gradient */
  --gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --gradient-text: linear-gradient(135deg, #059669 0%, #34d399 50%, #6ee7b7 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --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;
  --text-6xl: 3.75rem;

  /* Spacing */
  --section-py: 5rem;
  --container-max: 1200px;
  --container-px: 1.5rem;

  /* Borders & Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 10px 30px rgba(52, 211, 153, 0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease);
  --transition: 300ms var(--ease);
  --transition-slow: 500ms var(--ease);

  /* Header */
  --header-height: 4.5rem;
}

/* ── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Focus visible for keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ── Typography ────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
}

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

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-50);
  border-radius: var(--radius-full);
}

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(52, 211, 153, 0.4);
  color: var(--white);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-200);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: transparent;
}

.btn--white:hover {
  background: var(--gray-50);
  color: var(--primary-dark);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-xs);
}

/* ═══════════════════════════════════════════════════════════
   HEADER & NAVIGATION — Fluffy-style floating pill nav
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  pointer-events: none;
  transition: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 max(1.5rem, 4vw);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
  pointer-events: all;
  transition: opacity 0.3s ease;
}

.logo:hover { opacity: 0.8; }

.logo__img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.logo__img--page {
  display: none;
}

.site-header.is-past-hero .logo__img--hero {
  display: none;
}

.site-header.is-past-hero .logo__img--page {
  display: block;
}

body.menu-open .logo__img--hero {
  display: block !important;
}

body.menu-open .logo__img--page {
  display: none !important;
}

/* Navigation wrapper */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: all;
}

/* Floating pill container */
.nav__pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.5rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.site-header.is-nav-hidden .nav__pill {
  transform: translateY(calc(-100% - 2rem));
  opacity: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Nav links */
.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 2rem);
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  transform-origin: center;
}

.nav__link:hover {
  color: var(--dark);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* CTA button in nav */
.nav__link--cta {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.25rem;
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* CTA item */
.nav__cta { margin-left: 0; }

/* ── Hamburger — Spin style ─────────────────────────── */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  z-index: 1001;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  pointer-events: all;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 1);
}

.nav__toggle-box {
  display: inline-block;
  width: 1.25rem;
  height: 0.75rem;
  position: relative;
}

.nav__toggle-line {
  display: block;
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.nav__toggle-line::before,
.nav__toggle-line::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: top 0.1s ease-in 0.25s, opacity 0.1s ease-in,
              bottom 0.1s ease-in 0.25s, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.nav__toggle-line::before {
  top: -5px;
  width: 60%;
}

.nav__toggle-line::after {
  bottom: -5px;
  width: 80%;
}

.site-header.is-past-hero .nav__toggle-line,
.site-header.is-past-hero .nav__toggle-line::before,
.site-header.is-past-hero .nav__toggle-line::after {
  background: var(--dark);
}

.nav__toggle.is-active .nav__toggle-line,
.nav__toggle.is-active .nav__toggle-line::before,
.nav__toggle.is-active .nav__toggle-line::after {
  background: var(--white);
}

.nav__toggle.is-active .nav__toggle-line {
  transform: rotate(225deg);
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav__toggle.is-active .nav__toggle-line::before {
  top: 0;
  opacity: 0;
  width: 100%;
  transition: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
}

.nav__toggle.is-active .nav__toggle-line::after {
  bottom: 0;
  width: 100%;
  transform: rotate(-90deg);
  transition: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

/* ── Mobile menu (fullscreen overlay) ─────────────── */
.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--dark);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1),
              visibility 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  pointer-events: none;
}

.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.nav__mobile-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: calc(var(--header-height) + 2rem) max(2rem, 6vw) 2rem;
}

.nav__mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav__mobile-menu li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav__mobile.is-open .nav__mobile-menu li {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-link {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  padding: 0.75rem 0;
  letter-spacing: -0.025em;
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.nav__mobile-footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.nav__mobile.is-open .nav__mobile-footer {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-actions .btn {
  width: 100%;
  justify-content: center;
}

.nav__mobile-lang {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language switcher */
.lang-switch__link {
  display: flex;
  align-items: center;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.45;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
  text-decoration: none;
  line-height: 0;
}

.lang-switch__link:hover { opacity: 0.85; }

.lang-switch__link.is-active {
  opacity: 1;
  border-color: var(--primary);
}

.lang-switch__flag {
  width: 1.75rem;
  height: 1.15rem;
  display: block;
}


/* ═══════════════════════════════════════════════════════════
   WIDER CONTAINER
   ═══════════════════════════════════════════════════════════ */
.container-wide {
  margin-left: max(1.5rem, 6.25vw);
  margin-right: max(1.5rem, 6.25vw);
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — Under construction (dark)
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  min-height: 100vh;
  min-height: 100dvh;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.hero::before {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: orbFloat1 12s ease-in-out infinite alternate;
}

.hero::after {
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  bottom: -5%;
  left: -5%;
  animation: orbFloat2 10s ease-in-out 1s infinite alternate;
}

@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-30px, 40px) scale(1.1); }
  100% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ── Decorative floating elements ── */
.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Floating particles */
.hero__particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.hero__particle--1 {
  width: 3px; height: 3px;
  background: var(--primary);
  top: 18%; left: 10%;
  animation: particleFloat 8s ease-in-out 1s infinite, particleFade 8s ease-in-out 1s infinite;
}

.hero__particle--2 {
  width: 2px; height: 2px;
  background: rgba(255, 255, 255, 0.5);
  top: 65%; left: 8%;
  animation: particleFloat 10s ease-in-out 2s infinite reverse, particleFade 10s ease-in-out 2s infinite;
}

.hero__particle--3 {
  width: 4px; height: 4px;
  background: rgba(52, 211, 153, 0.6);
  top: 40%; left: 28%;
  animation: particleFloat 7s ease-in-out 0.5s infinite, particleFade 7s ease-in-out 0.5s infinite;
}

.hero__particle--4 {
  width: 2px; height: 2px;
  background: rgba(99, 102, 241, 0.5);
  top: 25%; right: 15%;
  animation: particleFloat 9s ease-in-out 3s infinite reverse, particleFade 9s ease-in-out 3s infinite;
}

.hero__particle--5 {
  width: 3px; height: 3px;
  background: rgba(255, 255, 255, 0.3);
  bottom: 20%; right: 25%;
  animation: particleFloat 11s ease-in-out 1.5s infinite, particleFade 11s ease-in-out 1.5s infinite;
}

.hero__particle--6 {
  width: 2px; height: 2px;
  background: var(--primary-light);
  bottom: 35%; left: 22%;
  animation: particleFloat 6s ease-in-out 2.5s infinite reverse, particleFade 6s ease-in-out 2.5s infinite;
}

@keyframes particleFloat {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(15px, -25px); }
  50%  { transform: translate(-10px, -50px); }
  75%  { transform: translate(20px, -30px); }
  100% { transform: translate(0, 0); }
}

@keyframes particleFade {
  0%, 100% { opacity: 0; }
  15%      { opacity: 0.8; }
  85%      { opacity: 0.6; }
}

.hero__tag {
  position: absolute;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0;
  animation: tagFloat 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero__tag--html {
  background: rgba(227, 76, 38, 0.15);
  color: #e34c26;
  border: 1px solid rgba(227, 76, 38, 0.25);
  top: 32%;
  left: 26%;
  animation-delay: 0.8s;
  --drift-y: -10px;
}

.hero__tag--css {
  background: rgba(38, 77, 228, 0.15);
  color: #264de4;
  border: 1px solid rgba(38, 77, 228, 0.25);
  top: 55%;
  left: 3%;
  animation-delay: 1s;
  --drift-y: 8px;
}

.hero__tag--js {
  background: rgba(240, 219, 79, 0.15);
  color: #f0db4f;
  border: 1px solid rgba(240, 219, 79, 0.25);
  bottom: 22%;
  left: 12%;
  animation-delay: 1.2s;
  --drift-y: -6px;
}

.hero__tag--php {
  background: rgba(119, 123, 180, 0.15);
  color: #777bb4;
  border: 1px solid rgba(119, 123, 180, 0.25);
  top: 38%;
  left: 15%;
  animation-delay: 1.4s;
  --drift-y: 10px;
}

@keyframes tagFloat {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 0.85; transform: translateY(0) scale(1); }
}

.hero__tag--html,
.hero__tag--css,
.hero__tag--js,
.hero__tag--php {
  animation: tagFloat 1s cubic-bezier(0.25, 1, 0.5, 1) forwards,
             tagDrift 5s ease-in-out 2s infinite alternate;
}

.hero__tag--html { animation-delay: 0.8s, 2s; }
.hero__tag--css  { animation-delay: 1s, 2.3s; }
.hero__tag--js   { animation-delay: 1.2s, 2.6s; }
.hero__tag--php  { animation-delay: 1.4s, 2.9s; }

@keyframes tagDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--drift-y, -8px)); }
}

/* Gears — fade-in (opacity) + spin (transform) on separate properties */
.hero__gear {
  position: absolute;
  color: rgba(52, 211, 153, 0.25);
  opacity: 0;
}

.hero__gear--1 {
  width: clamp(50px, 6vw, 80px);
  height: clamp(50px, 6vw, 80px);
  top: 18%;
  left: 18%;
  animation: gearFadeIn 1s ease 0.6s forwards, gearSpin 10s linear 1.6s infinite;
}

.hero__gear--2 {
  width: clamp(35px, 4vw, 55px);
  height: clamp(35px, 4vw, 55px);
  bottom: 30%;
  left: 18%;
  animation: gearFadeIn 1s ease 0.9s forwards, gearSpin 7s linear 1.9s infinite reverse;
}

@keyframes gearFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Code snippets */
.hero__code {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: rgba(52, 211, 153, 0.35);
  white-space: pre;
  opacity: 0;
  pointer-events: none;
}

.hero__code code {
  font-family: inherit;
}

.hero__code--1 {
  top: 12%;
  left: 4%;
  animation: codeReveal 1.2s ease 0.6s forwards, tagDrift 8s ease-in-out 2s infinite alternate;
  --drift-y: -6px;
}

.hero__code--2 {
  bottom: 18%;
  left: 25%;
  color: rgba(100, 116, 139, 0.35);
  animation: codeReveal 1.2s ease 1s forwards, tagDrift 7s ease-in-out 2.5s infinite alternate-reverse;
  --drift-y: 8px;
}

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

/* ── Skyline background ── */
.hero__skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: skylineReveal 2s ease 0.5s forwards;
}

.hero__buildings {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

@keyframes skylineReveal {
  to { opacity: 1; }
}

/* Building windows — on/off flicker */
.hero__window {
  fill: rgba(52, 211, 153, 0.04);
  animation: windowFlicker var(--wdur, 20s) ease-in-out var(--wd, 0s) infinite;
}

@keyframes windowFlicker {
  0%       { fill: rgba(52, 211, 153, 0.04); }
  15%      { fill: rgba(52, 211, 153, 0.04); }
  20%      { fill: rgba(52, 211, 153, 0.35); }
  45%      { fill: rgba(52, 211, 153, 0.38); }
  50%      { fill: rgba(52, 211, 153, 0.04); }
  85%      { fill: rgba(52, 211, 153, 0.04); }
  90%      { fill: rgba(52, 211, 153, 0.3);  }
  95%      { fill: rgba(52, 211, 153, 0.32); }
  100%     { fill: rgba(52, 211, 153, 0.04); }
}

/* ── Layout ── */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-height) + 2rem) var(--container-px) 2rem;
}

/* Left column — content */
.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 38rem;
}

/* Right column — decorative construction text */
.hero__right-deco {
  display: none;
}

.hero__construction {
  position: relative;
  padding: 1.5rem 2rem;
}

/* Scaffold grid behind text */
.hero__scaffold {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__scaffold-h {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(52, 211, 153, 0.15);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__scaffold-h:nth-child(1) { top: 0; animation: scaffoldH 0.8s ease 0.2s forwards, scaffoldPulse 3s ease-in-out 1.5s infinite alternate; }
.hero__scaffold-h:nth-child(2) { top: 50%; animation: scaffoldH 0.8s ease 0.4s forwards, scaffoldPulse 3s ease-in-out 2s infinite alternate; }
.hero__scaffold-h:nth-child(3) { bottom: 0; animation: scaffoldH 0.8s ease 0.6s forwards, scaffoldPulse 3s ease-in-out 2.5s infinite alternate; }

.hero__scaffold-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(52, 211, 153, 0.1);
  transform: scaleY(0);
  transform-origin: top;
}

.hero__scaffold-v:nth-child(4) { left: 0; animation: scaffoldV 0.6s ease 0.3s forwards, scaffoldPulse 4s ease-in-out 1.8s infinite alternate-reverse; }
.hero__scaffold-v:nth-child(5) { left: 50%; animation: scaffoldV 0.6s ease 0.5s forwards, scaffoldPulse 4s ease-in-out 2.3s infinite alternate-reverse; }
.hero__scaffold-v:nth-child(6) { right: 0; animation: scaffoldV 0.6s ease 0.7s forwards, scaffoldPulse 4s ease-in-out 2.8s infinite alternate-reverse; }

@keyframes scaffoldH {
  to { transform: scaleX(1); }
}

@keyframes scaffoldV {
  to { transform: scaleY(1); }
}

@keyframes scaffoldPulse {
  0%   { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Construction text — revealed like typing/building */
.hero__construction-text {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: block;
  position: relative;
  color: var(--white);
  opacity: 0.08;
  animation: textFlicker 6s ease-in-out 3s infinite;
}

.hero__construction-text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--primary);
  opacity: 0;
  clip-path: inset(0 0 0 0);
  animation: textGlitch 8s linear 3.5s infinite;
}

.hero__construction-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  animation: textBuild 2s steps(20, end) 0.8s forwards;
  width: 0;
  white-space: nowrap;
}

@keyframes textBuild {
  to { width: 100%; }
}

@keyframes textFlicker {
  0%, 92%, 94%, 96%, 100% { opacity: 0.08; }
  93% { opacity: 0.12; }
  95% { opacity: 0.06; }
}

@keyframes textGlitch {
  0%, 89%, 91%, 93%, 95%, 100% { opacity: 0; transform: none; }
  90%  { opacity: 0.08; transform: translate(-2px, 1px); clip-path: inset(20% 0 60% 0); }
  92%  { opacity: 0.06; transform: translate(2px, -1px); clip-path: inset(50% 0 20% 0); }
  94%  { opacity: 0.1;  transform: translate(-1px, 2px); clip-path: inset(10% 0 70% 0); }
}

/* Blinking cursor */
.hero__cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--primary);
  margin-left: 0.2em;
  vertical-align: middle;
  animation: cursorBlink 0.8s ease-in-out infinite,
             cursorAppear 0s ease 0.8s both;
  opacity: 0;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes cursorAppear {
  to { opacity: 1; }
}

/* Content box */
.hero__box {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: 2rem 2.5rem;
  animation: boxGlow 4s ease-in-out 2s infinite alternate;
}

@keyframes boxGlow {
  0%   { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 rgba(52, 211, 153, 0); }
  100% { border-color: rgba(52, 211, 153, 0.25); box-shadow: 0 0 30px rgba(52, 211, 153, 0.06); }
}

/* Title */
.hero__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.hero__accent {
  color: var(--primary);
}

/* Subtitle */
.hero__subtitle {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.55s forwards;
}

/* CTA */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.7s forwards;
}

.hero__cta .btn--primary {
  position: relative;
  overflow: hidden;
}

.hero__cta .btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btnShimmer 3s ease-in-out 2s infinite;
}

@keyframes btnShimmer {
  0%   { left: -100%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}

/* Footer / contact */
.hero__footer {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.85s forwards;
}

.hero__contact {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  animation: contactPulse 3s ease-in-out 2s infinite alternate;
}

@keyframes contactPulse {
  0%   { color: rgba(255, 255, 255, 0.4); }
  100% { color: rgba(52, 211, 153, 0.6); }
}

/* Progress bar at bottom */
.hero__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.hero__progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.hero__progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient);
  animation: progressFill 3s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
  position: relative;
  overflow: hidden;
}

.hero__progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShimmer 2.5s ease-in-out 4s infinite;
}

@keyframes progressFill {
  to { width: 72%; }
}

@keyframes progressShimmer {
  0%   { left: -50%; }
  100% { left: 150%; }
}

/* Shared entrance */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro text block (after hero) */
.intro-text {
  padding: max(6rem, 10vw) 0;
  background: var(--white);
  transition: background-color 0.8s ease;
  overflow: hidden;
}

.intro-text__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 max(1.5rem, 6.25vw);
}

.intro-text__content {
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary-dark);
  max-width: 48rem;
  margin: 0 auto;
  transition: color 0.8s ease;
}

.intro-text__content strong {
  color: var(--primary);
}

.intro-text__cta {
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.service-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--gradient);
  color: var(--white);
}

.service-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   PROCESS / TIMELINE
   ═══════════════════════════════════════════════════════════ */
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.process-step {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient);
  color: var(--white);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.process-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.process-step__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.process-step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO / RÉALISATIONS
   ═══════════════════════════════════════════════════════════ */
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--dark);
  transition: all var(--transition);
  group: true;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-card__visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.project-card__gradient {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__gradient {
  transform: scale(1.05);
}

.project-card__logo {
  position: absolute;
  top: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-height: calc(100% - 4.5rem);
  max-width: 75%;
  object-fit: contain;
  z-index: 1;
}

.project-card__gradient--1 {
  background: #e78f14;
}

.project-card__gradient--2 {
  background: #ffffff;
}

.project-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.project-card__type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.project-card__content {
  padding: 1.5rem;
}

.project-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: var(--text-sm);
  color: var(--text-lighter);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   FAQ / ACCORDION
   ═══════════════════════════════════════════════════════════ */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}

.faq__item:hover {
  border-color: var(--gray-300);
}

.faq__item.is-open {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  gap: 1rem;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--primary);
}

.faq__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.faq__icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--text-light);
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq__answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact__form-wrapper {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

/* Form */
.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  color: var(--dark);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form__input:hover,
.form__textarea:hover {
  border-color: var(--gray-300);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
  background: var(--white);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-lighter);
}

.form__textarea {
  resize: vertical;
  min-height: 8rem;
}

/* Error state */
.form__group.has-error .form__input,
.form__group.has-error .form__textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-light);
}

.form__error {
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: 0.375rem;
}

/* Checkbox */
.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.5;
}

.form__checkbox input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.form__checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

/* Submit */
.form__submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form__submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Form message */
.form__message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: 1rem;
}

.form__message--success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.form__message--error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fca5a5;
}

/* Honeypot */
.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Contact info sidebar */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-block__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.contact-info-item__icon svg {
  width: 1rem;
  height: 1rem;
}

.contact-info-item__label {
  font-size: var(--text-xs);
  color: var(--text-light);
  font-weight: 500;
}

.contact-info-item__value {
  font-size: var(--text-sm);
  color: var(--dark);
  font-weight: 600;
}

.contact-info-item__value a {
  color: var(--dark);
  text-decoration: none;
}

.contact-info-item__value a:hover {
  color: var(--primary);
}

.contact__hours {
  padding: 1.5rem;
  background: var(--primary-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--primary-100);
}

.contact__hours-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.contact__hours-text {
  font-size: var(--text-sm);
  color: var(--text);
}

.contact__hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--success);
}

.contact__hours-badge::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background: var(--success);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

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

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer__logo:hover {
  opacity: 0.85;
}

.footer__logo-img {
  height: 2rem;
  width: auto;
  display: block;
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-lighter);
  margin-bottom: 0;
}

.footer__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-lighter);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.125rem 0;
}

.footer__link:hover {
  color: var(--white);
}

/* Social links */
.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-800);
  border: 1px solid var(--dark-700);
  border-radius: var(--radius);
  color: var(--text-lighter);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer__social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.footer__social-link svg {
  width: 1rem;
  height: 1rem;
}

/* Footer bottom */
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--dark-800);
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--text-lighter);
}

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all var(--transition);
  z-index: 50;
}

.back-to-top svg {
  width: 1.125rem;
  height: 1.125rem;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-24px);
}

[data-animate="fade-left"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(24px);
}

[data-animate="fade-right"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="scale"] {
  transform: scale(0.95);
}

[data-animate="scale"].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≥ 640px)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  :root {
    --section-py: 6rem;
  }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }

  .section__title {
    font-size: var(--text-4xl);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__form-wrapper {
    padding: 2.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (≥ 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  :root {
    --section-py: 7rem;
    --header-height: 5rem;
  }

  .hero__inner {
    flex-direction: row-reverse;
    align-items: center;
    gap: 4rem;
    padding-left: max(3rem, 6vw);
    padding-right: max(3rem, 6vw);
  }

  .hero__left {
    flex: 1.2;
  }

  .hero__right-deco {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0.8;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 52rem;
    margin-inline: auto;
  }

  .contact__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .logo__img {
    height: 2.75rem;
  }

  .footer__logo-img {
    height: 2.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE MENU (< 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .nav__pill {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__deco {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════ */
@media print {
  .site-header,
  .hero__deco,
  .back-to-top,
  .nav__toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    padding-top: 2rem;
  }

  .section {
    padding: 2rem 0;
    break-inside: avoid;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES (Politique de confidentialité, Mentions légales)
   ═══════════════════════════════════════════════════════════ */

/* ── Legal Header ─────────────────────────────────────── */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.legal-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.legal-header__back:hover {
  color: var(--primary-dark);
}

.legal-header__back svg {
  flex-shrink: 0;
}

/* ── Legal Page Content ───────────────────────────────── */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page__container {
  max-width: 780px;
}

.legal-page h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.legal-page h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.legal-page h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--dark-700);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page li {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

.legal-page a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--primary);
}

/* ── Legal page footer (simplified) ───────────────────── */
.legal-page ~ .site-footer {
  margin-top: auto;
}

@media (min-width: 640px) {
  .legal-page h1 {
    font-size: var(--text-4xl);
  }

  .legal-page h2 {
    font-size: var(--text-2xl);
  }
}

@media (min-width: 1024px) {
  .legal-page {
    padding: 4rem 0 5rem;
  }

  .legal-page h1 {
    font-size: var(--text-5xl);
    margin-bottom: 2rem;
  }

  .legal-page h2 {
    margin-top: 3rem;
  }
}
