:root {
  --bg-primary: #1a242a;
  --bg-surface: #2a363e;
  --bg-card: #25292c;
  --accent-tech: #d0bc8e;
  --accent-btn: #0a6f87;
  --accent-tech-hover: #0a6f87;
  --accent-link-hover: #e5d4a8;
  --accent-glow: rgba(10, 191, 122, 0.18);
  --accent-glow-soft: rgba(10, 191, 122, 0.08);
  --text-main: #f5f6f7;
  --text-muted: #c9c8d2;
  --border-subtle: rgba(56, 68, 84, 0.6);
  --nav-shadow: 0 1px 0 var(--border-subtle), 0 8px 32px rgba(0, 0, 0, 0.35);
  --card-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(10, 191, 122, 0.08);
  --gradient-card: linear-gradient(
    145deg,
    rgba(5, 95, 118, 0.25) 0%,
    rgba(30, 34, 37, 0.98) 100%
  );

  --font-serif: "Cinzel", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark light;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 72px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

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

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Compensation navbar sticky pour les ancres */
#hero,
#positionnement,
#poles,
#methode,
#contact,
#mentions,
#privacy,
#tos {
  scroll-margin-top: 80px;
}

@media (max-width: 959px) {
  #hero,
  #positionnement,
  #poles,
  #methode,
  #contact,
  #mentions,
  #privacy,
  #tos {
    scroll-margin-top: 88px;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent-btn);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid var(--accent-link-hover);
  outline-offset: 2px;
}

/* Focus visible global */
:focus-visible {
  outline: 3px solid var(--accent-tech);
  outline-offset: 3px;
}

/* Typographie de base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  margin-top: 0;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-tech);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover,
a:focus {
  color: var(--accent-link-hover);
}

/* Utilitaires */
.text-main {
  color: var(--text-main);
}
.text-muted {
  color: var(--text-muted);
}
.text-accent {
  color: var(--accent-tech);
}

.section-padding {
  padding: var(--space-2xl) 0;
}
.section-sep {
  border-top: 1px solid var(--border-subtle);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-lg);
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-tech-hover);
  margin-top: 0.75rem;
  border-radius: 2px;
}
