/* FaitDuJour — site légal (Hostinger / subdomain) */

:root {
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --teal-soft: #ccfbf1;
  --ink: #14212b;
  --ink-muted: #4a5b6a;
  --mist: #f4f7fa;
  --mist-deep: #e6edf3;
  --surface: #ffffff;
  --line: rgba(20, 33, 43, 0.1);
  --radius: 14px;
  --max: 720px;
  --wide: 1100px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--mist);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 8% -5%, rgba(20, 184, 166, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 5%, rgba(15, 118, 110, 0.1), transparent 50%),
    var(--mist);
}

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

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

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

.wrap {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.5rem, var(--max));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 250, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: clamp(8rem, 20vw, 10.5rem);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  margin-top: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a {
  color: var(--ink-muted);
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--teal);
}

.lang-switch a[aria-current="true"]::after {
  display: none;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  animation: rise 0.7s ease both;
}

.page-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-hero__lead {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.legal-layout {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 4rem;
  animation: rise 0.8s 0.1s ease both;
}

@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
    gap: 3rem;
  }
}

.toc {
  position: sticky;
  top: 5.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc__title {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero) " · ";
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--ink);
}

.legal-content section {
  margin: 0 0 2.75rem;
  scroll-margin-top: 6rem;
}

.legal-content h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.legal-content h2 span {
  margin-right: 0.5rem;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.legal-content p,
.legal-content li {
  color: rgba(20, 33, 43, 0.88);
}

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

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

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

.legal-content strong {
  color: var(--ink);
  font-weight: 700;
}

.note {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--teal-soft);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.home-hero {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 8rem);
  padding: 3rem 0 4rem;
  text-align: center;
  animation: rise 0.75s ease both;
}

.home-hero__logo {
  width: clamp(11rem, 30vw, 15rem);
  margin: 0 auto 1.75rem;
}

.home-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.home-hero p {
  margin: 0 auto 2rem;
  max-width: 30rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta-row--start {
  justify-content: flex-start;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.btn--primary:hover {
  color: #fff;
  background: #0d5f59;
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.btn--ghost:hover {
  border-color: rgba(20, 33, 43, 0.22);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.55);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

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

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

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

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

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

  .page-hero,
  .legal-layout,
  .home-hero {
    animation: none;
  }
}
