:root {
  --bg-top: #161c2b;
  --bg-mid: #0b0d12;
  --bg-bottom: #000000;
  --bg-deep: #03050a;
  --text: #ffffff;
  --muted: #cbd3df;
  --muted-2: #8a97a8;
  --line: rgba(108, 145, 205, 0.18);
  --line-strong: rgba(108, 145, 205, 0.3);
  --accent: #004793;
  --accent-strong: #0d5fbf;
  --accent-soft: #4d9bff;
  --accent-bright: #89c2ff;
  --logo-blue: #034db5; /* bleu exact du logo (assets/img/logo.svg) */
  --shadow: 0 18px 42px -10px rgba(77, 155, 255, 0.55);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.lca-theme-body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  background: #000;
  overflow-x: clip;
}

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

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

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.page,
.simple-page,
.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 44%, var(--bg-bottom) 82%, var(--bg-deep) 100%);
}

.page {
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.page::before,
.page::after,
.simple-page::before,
.simple-page::after,
.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.page::before,
.simple-page::before,
.auth-page::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 20%);
  opacity: 0.5;
}

.page::after,
.simple-page::after,
.auth-page::after {
  inset: 0;
  background: radial-gradient(40% 26% at 50% 34%, rgba(77, 155, 255, 0.08), transparent 74%);
  opacity: 0.55;
}

.site-header,
.topbar,
.hero-inner,
.auth-card,
.content-panel {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-wordmark-main {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--logo-blue);
}

.brand-wordmark-sub {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(14, 18, 27, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: #b3bac6;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-soft);
}

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 18px 0 24px;
}

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

.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3vh 8px 5vh;
}

.hero-grid {
  position: absolute;
  left: 50%;
  bottom: -8vh;
  width: min(1500px, 128vw);
  height: 96vh;
  transform: translateX(-50%) perspective(1400px) rotateX(72deg) scaleX(1.08);
  transform-origin: bottom center;
  background:
    linear-gradient(rgba(77, 155, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 155, 255, 0.18) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.62) 12%, rgba(0, 0, 0, 0.96) 56%, rgba(0, 0, 0, 0.76) 78%, transparent 100%);
  opacity: 0.72;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-left {
  left: 10%;
  top: 24%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(77, 155, 255, 0.06), transparent 74%);
  filter: blur(20px);
}

.hero-glow-right {
  right: 11%;
  top: 20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(77, 155, 255, 0.05), transparent 74%);
  filter: blur(22px);
}

.hero-mark {
  width: min(360px, 74vw);
  margin: -70px 0 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
  transform-origin: center;
  animation: logo-float 4.6s ease-in-out infinite;
}

.hero-mark img {
  width: 100%;
  height: auto;
  animation: logo-pulse 4.6s ease-in-out infinite;
}

.hero-title {
  max-width: 920px;
  margin: 30px 0 clamp(28px, 4.5vh, 44px);
  color: var(--logo-blue);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 0 28px rgba(77, 155, 255, 0.18), 0 10px 30px rgba(0, 71, 147, 0.28);
}

.secure-button,
.primary-button,
.primary-button-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.secure-button,
.primary-button,
.primary-button-link {
  border: 1px solid rgba(137, 194, 255, 0.22);
  /* degrade cale sur le bleu du logo (--logo-blue #034db5) */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, #0a5ed4 0%, var(--logo-blue) 45%, #023782 100%);
  color: #fff;
  text-transform: uppercase;
  box-shadow:
    0 18px 40px -10px rgba(3, 77, 181, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 10px 18px rgba(255, 255, 255, 0.08);
}

.btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.secure-button:hover,
.primary-button:hover,
.primary-button-link:hover,
.btn:hover {
  transform: translateY(-2px);
}

.secure-button:hover,
.primary-button:hover,
.primary-button-link:hover {
  color: #ffffff;
  box-shadow:
    0 22px 48px -14px rgba(77, 155, 255, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 9px 14px rgba(255, 255, 255, 0.07);
}

.secure-button-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
  flex: 0 0 auto;
}

.secure-button:hover .secure-button-icon,
.secure-button:focus-visible .secure-button-icon {
  color: #d9ecff;
}

.secure-button-icon svg {
  width: 18px;
  height: 18px;
}

.site-footer {
  padding: 16px 0 34px;
  position: relative;
  z-index: 1;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* les liens du footer héritent d'un bleu du thème parent : on force le blanc */
.footer-row a,
.footer-row a:hover,
.footer-row a:focus {
  color: var(--text);
}

.footer-separator {
  opacity: 0.4;
}

.wrap-narrow,
.wrap-wide {
  width: min(calc(100% - 32px), 1040px);
  margin: 0 auto;
  padding: 32px 0 48px;
  position: relative;
  z-index: 1;
}

.wrap-narrow {
  max-width: 860px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.content-panel,
.auth-card {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(12, 18, 31, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.content-panel {
  padding: 34px;
}

.content-panel-spaced > * + * {
  margin-top: 14px;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 480px);
  padding: 34px;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 14px rgba(137, 194, 255, 0.7);
}

.content-title,
.auth-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
}

.content-copy,
.content-copy p,
.legal-stack,
.legal-stack p,
.auth-copy,
.help-text {
  color: var(--muted);
  line-height: 1.72;
}

.wp-content > *:first-child {
  margin-top: 0;
}

.wp-content > *:last-child {
  margin-bottom: 0;
}

.wp-content p,
.wp-content ul,
.wp-content ol {
  margin: 0 0 1rem;
}

.wp-content h2,
.wp-content h3,
.wp-content h4 {
  margin: 1.4rem 0 0.8rem;
  line-height: 1.2;
}

.wp-content a {
  color: var(--accent-bright);
}

.lca-wp-simple {
  padding-top: 24px;
}

.lca-wp-blank {
  padding-top: 24px;
}

.lca-free-content > *:first-child {
  margin-top: 0;
}

.lca-free-content > *:last-child {
  margin-bottom: 0;
}

.legal-stack ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.field-input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(5, 10, 20, 0.9);
  color: var(--text);
  font: inherit;
}

.field-input:focus {
  outline: 2px solid rgba(77, 155, 255, 0.22);
  border-color: var(--accent-soft);
}

.error-box {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(140, 188, 255, 0.3);
  border-radius: 14px;
  background: rgba(77, 155, 255, 0.1);
  color: #ddebff;
  font-size: 14px;
  font-weight: 600;
}

code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1.018) rotate(-0.8deg);
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    opacity: 0.94;
    filter: drop-shadow(0 0 0 rgba(77, 155, 255, 0));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(77, 155, 255, 0.24));
  }
}

@media (min-width: 700px) {
  .container,
  .wrap-narrow,
  .wrap-wide {
    width: min(calc(100% - 48px), 1040px);
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(6px, 2vw, 20px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    min-height: 44px;
    padding: 9px 6px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .hero {
    padding: 0 0 4vh;
  }

  .hero-grid {
    bottom: -10vh;
    height: 104vh;
  }

  .site-footer {
    padding-bottom: 42px;
  }
}
