@font-face { font-family: 'Bricolage'; src: url('fonts/bricolage-800.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('fonts/instrument-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('fonts/instrument-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --paper: #F2F1EC;
  --paper-deep: #E8E6DE;
  --card: #FFFFFF;
  --ink: #141414;
  --ink-soft: #5C5B57;
  --tomato: #FF4F2E;
  --pine: #1E4D3A;
  --mustard: #E8A317;
  --pool: #2E5BFF;
  --pink: #EC5AA5;
  --display: 'Bricolage', 'Arial Black', system-ui, sans-serif;
  --text: 'Instrument', -apple-system, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Barre du haut ── */
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 28px; letter-spacing: -0.04em; }
.brand svg { width: 26px; height: 31px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 16px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Héro ── */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-art {
  position: absolute; top: 0; bottom: 0; right: 0; left: 40%;
  background: url('img/carte.jpg') 80% center / cover no-repeat;
  /* Fond de l'illustration fondu dans le papier de la page, sans bord visible. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
  mask-image: linear-gradient(to right, transparent, #000 18%);
}
.hero-copy { position: relative; max-width: 620px; padding: 48px 0 64px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 6.2vw, 92px);
  text-wrap: balance;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero p { font-size: clamp(19px, 2vw, 22px); margin: 26px 0 34px; max-width: 30ch; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; font-size: 16px;
  transition-property: transform; transition-duration: 150ms;
}
.store:active { transform: scale(0.96); }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store.soon { background: var(--paper-deep); color: var(--ink-soft); pointer-events: none; }

/* ── Sections ── */
section { padding: clamp(80px, 12vw, 160px) 0; }
.big {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 16ch;
  text-wrap: balance;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split img { border-radius: 32px; }

.steps { display: grid; gap: 28px; margin-top: 36px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.dot svg { width: 22px; height: 26px; }
.step h3 { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.step p { color: var(--ink-soft); margin-top: 4px; }

/* ── Bande couleur ── */
.band { background: var(--tomato); }
.band .big { max-width: 18ch; }
.band p { font-size: 21px; margin-top: 24px; max-width: 42ch; }

/* ── Pied ── */
footer { padding: 56px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-end; }
.footer-name { font-family: var(--display); font-size: clamp(64px, 13vw, 160px); letter-spacing: -0.05em; line-height: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-soft); }

/* ── Pages légales ── */
.legal { max-width: 760px; padding: 48px 0 96px; }
.legal h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 40px; }
.legal h2 { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--paper-deep); vertical-align: top; }
.legal th { font-weight: 600; }
.card { background: var(--card); border-radius: 24px; padding: 24px; margin: 20px 0; }

@media (max-width: 760px) {
  .nav-links a:not(.keep) { display: none; }
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-art { position: relative; order: 2; left: auto; height: 320px; background-position: 78% center; margin: 0 calc(var(--gutter) * -1); }
  .hero-copy { padding: 24px 0 32px; }
  .split { grid-template-columns: 1fr; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border: 0; padding: 2px 0; }
  .legal tr { border-bottom: 1px solid var(--paper-deep); padding: 10px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .rise.d1 { animation-delay: 80ms; }
  .rise.d2 { animation-delay: 160ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}

.legal td:first-child { font-weight: 600; }
