/* =========================================================
   Crypto.com — Design system
   Base : tokens, reset, composants partagés, header, footer,
          sélecteur de langue, toasts, animations
   ========================================================= */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #070b14;
  --bg-soft: #0a1020;
  --surface: #0e1728;
  --surface-2: #121e33;
  --surface-3: #17253e;
  --surface-glass: rgba(12, 19, 34, 0.72);

  /* Bordures */
  --line: rgba(148, 163, 184, 0.11);
  --line-strong: rgba(148, 163, 184, 0.2);
  --line-brand: rgba(17, 153, 250, 0.38);

  /* Texte */
  --text: #f4f7fc;
  --text-soft: #c3cddf;
  --muted: #8794ab;
  --muted-2: #64708a;

  /* Marque */
  --brand: #1199fa;
  --brand-soft: #4db4ff;
  --brand-deep: #0b7bd1;
  --violet: #7c5cff;
  --brand-grad: linear-gradient(118deg, #1199fa 0%, #5b8cff 48%, #8b5cf6 100%);
  --brand-grad-soft: linear-gradient(118deg, rgba(17, 153, 250, 0.16), rgba(139, 92, 246, 0.16));

  /* États */
  --green: #2ed47a;
  --green-soft: rgba(46, 212, 122, 0.12);
  --red: #ff5c6c;
  --red-soft: rgba(255, 92, 108, 0.12);
  --gold: #f5c451;

  /* Divers */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --header-h: 72px;

  --shadow-sm: 0 2px 8px rgba(2, 6, 16, 0.4);
  --shadow-md: 0 18px 40px -18px rgba(2, 6, 16, 0.75);
  --shadow-lg: 0 40px 80px -32px rgba(2, 6, 16, 0.9);
  --glow: 0 12px 40px -12px rgba(17, 153, 250, 0.65);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ----------------------------- Police de marque ----------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
}

/* ----------------------------- Reset ----------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.is-locked,
html:has(body.is-locked),
body.is-locked {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(17, 153, 250, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #22304a;
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #2f4366;
}

/* ----------------------------- Layout ----------------------------- */

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(880px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}

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

.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------- Boutons ----------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  will-change: transform;
  isolation: isolate;
}

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

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  --btn-bg: var(--brand-grad);
  --btn-fg: #fff;
  background-size: 160% 100%;
  background-position: 0% 50%;
  box-shadow: var(--glow);
  transition:
    background-position 0.5s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 18px 50px -12px rgba(76, 124, 255, 0.8);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.34);
}

.btn-outline {
  --btn-bg: transparent;
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.btn-outline:hover {
  color: var(--text);
  border-color: var(--brand);
  background: rgba(17, 153, 250, 0.08);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: 40px;
  padding-inline: 18px;
  font-size: 14px;
}

.btn-lg {
  height: 56px;
  padding-inline: 30px;
  font-size: 16px;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

/* Lien fléché */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-soft);
  font-weight: 600;
  font-size: 14px;
}

.link-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

[dir="rtl"] .link-arrow .icon {
  transform: scaleX(-1);
}

[dir="rtl"] .link-arrow:hover .icon {
  transform: scaleX(-1) translateX(4px);
}

/* ----------------------------- Header ----------------------------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-block-end: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 11, 20, 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-block-end-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: 124px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link .icon {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  transition: transform 0.25s var(--ease);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.lang-btn .icon {
  width: 17px;
  height: 17px;
  opacity: 0.8;
}

.lang-btn .lang-code {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.burger span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), inset-block-start 0.3s var(--ease);
}

.burger span::before {
  inset-block-start: -5px;
}
.burger span::after {
  inset-block-start: 5px;
}

.site-header.is-open .burger span {
  background: transparent;
}
.site-header.is-open .burger span::before {
  inset-block-start: 0;
  transform: rotate(45deg);
}
.site-header.is-open .burger span::after {
  inset-block-start: 0;
  transform: rotate(-45deg);
}

/* Drawer mobile */
.mobile-nav {
  display: none;
}

/* ----------------------------- Footer ----------------------------- */

.site-footer {
  position: relative;
  border-block-start: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(17, 153, 250, 0.07), transparent 60%),
    var(--bg);
  padding-block: 64px 32px;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-block-end: 48px;
  border-block-end: 1px solid var(--line);
}

.footer-brand img {
  width: 124px;
  margin-block-end: 18px;
}

.footer-tagline {
  max-width: 28ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-block-end: 16px;
  font-weight: 600;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a,
.footer-col button {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.2s;
  text-align: start;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--brand-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block-start: 28px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--text);
}

.footer-disclaimer {
  margin-block-start: 24px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-2);
  max-width: 95ch;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted-2);
}

/* ----------------------------- Modale de langue ----------------------------- */

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.lang-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lang-panel {
  width: min(780px, 100%);
  max-height: min(92dvh, 880px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(110% 70% at 0% 0%, rgba(17, 153, 250, 0.16), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(139, 92, 246, 0.14), transparent 55%),
    linear-gradient(180deg, #101a2d, #0a1120);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: translateY(22px) scale(0.975);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
  overflow: hidden;
}

.lang-overlay.is-open .lang-panel {
  transform: none;
  opacity: 1;
}

.lang-head {
  padding: 30px 30px 18px;
}

.lang-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lang-globe {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-grad-soft);
  border: 1px solid var(--line-brand);
  color: var(--brand-soft);
  margin-block-end: 16px;
}

.lang-globe .icon {
  width: 22px;
  height: 22px;
}

.lang-title {
  font-size: clamp(22px, 3vw, 28px);
  margin-block-end: 8px;
}

.lang-subtitle {
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
}

.lang-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex: none;
}

.lang-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line);
}

.lang-search-wrap {
  position: relative;
  margin-block-start: 20px;
}

.lang-search-wrap .icon {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.lang-search {
  width: 100%;
  height: 46px;
  padding-inline: 42px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-search::placeholder {
  color: var(--muted-2);
}

.lang-search:focus {
  border-color: transparent;
  background: none;
  box-shadow: none;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 30px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.lang-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  text-align: start;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease);
}

.lang-opt:hover {
  background: rgba(17, 153, 250, 0.08);
  border-color: rgba(17, 153, 250, 0.3);
  transform: translateY(-1px);
}

.lang-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(17, 153, 250, 0.22);
  background: rgba(17, 153, 250, 0.1);
  color: #7cc8ff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-opt:hover .lang-badge {
  border-color: rgba(17, 153, 250, 0.4);
  background: rgba(17, 153, 250, 0.16);
}

.lang-opt.is-selected .lang-badge {
  border-color: rgba(17, 153, 250, 0.55);
  background: rgba(17, 153, 250, 0.2);
  color: #d6efff;
}

.lang-opt .lang-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.lang-opt .lang-name strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-opt .lang-name span {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-opt .check {
  margin-inline-start: auto;
  width: 17px;
  height: 17px;
  color: var(--brand-soft);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}

.lang-opt[aria-selected="true"] {
  border-color: var(--line-brand);
  background: linear-gradient(120deg, rgba(17, 153, 250, 0.14), rgba(124, 92, 255, 0.1));
  box-shadow: 0 0 0 1px rgba(17, 153, 250, 0.18) inset;
}

.lang-opt[aria-selected="true"] .check {
  opacity: 1;
  transform: none;
}

.lang-empty {
  grid-column: 1 / -1;
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.lang-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 30px;
  border-block-start: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.35);
}

.lang-foot .lang-selected-note {
  font-size: 13px;
  color: var(--muted);
}

.lang-foot .lang-selected-note strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* ----------------------------- Toasts ----------------------------- */

.toast-stack {
  position: fixed;
  inset-block-end: 26px;
  inset-inline: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(480px, 100%);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(20, 31, 52, 0.95);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  animation: toast-in 0.45s var(--ease) forwards;
}

.toast.is-out {
  animation: toast-out 0.35s var(--ease) forwards;
}

.toast .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex: none;
}

.toast.toast-info .icon {
  color: var(--brand-soft);
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* ----------------------------- Animations ----------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.spin {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(200%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes success-pop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    gap: 20px;
  }
  .main-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    inset-block-end: 0;
    flex-direction: column;
    gap: 4px;
    padding: 18px 24px 40px;
    background: rgba(7, 11, 20, 0.97);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
    overflow-y: auto;
    z-index: 55;
  }
  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mobile-nav .nav-link {
    height: 54px;
    padding-inline: 16px;
    font-size: 17px;
    border-radius: 14px;
    opacity: 0;
    transform: translateY(8px);
  }
  .mobile-nav.is-open .nav-link {
    animation: fade-up 0.4s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 55ms + 60ms);
  }
  .mobile-nav .mobile-actions {
    margin-block-start: 20px;
    padding-block-start: 20px;
    border-block-start: 1px solid var(--line);
    display: grid;
    gap: 10px;
  }
  .burger {
    display: flex;
  }
  .header-actions > .btn-ghost,
  .header-actions > .btn-primary {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .container,
  .container-narrow {
    width: calc(100% - 32px);
  }
  :root {
    --header-h: 64px;
  }
  .brand img {
    width: 108px;
  }
  .section {
    padding-block: 64px;
  }
  .lang-overlay {
    padding: 0;
    align-items: end;
  }
  .lang-panel {
    width: 100%;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    transform: translateY(40px);
  }
  .lang-head {
    padding: 24px 20px 14px;
  }
  .lang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 20px 20px;
    gap: 7px;
  }
  .lang-foot {
    padding: 14px 20px 20px;
    padding-block-end: max(20px, env(safe-area-inset-bottom));
  }
  .lang-foot .lang-selected-note {
    display: none;
  }
  .lang-foot .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal {
    gap: 14px;
  }
}

@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ----------------------------- Language selector (real site style) ----------------------------- */

.header-actions .lang-btn .lang-code {
  display: none;
}

.header-actions .lang-btn {
  width: auto;
  padding-inline: 10px;
}

.footer-bottom .lang-btn {
  height: 30px;
  gap: 7px;
  font-size: 11px;
}

.footer-bottom .lang-btn .lang-code {
  display: inline;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 600;
  color: #a0a9be;
}

.lang-sep {
  color: rgba(148, 163, 184, 0.35);
  font-size: 11px;
}

.lang-currency {
  font-size: 11px;
  font-weight: 600;
  color: #a0a9be;
}

.lang-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 14, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lang-panel {
  width: min(460px, 100%);
  max-height: min(84dvh, 760px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: #0c1524;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
  transform: translateY(14px) scale(0.985);
}

.lang-overlay.is-open .lang-panel {
  transform: none;
}

.lang-head {
  padding: 22px 22px 0;
}

.lang-head-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

.lang-title {
  font-size: 17px;
  font-weight: 600;
  color: #f7f9fa;
  text-align: center;
}

.lang-close {
  position: absolute;
  right: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 50%;
  color: #c3cddf;
  transform: translateY(-50%);
}

.lang-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-close .icon {
  width: 15px;
  height: 15px;
}

.lang-search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  margin-top: 17px;
  padding-inline: 13px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.lang-search-wrap:focus-within {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.lang-search-wrap .icon {
  position: static;
  inset: auto;
  transform: none;
  width: 16px;
  height: 16px;
  color: #8f9bb3;
}

.lang-search {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #f4f7fc;
  font: inherit;
  font-size: 13px;
}

.lang-search:focus {
  box-shadow: none;
  border: 0;
  background: none;
}

.lang-search::placeholder {
  color: #7b849b;
}

.lang-list {
  max-height: min(64dvh, 570px);
  padding: 8px 10px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #26344c transparent;
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 9px;
  background: none;
  text-align: start;
  transition: background 0.2s;
}

.lang-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.lang-row + .lang-row {
  border-top: 1px solid rgba(148, 163, 184, 0.07);
}

.lang-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lang-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f4f7fc;
}

.lang-row-region {
  overflow: hidden;
  font-size: 10.5px;
  color: #8f9bb3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-check {
  width: 16px;
  height: 16px;
  flex: none;
  margin-left: auto;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  border-radius: 50%;
}

.lang-row.is-selected .lang-check {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 4px #0c1524;
}

.lang-empty {
  padding: 20px;
  font-size: 12px;
  color: #8f9bb3;
  text-align: center;
}

@media (max-width: 720px) {
  .lang-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .lang-panel {
    width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
  }

  .lang-list {
    max-height: 64dvh;
  }
}

/* ----------------------------- Sélecteur langue / région (identique au site réel) ----------------------------- */

.lang-flag-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background: transparent;
  color: #a0a9be;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-flag-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lang-flag-btn .icon {
  width: 16px;
  height: 16px;
}

.lang-region-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 40px;
  background: transparent;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14px;
  color: #f7f9fa;
}

.lang-region-lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.lang-region-lang:hover {
  text-decoration: underline;
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 6px;
  padding: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  line-height: 0;
}

.lang-flag .icon {
  width: 16px;
  height: 16px;
  color: #a0a9be;
}

.lang-name {
  color: #f7f9fa;
}

.lang-region-sep {
  margin-inline: 2px;
  line-height: 0;
  color: #7b849b;
}

.lang-region-currency {
  padding: 0;
  border: 0;
  background: none;
  color: #f7f9fa;
  font: inherit;
  cursor: pointer;
}

.lang-region-currency:hover {
  text-decoration: underline;
}

/* header (light security page) */
.sec-page .lang-flag-btn {
  color: #c3cddf;
  border-color: rgba(148, 163, 184, 0.16);
}

.sec-page .lang-flag-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
