:root {
  --bg: #181a21;
  --card-bg: #11131a;
  --accent: #ffffff;
  --accent-soft: #e5e7eb;
  --accent-muted: #9ca3af;
  --btn-bg: #ffffff;
  --btn-text: #111827;
  --btn-border: #e5e7eb;
  --btn-hover-bg: #e5e7eb;
  --input-bg: #0b0d12;
  --input-border: #272a35;
  --shadow-soft: 0 1.5rem 3.75rem rgba(0, 0, 0, 0.65);
  --radius-lg: 1.5rem;
  --radius-md: 0.875rem;
  --hero-y-shift: clamp(0rem, (100vh - 45rem) / 20, 3rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--accent);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

.page {
  width: min(98vw, 107.5rem);
  margin: 0 auto;
  padding: 1.25rem clamp(0.75rem, 2.5vw, 1.75rem) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Header */
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  font-family: "Google Sans", "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.25rem; /* aligné sur la sidebar */
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: #8A5CFF;
}

.brand-logo-img {
  width: 2.15rem;
  height: auto;
  object-fit: contain;
  filter: none;
}
.brand-name {
  letter-spacing: 0;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d7dce3;
  letter-spacing: 0.005em;
}

.nav a {
  position: relative;
  padding-bottom: 0.125rem;
}

.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.0625rem;
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  justify-self: end;
  margin-left: 1.75rem;
}

.btn-ghost {
  border-radius: 62.4375rem;
  padding: 0.375rem 0.875rem;
  border: 0.0625rem solid #374151;
  background: transparent;
  color: var(--accent-soft);
  font-size: 0.8125rem;
  cursor: pointer;
}

.btn-primary-small {
  border-radius: 0.75rem;
  padding: 0.625rem 1.375rem;
  border: none;
  background: #6040b2;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary-small:hover {
  background: #52369d;
}

/* Hero Layout */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: 1.25rem;
  min-height: calc(100vh - 5.5rem);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: clamp(3rem, 7vw, 8rem);
  transform: translateY(calc(-2.5rem + var(--hero-y-shift)));
}

.headline-wrapper {
  max-width: 32.5rem;
}

.headline-main {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 1.125rem;
}

.headline-sub {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.125rem;
  color: var(--accent-soft);
}

.headline-sub span {
  color: var(--accent);
}

/* Auth Card */
.auth-card {
  margin-top: 0.25rem;
  max-width: 26.25rem;
  background: radial-gradient(circle at top left, #1f2933 0, #11131a 52%);
  border-radius: 1.75rem;
  padding: 1.375rem 1.375rem 1.125rem;
  box-shadow: var(--shadow-soft);
  border: 0.0625rem solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(1.25rem);
  -webkit-backdrop-filter: blur(1.25rem); /* Safari */
}
@supports not ((backdrop-filter: blur(1.25rem)) or (-webkit-backdrop-filter: blur(1.25rem))) {
  /* Fallback Firefox / anciens Safari : fond plus opaque pour garder le contraste */
  .auth-card {
    background: rgba(17, 19, 26, 0.96);
    box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.55);
  }
}

.auth-title {
  font-size: 0.8125rem;
  color: var(--accent-muted);
  margin-bottom: 0.625rem;
}
.auth-title .free-mark{
  color:#ffffff;
  font-weight:700;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 62.4375rem;
  border: 0.0625rem solid var(--btn-border);
  padding: 0.6875rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-google-highlight {
  border-color: rgba(96, 64, 178, 0.9);
  box-shadow:
    0 0 0 0.15rem rgba(96, 64, 178, 0.8),
    0 0.875rem 2.1875rem rgba(96, 64, 178, 0.4);
  animation: btnGoogleFlash 0.9s ease;
}

@keyframes btnGoogleFlash {
  0% {
    transform: translateY(0);
    box-shadow:
      0 0 0 0.05rem rgba(96, 64, 178, 0.55),
      0 0.35rem 0.9rem rgba(96, 64, 178, 0.25);
  }
  50% {
    transform: translateY(-0.03125rem);
    box-shadow:
      0 0 0 0.25rem rgba(96, 64, 178, 0.85),
      0 0.9rem 2.2rem rgba(96, 64, 178, 0.45);
  }
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 0 0.15rem rgba(96, 64, 178, 0.8),
      0 0.875rem 2.1875rem rgba(96, 64, 178, 0.4);
  }
}

.btn-google:hover {
  background: var(--btn-hover-bg);
  box-shadow: 0 0.875rem 2.1875rem rgba(0, 0, 0, 0.35);
  transform: translateY(-0.03125rem);
}

.btn-google:active {
  transform: translateY(0);
  box-shadow: 0 0.625rem 1.5rem rgba(0, 0, 0, 0.3);
}

.google-icon {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.1875rem;
  background: url("../img/logos/google-icon.svg") center/contain no-repeat;
}

.auth-footer {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--accent-muted);
  line-height: 1.5;
}

.auth-footer a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.1875rem;
}

/* Right side video */
.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: clamp(2rem, 7vw, 8rem);
}

.video-frame {
  width: 100%;
  max-width: clamp(24rem, 50vw, 34rem);
  max-height: clamp(24rem, 72vh, 40rem);
  aspect-ratio: 4 / 5;
  background: #05060a;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 0.0625rem solid rgba(148, 163, 184, 0.28);
  position: relative;
  margin-right: clamp(-2rem, -7vw, -10rem);
  transform: translate(
    clamp(-1.5rem, -3vw, -0.75rem),
    calc(-2rem + var(--hero-y-shift))
  );
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Small footer note */
.page-footer {
  margin-top: 2.5rem;
  font-size: 0.6875rem;
  color: var(--accent-muted);
  text-align: center;
}
