:root {
  --red: #d00010;
  --red-deep: #9a000c;
  --ink: #1a1a1a;
  --muted: #4a4f57;
  --paper: #f7f4ef;
  --foam: #ffffff;
  --sea: #d9e4ec;
  --sea-deep: #b7c9d6;
  --shadow: 0 18px 40px rgba(26, 26, 26, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #fff 0%, var(--paper) 48%, var(--sea) 100%);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.glow-a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -8%;
  right: -8%;
  background: rgba(208, 0, 16, 0.18);
  animation: drift 14s var(--ease) infinite alternate;
}

.glow-b {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  bottom: 8%;
  left: -10%;
  background: rgba(120, 160, 185, 0.35);
  animation: drift 18s var(--ease) infinite alternate-reverse;
}

.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(120px, 22vh, 220px);
}

.wave {
  fill: var(--sea-deep);
}

.wave-1 {
  opacity: 0.35;
  animation: swell 10s ease-in-out infinite alternate;
}

.wave-2 {
  opacity: 0.55;
  animation: swell 13s ease-in-out infinite alternate-reverse;
}

.topbar,
.stage,
.foot {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0;
}

.lang {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.lang-btn {
  appearance: none;
  border: 0;
  min-width: 2.75rem;
  padding: 0.45rem 0.7rem;
  background: transparent;
  color: var(--muted);
  font: 600 0.85rem/1 var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-btn.is-active {
  background: var(--red);
  color: var(--foam);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.stage {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 2.5rem) 0 clamp(2rem, 6vh, 4rem);
  display: grid;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  align-content: center;
  min-height: calc(100vh - 7rem);
}

.brand {
  text-align: center;
  animation: rise 0.9s var(--ease) both;
}

.logo-mark {
  display: block;
  width: min(280px, 58%);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 10px 24px rgba(208, 0, 16, 0.12));
}

.brand h1,
.brand-heading {
  margin: 0 auto 0.85rem;
  max-width: 38rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--red);
  letter-spacing: -0.01em;
  text-align: center;
}

html[lang="fr"] .brand-heading,
html[lang="es"] .brand-heading {
  font-size: clamp(1.05rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  white-space: normal;
  max-width: min(100%, 40rem);
}

.actions-section {
  display: grid;
  gap: 0.85rem;
}

.actions-section h2 {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.action {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  animation: rise 0.9s var(--ease) both;
}

.action:nth-child(1) { animation-delay: 0.12s; }
.action:nth-child(2) { animation-delay: 0.22s; }
.action:nth-child(3) { animation-delay: 0.32s; }

.action-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.action-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
}

.action-hint {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.35;
}

.action:hover,
.action:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(208, 0, 16, 0.35);
}

.action:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.action-main {
  background: linear-gradient(145deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--foam);
  border-color: transparent;
  padding: 1.45rem 1.35rem;
  order: -1;
}

.action-main .action-kicker,
.action-main .action-hint {
  color: rgba(255, 255, 255, 0.82);
}

.action-main .action-title {
  font-size: clamp(1.55rem, 3.4vw, 2rem);
}

.action-main:hover,
.action-main:focus-visible {
  background: linear-gradient(145deg, #e01020 0%, var(--red) 100%);
}

.foot {
  text-align: center;
  padding: 0 1rem 1.5rem;
}

.foot p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-meta {
  margin-top: 0.35rem !important;
  font-size: 0.78rem !important;
  opacity: 0.85;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--red);
  color: var(--foam);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.noscript {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  text-align: center;
}

@media (min-width: 820px) {
  .actions {
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: stretch;
    gap: 1rem;
  }

  .action-main {
    order: 0;
    transform: translateY(-8px);
  }

  .action-main:hover,
  .action-main:focus-visible {
    transform: translateY(-12px);
  }

  .action-side {
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-24px, 18px); }
}

@keyframes swell {
  from { transform: translateX(0); }
  to { transform: translateX(-3%); }
}
