:root {
  --brand-1: #00E7FF;
  --brand-2: #69116f;
  --bg: #05060A;
  --bg-alt: #0A0C14;
  --card: #0D111C;
  --card-border: rgba(255,255,255,.08);
  --text: #E6F9FF;
  --muted: #9AC9FF;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  --ring: 0 0 0 4px rgba(0,231,255,.25);
}

* { box-sizing: border-box; }
::selection { background: rgba(0,231,255,.35); color: #051124; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); }
body {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: .01em;
  line-height: 1.6;
  background:
    radial-gradient(1200px 800px at 50% 0, rgba(0,231,255,.08), transparent),
    radial-gradient(900px 600px at 100% 10%, rgba(255,55,203,.1), transparent),
    var(--bg);
  min-height: 100vh;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; border-radius: calc(var(--radius) - 6px); }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
h2, h3 { margin: 0 0 1rem; font-weight: 700; }
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: .015em;
}
section { padding: 5rem 0; scroll-margin-top: 90px; position: relative; }
.container { width: min(1120px, 92%); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(12px) saturate(1.3);
  background: rgba(10,12,20,.75);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
header::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5,8,15,.75);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 60;
}
body.nav-open header::after {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; gap: 1.6rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.brand .logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,231,255,.35), transparent 55%), #0b0f1a;
  box-shadow: 0 0 24px rgba(0,231,255,.35), 0 0 28px rgba(255,55,203,.25);
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  filter: drop-shadow(0 0 10px rgba(0,231,255,.7)) drop-shadow(0 0 16px rgba(255,55,203,.55));
  animation: logoPulse 2.4s ease-in-out infinite;
}
.brand .logo::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,231,255,.45), transparent 70%);
  opacity: 0;
  transform: scale(.7);
  filter: blur(18px);
  z-index: -1;
}
[data-page="home"] .brand .logo {
  animation: logoHomepageShadow 3.4s ease-in-out infinite;
}
[data-page="home"] .brand .logo::before {
  animation: logoHomepageGlow 3.4s cubic-bezier(.65, .05, .36, 1) infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0,231,255,.6)) drop-shadow(0 0 10px rgba(255,55,203,.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(0,231,255,.8)) drop-shadow(0 0 26px rgba(255,55,203,.6)); }
}
.brand-name {
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(0,231,255,.35), 0 0 18px rgba(255,55,203,.25);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .8rem;
  border: 1.5px solid rgba(0,231,255,.4);
  background: rgba(9,12,21,.65);
  color: rgba(230,249,255,.95);
  border-radius: 14px;
  padding: .6rem .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0,231,255,.7);
  box-shadow: 0 18px 34px rgba(0,0,0,.45);
}
.nav-toggle__icon {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.is-active .nav-toggle__icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-chatbot {
  display: none;
  align-items: center;
  gap: .55rem;
  border: 1.5px solid rgba(0,231,255,.35);
  background: rgba(9,12,21,.7);
  color: rgba(230,249,255,.95);
  border-radius: 14px;
  padding: .6rem .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  text-transform: uppercase;
  touch-action: manipulation;
  transition: border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.nav-chatbot__icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,231,255,.7);
  box-shadow: 0 0 8px rgba(0,231,255,.55);
  position: relative;
}
.nav-chatbot__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.45);
  opacity: .6;
}
.nav-chatbot:hover {
  transform: translateY(-1px);
  border-color: rgba(0,231,255,.7);
  background: rgba(9,12,21,.85);
  box-shadow: 0 18px 34px rgba(0,0,0,.45);
}
.nav-chatbot:active {
  transform: translateY(0);
}
.nav-chatbot:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

@keyframes logoHomepageGlow {
  0%, 100% { opacity: 0; transform: scale(.65); }
  6% { opacity: .75; transform: scale(1.05); }
  12% { opacity: .25; transform: scale(.85); }
  18% { opacity: .6; transform: scale(1); }
  32% { opacity: 0; transform: scale(.75); }
  65% { opacity: .4; transform: scale(.9); }
  76% { opacity: .05; transform: scale(.7); }
}

@keyframes logoHomepageShadow {
  0%, 100% { box-shadow: 0 0 24px rgba(0,231,255,.35), 0 0 28px rgba(255,55,203,.25); }
  8% { box-shadow: 0 0 36px rgba(0,231,255,.55), 0 0 42px rgba(255,55,203,.4); }
  16% { box-shadow: 0 0 18px rgba(0,231,255,.25), 0 0 20px rgba(255,55,203,.18); }
  26% { box-shadow: 0 0 30px rgba(0,231,255,.45), 0 0 34px rgba(255,55,203,.32); }
  54% { box-shadow: 0 0 20px rgba(0,231,255,.3), 0 0 24px rgba(255,55,203,.24); }
}

.menu { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.menu a {
  opacity: .92;
  position: relative;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .3s ease, opacity .3s ease;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-1);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.menu a:hover::after,
.menu a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}
.menu a.is-active {
  color: var(--brand-1);
  opacity: 1;
}
.menu a.is-active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
  background: linear-gradient(90deg, var(--brand-1) 0%, #6f2bd6 48%, var(--brand-2) 100%);
  background-size: 200% 100%;
  animation: navUnderlineFlow 3s ease-in-out infinite;
}

@keyframes navUnderlineFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  padding: .78rem 1.1rem;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  touch-action: manipulation;
}
.btn-gradient {
  background: linear-gradient(90deg, var(--brand-2), var(--brand-1));
  color: #0b1220;
  border: none;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(0,231,255,.18);
}
.btn-outline { background: transparent; border: 1.5px solid rgba(0,231,255,.65); color: var(--text); }
.btn-whatsapp { background: #25D366; color: #051124; border: none; font-weight: 700; box-shadow: 0 12px 22px rgba(37,211,102,.25); }

@media (hover: hover) and (pointer: fine) {
  .btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(0,231,255,.25); }
  .btn-outline:hover { background: rgba(0,231,255,.08); }
  .btn-whatsapp:hover { background: #1EBB57; transform: translateY(-2px); box-shadow: 0 18px 30px rgba(37,211,102,.28); }
}

@media (hover: none) {
  .btn-gradient:active { transform: translateY(1px); box-shadow: 0 8px 18px rgba(0,231,255,.2); }
  .btn-outline:active { background: rgba(0,231,255,.12); }
  .btn-whatsapp:active { background: #21c45d; transform: translateY(1px); box-shadow: 0 10px 24px rgba(37,211,102,.3); }
}
.pill { background: rgba(10,12,20,.8); border: 1px solid rgba(255,255,255,.1); }

.preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 50% 20%, rgba(0,231,255,.08), transparent),
    radial-gradient(140% 140% at 50% 60%, rgba(255,55,203,.1), transparent),
    rgba(5,6,10,.94);
  z-index: 260;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__inner {
  display: grid;
  gap: 1.6rem;
  justify-items: center;
  text-align: center;
}
.preloader__logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,231,255,.35), transparent 55%), #0b0f1a;
  box-shadow: 0 0 30px rgba(0,231,255,.35), 0 0 34px rgba(255,55,203,.25);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preloader__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: logoPulse 2.4s ease-in-out infinite;
}
.preloader__spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(0,231,255,.18);
  border-top-color: var(--brand-1);
  border-right-color: var(--brand-2);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  background: rgba(5,6,10,.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cookie-consent.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent__dialog {
  width: min(540px, 100%);
  background: rgba(13,17,28,.96);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px rgba(0,0,0,.58);
  padding: 2rem;
  display: grid;
  gap: 1.4rem;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.cookie-consent.is-open .cookie-consent__dialog {
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cookie-consent__icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.18));
}
.cookie-consent__header h2 {
  margin: 0;
  font-size: 1.35rem;
}
.cookie-consent__header p {
  margin: .2rem 0 0;
  color: rgba(230,249,255,.78);
}
.cookie-consent__legal {
  display: flex;
  justify-content: flex-start;
}
.cookie-consent__link {
  border: none;
  background: transparent;
  color: rgba(0,231,255,.85);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.cookie-consent__link:hover {
  color: rgba(0,231,255,1);
}
.cookie-consent__actions {
  display: flex;
  gap: .8rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-consent__actions .btn {
  flex: 1 1 160px;
  justify-content: center;
}
.cookie-consent__actions .btn.is-selected {
  box-shadow: 0 0 0 2px rgba(0,231,255,.35);
}
.cookie-consent__note {
  margin: 0;
  color: rgba(230,249,255,.6);
  font-size: .85rem;
}

.cookie-consent__dialog:focus {
  outline: 3px solid rgba(0,231,255,.35);
  outline-offset: 4px;
}

.cookie-consent .btn-outline {
  background: rgba(5,7,12,.85);
  border-color: rgba(255,255,255,.18);
}
.cookie-consent .btn-outline:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.25);
}

body.is-cookie-consent-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  .cookie-consent {
    padding: 1.2rem;
  }
  .cookie-consent__dialog {
    padding: 1.5rem;
    gap: 1.1rem;
  }
  .cookie-consent__header {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }
  .cookie-consent__actions {
    flex-direction: column-reverse;
  }
  .cookie-consent__actions .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,.55) 0%, rgba(5,6,10,.85) 40%, rgba(5,6,10,.9) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .24em; color: var(--muted); background: rgba(13,17,28,.6); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: .35rem .9rem; }
.hero .title { font-weight: 700; font-size: clamp(2.6rem, 4vw + 1rem, 5rem); margin: 1.4rem 0 1rem; }
.hero .title span {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(0,231,255,.28);
}
.hero .sub { margin: 1rem auto 2rem; max-width: 60ch; color: var(--muted); }
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video,
.hero-video video {
  pointer-events: none;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}
.hero-video.is-disabled {
  display: none;
}
.hero-content { position: relative; z-index: 2; display: grid; gap: 1.6rem; justify-items: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: auto 10% -10% 10%;
  height: 560px;
  z-index: -1;
  filter: blur(60px) saturate(1.2);
  background:
    radial-gradient(50% 60% at 50% 30%, rgba(0,231,255,.25), transparent 60%),
    radial-gradient(40% 50% at 60% 50%, rgba(255,55,203,.25), transparent 60%);
}
.cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.section-heading { text-align: center; max-width: 58ch; margin: 0 auto 3.6rem; }
.section-heading .eyebrow { display: inline-block; font-size: .85rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(154,201,255,.75); margin-bottom: 1rem; }
.section-heading h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }

#services .service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; }
.service-card {
  background: linear-gradient(160deg, rgba(13,17,28,.88), rgba(5,6,10,.92));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  animation: floaty 8s ease-in-out infinite;
}
.service-card:nth-child(2) { animation-delay: 1.2s; }
.service-card:nth-child(3) { animation-delay: 2.4s; }
.service-card::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  height: 140px;
  width: 140px;
  background: radial-gradient(circle, rgba(0,231,255,.25), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}
.service-card:hover { transform: translateY(-8px) scale(1.01); border-color: rgba(0,231,255,.55); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.service-card:hover::after { opacity: 1; }
.service-card h3 { font-size: 1.3rem; }
.service-card p { color: rgba(230,249,255,.84); }
.service-card ul { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; color: rgba(154,201,255,.8); font-size: .95rem; }
.service-card li::before { content: "⚡"; margin-right: .45rem; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

#a-propos .about-layout { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px); gap: 2.6rem; align-items: center; }
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual img {
  max-width: 100%;
  height: auto;
  display: block;
}
.about-content h2 { margin-bottom: 1rem; }
.about-content h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.about-content p { color: rgba(230,249,255,.82); font-size: .95rem; line-height: 1.6; }
.stats-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat-tile {
  background: rgba(9,11,18,.95);
  border: 1px solid rgba(0,231,255,.18);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.stat-tile::before {
  content: "";
  position: absolute;
  inset: -40% 40% auto auto;
  height: 120px;
  width: 120px;
  background: radial-gradient(circle, rgba(255,55,203,.28), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}
.stat-tile:hover { transform: translateY(-4px); border-color: rgba(255,55,203,.38); box-shadow: 0 18px 40px rgba(0,0,0,.44); }
.stat-tile:hover::before { opacity: 1; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--text); display: block; }
.stat-label { font-size: .85rem; color: rgba(154,201,255,.82); }

#notre-procede .process-grid {
  display: grid;
  gap: 1.8rem;
  align-items: start;
}
#notre-procede .process-grid[data-process-ready="true"] {
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 2rem 2.6rem;
}
.process-nav {
  display: grid;
  gap: .8rem;
  align-content: start;
}
.process-nav__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(9,12,21,.65);
  color: rgba(154,201,255,.82);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, transform .3s ease, color .3s ease;
}
.process-nav__btn:hover {
  transform: translateX(4px);
  border-color: rgba(0,231,255,.35);
  color: rgba(230,249,255,.94);
}
.process-nav__btn.is-active {
  border-color: rgba(0,231,255,.55);
  background: linear-gradient(120deg, rgba(0,231,255,.22), rgba(111,43,214,.18));
  color: rgba(230,249,255,.98);
  box-shadow: 0 18px 40px rgba(0,0,0,.38);
}
.process-nav__btn:focus-visible {
  outline: 2px solid rgba(0,231,255,.65);
  outline-offset: 3px;
}
.process-nav__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .65;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.process-nav__btn.is-active svg {
  opacity: 1;
  transform: translateX(4px);
}
.process-nav__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  background: rgba(0,231,255,.18);
  color: rgba(0,231,255,.95);
}
.process-nav__btn.is-active .process-nav__index {
  background: linear-gradient(130deg, rgba(0,231,255,.8), rgba(255,55,203,.62));
  color: #041322;
}
.process-pane-title {
  flex: 1;
  display: block;
  line-height: 1.35;
}
.process-panels {
  display: grid;
  gap: 1.8rem;
}
#notre-procede .process-grid[data-process-ready="true"] .process-panels {
  gap: 0;
}
#notre-procede .process-grid[data-process-ready="true"] .process-step {
  display: none;
}
#notre-procede .process-grid[data-process-ready="true"] .process-step.is-active {
  display: block;
  animation: processSlideIn .45s cubic-bezier(.33, 1, .68, 1) both;
}
@keyframes processSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.process-step {
  position: relative;
  padding: 2.2rem 1.9rem 2.4rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(70% 80% at 20% 0%, rgba(0,231,255,.12), transparent 70%),
    radial-gradient(70% 70% at 80% 100%, rgba(255,55,203,.12), transparent 70%),
    rgba(9,12,21,.88);
  border: 1px solid rgba(0,231,255,.16);
  box-shadow: 0 24px 48px rgba(0,0,0,.45);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.process-step::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 180px;
  background: radial-gradient(circle, rgba(0,231,255,.2), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.process-step:hover {
  transform: translateY(-8px);
  border-color: rgba(0,231,255,.45);
  box-shadow: 0 36px 70px rgba(0,0,0,.52);
}
.process-step:hover::after { opacity: 1; }
.process-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .95rem;
  background: linear-gradient(130deg, rgba(0,231,255,.55), rgba(111,43,214,.55));
  color: #041322;
  box-shadow: 0 12px 24px rgba(0,231,255,.35);
}
.process-step h3 { margin: 0 0 .8rem; font-size: 1.25rem; }
.process-step p { color: rgba(230,249,255,.84); margin-bottom: 1.1rem; }
.process-step ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
  color: rgba(154,201,255,.85);
  font-size: .95rem;
}
.process-step li {
  position: relative;
  padding-left: 1.4rem;
}
.process-step__next {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand-1);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s ease, transform .3s ease;
}
.process-step__next:hover {
  color: rgba(255,255,255,.92);
  transform: translateX(4px);
}
.process-step__next span {
  display: inline-flex;
  align-items: center;
}
.process-step__next svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  pointer-events: none;
}
.process-step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 0 16px rgba(0,231,255,.5);
}

.portfolio-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(2.2rem, 4vw, 4rem);
  padding: clamp(2.4rem, 5vw, 4rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(160deg, rgba(0,231,255,.1), transparent 60%),
    linear-gradient(320deg, rgba(255,55,203,.08), transparent 70%),
    rgba(9,12,21,.78);
  box-shadow: 0 36px 72px rgba(0,0,0,.4);
  overflow: hidden;
}
.portfolio-showcase__media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.4rem;
}
.portfolio-frame {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  background: #070a12;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  height: clamp(320px, 55vh, 520px);
  filter: drop-shadow(0 24px 42px rgba(0,0,0,.55));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.6rem, 1.8vw, 1.4rem);
}
.portfolio-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius) + 1px);
  transform-origin: center;
  transition: transform .6s ease, filter .6s ease;
}
.portfolio-showcase__media:hover .portfolio-frame img { transform: scale(1.02); filter: saturate(1.05); }
.portfolio-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: .9rem 1.2rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(7,9,16,.88);
  backdrop-filter: blur(12px);
  width: fit-content;
}
.portfolio-nav {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(0,231,255,.35);
  background: rgba(5,9,16,.92);
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.portfolio-nav:hover {
  transform: translateY(-2px);
  border-color: rgba(0,231,255,.65);
  box-shadow: 0 18px 36px rgba(0,0,0,.45);
  background: rgba(0,231,255,.14);
}
.portfolio-counter {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  letter-spacing: .16em;
  font-size: .85rem;
  color: rgba(154,201,255,.75);
  text-transform: uppercase;
}
.portfolio-counter span {
  display: inline-block;
  min-width: 1.6ch;
  text-align: center;
}
.portfolio-showcase__content {
  display: grid;
  gap: 1.4rem;
}
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.portfolio-tags span {
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,231,255,.28);
  background: rgba(0,231,255,.08);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(154,201,255,.82);
}
.portfolio-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .75rem;
  color: rgba(154,201,255,.82);
}
.portfolio-highlights li {
  position: relative;
  padding-left: 1.6rem;
}
.portfolio-highlights li::before {
  content: "⏺";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: .55rem;
  color: var(--brand-1);
  text-shadow: 0 0 8px rgba(0,231,255,.65);
}
.portfolio-showcase__content .btn {
  justify-self: flex-start;
}

@media (max-width: 1024px) {
  .portfolio-showcase {
    grid-template-columns: 1fr;
    padding: clamp(2rem, 6vw, 3.2rem);
  }
  .portfolio-showcase__media {
    order: 2;
    align-items: center;
    gap: 1.2rem;
  }
  .portfolio-showcase__content {
    order: 1;
    gap: 1.2rem;
    text-align: center;
  }
  .portfolio-frame { height: clamp(260px, 46vw, 420px); }
  .portfolio-controls { align-self: center; width: 100%; justify-content: center; }
}

#temoignages .carousel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: 2.4rem 2.6rem 3.4rem;
  background: linear-gradient(160deg, rgba(0,231,255,.08), transparent 65%), rgba(9,12,21,.75);
}
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(90deg, rgba(5,7,12,.95), transparent);
}
.carousel::after {
  right: 0;
  transform: scaleX(-1);
}
.carousel::before { left: 0; }
.carousel-track {
  display: flex;
  gap: 1.6rem;
  transition: transform .7s cubic-bezier(.6, .01, .22, 1);
  will-change: transform;
}
.carousel[data-continuous="true"] .carousel-track {
  transition: none;
}
.carousel-item {
  flex: 0 0 calc((100% - 3.2rem) / 3);
  max-width: calc((100% - 3.2rem) / 3);
  min-width: 0;
  display: flex;
  transform: none;
  opacity: 1;
  transition: transform .6s ease, opacity .6s ease, filter .6s ease;
}
.carousel-item.is-active {
  transform: none;
  filter: saturate(1.05);
}
.carousel-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(13,17,28,.94);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.4rem;
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
}
.carousel-inner::after {
  content: "";
  position: absolute;
  inset: -12% -20% 38% -20%;
  background: radial-gradient(circle at 80% 20%, rgba(0,231,255,.18), transparent 62%);
  opacity: .7;
  pointer-events: none;
}
.carousel-inner:hover { transform: translateY(-4px); }

.carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  z-index: 5;
}
.carousel[data-continuous="true"] .carousel-dots {
  display: none;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(154,201,255,.45);
  opacity: .6;
  cursor: pointer;
  transition: width .25s ease, opacity .25s ease, background .25s ease;
}
.carousel-dot.is-active {
  opacity: 1;
  width: 28px;
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
}

.testimonial { min-height: 260px; display: flex; flex-direction: column; gap: 1.4rem; }
.testimonial blockquote { font-size: 1.05rem; color: rgba(230,249,255,.88); margin: 0; }
.testimonial footer { display: flex; flex-direction: column; gap: .2rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--text); }
.testimonial small { color: rgba(154,201,255,.8); }

#contact .cta-box {
  background: linear-gradient(120deg, rgba(0,231,255,.16), rgba(255,55,203,.18));
  border-radius: calc(var(--radius) + 4px); padding: 3rem;
  border: 1px solid rgba(255,255,255,.1); display: grid; gap: 1.4rem;
  justify-items: center; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
#contact .cta-box p { color: rgba(230,249,255,.86); max-width: 52ch; }

footer { border-top: 1px solid rgba(255,255,255,.05); background: #0A0C14; padding: 2rem 0; text-align: left; color: var(--muted); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-content p { margin: 0; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,231,255,.35), transparent 55%), #0b0f1a;
  box-shadow: 0 0 18px rgba(0,231,255,.28), 0 0 22px rgba(255,55,203,.2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,231,255,.55)) drop-shadow(0 0 12px rgba(255,55,203,.4));
}
.footer-links,
.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links a,
.footer-link {
  color: var(--muted);
  font-size: .95rem;
  transition: color .3s ease;
}
.footer-links a:hover,
.footer-link:hover {
  color: var(--text);
}
.footer-link {
  font-weight: 600;
}
.legal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px; border: 1.5px solid rgba(0,231,255,.35);
  background: transparent; color: var(--text); padding: .58rem 1.2rem;
  font-weight: 600; cursor: pointer; transition: background .25s ease, border-color .25s ease, transform .25s ease;
  text-decoration: none;
}
.legal-btn:hover { background: rgba(0,231,255,.12); border-color: rgba(0,231,255,.55); transform: translateY(-1px); }

.legal-modal {
  position: fixed; inset: 0; background: rgba(5,6,10,.82); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 2rem; z-index: 190;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.legal-modal.is-open { opacity: 1; pointer-events: auto; }
.legal-modal__dialog {
  width: min(660px, 92vw); background: rgba(13,17,28,.95); border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 70px rgba(0,0,0,.58);
  padding: 2.2rem; display: grid; gap: 1.2rem; color: var(--text);
}
.legal-modal__dialog h2 { margin: 0; font-size: 1.55rem; }
.legal-modal__dialog p { margin: 0; color: rgba(230,249,255,.8); line-height: 1.6; }
.legal-close { justify-self: end; border: none; background: transparent; color: rgba(230,249,255,.75); font-weight: 700; cursor: pointer; padding: .4rem .8rem; }
.legal-close:hover { color: var(--text); }
.legal-modal__actions {
  margin-top: .6rem;
  display: flex;
  justify-content: flex-start;
}

body[data-page="legal"] main {
  padding: 5rem 0 6rem;
}
.legal-hero {
  width: min(920px, 92%);
  margin: 0 auto;
  padding: 4rem 0 2rem;
  display: grid;
  gap: 1.2rem;
}
.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 1.4rem + 1.8vw, 3rem);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
  color: rgba(230,249,255,.78);
  font-weight: 600;
}
.legal-meta time {
  color: #fff;
}
.legal-summary {
  margin-top: 1.4rem;
  padding: 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--card-border);
  background: rgba(13,17,28,.92);
  box-shadow: 0 20px 36px rgba(0,0,0,.45);
  display: grid;
  gap: 1rem;
}
.legal-summary h2 {
  margin: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(154,201,255,.88);
}
.legal-summary ol {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: .4rem;
}
.legal-summary li {
  color: rgba(230,249,255,.85);
  line-height: 1.5;
}
.legal-summary a {
  color: inherit;
  font-weight: 600;
  position: relative;
}
.legal-summary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: .25;
  transition: opacity .3s ease;
}
.legal-summary a:hover::after {
  opacity: .65;
}
.legal-section {
  width: min(920px, 92%);
  margin: 0 auto;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  display: grid;
  gap: 1rem;
}
.legal-section:first-of-type {
  border-top: none;
  padding-top: 2rem;
}
.legal-section h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(120deg, rgba(0,231,255,.95), rgba(255,55,203,.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-section p,
.legal-section li {
  color: rgba(230,249,255,.82);
}
.legal-section ul {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: .35rem;
}
.legal-section strong {
  color: #fff;
}
.legal-section a {
  color: rgba(0,231,255,.88);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-video video {
    animation: none !important;
  }
}
.legal-note {
  border-left: 3px solid rgba(0,231,255,.45);
  padding: .6rem 1rem;
  border-radius: calc(var(--radius) - 8px);
  background: rgba(13,17,28,.85);
  color: rgba(230,249,255,.78);
}

.chatbot {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 95;
  display: flex; flex-direction: column; align-items: flex-end; gap: .8rem;
  pointer-events: none;
}
.chatbot .chatbot-toggle { pointer-events: auto; }
.chatbot[data-open="true"] { pointer-events: auto; }
.chatbot-toggle {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  border: none; color: #051124; font-weight: 700; padding: .85rem 1.2rem;
  border-radius: 999px; cursor: pointer; box-shadow: 0 20px 40px rgba(0, 231, 255, .25);
  display: inline-flex; align-items: center; gap: .55rem;
}
.chatbot-toggle span { display: inline-flex; width: 10px; height: 10px; border-radius: 50%; background: rgba(5,17,36,.8); position: relative; }
.chatbot-toggle span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .7);
  animation: ping 1.6s ease-out infinite; opacity: .6;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }
.chatbot-window {
  width: clamp(280px, 32vw, 360px); max-height: 520px; background: rgba(13,17,28,.94);
  border-radius: 20px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 70px rgba(0,0,0,.55);
  display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(.97); transition: opacity .3s ease, transform .3s ease;
}
.chatbot[data-open="true"] .chatbot-window { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chatbot-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(9,11,18,.9); }
.chatbot-header h3 { margin: 0; font-size: 1rem; }
.chatbot-messages { padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; overflow-y: auto; scrollbar-width: thin; }
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(0,231,255,.35); border-radius: 999px; }
.chat-message { padding: .8rem 1rem; border-radius: 16px; max-width: 80%; font-size: .95rem; line-height: 1.45; }
.chat-message.bot { background: rgba(0,231,255,.12); border: 1px solid rgba(0,231,255,.25); align-self: flex-start; }
.chat-message.user { background: rgba(255,55,203,.16); border: 1px solid rgba(255,55,203,.28); align-self: flex-end; }
.chatbot-form { display: flex; gap: .6rem; padding: 1.1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.08); background: rgba(9,11,18,.9); }
.chatbot-form input { flex: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(5,7,12,.9); padding: .7rem 1rem; color: var(--text); font-size: .93rem; }
.chatbot-form button { border-radius: 999px; border: none; background: linear-gradient(120deg, var(--brand-2), var(--brand-1)); color: #051124; font-weight: 700; padding: .7rem 1.1rem; cursor: pointer; }

@media (max-width: 860px) {
  body.nav-enhanced .nav {
    position: relative;
    align-items: center;
    gap: 1rem;
  }
  body.nav-enhanced .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 120;
  }
  body.nav-enhanced .menu {
    position: absolute;
    top: calc(100% + .75rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(0,231,255,.18);
    background: rgba(9,12,21,.94);
    box-shadow: 0 24px 54px rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 110;
  }
  body.nav-enhanced .menu[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  body.nav-enhanced .menu a,
  body.nav-enhanced .menu .btn {
    width: 100%;
    justify-content: center;
  }
  body.nav-enhanced .menu .btn {
    text-align: center;
  }
  #a-propos .about-layout { grid-template-columns: 1fr; }
  .nav-chatbot {
    display: inline-flex;
    z-index: 120;
    margin-left: .6rem;
  }
  .chatbot { right: .9rem; bottom: .9rem; }
  .chatbot .chatbot-toggle { display: none; }
}
@media (max-width: 960px) {
  #notre-procede .process-grid[data-process-ready="true"] {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .process-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
  }
  .process-nav__btn {
    flex: 1 1 calc(50% - .6rem);
  }
}
@media (max-width: 640px) {
  .process-nav {
    flex-direction: column;
  }
  .process-nav__btn {
    flex: 1 1 auto;
    width: 100%;
  }
}
@media (max-width: 1024px) {
  #temoignages .carousel { padding: 2.2rem 2rem 3.2rem; }
  .carousel-track { gap: 1.2rem; }
  .carousel-item {
    flex: 0 0 calc((100% - 1.2rem) / 2);
    max-width: calc((100% - 1.2rem) / 2);
  }
}
@media (max-width: 640px) {
  section { padding: 4rem 0; }
  #temoignages .carousel { padding: 2rem 1.4rem 3rem; }
  .carousel-track { gap: 1rem; }
  .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .carousel-dots { bottom: .6rem; }
  .chatbot-window { width: min(95vw, 320px); }
  .chatbot {
    right: calc(env(safe-area-inset-right, 0px) + 1rem);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    gap: .6rem;
    flex-direction: column-reverse;
    align-items: flex-end;
  }
  .chatbot-toggle {
    padding: .78rem 1rem;
    align-self: flex-end;
  }
  .legal-modal__dialog { padding: 1.6rem; }
  .cta {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .portfolio-showcase {
    padding: 1.6rem;
    gap: 1.2rem;
  }
  .portfolio-showcase__media {
    gap: 1rem;
  }
  .portfolio-frame {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
  .portfolio-controls {
    width: 100%;
    justify-content: space-between;
    gap: .8rem;
  }
  .portfolio-nav {
    flex: 1 1 48px;
    width: auto;
    min-width: 52px;
  }
  .portfolio-counter {
    flex: 1 1 auto;
    justify-content: center;
  }
  .portfolio-showcase__content {
    text-align: left;
    gap: 1rem;
  }
  .portfolio-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  body[data-page="legal"] main {
    padding: 3.6rem 0 4.4rem;
  }
  .legal-hero {
    padding: 3rem 0 1.6rem;
    gap: 1rem;
  }
  .legal-summary {
    padding: 1.2rem;
  }
  .legal-section {
    padding: 2.2rem 0;
  }
}

@media (max-width: 420px) {
  .portfolio-controls {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }
  .portfolio-counter {
    order: -1;
  }
  .legal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
  }
  .legal-summary ol {
    padding-left: 1rem;
  }
}
