:root {
  --bg: #061018;
  --bg-elevated: #0e1822;
  --ink: #f3f7fb;
  --muted: #9eb0c2;
  --line: rgba(243, 247, 251, 0.14);
  --accent: #d4af37;
  --accent-soft: rgba(212, 175, 55, 0.2);
  --ice: #8fd6ef;
  --max: 44rem;
  --font-display: "Onest", sans-serif;
  --font-body: "Onest", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  background: var(--bg);
}

body:not(.home) {
  background: transparent;
}

body:not(.home)::before,
body:not(.home)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body:not(.home)::before {
  z-index: -2;
  background: url("banniere.webp") center / cover no-repeat;
  filter: blur(7px) saturate(1.05);
  transform: scale(1.06);
}

body:not(.home)::after {
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(6, 16, 24, 0.55), rgba(6, 16, 24, 0.82) 65%),
    rgba(6, 16, 24, 0.72);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #e8c65a;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.site-header--solid {
  position: sticky;
  backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(6, 16, 24, 0.55);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(calc(100% - 2.5rem), 68rem);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.lang a,
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(243, 247, 251, 0.7);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  min-width: 2.1rem;
  min-height: 1.85rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang a:hover,
.lang button:hover {
  color: #fff;
}

.lang a[aria-current="true"],
.lang button[aria-pressed="true"] {
  color: #1a1406;
  background: linear-gradient(135deg, #f0d36a, #c9a227);
}

.lang--home {
  margin: 0 auto 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(243, 247, 251, 0.78);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.nav a[aria-current="page"] {
  color: #1a1406;
  background: linear-gradient(135deg, #f0d36a, #c9a227);
  border-color: rgba(255, 236, 170, 0.4);
}

.nav__full {
  display: none;
}

.nav__short {
  display: inline;
}

/* —— Accueil —— */
.home {
  min-height: 100svh;
}

.home-main {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1.5rem;
}

.home-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: drift 18s ease-in-out infinite alternate;
}

.home-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(6, 16, 24, 0.35), rgba(6, 16, 24, 0.82) 70%),
    linear-gradient(180deg, rgba(6, 16, 24, 0.45), rgba(6, 16, 24, 0.75));
}

.home-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 40%, rgba(8, 18, 28, 0.45));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(1.15);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.home-logo {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.home-kicker {
  margin: 0 0 0.2rem;
  color: var(--ice);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home-panel h1 span {
  color: var(--accent);
}

.cta-row {
  display: grid;
  gap: 0.7rem;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 5vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.btn span {
  position: relative;
  z-index: 1;
}

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

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

.btn--glass-gold {
  color: #1a1406;
  background:
    linear-gradient(135deg, #f0d36a, #c9a227 55%, #a8861a);
  border-color: rgba(255, 236, 170, 0.55);
  box-shadow:
    0 10px 28px rgba(201, 162, 39, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--glass-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn--glass-gold:hover {
  color: #1a1406;
  box-shadow:
    0 14px 34px rgba(201, 162, 39, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--glass-gold:hover::before {
  transform: translateX(120%);
}

.btn--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn--glass:hover {
  color: #fff;
  border-color: rgba(143, 214, 239, 0.55);
  background: rgba(143, 214, 239, 0.14);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(143, 214, 239, 0.18);
}

/* fallbacks used on legal pages if needed */
.btn--primary {
  background: var(--accent);
  color: #14110a;
}

.btn--primary:hover {
  background: #e0c35a;
  color: #14110a;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(7, 11, 16, 0.28);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: rgba(201, 162, 39, 0.55);
  color: var(--accent);
}

.legal {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 1.25rem auto 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background: rgba(6, 16, 24, 0.58);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  animation: rise 0.65s ease both;
}

.legal__meta {
  margin: 0.85rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal section + section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.legal h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: #d3dde8;
}

.legal p {
  margin: 0 0 1rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.45rem;
}

.legal li::marker {
  color: var(--accent);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: rgba(6, 16, 24, 0.45);
  backdrop-filter: blur(10px);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

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

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@media (min-width: 721px) {
  .nav__full {
    display: inline;
  }

  .nav__short {
    display: none;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header-top {
    flex: 1;
  }

  .nav {
    width: auto;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    gap: 0.75rem;
    padding: 0.9rem 0;
  }

  .brand {
    font-size: 0.98rem;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
  }

  .nav a {
    min-height: 2.55rem;
    padding: 0.55rem 0.5rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .legal {
    padding-top: 1.75rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .home-brand {
    flex-direction: column;
    text-align: center;
  }

  .home-panel {
    padding: 1.25rem 1rem 1.15rem;
    border-radius: 1rem;
  }

  .home-logo {
    width: 3.8rem;
    height: 3.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-bg,
  .home-panel,
  .legal,
  .btn,
  .btn--glass-gold::before {
    animation: none;
    transition: none;
  }
}
