:root {
  --color-bg: #f5f4f0;
  --color-surface: #ffffff;
  --color-soft: #eceae4;
  --color-text: #050505;
  --color-muted: #5f5f5f;
  --color-border: #d8d5cc;
  --color-border-strong: #0a0a0a;
  --color-accent: #1d4ed8;
  --color-accent-dark: #173ea8;
  --color-dark: #0a0a0a;
  --color-dark-soft: #111111;
  --color-dark-muted: #a8a8a8;
  --font-display:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-body:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --container: 1080px;
  --gutter: clamp(1rem, 3.5vw, 1.75rem);
  --section-space: clamp(4rem, 7.5vw, 6.75rem);
  --display-size: clamp(2.35rem, 6vw, 5.25rem);
  --title-size: clamp(2.15rem, 5.25vw, 4.8rem);
  --body-size: 0.9rem;
  --small-size: 0.7rem;
  --line: 1.55;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-focus: 0 0 0 3px rgba(29, 78, 216, 0.25);
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 4.8rem;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-project-modal {
  overflow: hidden;
}

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

picture {
  display: block;
}

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

button {
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

p {
  color: var(--color-muted);
}

h1,
h2,
h3 {
  color: var(--color-text);
  font-family: var(--font-display);
  letter-spacing: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  box-shadow: var(--shadow-focus);
}

::selection {
  color: #ffffff;
  background: var(--color-accent);
}

.container,
.narrow {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.narrow {
  --container: 850px;
}

.section {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--color-border);
}

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

.section > .container {
  position: relative;
  z-index: 2;
}

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  max-width: 980px;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.section-heading::before,
#probleme .problem-content::before,
#a-propos .about-grid > div::before,
#services > .container::after,
#processus > .container::after,
#realisations > .container::after,
#a-propos > .container::after {
  color: var(--color-accent);
  font-size: var(--small-size);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
#a-propos h2,
.problem-title {
  max-width: 1080px;
  font-size: var(--display-size);
  font-weight: 900;
  line-height: 0.94;
  text-transform: none;
}

.section-title-split span,
.section-title-detail {
  display: inline;
}

.section-title-detail::before {
  content: " ";
}

#services .section-title-detail::before {
  content: " — ";
}

.section-heading p {
  max-width: 620px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.section-eyebrow {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.68rem 0.92rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 180ms var(--ease),
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-secondary {
  color: var(--color-text);
  background: transparent;
}

.btn-secondary:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.badge,
.label,
.project-type,
.popular-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  padding: 0.34rem 0.6rem;
  color: var(--color-accent);
  background: rgba(29, 78, 216, 0.1);
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: clamp(0.75rem, 1.5vw, 1rem) 0 auto;
  border-bottom: 0;
  background: transparent;
  pointer-events: none;
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.site-header.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  pointer-events: auto;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.8rem;
  gap: clamp(0.65rem, 1.8vw, 1rem);
  padding: 0 clamp(0.9rem, 2.4vw, 1.35rem);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow:
    0 10px 34px rgba(10, 10, 10, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  pointer-events: auto;
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 12px 42px rgba(10, 10, 10, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.logo,
.nav-brand {
  color: rgba(5, 5, 5, 0.5);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.logo {
  position: relative;
  z-index: 52;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.logo-dot {
  color: var(--color-accent);
}

.nav-current-section {
  display: none;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 1.45vw, 1rem);
  justify-self: center;
  min-height: 0;
  padding: 0;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
}

.main-nav a:not(.btn) {
  padding-block: 0.5rem;
  transition: color 240ms var(--ease);
}

.main-nav a:not(.btn):hover {
  color: var(--color-text);
}

.main-nav a.is-current {
  color: var(--color-text);
}

.main-nav:has(a.is-current) a:not(.btn):not(.is-current) {
  color: rgba(5, 5, 5, 0.18);
}

.main-nav .nav-brand {
  display: none;
}

.nav-cta {
  position: relative;
  flex: 0 0 auto;
  height: 2.8rem;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 clamp(0.9rem, 2.4vw, 1.35rem);
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.28);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
  transition:
    background-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    transform 160ms var(--ease);
}

.nav-cta:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.36);
  transform: translateY(-1px);
}

.nav-cta i {
  display: none;
  font-size: 1.05rem;
  transform-origin: center;
  transition:
    opacity 140ms var(--ease),
    transform 220ms var(--ease-out);
}

.nav-cta.is-open {
  background: rgba(29, 78, 216, 0.94);
}

.nav-cta.is-open i {
  transform: rotate(90deg) scale(0.94);
}

.contact-choice {
  position: absolute;
  z-index: 56;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(24rem, calc(100vw - 2rem));
}

.contact-choice[hidden] {
  display: none;
}

.contact-choice-grid {
  display: grid;
  gap: 0.55rem;
}

.contact-choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 4.4rem;
  padding: 0.85rem 0.95rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow:
    0 10px 34px rgba(10, 10, 10, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  opacity: 0;
  transform: translate(0.75rem, -0.55rem) scale(0.96);
  transform-origin: top right;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    opacity 180ms var(--ease),
    transform 220ms var(--ease-out);
}

.contact-choice.is-open .contact-choice-card {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.contact-choice.is-open .contact-choice-card:nth-child(1) {
  transition-delay: 20ms;
}

.contact-choice.is-open .contact-choice-card:nth-child(2) {
  transition-delay: 70ms;
}

.contact-choice-card:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

.contact-choice-icon {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  color: var(--color-accent);
  background: rgba(29, 78, 216, 0.1);
  border-radius: 999px;
  font-size: 1.1rem;
}

.contact-choice-card strong,
.contact-choice-card span span {
  display: block;
}

.contact-choice-card strong {
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-choice-card span span {
  margin-top: 0.18rem;
  overflow-wrap: anywhere;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.nav-toggle {
  position: relative;
  z-index: 52;
  display: none;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 1.28rem;
}

.nav-toggle i {
  transition:
    transform 220ms var(--ease-out),
    opacity 160ms var(--ease);
}

.nav-toggle[aria-expanded="true"] i {
  transform: rotate(90deg);
}

.hero {
  position: relative;
  z-index: 1;
  padding-top: clamp(6.6rem, 9.5vw, 8.3rem);
  padding-bottom: clamp(3rem, 5.5vw, 5rem);
  overflow: visible;
  border-top: 0;
}

body::before {
  position: fixed;
  z-index: 0;
  top: clamp(2rem, 5vw, 4rem);
  left: calc(100% - clamp(2.2rem, 5vw, 4rem));
  color: var(--color-text);
  content: "sebastien\A charlet";
  font-family: var(--font-display);
  font-size: 19vh;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  opacity: 0.06;
  pointer-events: none;
  transform: rotate(90deg);
  transform-origin: left top;
  white-space: pre;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.52fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}

.hero-copy {
  max-width: 760px;
}

.hero .badge {
  margin-bottom: clamp(1.1rem, 2.2vw, 1.65rem);
}

.hero h1 {
  display: grid;
  gap: clamp(0.65rem, 1.2vw, 0.9rem);
  max-width: 780px;
  font-size: var(--title-size);
  font-weight: 900;
  line-height: 0.86;
}

.hero-title-main,
.hero-title-last {
  display: block;
}

.hero-title-main {
  color: var(--color-text);
}

.hero-location {
  color: var(--color-accent);
}

.hero-title-last {
  max-width: 760px;
  color: var(--color-text);
}

.hero-subtitle {
  max-width: 560px;
  margin-top: clamp(1rem, 1.7vw, 1.45rem);
  color: var(--color-muted);
  font-size: 0.88rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-top: clamp(1.45rem, 3vw, 2.25rem);
}

.hero-actions .btn-primary {
  min-height: 2.75rem;
  padding-inline: 1rem;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.24);
}

.hero-actions .btn-secondary {
  min-height: auto;
  padding: 0;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-actions .btn-secondary:hover {
  color: var(--color-accent);
  transform: none;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 0;
  margin-top: clamp(1.45rem, 3vw, 2.25rem);
}

.trust-list li {
  display: inline-flex;
  position: relative;
  align-items: flex-start;
  gap: 0.42rem;
  min-width: 8rem;
  padding-inline: 0.85rem;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-trust li:first-child {
  padding-left: 0;
}

.trust-list li span,
.contact-trust li {
  display: grid;
  gap: 0.15rem;
}

.trust-list i,
.check-list i {
  color: var(--color-accent);
}

.check-list i.ph-check-circle {
  font-size: 0;
}

.check-list i.ph-check-circle::before {
  content: "✓";
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.hero-image,
.section-image {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 2px;
}

.hero-image {
  aspect-ratio: 4 / 5;
  min-height: 330px;
  margin-right: max(-2.6rem, -4vw);
  transform: translateY(1.9rem);
}

.hero-image img,
.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.hero-image img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-position: center;
}

#probleme .problem-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

#probleme .problem-content {
  position: relative;
  display: grid;
  gap: 1rem;
}

#probleme .problem-content::before {
  content: "00 — Contexte";
}

.problem-title {
  margin-bottom: 0.6rem;
}

.problem-title span {
  display: block;
}

.problem-content > p,
.about-grid p {
  max-width: 720px;
  font-size: 0.95rem;
}

.quote-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 0.7rem;
  border-top: 1px solid var(--color-border-strong);
  border-left: 1px solid var(--color-border-strong);
}

.quote-box p {
  min-height: 6rem;
  padding: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border-right: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-border-strong);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
}

.transition-text {
  color: var(--color-text);
  font-weight: 900;
}

#services .section-heading::before {
  content: "01 — Services";
}

#services > .container::after {
  position: absolute;
  top: 0;
  right: 0;
  content: "Offres claires";
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border-strong);
  border-left: 1px solid var(--color-border-strong);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--color-bg);
  border-right: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-border-strong);
}

.price-card.featured {
  background: var(--color-surface);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.price-icon {
  display: none;
}

.price-card.featured .price-icon {
  margin-top: 0;
}

.price-card h3 {
  max-width: 320px;
  min-height: 4.8rem;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 900;
  line-height: 0.96;
}

.price {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.4rem;
  color: var(--color-text);
}

.price span {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price strong {
  font-size: clamp(2.55rem, 5vw, 4.55rem);
  font-weight: 900;
  line-height: 0.85;
}

.project-duration {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.35rem;
  margin-block: 1rem;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.price-card > p:not(.price, .project-duration, .card-note) {
  min-height: 4.6rem;
  font-size: 0.9rem;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--color-border);
}

.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.card-note {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 900;
}

.pricing-statement {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
}

.pricing-note {
  max-width: 620px;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

#processus .section-heading::before {
  content: "02 — Processus";
}

#processus > .container::after {
  position: absolute;
  top: 0;
  right: 0;
  content: "Sans jargon";
}

.timeline {
  display: grid;
  border-top: 1px solid var(--color-border-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(5rem, 0.18fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--color-border-strong);
}

.timeline-number {
  color: var(--color-accent);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.9;
}

.timeline-content {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.timeline-content h3 {
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 0.98;
}

.timeline-content p {
  font-size: 0.92rem;
}

#realisations .section-heading::before {
  content: "03 — Réalisations";
}

#realisations > .container::after {
  position: absolute;
  top: 0;
  right: 0;
  content: "Portfolio";
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.project-filter {
  min-height: 2.15rem;
  padding: 0.45rem 0.75rem;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 160ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.project-filter:hover,
.project-filter.is-active {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.projects-showcase {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.projects-grid {
  display: flex;
  gap: 1rem;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  flex: 0 0 min(420px, 84vw);
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-dark);
  border: 1px solid var(--color-dark);
  cursor: pointer;
  scroll-snap-align: start;
}

.project-card[hidden],
.project-card.is-filtered-out {
  display: none !important;
}

.project-card::before {
  position: absolute;
  top: 3.8rem;
  right: 1rem;
  max-width: calc(100% - 2rem);
  color: #ffffff;
  content: attr(data-project-target);
  font-size: clamp(3.4rem, 7vw, 5.9rem);
  font-weight: 900;
  line-height: 0.82;
  opacity: 0.12;
  text-align: right;
  transition:
    opacity 220ms var(--ease),
    transform 300ms var(--ease-out);
}

.project-card:hover::before,
.project-card:focus-within::before {
  opacity: 0.2;
  transform: scale(1.03);
}

.project-thumb {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-mock {
  display: none;
}

.project-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 1rem;
  padding: 1rem;
}

.project-icon {
  display: none;
}

.project-type {
  grid-column: 1;
  grid-row: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-card h3 {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 0.86;
}

.project-card p {
  grid-column: 1 / -1;
  grid-row: 4;
  max-width: 320px;
  color: var(--color-dark-muted);
  font-size: 0.86rem;
}

.project-card a {
  grid-column: 1 / -1;
  grid-row: 5;
  width: fit-content;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.project-card a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

#a-propos .about-grid > div {
  position: relative;
  display: grid;
  gap: 1rem;
}

#a-propos .about-grid > div::before {
  content: "04 — À propos";
}

#a-propos > .container::after {
  position: absolute;
  top: 0;
  right: 0;
  content: "Basé à Nantes";
}

.about-image,
.problem-image {
  aspect-ratio: 4 / 5;
}

.signature {
  color: var(--color-text);
  font-weight: 900;
}

#pourquoi-moi .section-heading::before {
  content: "05 — Pourquoi moi";
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border-strong);
  border-left: 1px solid var(--color-border-strong);
}

.benefit-card {
  min-height: 240px;
  padding: 1.2rem;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-border-strong);
}

.benefit-card i,
.contact-card > i {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.2rem;
  color: var(--color-accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1.25rem;
}

.benefit-card h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1;
}

.benefit-card p {
  font-size: 0.86rem;
}

#faq .section-heading::before {
  content: "06 — FAQ";
}

.faq-list {
  border-top: 1px solid var(--color-border-strong);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-strong);
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--color-text);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 900;
}

.faq-item button i {
  flex: 0 0 auto;
  color: var(--color-accent);
  transition: transform 220ms var(--ease-out);
}

.faq-item.is-open button i {
  transform: rotate(180deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 260ms var(--ease-out);
}

.faq-answer p {
  max-width: 760px;
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
}

.contact-section {
  color: #ffffff;
  background: var(--color-dark);
  border-top-color: var(--color-dark);
}

.contact-section .section-heading::before {
  color: var(--color-accent);
  content: "07 — Contact";
}

.contact-section .section-heading h2,
.contact-section .section-heading p {
  color: #ffffff;
}

.contact-section .section-heading p,
.contact-card p,
.contact-trust li {
  color: var(--color-dark-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-dark-soft);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-card > i {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.contact-card h3 {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
}

.contact-link {
  width: fit-content;
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 900;
  line-height: 1.1;
}

.contact-link:hover {
  color: var(--color-accent);
}

.contact-card .btn {
  margin-top: 0.5rem;
  justify-self: start;
}

.zone {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1.4rem;
}

.project-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 180ms var(--ease),
    visibility 180ms var(--ease);
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.project-modal-bubble {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: min(82vh, 760px);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: scale(0.96) translateY(12px);
  transition: transform 220ms var(--ease-out);
}

.project-modal.is-open .project-modal-bubble {
  transform: scale(1) translateY(0);
}

.project-modal-close {
  position: absolute;
  z-index: 2;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.project-modal-close:hover {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.project-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding-block: clamp(2rem, 5vw, 4rem) 1.5rem;
  color: #ffffff;
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer p,
.site-footer a {
  color: var(--color-dark-muted);
  font-size: 0.78rem;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 0.35rem;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 900;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.footer-socials {
  display: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  font-size: 0.72rem;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal],
  .motion-ready [data-stagger] > * {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 520ms var(--ease-out),
      transform 520ms var(--ease-out);
  }

  .motion-ready [data-reveal].is-visible,
  .motion-ready [data-stagger].is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready [data-stagger].is-visible > *:nth-child(2) {
    transition-delay: 60ms;
  }
  .motion-ready [data-stagger].is-visible > *:nth-child(3) {
    transition-delay: 120ms;
  }
  .motion-ready [data-stagger].is-visible > *:nth-child(4) {
    transition-delay: 180ms;
  }
  .motion-ready [data-stagger].is-visible > *:nth-child(5) {
    transition-delay: 240ms;
  }
  .motion-ready [data-stagger].is-visible > *:nth-child(6) {
    transition-delay: 300ms;
  }
}

@media (hover: hover) {
  .price-card:hover,
  .benefit-card:hover,
  .contact-card:hover {
    background: var(--color-surface);
  }

  .contact-card:hover {
    background: #151515;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    inset-block-start: 0.75rem;
  }

  .header-shell {
    width: min(100% - 2rem, 1080px);
    max-width: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: space-between;
    flex: 1 1 auto;
    height: auto;
    min-height: 3.25rem;
    gap: 0.65rem;
    padding: 0.38rem 0.48rem 0.38rem 0.92rem;
    white-space: normal;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow:
      0 10px 34px rgba(10, 10, 10, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
  }

  .nav-toggle {
    display: grid;
  }

  .nav-current-section {
    position: relative;
    z-index: 52;
    display: block;
    justify-self: end;
    max-width: min(36vw, 11rem);
    margin-left: auto;
    overflow: hidden;
    color: var(--color-text);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: lowercase;
    white-space: nowrap;
  }

  .main-nav {
    position: absolute;
    z-index: 51;
    top: calc(100% + 0.65rem);
    right: 0;
    /* left: 0; */
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 0.62rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow:
      0 10px 34px rgba(10, 10, 10, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity 180ms var(--ease),
      transform 180ms var(--ease),
      visibility 180ms var(--ease);
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav a:not(.btn) {
    padding: 1.05rem;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a:not(.btn):last-child {
    border-bottom: 0;
  }

  .main-nav .nav-brand {
    display: none;
  }

  .main-nav:has(a.is-current) a:not(.btn):not(.is-current) {
    color: rgba(5, 5, 5, 0.45);
  }

  .nav-cta {
    position: fixed;
    z-index: 55;
    right: 1.25rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border-radius: 999px;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
  }

  .nav-cta i {
    display: block;
    font-size: 1.38rem;
  }

  .nav-cta-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .nav-cta:hover {
    transform: translateY(-1px);
  }

  .contact-choice {
    position: fixed;
    top: auto;
    right: 1rem;
    bottom: calc(5.1rem + env(safe-area-inset-bottom, 0px));
    width: min(22rem, calc(100vw - 2rem));
  }

  .contact-choice-card {
    min-height: 4.15rem;
    padding: 0.8rem 0.9rem;
    transform: translate(0.65rem, 0.7rem) scale(0.96);
    transform-origin: bottom right;
  }

  .contact-choice.is-open .contact-choice-card:nth-child(1) {
    transition-delay: 70ms;
  }

  .contact-choice.is-open .contact-choice-card:nth-child(2) {
    transition-delay: 20ms;
  }

  .hero-inner,
  #probleme .problem-grid,
  .about-grid,
  .pricing-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    width: min(100%, 520px);
    min-height: 0;
    order: -1;
    aspect-ratio: 16 / 10;
    margin-right: 0;
    transform: none;
  }

  .problem-image,
  .about-image {
    max-width: 560px;
    aspect-ratio: 16 / 11;
  }

  #services > .container::after,
  #processus > .container::after,
  #realisations > .container::after,
  #a-propos > .container::after {
    position: absolute;
    top: 0;
    right: 0;
  }

  #a-propos .about-grid > div {
    grid-column: 1;
    grid-row: 2;
  }

  #a-propos > .container::after {
    position: static;
    z-index: 1;
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    align-self: start;
  }

  .pricing-grid,
  .benefits-grid {
    border-left: 1px solid var(--color-border-strong);
  }

  .price-card h3 {
    min-height: 0;
  }

  .price-card > p:not(.price, .project-duration, .card-note) {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --body-size: 0.92rem;
    --section-space: 4.5rem;
    --display-size: clamp(2.45rem, 15vw, 4.4rem);
    --title-size: clamp(3rem, 12.6vw, 4.1rem);
  }

  html {
    scroll-padding-top: 4.8rem;
  }

  .site-header {
    inset-block-start: 1rem;
  }

  .header-shell {
    width: calc(100% - 2rem);
    gap: 0.45rem;
  }

  .header-inner {
    min-height: 3.35rem;
    padding-inline: 0.95rem 0.48rem;
    border-radius: 999px;
  }

  .nav-cta {
    width: 3.35rem;
    min-height: 3.35rem;
  }

  .logo {
    max-width: 11rem;
  }

  .hero {
    min-height: auto;
    padding-top: 6.3rem;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero .badge {
    display: none;
  }

  body::before {
    top: 1rem;
    left: calc(100% - clamp(0.85rem, 5vw, 1.55rem));
    content: "sebastien charlet";
    font-size: 19vh;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: var(--title-size);
    line-height: 0.94;
  }

  .hero-subtitle {
    margin-top: clamp(7.5rem, 29vw, 10.5rem);
  }

  .hero-title-last {
    font-size: 0.8em;
    max-width: 5.85em;
  }

  .problem-title .mobile-title-small {
    font-size: 0.8em;
  }

  .section-heading h2.mobile-title-small,
  #a-propos h2.mobile-title-small {
    font-size: calc(var(--display-size) * 0.8);
    line-height: 1;
  }

  .section-title-split span {
    display: block;
  }

  .section-title-detail {
    font-size: 0.8em;
    margin-top: 0.08em;
  }

  .section-title-detail::before,
  #services .section-title-detail::before {
    content: "";
  }

  .hero-title-main span {
    white-space: normal;
  }

  .hero-actions,
  .contact-card .btn {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    gap: 1rem;
    margin-top: 1.8rem;
  }

  .hero-actions .btn-primary {
    width: 100%;
  }

  .hero-actions .btn-secondary {
    justify-self: center;
  }

  .hero-trust,
  .contact-trust {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-trust {
    gap: 0.9rem;
    margin-top: 1.7rem;
  }

  .hero-trust li {
    min-width: 0;
    padding: 0;
  }

  .hero-trust li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -0.45rem;
    left: 0;
    width: 100%;
    height: 1px;
  }

  .hero-image {
    position: absolute;
    z-index: 1;
    top: clamp(7.25rem, 29vw, 9rem);
    right: -1.35rem;
    width: min(72vw, 20rem);
    min-height: 0;
    aspect-ratio: 2 / 2.85;
    margin-bottom: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    pointer-events: none;
  }

  .hero-image::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, var(--color-bg) 0%, rgba(245, 244, 240, 0.82) 18%, rgba(245, 244, 240, 0) 48%);
    content: "";
    pointer-events: none;
  }

  .hero-image picture {
    width: 100%;
    height: 100%;
  }

  .hero-image img {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-position: center bottom;
  }

  .quote-box {
    grid-template-columns: 1fr;
  }

  .quote-box p {
    min-height: 4.6rem;
  }

  .section-heading {
    gap: 0.9rem;
  }

  .section-heading p {
    font-size: 0.9rem;
  }

  .popular-badge {
    position: static;
    margin-bottom: 1rem;
  }

  .price-card.featured .price-icon {
    margin-top: 0;
  }

  .timeline-item {
    grid-template-columns: 3.2rem 1fr;
    gap: 0.8rem;
  }

  .timeline-number {
    font-size: 2.35rem;
  }

  .project-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .project-filter {
    flex: 0 0 auto;
  }

  .projects-grid {
    overflow-x: auto;
  }

  .project-card {
    flex-basis: min(310px, 82vw);
    min-height: 420px;
    scroll-snap-align: start;
  }

  .project-card-body {
    min-height: 420px;
  }

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

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .project-modal {
    padding: 0.5rem;
  }

  .project-modal-bubble {
    height: min(86vh, 720px);
  }

}

@media (max-width: 420px) {
  .btn {
    min-height: 3rem;
    padding-inline: 0.85rem;
    font-size: 0.68rem;
  }

  .project-card {
    flex-basis: 84vw;
  }

  .contact-link {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 768px) {
  .page-app .hero-subtitle {
    max-width: min(40vw, 19rem);
    margin-top: clamp(1.1rem, 4vw, 1.6rem);
  }
}

/* ─── Dark theme ─── */

html[data-theme="dark"] {
  --color-bg: #111110;
  --color-surface: #1c1b19;
  --color-soft: #1f1e1b;
  --color-text: #f0efeb;
  --color-muted: #9a9890;
  --color-border: #2c2b28;
  --color-border-strong: #f0efeb;
  --color-accent: #6b9eff;
  --color-accent-dark: #4d7cff;
  --color-dark: #222220;
  --color-dark-soft: #1c1c1a;
  --color-dark-muted: #888680;
  --shadow-focus: 0 0 0 3px rgba(107, 158, 255, 0.3);
}

html[data-theme="dark"] ::selection {
  color: #111110;
  background: var(--color-accent);
}

html[data-theme="dark"] .header-inner {
  background: rgba(20, 20, 18, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .site-header.is-scrolled .header-inner {
  background: rgba(20, 20, 18, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .logo,
html[data-theme="dark"] .nav-brand {
  color: rgba(240, 239, 235, 0.5);
}

html[data-theme="dark"] .main-nav:has(a.is-current) a:not(.btn):not(.is-current) {
  color: rgba(240, 239, 235, 0.2);
}

html[data-theme="dark"] .main-nav {
  background: rgba(28, 27, 25, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .main-nav a:not(.btn) {
  border-bottom-color: var(--color-border);
}

html[data-theme="dark"] .contact-choice-card {
  background: rgba(28, 27, 25, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .contact-choice-card:hover {
  background: rgba(32, 31, 29, 0.98);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .hero-image::before {
  background: linear-gradient(90deg, var(--color-bg) 0%, rgba(17, 17, 16, 0.82) 18%, rgba(17, 17, 16, 0) 48%);
}

html[data-theme="dark"] .about-photo {
  background: var(--color-surface);
}

html[data-theme="dark"] .lang-toggle,
html[data-theme="dark"] .theme-toggle {
  color: var(--color-text);
  background: rgba(20, 20, 18, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .lang-toggle:hover,
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(32, 31, 29, 0.92);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ─── Theme toggle ─── */

.theme-toggle {
  position: fixed;
  bottom: calc(1.5rem + 2.8rem + 0.65rem);
  left: 1.25rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  font-family: inherit;
  font-size: 1.35rem;
  color: var(--color-text, #050505);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow:
    0 10px 34px rgba(10, 10, 10, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  cursor: pointer;
  animation: langSlideFromLeft 500ms cubic-bezier(0.16, 1, 0.3, 1) 700ms both;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.theme-toggle--alone {
  bottom: 1.5rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px rgba(10, 10, 10, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    animation: none;
  }
}

/* ─── Language toggle ─── */

.lang-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.25rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0 clamp(0.85rem, 2vw, 1.1rem);
  height: 2.8rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text, #080808);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow:
    0 10px 34px rgba(10, 10, 10, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  animation: langSlideFromLeft 500ms cubic-bezier(0.16, 1, 0.3, 1) 600ms both;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px rgba(10, 10, 10, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@keyframes langSlideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-110%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-toggle {
    animation: none;
  }
}
