/* paper_indigo — info-foot-france.org */
:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-alt: #EEF1F8;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #0EA5E9;
  --accent: #F97316;
  --text: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: rgba(17, 24, 39, 0.10);
  --radius: 12px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 680px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(79, 70, 229, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(14, 165, 233, 0.10), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(249, 115, 22, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 248, 252, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--primary);
  position: relative;
  flex-shrink: 0;
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.brand__name {
  font-size: 0.95rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* —— Main / Hero —— */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 8vh, 5rem) 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.07) 0%, transparent 42%),
    linear-gradient(225deg, rgba(14, 165, 233, 0.08) 0%, transparent 40%);
  animation: plane-shift 14s ease-in-out infinite alternate;
}

@keyframes plane-shift {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  text-align: center;
  animation: rise-in 0.8s ease-out both;
}

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

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

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

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

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

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  width: min(100%, 420px);
  margin-inline: auto;
  animation: rise-in 0.9s 0.15s ease-out both;
}

.notify__input {
  flex: 1 1 200px;
  min-width: 0;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.notify__input::placeholder {
  color: var(--text-muted);
}

.notify__btn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 1.35rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

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

.notify__btn:active {
  transform: scale(0.98);
}

.notify__note {
  flex: 1 1 100%;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.notify__note.is-success {
  color: var(--primary);
}

/* —— Legal pages —— */
.page {
  width: min(100% - 2rem, 720px);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  animation: rise-in 0.55s ease-out both;
}

.page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page .meta {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.page p,
.page li {
  color: var(--text-secondary);
}

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

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  padding: 1.25rem 1.25rem;
}

.site-footer__inner {
  width: min(100%, 960px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer__nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  z-index: 100;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__panel {
  pointer-events: auto;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
  animation: cookie-up 0.45s ease-out both;
}

@keyframes cookie-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

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

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

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

.btn {
  height: 40px;
  padding: 0 1.1rem;
  border-radius: calc(var(--radius) - 2px);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  border: none;
  background: var(--primary);
  color: #fff;
}

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

.btn--ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

@media (max-width: 480px) {
  .notify {
    flex-direction: column;
  }

  .notify__btn {
    width: 100%;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
