/* Le monde en modèle, feuille de style */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/outfit-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --ink: #1B1C1F;
  --ink-2: #222327;
  --ink-3: #2A2B30;
  --paper: #FBFBFC;
  --grey-200: #D8DBDF;
  --grey-400: #A6ABB2;
  --grey-600: #6F747C;
  --grey-800: #3C3F45;
  --line: #34363B;
  --signal: #FF3B30;

  --font: 'Outfit', 'Century Gothic', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;

  --radius: 12px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.stop { color: var(--signal); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.link { color: var(--grey-400); font-size: 15px; transition: color .15s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--paper); }
@media (max-width: 720px) { .nav a.link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 600 16px/1 var(--font); white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: #E8352B; }
.btn-ghost { border-color: var(--grey-800); color: var(--paper); }
.btn-ghost:hover { border-color: var(--grey-400); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }

/* Type */
.kicker {
  font: 500 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--grey-400); margin: 0 0 20px;
}
.kicker .n { color: var(--signal); margin-right: 14px; }
h1, h2, h3 { font-weight: 700; margin: 0; }
.hero-title { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; }
.h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.025em; }
.h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--grey-200); max-width: 36em; }
.muted { color: var(--grey-400); }
.mono { font-family: var(--mono); }

/* Sections */
section { padding: clamp(64px, 10vw, 120px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lead { margin: 28px 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.sim {
  position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px;
  margin: 0; padding: 18px; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: end;
}
@media (max-width: 900px) { .sim { justify-self: start; max-width: 460px; } }
.sim canvas { width: 100%; height: 100%; }
.sim-top, .sim-bottom {
  position: absolute; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 12px;
  font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-600);
  pointer-events: none;
}
.sim-top { top: 18px; }
.sim-bottom { bottom: 18px; }
.sim .badge { color: var(--grey-400); }
.sim .badge.live { color: var(--signal); }
.sim-caption { margin-top: 16px; font-size: 15px; color: var(--grey-400); max-width: 520px; justify-self: end; width: 100%; }
@media (max-width: 900px) { .sim-caption { justify-self: start; } }
.sim-caption a { color: var(--paper); border-bottom: 1px solid var(--grey-800); }
.sim-caption a:hover { border-color: var(--signal); }
.hero-visual { display: grid; }

/* Video cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--grey-800); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.duration {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.72); color: #fff;
  font: 500 13px/1 var(--mono); padding: 6px 8px; border-radius: 6px;
}
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body .kicker { margin: 0; font-size: 12px; }
.card-body p { color: var(--grey-400); margin: 0; font-size: 16px; }
.card-more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.card-more svg { width: 18px; height: 18px; color: var(--signal); transition: transform .2s; }
.card:hover .card-more svg { transform: translateX(3px); }

/* Shorts */
.shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 220px)); gap: 20px; margin-top: 28px; }
@media (max-width: 520px) { .shorts { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.short { display: flex; flex-direction: column; gap: 12px; }
.short-img {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-3);
  aspect-ratio: 9 / 16; border: 1px solid var(--line); transition: border-color .2s;
}
.short:hover .short-img { border-color: var(--grey-600); }
.short-img img { width: 100%; height: 100%; object-fit: cover; }
.short-label { font-weight: 600; font-size: 15px; line-height: 1.3; }
.short-label .mono { display: block; font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 6px; }
.shorts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 72px; flex-wrap: wrap; }

/* Method */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--paper); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 32px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .step, .step + .step { padding: 28px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}
.step .num { font: 500 13px var(--mono); color: var(--signal); letter-spacing: .1em; display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--grey-400); }
.principle {
  margin-top: 56px; padding: 28px 32px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em;
}
.principle .muted { font-weight: 400; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.email-big {
  display: inline-block; font-weight: 700; font-size: clamp(20px, 2.6vw, 32px); letter-spacing: -0.02em;
  border-bottom: 2px solid var(--grey-800); padding-bottom: 6px; overflow-wrap: anywhere; transition: border-color .15s;
}
.email-big:hover { border-color: var(--signal); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--grey-400); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--paper); }
.site-footer .wordmark { color: var(--paper); font-size: 18px; }

/* Video page */
.video-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; }
.crumb { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 28px; }
.crumb:hover { color: var(--paper); }
.crumb svg { width: 16px; height: 16px; }
.player {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #000; border: 1px solid var(--line); margin-top: 36px; padding: 0; cursor: pointer; color: #fff;
}
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.player:hover img { opacity: 1; }
.player .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--signal); display: grid; place-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.4); transition: transform .2s;
}
.player:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.player .play svg { width: 34px; height: 34px; margin-left: 4px; }
.player .notice {
  position: absolute; left: 16px; right: 16px; bottom: 14px; text-align: left;
  font: 400 12px/1.4 var(--mono); color: rgba(255,255,255,.75); text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; justify-content: space-between; }
.meta-row .mono { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); }

.content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .content { grid-template-columns: 1fr; } }
.prose { max-width: 42em; }
.prose h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--grey-200); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--grey-600); }
.prose a { color: var(--paper); border-bottom: 1px solid var(--grey-800); }
.prose a:hover { border-color: var(--signal); }
.prose strong { color: var(--paper); font-weight: 600; }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 8px; }
@media (max-width: 640px) { .figures { grid-template-columns: 1fr; } }
.figure { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.figure .big { font-weight: 700; font-size: clamp(30px, 3.2vw, 38px); white-space: nowrap; line-height: 1; letter-spacing: -0.02em; display: block; margin-bottom: 10px; }
.figure .big.signal { color: var(--signal); }
.figure span:last-child { color: var(--grey-400); font-size: 15px; line-height: 1.4; display: block; }

.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .aside { position: static; } }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); margin: 0 0 14px; }
.chapters { list-style: none; margin: 0; padding: 0; }
.chapters li + li { border-top: 1px solid var(--line); }
.chapters a { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 10px 0; font-size: 15px; color: var(--grey-200); }
.chapters a:hover { color: var(--paper); }
.chapters .t { font: 500 13px/1.7 var(--mono); color: var(--signal); }

table.compare { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey-400); }
.compare td:first-child { font-weight: 600; color: var(--paper); white-space: nowrap; }
.compare td { color: var(--grey-200); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.sources { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.sources li { counter-increment: s; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); color: var(--grey-200); font-size: 15px; }
.sources li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 13px; font: 500 13px var(--mono); color: var(--signal); }

.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Legal */
.legal { max-width: 46em; }
.legal h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--grey-200); }
.legal a { border-bottom: 1px solid var(--grey-800); }
.legal a:hover { border-color: var(--signal); }

.sim-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; pointer-events: none; text-align: center;
}
.sim-center .lbl { font-size: clamp(12px, 1.4vw, 15px); font-weight: 500; color: var(--grey-400); }
.sim-center .val { font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; color: var(--grey-400); display: flex; align-items: baseline; gap: 4px; }
.sim-center .val b { font-size: clamp(48px, 7vw, 84px); font-weight: 700; color: var(--paper); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
