/* ═══════════════════════════════════════════════════
   ELAN — Base & Reset
   ═══════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

/* ──────────────────────────────── TYPOGRAPHIE */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { color: var(--text-2); line-height: 1.7; }

em {
  font-style: italic;
  color: var(--yellow);
}

[data-theme="light"] em {
  color: var(--blue-dark);
}

strong { color: var(--text); font-weight: 600; }

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ──────────────────────────────── CONTAINER */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ──────────────────────────────── SECTIONS */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 80px);
  max-width: 700px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 4px 14px;
  border: 1px solid rgba(250, 180, 40, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  background: rgba(250, 180, 40, 0.06);
}

[data-theme="light"] .section-tag {
  color: var(--blue-dark);
  border-color: rgba(33, 50, 123, 0.25);
  background: rgba(33, 50, 123, 0.05);
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
}

/* ──────────────────────────────── BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
  background: rgba(255, 255, 255, 0.1);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--yellow);
  color: #0d0f1a;
  box-shadow: 0 4px 20px rgba(250, 180, 40, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(250, 180, 40, 0.5);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(67, 180, 233, 0.08);
  border-color: var(--blue-light);
  color: var(--blue-light);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-sm { padding: 9px 18px; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-arrow {
  transition: transform var(--transition-base);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ──────────────────────────────── UTILITAIRES */
.hidden {
  display: none;
}

/* ──────────────────────────────── SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

/* ──────────────────────────────── SÉLECTION */
::selection {
  background: rgba(250, 180, 40, 0.3);
  color: var(--text);
}

/* ──────────────────────────────── FOCUS */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

[data-theme="light"] :focus-visible {
  outline-color: var(--blue-dark);
}

/* ── Section-tag variante bleu clair ── */
.section-tag.blue {
  color: var(--blue-light);
  border-color: rgba(67, 180, 233, 0.3);
  background: rgba(67, 180, 233, 0.06);
}

[data-theme="light"] .section-tag.blue {
  color: var(--blue-dark);
  border-color: rgba(33, 50, 123, 0.25);
  background: rgba(33, 50, 123, 0.05);
}

/* ── Pages secondaires (mentions légales, articles…) ── */
.page-section {
  padding-top: calc(var(--section-pad) + 68px); /* compense la nav fixe */
}

.page-content {
  max-width: 720px;
}

.page-content h2 {
  margin: 40px 0 16px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.page-content h3 {
  margin: 28px 0 10px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  list-style: revert;
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content li {
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-content a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="light"] .page-content a {
  color: var(--blue-dark);
}

.page-update {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-3);
  font-style: italic;
}
