/* sport-journal-fr.org — sand_forest palette */
:root {
  --bg: #FAF8F2;
  --surface: #FFFFFF;
  --surface-alt: #F0ECE0;
  --primary: #166534;
  --primary-hover: #14532D;
  --secondary: #B45309;
  --accent: #0891B2;
  --text: #1C1B17;
  --text-secondary: #514F45;
  --text-muted: #9C9887;
  --border: rgba(28, 27, 23, 0.10);
  --radius: 10px;
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Gill Sans", "Gill Sans MT", "Trebuchet MS", "Segoe UI", sans-serif;
  --space: clamp(1rem, 3vw, 2rem);
  --max: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 10;
  padding: 1.25rem var(--space);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--primary);
}

.logo span {
  color: var(--primary);
}

.nav-legal {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.nav-legal a {
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-legal a:hover {
  color: var(--primary);
}

/* —— Hero / Coming soon —— */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
  padding: 2rem var(--space) 4rem;
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(8, 145, 178, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(22, 101, 52, 0.14), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--surface-alt) 45%, #e8e2d2 100%);
}

.hero__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 48px,
      rgba(22, 101, 52, 0.04) 48px,
      rgba(22, 101, 52, 0.04) 49px
    );
  animation: drift 28s linear infinite;
}

.hero__mark {
  position: absolute;
  width: min(90vw, 36rem);
  height: min(90vw, 36rem);
  right: -8%;
  bottom: -12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(8, 145, 178, 0.18), transparent 45%),
    radial-gradient(circle at 60% 65%, rgba(22, 101, 52, 0.22), transparent 50%);
  border: 1px solid var(--border);
  animation: breathe 8s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  text-align: left;
  animation: rise 0.9s ease-out both;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 0 1rem;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 28rem;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 26rem;
}

.notify label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.notify input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.notify input[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify button {
  flex: 0 0 auto;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 600;
  color: var(--surface);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify button:hover {
  background: var(--primary-hover);
}

.notify button:active {
  transform: scale(0.98);
}

.notify__note {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.notify__note[data-visible="true"] {
  color: var(--primary);
}

/* —— Legal pages —— */
.legal {
  flex: 1;
  padding: 2rem var(--space) 4rem;
  background:
    linear-gradient(180deg, var(--surface-alt) 0%, var(--bg) 18%);
}

.legal__inner {
  max-width: 40rem;
  margin: 0 auto;
  animation: rise 0.7s ease-out both;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.legal__updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  margin: 2rem 0 0.65rem;
  color: var(--text);
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.legal ul {
  padding-left: 1.25rem;
}

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

/* —— Footer —— */
.site-footer {
  padding: 1.5rem var(--space);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

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

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

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(28, 27, 23, 0.08);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--primary);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions button {
  flex: 1 1 auto;
  min-width: 6.5rem;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-banner__accept {
  color: var(--surface);
  background: var(--primary);
  border-color: var(--primary);
}

.cookie-banner__accept:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.cookie-banner__decline {
  color: var(--text-secondary);
  background: var(--surface-alt);
  border-color: var(--border);
}

.cookie-banner__decline:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-48px);
  }
}

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

  .hero__content,
  .legal__inner,
  .hero__mark,
  .hero__atmosphere::before,
  .cookie-banner {
    animation: none;
    transition: none;
  }

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

@media (max-width: 480px) {
  .nav-legal {
    gap: 0.85rem;
    font-size: 0.8125rem;
  }

  .notify {
    flex-direction: column;
  }

  .notify button {
    width: 100%;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
