/* Polices hébergées localement (licence SIL OFL 1.1), aucun appel à Google */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400-latin.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500-latin.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: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/schibsted-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/schibsted-grotesk-latin.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; }

/* Charte Teina en mode sombre : noir-vert profond, vert signature, icônes au trait. */
:root {
  color-scheme: dark;
  --bg: #0a100e;
  --surface: #0f1714;
  --surface-2: #15201c;
  --line: rgba(201, 214, 208, .09);
  --line-strong: rgba(201, 214, 208, .16);
  --text: #eef3f0;
  --muted: #9fb0a8;
  --dim: #6f8078;
  --accent: #0e7a5f;
  --accent-bright: #7fd4b8;
  --radius: 14px;
  --sans: "Schibsted Grotesk", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
code { font-family: var(--mono); font-size: .88em; white-space: nowrap; color: var(--text); }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Barre de navigation flottante */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1080px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 6px 6px 10px;
  background: rgba(10, 16, 14, .75);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; min-height: 44px; }
.brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-links { display: none; gap: 2px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 10px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent-bright); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* Touches de clavier */
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 6px;
  font: 500 12px/1 var(--mono); color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
}
kbd svg { width: 12px; height: 12px; }

/* Héros : lueur verte et quadrillage fin */
.hero { position: relative; padding: 132px 0 56px; text-align: center; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -260px; width: 1100px; height: 720px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(14, 122, 95, .55), rgba(14, 122, 95, .12) 55%, transparent),
    radial-gradient(closest-side at 50% 30%, rgba(127, 212, 184, .18), transparent 60%);
  filter: blur(10px);
}
.grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, #000 20%, transparent 75%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.avatar { position: relative; width: 96px; height: 96px; margin: 0 auto 22px; }
.avatar img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(127, 212, 184, .5);
  box-shadow: 0 0 0 6px rgba(14, 122, 95, .18), 0 16px 40px -12px rgba(0, 0, 0, .8);
}
.status {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 3px 9px;
  font: 500 11px/1.4 var(--mono); color: var(--text); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); }

.eyebrow { font: 400 13px/1.4 var(--mono); color: var(--muted); margin: 0 0 18px; }
h1 {
  font-size: clamp(36px, 7vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600;
  margin: 0 auto 20px; max-width: 900px;
}
h1 .hl { color: var(--accent-bright); }
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Palette de commandes */
.palette-wrap { max-width: 720px; margin: 56px auto 0; }
.palette {
  text-align: left; overflow: hidden;
  background: rgba(15, 23, 20, .92);
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
}
.palette-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 17px; }
.palette-search svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.query { color: var(--text); min-height: 1.6em; }
.query:empty::before { content: attr(data-placeholder); color: var(--dim); }
.caret { width: 2px; height: 20px; background: var(--accent-bright); animation: blink 1s steps(1) infinite; margin-left: -10px; }
@keyframes blink { 50% { opacity: 0; } }
.palette-section { padding: 10px 18px 4px; font: 500 11px/1.4 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.palette-list { list-style: none; margin: 0; padding: 0 8px 8px; min-height: 248px; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.palette-list li[hidden] { display: none; }
.palette-list li.is-active { background: rgba(127, 212, 184, .08); box-shadow: inset 0 0 0 1px rgba(127, 212, 184, .14); }
.palette-list .ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; flex: none; border: 1px solid var(--line-strong); background: var(--surface-2); }
.palette-list .ic svg { width: 15px; height: 15px; color: var(--muted); }
.palette-list li.is-active .ic svg { color: var(--accent-bright); }
.palette-list .t { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-list .s { color: var(--dim); font-size: 14px; margin-left: 8px; }
.palette-list .k { font: 400 12px/1 var(--mono); color: var(--dim); flex: none; }
.palette-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.palette-foot .actions { display: flex; align-items: center; gap: 6px; }
.palette-foot .sep { width: 1px; height: 16px; background: var(--line-strong); margin: 0 6px; }
.palette-foot .logo { display: flex; align-items: center; gap: 8px; }
.palette-foot .logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); }
.flash { animation: flash .5s ease; }
@keyframes flash { 40% { background: rgba(127, 212, 184, .18); } }
@media (max-width: 560px) {
  .palette-list .s, .palette-foot .hide-sm { display: none; }
}

/* Chiffres clés */
.facts { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { background: var(--bg); padding: 24px 20px; }
.facts strong { display: block; font-size: clamp(30px, 5vw, 42px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 6px; color: var(--text); }
.facts span { font-size: 14px; color: var(--muted); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
section { padding: 96px 0 0; }
.kicker { font: 500 12px/1.4 var(--mono); color: var(--accent-bright); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 14px; }
h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; max-width: 720px; }
.section-intro { color: var(--muted); font-size: 17px; margin: 0 0 36px; max-width: 620px; }

/* Grille des cas */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .span-6 { grid-column: span 6; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-2 { grid-column: span 2; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.app-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--surface-2); border: 1px solid var(--line-strong);
}
.app-icon svg { width: 20px; height: 20px; color: var(--accent-bright); }
.tag { font: 400 12px/1.4 var(--mono); color: var(--dim); }
.card h3 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 14px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.card p b { color: var(--text); font-weight: 600; }
.card .result { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.result::before { content: "Résultat"; display: block; margin-bottom: 8px; font: 500 11px/1.4 var(--mono); color: var(--accent-bright); text-transform: uppercase; letter-spacing: .14em; }
.result strong { display: block; font-size: clamp(26px, 3.6vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: var(--text); margin-bottom: 6px; }
.result span { font-size: 14px; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.chips li { font: 400 12px/1 var(--mono); color: var(--muted); padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; }
.card-link svg { width: 16px; height: 16px; }
.card-link:hover { color: var(--accent-bright); }

/* Méthode */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps .card { height: 100%; padding: 22px; }
.steps kbd { min-width: 32px; height: 32px; font-size: 13px; color: var(--accent-bright); margin-bottom: 16px; }
.steps strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Sécurité */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rules .card { height: 100%; }
.rules .app-icon { width: 36px; height: 36px; margin-bottom: 16px; }
.rules .app-icon svg { width: 18px; height: 18px; }
.rules strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.rules span { color: var(--muted); font-size: 15px; }

/* Dépôts */
.repos { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.repos li + li { border-top: 1px solid var(--line); }
.repos a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; min-height: 64px; transition: background .15s ease; }
.repos a:hover { background: var(--surface-2); }
.repos .app-icon { width: 36px; height: 36px; }
.repos .app-icon svg { width: 18px; height: 18px; color: var(--text); }
.repos .r-body { flex: 1; min-width: 0; }
.repos code { display: block; font-weight: 500; font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
.repos .r-desc { display: block; color: var(--muted); font-size: 14px; }
.repos .arrow { width: 18px; height: 18px; color: var(--dim); flex: none; }
.repos a:hover .arrow { color: var(--accent-bright); }

/* Appel final */
.final {
  position: relative; overflow: hidden; text-align: center; margin-top: 96px; isolation: isolate;
  padding: 72px 20px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: var(--surface);
}
/* Lueurs vertes qui dérivent lentement derrière l'appel final */
.final::before {
  content: ""; position: absolute; inset: -50%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 35% 35%, rgba(14, 122, 95, .75), transparent 24%),
    radial-gradient(circle at 65% 55%, rgba(127, 212, 184, .3), transparent 20%),
    radial-gradient(circle at 50% 75%, rgba(14, 122, 95, .4), transparent 24%);
  filter: blur(24px);
  animation: aurora 12s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate(-8%, -6%) rotate(0deg) scale(1); }
  50% { transform: translate(6%, 2%) rotate(25deg) scale(1.12); }
  100% { transform: translate(-2%, 7%) rotate(-15deg) scale(1.05); }
}
.final h2 { margin: 0 auto 12px; }
.final p { color: var(--muted); margin: 0 auto 28px; max-width: 520px; }

footer { padding: 40px 0 56px; color: var(--dim); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 72px; line-height: 1.6; }
.legal .back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 600; letter-spacing: -.03em; margin: 16px 0 8px; }
.legal h2 { font-size: 18px; letter-spacing: 0; margin: 32px 0 6px; }
.legal p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
