/* ==========================================================
   SIDEKOM | Base
   Reset, typography and small building blocks used everywhere.
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }

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

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-300); color: var(--ink); }

[hidden] { display: none !important; }

/* ---------- Small building blocks ---------- */

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold-500);
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--muted);
}

/* Icons come from the sprite in partials/icon-sprite.html */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--small { width: 1rem; height: 1rem; }
.icon--large { width: 1.6rem; height: 1.6rem; }

/* Lists with a gold check mark */
.check-list { display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.32em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001a4a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 68% no-repeat;
}

/* Small rounded labels */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--navy-50);
  border: 1px solid var(--line);
  color: var(--navy-700);
  font-size: 0.9rem;
  font-weight: 600;
}

/* While a non-French language loads, hide the page for a moment so French never flashes.
   The animation is a safety net: after 2.5 seconds the page shows no matter what. */
html.is-translating body {
  opacity: 0;
  animation: show-page-anyway 0.01s 2.5s forwards;
}
@keyframes show-page-anyway { to { opacity: 1; } }

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