@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap");

:root {
  --bg-deep: #080a0d;
  --bg: #0c1018;
  --bg-elevated: #121826;
  --surface: rgba(18, 24, 38, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(201, 162, 39, 0.28);
  --text: #e9ecf2;
  --muted: #8b95a8;
  --accent: #d4af37;
  --accent-soft: rgba(212, 175, 55, 0.14);
  --accent-hover: #e4c45a;
  --heading: #f4f6fa;
  --h2-color: #e8d5a3;
  --h3-color: #c9d0e0;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 8px;
  --header-max: 62rem;
  --maxw: var(--header-max);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(212, 175, 55, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(56, 97, 168, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* Lien d’évitement */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--heading);
  text-decoration: none;
  line-height: 1.2;
}
.brand:hover {
  color: var(--accent-hover);
}
.brand__tld {
  color: var(--accent);
  font-weight: 600;
}
.brand__tagline {
  margin: 0.2rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}
.site-nav a[aria-current="page"] {
  color: var(--bg-deep);
  background: linear-gradient(145deg, var(--accent) 0%, #b8922a 100%);
  border-color: transparent;
  font-weight: 600;
}

/* Zone principale */
.site-main {
  max-width: calc(var(--header-max) + 2.5rem);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

.content-panel {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.25rem 1.75rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
  .content-panel {
    padding: 2.5rem 2.35rem 2.25rem;
  }
}

.prose > *:first-child {
  margin-top: 0;
}

h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 4.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 1.35rem;
  color: var(--heading);
}

p {
  margin: 0 0 1.15rem;
  color: var(--text);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

h2 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2.25rem 0 0.65rem;
  color: var(--h2-color);
  letter-spacing: -0.02em;
}
h2:first-of-type {
  margin-top: 1.5rem;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.65rem 0 0.5rem;
  color: var(--h3-color);
}

ul.pillars {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1.1rem 0.85rem 1.65rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
ul.pillars li {
  margin-bottom: 0.55rem;
}
ul.pillars li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #dbe3f0;
}

footer.site {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
}
footer.site p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}
footer.site p:last-child {
  margin-bottom: 0;
}
footer.site a {
  color: var(--muted);
}
footer.site a:hover {
  color: var(--accent-hover);
}

.legal-links {
  margin-top: 0.8rem;
}

.legal-links a {
  margin-right: 0.75rem;
  white-space: nowrap;
}

.cmp-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(12, 16, 24, 0.96);
  box-shadow: var(--shadow);
}

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

.cmp-banner p {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text);
}

.cmp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cmp-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.cmp-btn:hover {
  color: var(--heading);
  border-color: var(--border-strong);
}

.cmp-btn--primary {
  color: var(--bg-deep);
  border-color: transparent;
  background: linear-gradient(145deg, var(--accent) 0%, #b8922a 100%);
}

.cmp-manage {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 16, 24, 0.92);
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  cursor: pointer;
}

.cmp-manage:hover {
  color: var(--heading);
  border-color: var(--border-strong);
}
