/* ORAEON — site mère. Un noyau, trois orbites : la nuit de l'espace, trois atmosphères, puis le jour. */
:root {
  --night: #050b16;
  --night-2: #0a1628;
  --ink: #eaf1f8;
  --muted: #8fa3b8;
  --line: rgba(255, 255, 255, .1);
  --blue: #125fa6;
  --blue-hi: #4da3f0;
  --agri: #e0a83a;
  --edu: #34c98a;
  --vision: #4ab6ce;
  --amber: #e29a2e;
  --red: #e0685c;
  --paper: #f4f1ea;
  --paper-ink: #0b1f33;
  --paper-muted: #5c6774;
  --paper-line: #dcd7ca;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --c: var(--blue-hi);
}
.c-agri, .w-agri { --c: var(--agri); }
.c-edu, .w-edu { --c: var(--edu); }
.c-vision, .w-vision { --c: var(--vision); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--c); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: min(1200px, 100% - clamp(32px, 7vw, 96px)); margin-inline: auto; }

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: clamp(16px, 1.35vw, 19px); color: #b9c8d8; max-width: 56ch; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 100px; border: 1px solid var(--c); background: var(--c); color: var(--night); font: 600 15px/1 var(--body); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px var(--c); }
.btn:hover svg { transform: translateX(4px); }
.btn.glow { --c: #fff; }
.btn.glow:hover { box-shadow: 0 14px 50px -10px var(--blue-hi); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(255, 255, 255, .28); }
.btn.ghost:hover { border-color: #fff; box-shadow: none; }
.btn.sm { padding: 10px 16px; font-size: 13.5px; --c: #fff; }
.btn.big { padding: 19px 30px; font-size: 17px; }

/* ---------- Barre haute, progression, repères ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--agri), var(--edu), var(--vision), var(--blue-hi)); }
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 3.5vw, 48px); transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.top.stuck { background: rgba(5, 11, 22, .72); backdrop-filter: blur(16px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 34px; height: 34px; transition: transform 1.2s var(--ease); }
.brand:hover .mark { transform: rotate(180deg); }
.brand b { font: 700 19px/1 var(--display); letter-spacing: .16em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 100px; font-size: 14px; font-weight: 500; color: #b9c8d8; transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.top-r { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 100px; }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 100px; font: 500 11.5px/1 var(--mono); color: #b9c8d8; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--night); }

.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 14px; justify-items: end; transition: opacity .4s; }
.rail a { display: flex; align-items: center; gap: 10px; --c: #fff; }
.rail a.c-agri { --c: var(--agri); } .rail a.c-edu { --c: var(--edu); } .rail a.c-vision { --c: var(--vision); }
.rail span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; mix-blend-mode: difference; }
.rail i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(160, 175, 195, .7); transition: all .35s var(--ease); }
.rail a:hover span, .rail a.on span { opacity: 1; transform: none; }
.rail a.on i { background: var(--c); border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); transform: scale(1.15); }
.rail.on-paper span { mix-blend-mode: normal; color: var(--paper-ink); }
.rail.on-paper a.on i { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18, 95, 166, .2); }

/* ---------- 1. Le noyau et ses orbites ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 74% 46%, rgba(18, 95, 166, .34), transparent 70%), radial-gradient(ellipse 50% 50% at 0% 100%, rgba(74, 182, 206, .1), transparent 70%), var(--night); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; display: grid; gap: 24px; justify-items: start; padding-block: 104px 84px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-size: clamp(46px, 8.4vw, 128px); font-weight: 700; line-height: .94; letter-spacing: -.045em; }
.hero h1 em { background: linear-gradient(100deg, #fff 0%, var(--blue-hi) 45%, var(--vision) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero .lead { max-width: 46ch; }
.w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2.5deg); animation: w-in 1s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + 150ms); }
@keyframes w-in { to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero .lead, .hero .row, .proof { opacity: 0; animation: fade-up 1s var(--ease) forwards; }
.hero .eyebrow { animation-delay: .05s; } .hero .lead { animation-delay: .75s; } .hero .row { animation-delay: .9s; } .proof { animation-delay: 1.05s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.proof { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof div { display: flex; align-items: baseline; gap: 10px; }
.proof dt { font: 700 30px/1 var(--display); color: #fff; }
.proof dd { font-size: 13.5px; color: var(--muted); max-width: 17ch; line-height: 1.35; }

.node { position: absolute; left: 0; top: 0; z-index: 4; display: grid; gap: 3px; padding: 9px 14px 10px; border-radius: 12px; background: rgba(8, 18, 34, .62); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); backdrop-filter: blur(8px); will-change: transform; transition: background .25s, border-color .25s, box-shadow .25s; white-space: nowrap; opacity: 0; }
.node.ready { opacity: 1; transition: opacity .8s .6s, background .25s, border-color .25s, box-shadow .25s; }
.node b { font: 600 14px/1 var(--display); color: var(--c); letter-spacing: .01em; }
.node span { font: 400 10.5px/1 var(--mono); color: #b9c8d8; letter-spacing: .04em; }
.node:hover { background: rgba(8, 18, 34, .9); border-color: var(--c); box-shadow: 0 0 34px -6px var(--c); }

.cue { position: absolute; left: 50%; bottom: 26px; z-index: 5; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 100px; }
.cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- 2. La thèse ---------- */
.these { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 70px); }
.these-text { font: 500 clamp(26px, 4.1vw, 58px)/1.14 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.these-text .tw { color: #fff; opacity: .13; transition: opacity .35s linear; }
.these-text .tw.lit { opacity: 1; }

/* ---------- 3. Les trois univers ---------- */
.world { position: relative; padding: clamp(52px, 6.5vw, 92px) 0; isolation: isolate; }
.world::before { content: ""; position: absolute; inset: -12% 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 58% 46% at 78% 46%, color-mix(in srgb, var(--c) 22%, transparent), transparent 72%), radial-gradient(ellipse 40% 36% at 6% 78%, color-mix(in srgb, var(--c) 9%, transparent), transparent 72%); }
.world.flip::before { transform: scaleX(-1); }
.world-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.world.flip .world-copy { order: 2; }
.world-copy { position: relative; display: grid; gap: 24px; justify-items: start; }
.idx { position: absolute; right: 0; top: -.5em; z-index: -1; font: 700 clamp(120px, 19vw, 280px)/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 30%, transparent); user-select: none; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 100px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.world h2 { font-size: clamp(34px, 5vw, 70px); }
.facts { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9.5ch 1fr; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts b { font: 600 19px/1.1 var(--display); color: var(--c); }
.facts span { color: #b9c8d8; font-size: 15px; }
.domain { font: 400 12.5px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.status { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--muted); max-width: 54ch; }
.status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); transform: translateY(-1px); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.device { position: relative; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--c) 30%, rgba(255, 255, 255, .08)); background: linear-gradient(160deg, rgba(16, 30, 52, .9), rgba(7, 14, 26, .94)); box-shadow: 0 50px 110px -50px color-mix(in srgb, var(--c) 60%, transparent), 0 0 0 1px rgba(0, 0, 0, .4); overflow: hidden; transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: opacity 1s var(--ease), transform .5s var(--ease); }
.device[data-reveal]:not(.in) { transform: translateY(34px) scale(.97); }
.device-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font: 400 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--c); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.device figcaption { padding: 13px 18px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* AgriTech : la parcelle vue d'en haut */
.sat-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0c1a12; }
.sat-shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transform: scale(1.12); transition: transform 6s var(--ease); }
.in .sat-shot img { transform: scale(1); }
.cells { position: absolute; inset: 14% 12%; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(6, 1fr); gap: 2px; }
.cells span { background: rgb(74 182 206 / var(--a)); border: 1px solid rgba(255, 255, 255, .22); opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--d) * 45ms + .5s); }
.in .cells span { opacity: 1; transform: none; }
.scan { position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--agri); box-shadow: 0 0 26px 5px rgba(224, 168, 58, .7); animation: scan 5.5s linear infinite; }
@keyframes scan { from { left: -2%; } to { left: 102%; } }
.sat-tag { position: absolute; left: 12px; bottom: 10px; padding: 5px 9px; border-radius: 6px; background: rgba(5, 11, 22, .72); font: 400 11px/1 var(--mono); color: #dfe8f0; }
.sat-read { display: grid; grid-template-columns: auto 1fr; gap: 22px 28px; align-items: center; padding: 20px 18px; }
.sat-read .big b { display: block; font: 700 clamp(40px, 5vw, 62px)/1 var(--display); color: #fff; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sat-read .big span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); max-width: 20ch; line-height: 1.35; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.meter .bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 100%; border-radius: 10px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--vision), var(--agri)); transition: transform 1.6s var(--ease) .9s; }
.in .meter .bar i { transform: scaleX(var(--v)); }
.meter b { font: 600 20px/1 var(--display); color: var(--agri); }
.meter span { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

/* EdTech : de la note à la maîtrise */
.tagdemo { padding: 4px 8px; border: 1px solid var(--line); border-radius: 100px; font-size: 10px; }
.ba { display: grid; grid-template-columns: .72fr 1.28fr; }
.before { display: grid; align-content: center; justify-items: center; gap: 8px; padding: 26px 14px; background: rgba(255, 255, 255, .04); border-right: 1px solid var(--line); text-align: center; }
.ba small { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.before b { font: 700 clamp(40px, 5vw, 64px)/1 var(--display); color: #fff; letter-spacing: -.04em; opacity: .55; }
.before span { font-size: 12px; color: var(--muted); }
.after { padding: 22px 18px; display: grid; gap: 14px; }
.after small { color: var(--edu); }
.bars { display: grid; gap: 11px; }
.brow { display: grid; grid-template-columns: 9ch 1fr 5ch; gap: 10px; align-items: center; font-size: 13px; }
.brow span { color: #d5dfea; }
.brow div { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.brow i { display: block; height: 100%; border-radius: 8px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.3s var(--ease); }
.brow:nth-child(1) i { transition-delay: .5s; } .brow:nth-child(2) i { transition-delay: .62s; } .brow:nth-child(3) i { transition-delay: .74s; } .brow:nth-child(4) i { transition-delay: .86s; } .brow:nth-child(5) i { transition-delay: .98s; }
.in .brow i { transform: scaleX(var(--v)); }
.brow i.ok { background: var(--edu); } .brow i.mid { background: var(--amber); } .brow i.low { background: var(--red); }
.brow b { font: 400 12px/1 var(--mono); color: var(--muted); text-align: right; }
.callout { display: flex; align-items: center; gap: 10px; margin: 0 18px 18px; padding: 13px 15px; border-radius: 12px; background: rgba(224, 104, 92, .12); border: 1px solid rgba(224, 104, 92, .35); color: #f6c1ba; font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease) 1.7s, transform .7s var(--ease) 1.7s; }
.in .callout { opacity: 1; transform: none; }
.callout svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Vision : la plaque est lue */
.cam-view { position: relative; aspect-ratio: 400 / 230; overflow: hidden; }
.cam-view svg { width: 100%; height: 100%; }
.cam-view::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); pointer-events: none; }
.plate { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 6px; background: #f7f9fb; border: 2px solid #0b1f33; color: #0b1f33; font: 700 19px/1 var(--display); letter-spacing: .04em; direction: ltr; }
.plate i { width: 2px; height: 1.05em; background: #0b1f33; }
.plate .ar { font-family: "Noto Sans Arabic", var(--display); line-height: .9; }
.plate.lg { position: absolute; left: 50%; top: 66.5%; transform: translate(-50%, -50%); font-size: clamp(11px, 1.55vw, 17px); padding: .3em .55em; gap: .4em; border-width: 1.5px; border-radius: 4px; }
.lock { position: absolute; left: 50%; top: 66.5%; width: 34%; height: 21%; transform: translate(calc(-50% + var(--jx, 0px)), calc(-50% + var(--jy, 0px))) scale(var(--ls, 1.7)); transition: transform .5s var(--ease); }
.lock i { position: absolute; width: 16px; height: 16px; border: 2.5px solid var(--vision); transition: border-color .3s; }
.lock i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; } .lock i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.lock i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; } .lock i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cam[data-step="0"] { --ls: 1.7; --jx: -14px; --jy: 8px; } .cam[data-step="1"] { --ls: 1.35; --jx: 9px; --jy: -5px; } .cam[data-step="2"] { --ls: 1.12; --jx: -3px; --jy: 2px; } .cam[data-step="3"] { --ls: 1; }
.cam[data-step="3"] .lock i { border-color: var(--edu); }
.obs { position: absolute; right: 12px; top: 12px; display: flex; gap: 5px; }
.obs i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); transition: background .3s; }
.cam[data-step="0"] .obs i:nth-child(1), .cam[data-step="1"] .obs i:nth-child(-n+2), .cam[data-step="2"] .obs i, .cam[data-step="3"] .obs i { background: var(--vision); }
.cam[data-step="3"] .obs i { background: var(--edu); }
.rec { color: var(--red); } .rec .ts { color: #dfe8f0; font-variant-numeric: tabular-nums; text-transform: none; }
.cam-record { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; padding: 18px; opacity: .25; filter: blur(3px); transition: opacity .5s var(--ease), filter .5s var(--ease); }
.cam[data-step="3"] .cam-record { opacity: 1; filter: none; }
.cam-record .ok { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--edu); }
.cam-record .ok svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--edu); fill: none; stroke: var(--night); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cam-record ul { display: grid; gap: 4px; font: 400 12px/1.35 var(--mono); color: #b9c8d8; }
.cam-record li.in { color: var(--edu); }
.cam-record li.in::before { content: "→ "; }

/* ---------- 4. Bandeau ---------- */
.marquee { overflow: hidden; margin-top: clamp(20px, 3vw, 40px); padding: clamp(22px, 3.4vw, 44px) 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: clamp(22px, 4vw, 54px); padding-right: clamp(22px, 4vw, 54px); font: 700 clamp(40px, 8vw, 116px)/1 var(--display); letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .34); }
.marquee-track span:nth-child(3n+1) { color: #fff; -webkit-text-stroke: 0; }
.marquee-track span::after { content: ""; width: .22em; height: .22em; border-radius: 50%; background: var(--blue-hi); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 5. La méthode ---------- */
.method { padding: clamp(60px, 7.5vw, 104px) 0; }
.head { display: grid; gap: 18px; margin-bottom: clamp(26px, 3.6vw, 46px); max-width: 900px; }
/* Sur grand écran, le titre à gauche et le texte à droite : la largeur est occupée. */
@media (min-width: 961px) {
  .head { max-width: none; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; }
  .head > * { grid-column: 1; }
  .head .eyebrow { grid-column: 1 / -1; }
  .head .lead { grid-column: 2; grid-row: 2; padding-bottom: .5em; }
  .head h2:last-child { grid-column: 1 / -1; }
}
.head h2 { font-size: clamp(34px, 5.6vw, 78px); }
.matrix { border-top: 1px solid var(--line); }
.m-head, .m-row { display: grid; grid-template-columns: 1.05fr repeat(3, 1fr); gap: clamp(16px, 2.4vw, 34px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.m-head { padding: 16px 0; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; position: sticky; top: 62px; z-index: 2; background: var(--night); }
.m-head span { display: inline-flex; align-items: center; gap: 9px; color: var(--c); }
.m-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.m-rule { display: grid; gap: 10px; align-content: start; }
.m-rule span { font: 400 12px/1 var(--mono); color: var(--muted); }
.m-rule h3 { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.08; }
.m-row p { font-size: 15px; color: #b9c8d8; padding-left: 16px; border-left: 2px solid color-mix(in srgb, var(--c) 55%, transparent); transition: border-color .3s, color .3s; }
.m-row:hover p { color: #fff; border-color: var(--c); }

/* ---------- 6. Le jour ---------- */
.day { --c: var(--blue); background: var(--paper); color: var(--paper-ink); border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; padding: clamp(60px, 7.5vw, 104px) 0 clamp(60px, 7vw, 96px); }
.day .lead { color: var(--paper-muted); }
.skills { border-top: 1px solid var(--paper-line); }
.skills li { display: grid; grid-template-columns: 5ch minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: clamp(14px, 3vw, 40px); align-items: center; padding: clamp(18px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--paper-line); transition: padding .4s var(--ease), background .3s; }
.skills li:hover { padding-inline: 18px; background: #fff; }
.skills .n { font: 400 12.5px/1 var(--mono); color: var(--paper-muted); }
.skills h3 { font-size: clamp(22px, 3vw, 40px); }
.skills p { color: var(--paper-muted); font-size: 15px; }
.dots { display: flex; gap: 6px; align-items: center; justify-content: flex-end; min-width: 60px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.dots .c-agri { --c: #c98a1a; } .dots .c-edu { --c: #1e9e6b; } .dots .c-vision { --c: #2a93ad; }
.dots em { font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); padding: 5px 8px; border: 1px solid var(--paper-line); border-radius: 100px; }
.team-wrap { margin-top: clamp(52px, 6.5vw, 92px); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team article { display: grid; gap: 10px; align-content: start; padding: 26px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--paper-line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.team article:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(11, 31, 51, .45); }
.av { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 600 19px/1 var(--display); box-shadow: 0 0 0 5px rgba(18, 95, 166, .14); margin-bottom: 8px; }
.team h3 { font-size: 21px; letter-spacing: -.02em; }
.role { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.team p { font-size: 14.5px; color: var(--paper-muted); }
.team a { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.team a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.team a:hover svg { transform: translate(2px, -2px); }

/* ---------- 7. Contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(68px, 8.5vw, 120px) 0; background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(18, 95, 166, .5), transparent 70%), var(--night); }
.contact-mark { position: absolute; right: -9%; top: 50%; width: min(58vw, 720px); margin-top: calc(min(58vw, 720px) / -2); opacity: .14; animation: turn 90s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.contact-in { position: relative; display: grid; gap: 26px; justify-items: start; }
.contact h2 { font-size: clamp(38px, 6.6vw, 96px); max-width: 14ch; }
.contact h2 em { color: var(--blue-hi); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); font-size: 14.5px; transition: all .3s var(--ease); text-align: left; }
.choices i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.choices button:hover { border-color: var(--c); }
.choices button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--night); font-weight: 600; }
.choices button[aria-pressed="true"] i { background: var(--night); }
.mail { font: 400 13px/1 var(--mono); color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 30px 0 36px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #b9c8d8; }
.foot nav a:hover { color: var(--c); }
.foot nav i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.copy { font-size: 13px; color: var(--muted); }

/* ---------- Écrans étroits ---------- */
@media (max-width: 1280px) { .rail { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .top-r { margin-left: auto; }
  .hero { align-items: end; }
  .hero-copy { padding-block: 47svh 84px; gap: 20px; }
  .hero h1 { max-width: none; }
  .world-grid { grid-template-columns: minmax(0, 1fr); }
  .world.flip .world-copy { order: 0; }
  .m-head { display: none; }
  .m-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 30px 0; }
  .m-row p::before { content: attr(data-label); display: block; margin-bottom: 5px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
  .skills li { grid-template-columns: 4ch minmax(0, 1fr) auto; }
  .skills p { grid-column: 2 / -1; grid-row: 2; }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top { padding: 12px 16px; gap: 10px; }
  .brand b { font-size: 16px; letter-spacing: .12em; }
  .brand .mark { width: 30px; height: 30px; }
  .top-r .btn { display: none; }
  .node { padding: 7px 10px 8px; }
  .node span { display: none; }
  .proof { gap: 12px 22px; }
  .proof dt { font-size: 24px; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .ba { grid-template-columns: 1fr; }
  .before { grid-auto-flow: column; justify-content: start; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .sat-read { grid-template-columns: 1fr; }
  .cam-record { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
  .choices button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .w, .hero .eyebrow, .hero .lead, .hero .row, .proof { opacity: 1; transform: none; }
  .these-text .tw { opacity: 1; }
  .marquee-track { animation: none; }
}
