:root {
  --paper: #f5f6f4;
  --surface: #ffffff;
  --tint: #e9edeb;
  --ink: #15222e;
  --ink-soft: #4a5a66;
  --line: #d3dad7;
  --accent: #d40808;
  --accent-ink: #ffffff;
  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1820;
    --surface: #17232d;
    --tint: #131e27;
    --ink: #ecf1f2;
    --ink-soft: #a5b3bc;
    --line: #2a3a46;
    --accent: #f03a3a;
    --accent-ink: #0f1820;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 16px; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.button) { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.nav a:not(.button):hover { color: var(--ink); }

/* Boutons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button-quiet:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-small { padding: 9px 16px; font-size: .95rem; }

/* Ouverture */
.hero { padding: 96px 0 112px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: center; }

h1 {
  margin: 0 0 28px;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}
.lead { margin: 0 0 36px; max-width: 34em; font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-logo { width: 100%; max-width: 380px; justify-self: end; animation: logo-in .7s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes logo-in {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }

h2 { margin: 0 0 16px; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
h3 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.section-lead { margin: 0 0 56px; max-width: 38em; font-size: 1.15rem; color: var(--ink-soft); }
p { margin: 0 0 16px; }

/* Produits */
.product-main {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 48px;
}
.product-head { display: flex; align-items: center; gap: 20px; align-self: start; }
.product-head h3 { font-size: 2rem; letter-spacing: -0.03em; margin: 0; }
.product-kind { margin: 0 0 12px; color: var(--ink-soft); font-size: .98rem; font-weight: 500; }
.product-head .product-kind { margin: 2px 0 0; }
.product-body > p { font-size: 1.15rem; max-width: 34em; }

.facts { list-style: none; margin: 28px 0 32px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--ink-soft); }

.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); }

.product-list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.product-list article { border-top: 2px solid var(--ink); padding-top: 24px; }
.product-list p:last-child { color: var(--ink-soft); margin: 0; max-width: 32em; }

/* Approche */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.principles article { border-top: 1px solid var(--line); padding-top: 24px; }
.principles p { margin: 0; color: var(--ink-soft); max-width: 30em; }

/* Support */
.support { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.support .section-lead { margin-bottom: 0; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); border-top: 0; }
.contact .section-lead { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); margin-bottom: 40px; }
.contact-mail {
  display: inline-block;
  font-size: clamp(1.5rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 10px;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--accent); }
.contact-phone { margin: 32px 0 0; font-size: 1.25rem; color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.contact-phone a { color: var(--paper); font-weight: 700; text-decoration: none; white-space: nowrap; margin-left: 8px; }
.contact-phone a:hover { color: var(--accent); }
.site-footer span a { white-space: nowrap; }
.contact :focus-visible { outline-color: var(--paper); }

/* Pied de page */
.site-footer { padding: 28px 0; font-size: .95rem; color: var(--ink-soft); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-logo { max-width: 200px; justify-self: start; order: -1; }
  .section { padding: 64px 0; }
  .section-lead { margin-bottom: 40px; }
  .product-main { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .product-list, .principles { grid-template-columns: 1fr; gap: 36px; }
  .nav a:not(.button) { display: none; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .lead { font-size: 1.12rem; }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; }
  .button { transition: none; }
}
