:root {
  --ink: #18202a;
  --muted: #5e6976;
  --paper: #f7f6f1;
  --paper-2: #eeeee7;
  --line: #d9d8cf;
  --service: #2f6f73;
  --dev: #395a9a;
  --accent: #b64037;
  --white: #fffdfa;
  --shadow: 0 22px 70px rgba(26, 32, 42, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(47, 111, 115, 0.10), transparent 26rem),
    radial-gradient(circle at 80% 0%, rgba(57, 90, 154, 0.12), transparent 26rem),
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    repeating-radial-gradient(circle at 0 0, rgba(24, 32, 42, 0.045) 0 1px, transparent 1px 4px),
    var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 246, 241, 0.88);
  border-bottom: 1px solid rgba(217, 216, 207, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-dot {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px 50% 8px 50%;
  background: var(--service);
  box-shadow: 0 0 0 6px rgba(57, 90, 154, 0.08);
  animation: brandMark 8s ease-in-out infinite;
}

.brand-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.55);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-toggle,
.menu-button {
  display: none;
}

.menu-button {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

main {
  flex: 1;
}

.hero,
.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  padding: clamp(20px, 3vh, 36px) 0 10px;
}

.hero-intro {
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(1.28rem, 2.52vw, 2.22rem);
}

h2 {
  font-size: clamp(1.22rem, 2vw, 1.72rem);
}

h3 {
  font-size: 1.3rem;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
}

.home-subtitle {
  width: 100%;
  max-width: none;
  font-size: clamp(0.68rem, 0.9vw, 0.8rem);
  color: #7b858f;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(12px, 2vw, 18px);
}

.choice-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.78);
  box-shadow: var(--shadow);
}

.choice-card > div:first-child {
  text-align: left;
}

.choice-card.service {
  border-top: 5px solid var(--service);
}

.choice-card.dev {
  border-top: 5px solid var(--dev);
}

.choice-card.service h2 {
  color: #174f46;
}

.choice-card.dev h2 {
  color: #243f78;
}

.logo-video {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin: -8px -8px 22px;
  background: linear-gradient(180deg, rgba(24, 32, 42, 0.03), rgba(24, 32, 42, 0));
  border-radius: 8px;
}

.logo-video video {
  width: min(360px, 100%);
  aspect-ratio: 982 / 600;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.choice-card p {
  color: var(--muted);
}

.muted-note {
  color: var(--muted);
  font-style: italic;
}

.intervention-note {
  margin: 14px 0 0;
}

.activity-line {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.65vw, 1.24rem);
  font-weight: 400;
}

.title-brand {
  font-size: 1em;
  font-weight: inherit;
}

.service-title {
  color: #174f46;
}

.dev-title {
  color: #243f78;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section {
  padding: clamp(16px, 2.4vw, 28px) 0;
}

.contact-section,
.contact-form-section {
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.presentation-band {
  background: #fff !important;
  border-block: 1px solid var(--line);
}

.presentation-band .band-stack {
  min-height: 315px;
  justify-content: center;
  gap: 12px;
}

.presentation-band .band-title {
  margin: 0;
}

.logo-evolution.presentation-evolution {
  width: min(1160px, 100%);
  height: 235px;
}

.presentation-text-panel {
  max-width: 930px;
  margin-inline: auto;
  background: #ffffff;
  text-align: left;
}

.presentation-text-panel p,
.presentation-text-panel li {
  max-width: 860px;
  margin: 0;
}

.presentation-text-panel p + p {
  margin-top: 12px;
}

.presentation-text-panel ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.band-section + .page-step {
  padding-top: clamp(14px, 2vw, 24px);
}

.page-step {
  padding-block: clamp(12px, 1.8vw, 20px);
}

.page-step + .page-step {
  padding-top: clamp(10px, 1.4vw, 16px);
}

.page-step + .service-promos {
  padding-top: clamp(12px, 1.8vw, 20px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.contact-section {
  width: min(1160px, calc(100% - 36px));
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.68fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  margin-top: clamp(36px, 5vw, 66px);
}

.contact-location {
  min-width: 0;
}

.contact-title {
  max-width: none;
  text-align: center;
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
}

.contact-logo {
  display: block;
  width: min(220px, 70%);
  margin: 18px 0 0;
  object-fit: contain;
}

.contact-name {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 500;
}

.address-block {
  margin: 2px 0 0;
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.address-block span {
  font-size: 0.92em;
}

.panel,
.timeline,
.pdf-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.78);
  box-shadow: 0 14px 46px rgba(26, 32, 42, 0.08);
}

.panel {
  padding: clamp(22px, 3vw, 34px);
}

.timeline {
  display: none;
}

.logo-evolution {
  position: relative;
  width: min(280px, 100%);
  height: 118px;
  margin: 0;
}

.identity-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 22px;
  align-items: center;
  min-height: 148px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 237, 232, 0.92);
  box-shadow: 0 14px 46px rgba(26, 32, 42, 0.08);
}

.identity-strip h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
}

.evolution-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin: 0;
  opacity: 0;
  --logo-shift: -8%;
  animation: logoFade 16s ease-in-out infinite;
}

.evolution-slide img {
  width: auto;
  height: 172px;
  max-width: min(1020px, 96vw);
  max-height: 172px;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 18px 34px rgba(26, 32, 42, 0.10));
}

.evolution-slide.year-2012 img {
  height: 161px;
  max-height: 161px;
}

.current-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 26px);
  width: auto;
  max-width: min(1160px, calc(100vw - 28px));
  margin-inline: auto;
}

.current-logos img {
  width: auto;
  max-width: none;
  height: 172px;
  max-height: 172px;
  transform: none;
}

.evolution-slide figcaption {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.year-2001 {
  animation-delay: 4s;
}

.year-2012 {
  animation-delay: 8s;
}

.year-2025 {
  animation-delay: 12s;
}

.service-band,
.dev-band {
  border-block: 1px solid var(--line);
}

.band-section {
  width: 100%;
  padding-inline: 0;
}

.band-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.band-stack {
  display: grid;
  justify-items: center;
  text-align: center;
}

.band-stack .logo-video {
  width: min(420px, 100%);
  min-height: 0;
  margin: 0;
  background: transparent;
}

.band-stack .lead {
  margin-top: 8px;
}

.band-title {
  margin-top: 14px;
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
}

.service-band {
  background: rgba(47, 111, 115, 0.075);
}

.dev-band {
  background: rgba(57, 90, 154, 0.075);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.72);
}

.service-band ~ .page-step .feature-list h3 {
  color: #174f46;
}

.dev-band ~ .page-step .feature-list h3 {
  color: #243f78;
}

.service-band ~ .page-step .feature-list p,
.dev-band ~ .page-step .feature-list p {
  font-style: italic;
}

.feature-list li p + p {
  margin-top: 10px;
}

.presentation-choices {
  padding-top: clamp(10px, 1.4vw, 16px);
}

.presentation-card {
  min-height: auto;
  gap: 0;
}

.presentation-card h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.presentation-card .button {
  margin-top: clamp(28px, 3.4vw, 46px);
  align-self: flex-start;
}

.pdf-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2vw, 22px);
}

.appointment-note {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}

.hours-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.hours-card div {
  display: grid;
  grid-template-columns: minmax(90px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 11px;
  font-size: 0.9rem;
}

.hours-card div + div {
  border-top: 1px solid var(--line);
}

.hours-card span {
  color: var(--muted);
  font-weight: 400;
}

.hours-card strong {
  color: var(--ink);
  font-weight: 400;
}

.google-business-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(36, 63, 120, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  text-decoration: none;
}

.google-business-card strong {
  display: block;
  color: var(--ink);
}

.google-business-card em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-style: italic;
}

.google-business-card:hover {
  background: var(--white);
  box-shadow: 0 12px 34px rgba(26, 32, 42, 0.08);
}

.map-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  width: min(680px, 100%);
  margin-top: 0;
}

.map-card img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.google-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 1.55rem;
  font-weight: 900;
}

.google-mark span {
  background: conic-gradient(from 35deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-form-section {
  display: grid;
  justify-items: center;
}

.contact-form-intro {
  max-width: 820px;
  text-align: center;
}

.contact-form-intro h1 {
  max-width: none;
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
}

.contact-form-intro .lead {
  max-width: none;
}

.contact-form-section .panel {
  width: min(760px, 100%);
  max-width: 760px;
  margin-top: clamp(34px, 5vw, 58px);
}

.contact-form {
  display: grid;
  gap: 14px;
}

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

.form-row,
.captcha-row {
  display: grid;
  gap: 6px;
}

.form-row label,
.captcha-row label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.form-row label span,
.captcha-row label span {
  color: var(--accent);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(57, 90, 154, 0.2);
  border-color: rgba(57, 90, 154, 0.48);
  background: var(--white);
}

.captcha-row {
  padding: 14px;
  border: 1px solid rgba(57, 90, 154, 0.18);
  border-radius: 8px;
  background: rgba(57, 90, 154, 0.06);
}

.captcha-row input {
  max-width: 150px;
}

.form-actions {
  margin-top: 4px;
}

.form-legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.form-legal-note a {
  color: var(--ink);
  font-weight: 750;
}

.form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 750;
}

.form-status.success {
  border: 1px solid rgba(47, 111, 73, 0.26);
  background: rgba(47, 111, 73, 0.08);
  color: #275d3d;
}

.form-status.error {
  border: 1px solid rgba(182, 64, 55, 0.28);
  background: rgba(182, 64, 55, 0.08);
  color: #8e3029;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.promo-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.78);
  box-shadow: 0 14px 46px rgba(26, 32, 42, 0.08);
}

.home-promos {
  gap: 22px;
  margin-top: 22px;
}

.service-promos {
  padding-top: clamp(12px, 1.8vw, 20px);
}

.promo-card h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.promo-card p {
  color: var(--muted);
}

.atelier-card,
.mac-list-card {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
}

.atelier-card {
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-color: #d4d4d1;
}

.atelier-card.align-right {
  direction: ltr;
}

.atelier-card img {
  width: 100%;
  max-height: 172px;
  padding: 16px clamp(18px, 2.5vw, 26px);
  border: 0;
  border-bottom: 1px solid #d4d4d1;
  border-radius: 8px 8px 0 0;
  background: #d4d4d1 url("assets/promos/l-atelier-du-mac-fond.jpg") repeat;
  object-fit: contain;
}

.atelier-card > div {
  padding: clamp(10px, 1.7vw, 16px) clamp(16px, 2.2vw, 24px) clamp(16px, 2.2vw, 24px);
}

.atelier-card p + p {
  margin-top: 1em;
}

.mac-list-card h2 {
  width: 100%;
  margin: -2px 0 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.mac-list-card {
  padding: 14px;
  justify-items: center;
}

.mac-list-card .mac-icon {
  justify-self: center;
}

.mac-montage {
  justify-self: center;
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-links a {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--ink);
  background: var(--white);
}

.promo-card img {
  width: min(190px, 34vw);
  border-radius: 8px;
  display: block;
}

.promo-card.atelier-card img {
  width: 100%;
}

.promo-card .mac-montage {
  width: 100%;
  max-height: 230px;
}

.tplm-card {
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: start;
}

.tplm-card img {
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 8px;
  background: var(--white);
}

.tplm-card .button {
  margin-top: 18px;
}

.align-right {
  direction: rtl;
}

.align-right > * {
  direction: ltr;
}

.mac-icon {
  position: relative;
  width: 104px;
  height: 82px;
  display: block;
}

.mac-icon::before {
  content: "";
  position: absolute;
  inset: 0 8px 18px;
  border: 5px solid #243f78;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(57, 90, 154, 0.13), rgba(47, 111, 115, 0.08));
  box-shadow: inset 0 -10px 0 rgba(36, 63, 120, 0.07);
}

.mac-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 74px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px 999px 5px 5px;
  background: #243f78;
}

.site-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.site-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.78);
  overflow: hidden;
  box-shadow: 0 14px 46px rgba(26, 32, 42, 0.08);
}

.site-gallery a {
  color: inherit;
  text-decoration: none;
}

.site-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.site-gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 750;
}

.back-link {
  display: inline-flex;
  margin-top: 18px;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  gap: 16px;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(18, 24, 33, 0.92);
}

.lightbox:target {
  display: grid;
}

.lightbox img {
  max-width: min(1180px, 94vw);
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  color: var(--white);
  font-weight: 750;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  display: grid;
  width: 48px;
  height: 58px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 3rem;
  line-height: 1;
  text-decoration: none;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.legal-band {
  background: linear-gradient(180deg, rgba(239, 243, 239, 0.94), rgba(249, 250, 247, 0.96));
}

.legal-band .lead {
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  font-style: italic;
}

.legal-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
}

.legal-list {
  padding-left: 1.1rem;
}

.legal-list li + li {
  margin-top: 8px;
}

.data-protection,
.intellectual-property {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.accordion {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.accordion summary {
  cursor: pointer;
  padding: 16px 18px;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  font-weight: 850;
  color: var(--ink);
  background: rgba(24, 32, 42, 0.045);
}

.accordion-body {
  padding: 18px;
}

.legal-terms h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
}

.legal-terms h3:first-child {
  margin-top: 0;
}

.legal-terms p {
  margin: 0 0 12px;
  color: var(--muted);
}

.pdf-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.site-footer {
  padding: 34px clamp(18px, 4vw, 54px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .site-header {
    position: sticky;
    align-items: center;
    gap: 14px;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px clamp(18px, 4vw, 54px) 18px;
    background: rgba(247, 246, 241, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(26, 32, 42, 0.08);
    align-items: stretch;
    justify-content: flex-start;
  }

  .top-nav a {
    width: 100%;
    border-radius: 8px;
  }

  .nav-toggle:checked ~ .top-nav {
    display: grid;
  }
}

@media (min-width: 861px) {
  .home-subtitle {
    white-space: nowrap;
  }
}

@media (max-width: 860px) {
  .presentation-band .band-stack {
    min-height: 300px;
  }

  .logo-evolution.presentation-evolution {
    height: 220px;
  }

  .evolution-slide img,
  .current-logos img {
    height: 150px;
    max-height: 150px;
  }

  .current-logos {
    gap: 10px;
  }

  .choice-grid,
  .split,
  .contact-layout,
  .identity-strip,
  .promo-grid,
  .site-gallery,
  .feature-list,
  .timeline {
    grid-template-columns: 1fr;
  }

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

  .align-right {
    direction: ltr;
  }

  .choice-card {
    min-height: auto;
  }

  .identity-strip {
    justify-items: start;
  }

  .pdf-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hours-card div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

@keyframes brandMark {
  0%,
  38% {
    transform: rotate(0deg);
    background: var(--service);
  }

  50%,
  88% {
    transform: rotate(180deg);
    background: var(--dev);
  }

  100% {
    transform: rotate(360deg);
    background: var(--service);
  }
}

@keyframes logoFade {
  0%,
  6% {
    opacity: 0;
    transform: translate(var(--logo-shift), 6px) scale(0.98);
  }

  12%,
  24% {
    opacity: 1;
    transform: translate(var(--logo-shift), 0) scale(1);
  }

  31%,
  100% {
    opacity: 0;
    transform: translate(var(--logo-shift), -6px) scale(0.98);
  }
}
