/* Kemea — V0 — feuille de style unique */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/HankenGrotesk-Variable.woff2") format("woff2");
}

:root {
  --paper: #FBFAF6;
  --bone: #F1ECE1;
  --bone-2: #E6E0D2;
  --ink: #15130D;
  --slate: #6E685B;
  --gold: #BC8636;
  --gold-deep: #A9762A;
  --gold-soft: #E2B264;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --measure: 70ch;
  --radius: 3px;
  --wrap: 1320px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  font-size: 1.125rem;
  overflow-x: hidden;
}

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

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:not(.btn) {
  text-decoration: underline;
}

a:hover {
  color: var(--gold-deep);
}

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
}

h3 {
  font-size: 1.3125rem;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

ul,
ol {
  max-width: var(--measure);
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.5em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75em 1.25em;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 3rem;
  }
}

section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

section + section {
  border-top: 1px solid var(--bone-2);
}

#mesure {
  background: var(--paper);
}

#approche {
  background: var(--bone);
}

#pour-qui {
  background: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.eyebrow--invert {
  color: var(--gold-soft);
}

.eyebrow--invert::before {
  background: var(--gold);
}

/* Header */

.site-header {
  background: var(--bone);
  border-bottom: 2px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  flex-wrap: wrap;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.logo-link img {
  height: 44px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-link img {
    height: 60px;
  }
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 0;
  padding: 0;
  max-width: none;
  align-items: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--gold);
}

.site-nav .lang-link {
  font-weight: 800;
  color: var(--gold-deep);
  padding: 0.2em 0.6em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
}

.site-nav .lang-link:hover,
.site-nav .lang-link:focus-visible {
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.site-nav .lang-link[aria-current="true"] {
  color: var(--paper);
  background: var(--ink);
}

/* Hero */

.hero {
  background: var(--bone);
  border-bottom: 1px solid var(--bone-2);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

@media (min-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
  }
}

.hero-content h1 {
  max-width: 16ch;
}

.hero-content p {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
}

.hero-content p:first-of-type {
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9em 1.75em;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
}

.btn:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--paper);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
}

.link-secondary {
  font-weight: 700;
}

/* Hero visual — observation matrix */

.hero-visual {
  position: relative;
}

.observe-frame {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--ink);
  background: var(--paper);
  margin: 8px;
}

.observe-frame::before,
.observe-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold);
}

.observe-frame::before {
  top: -9px;
  left: -9px;
  border-right: none;
  border-bottom: none;
}

.observe-frame::after {
  bottom: -9px;
  right: -9px;
  border-left: none;
  border-top: none;
}

.observe-cell {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--bone-2);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
}

.observe-cell:nth-child(even) {
  background: var(--bone);
}

.observe-index {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.observe-term {
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.15;
  color: var(--ink);
}

/* Sections shared */

.eyebrow + h2,
h2 + p.section-intro {
  margin-top: 0;
}

.section-intro {
  font-size: 1.1875rem;
  max-width: var(--measure);
}

/* Cards — mesure */

.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border: 1px solid var(--ink);
  border-top: 3px solid var(--gold-deep);
  background: var(--paper);
  padding: 2.25rem 1.85rem;
}

.card-num {
  display: block;
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--gold-deep);
  margin-bottom: 0.4em;
  letter-spacing: 0.01em;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p {
  margin-bottom: 0;
  max-width: none;
  font-size: 1.0625rem;
}

/* Steps — approche */

.steps {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  list-style: none;
  margin: 0;
  border: 1px solid var(--ink);
  border-top: 3px solid var(--gold-deep);
  background: var(--paper);
  padding: 2.25rem 1.85rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 2.125rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.55em;
}

.steps h3 {
  margin-bottom: 0.5em;
}

.steps p {
  max-width: none;
  font-size: 1.0625rem;
}

.note {
  margin-top: 2.75rem;
  padding: 1.5rem 2rem;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  max-width: var(--measure);
}

.note--wide {
  max-width: none;
}

.note p {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
  max-width: none;
}

/* Section split — pour qui */

.section-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .section-split {
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.split-label .eyebrow,
.split-label h2 {
  margin-bottom: 0.6em;
}

.split-body {
  padding-top: 0.2rem;
}

@media (min-width: 900px) {
  .split-body {
    border-left: 3px solid var(--bone-2);
    padding-left: 2.5rem;
  }
}

.split-body p {
  font-size: 1.1875rem;
}

.split-body p:last-child {
  margin-bottom: 0;
}

/* Contact */

.contact-section {
  background: var(--ink);
  color: var(--bone);
}

.contact-section h2 {
  color: var(--paper);
}

.contact-panel {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.contact-panel > p {
  font-size: 1.1875rem;
  max-width: 52ch;
  margin-inline: auto;
  color: var(--bone);
}

.contact-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-line {
  margin: 0;
  font-size: 1rem;
  color: var(--bone);
}

.contact-line a {
  color: var(--paper);
  font-weight: 700;
}

.contact-line a:hover {
  color: var(--gold-soft);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: 3.5rem 2.5rem;
  border-top: 3px solid var(--gold-deep);
}

.site-footer a {
  color: var(--paper);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(241, 236, 225, 0.18);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.5fr 0.8fr;
    gap: 2.5rem;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--bone);
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius);
}

.footer-brand img {
  height: 36px;
  width: auto;
}

.footer-heading {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

.footer-col p {
  margin: 0;
  font-size: 1.0625rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a,
.footer-col p a {
  font-size: 1.0625rem;
}

.footer-lang {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 700;
}

.footer-lang a {
  text-decoration: none;
  padding: 0.15em 0.5em;
  border: 2px solid rgba(251, 250, 246, 0.35);
  border-radius: var(--radius);
}

.footer-lang a[aria-current="true"] {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.footer-meta {
  padding-top: 2.25rem;
  color: var(--bone);
  font-size: 0.9375rem;
  max-width: none;
}

.footer-meta p {
  max-width: 62ch;
  margin-bottom: 0.6em;
}

.footer-meta p:last-child {
  margin-bottom: 0;
  color: rgba(241, 236, 225, 0.75);
}

/* Legal pages */

.legal-main .wrap {
  padding-block: clamp(3rem, 5vw, 4.5rem);
  max-width: 860px;
}

.legal-main h1 {
  margin-bottom: 0.3em;
}

.legal-updated {
  color: var(--slate);
  font-size: 0.9375rem;
  margin-bottom: 2.25rem;
}

.legal-main h2 {
  margin-top: 2em;
  font-size: 1.5rem;
}

.legal-main h3 {
  margin-top: 1.5em;
  font-size: 1.1875rem;
}

.legal-main p,
.legal-main li {
  font-size: 1.0625rem;
}

.legal-nav {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--bone-2);
}

.legal-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-weight: 700;
}

/* 404 */

.error-main .wrap {
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: left;
}

.error-main .btn {
  margin-right: 1rem;
}

.error-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.error-secondary {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--bone-2);
}
