/* ===== PEAM — site de présentation ===== */
/* Polices hébergées avec le site (aucune requête vers Google : rien à déclarer côté RGPD) — licence OFL dans fonts/ */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff") format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff") format("woff"); font-weight: 400 700; font-display: swap; }

:root {
  --night: #071426;      /* nuit polaire */
  --deep: #0c2140;       /* océan */
  --navy: #1d4277;       /* bleu du logo */
  --ice: #cfe8ff;        /* glace */
  --snow: #f4f8fc;       /* neige */
  --beak: #ff9f2e;       /* bec et pattes du pingouin */
  --beak-dark: #e07d0b;
  --aurora: #5ce0c6;     /* aurore boréale, avec parcimonie */
  --muted: #8fa6c2;
  --line: rgba(207, 232, 255, .12);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--snow); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ice); }
:focus-visible { outline: 3px solid var(--beak); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--beak); color: #1a0d00; padding: 8px 14px; }

/* ----- en-tête ----- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(7, 20, 38, .72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--snow); text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--snow); }

/* ----- bouton de téléchargement ----- */
.dl {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 14px;
  background: var(--beak); color: #241200; text-decoration: none; font: 700 17px/1.1 var(--text);
  box-shadow: 0 10px 30px -8px rgba(255, 159, 46, .55), inset 0 -3px 0 var(--beak-dark);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dl:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(255, 159, 46, .7), inset 0 -3px 0 var(--beak-dark); }
.dl:active { transform: translateY(1px); }
.dl svg { width: 20px; height: 20px; flex: none; }
.dl small { display: block; font-weight: 500; font-size: 12.5px; opacity: .75; margin-top: 3px; }
.dl.sm { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; box-shadow: inset 0 -2px 0 var(--beak-dark); }
.dl.sm svg { width: 16px; height: 16px; }

/* ----- héros : la banquise sous l'aurore ----- */
.hero { position: relative; overflow: hidden; padding: 84px 0 0; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 70% at 50% 0%, #10305a 0%, var(--night) 62%); }
.aurora { position: absolute; inset: -10% -20% auto; height: 70%; z-index: -1; filter: blur(48px); opacity: .55; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { left: 10%; top: 8%; width: 55%; height: 38%; background: var(--aurora); transform: rotate(-8deg); animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { left: 40%; top: 0; width: 50%; height: 30%; background: #4c7dff; transform: rotate(6deg); animation: drift 24s ease-in-out infinite alternate-reverse; }
.aurora i:nth-child(3) { left: 62%; top: 20%; width: 30%; height: 26%; background: #9a7bff; opacity: .6; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(6%, 4%, 0) rotate(4deg) scaleX(1.15); } }
.stars { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 28% 8%, #fff9, transparent), radial-gradient(1.5px 1.5px at 47% 22%, #fff6, transparent), radial-gradient(1px 1px at 66% 12%, #fffa, transparent), radial-gradient(1.5px 1.5px at 83% 26%, #fff7, transparent), radial-gradient(1px 1px at 92% 6%, #fff9, transparent), radial-gradient(1px 1px at 7% 36%, #fff6, transparent), radial-gradient(1px 1px at 58% 34%, #fff5, transparent); }

.hero-copy { text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 { margin: 0; font: 800 clamp(44px, 7.4vw, 92px)/.96 var(--display); letter-spacing: -.022em; text-wrap: balance; }
.hero .lead { margin: 22px auto 34px; max-width: 600px; color: var(--ice); font-size: clamp(17px, 2vw, 20px); text-wrap: pretty; }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.req { color: var(--muted); font-size: 14px; }

/* Fenêtre PEAM posée sur la banquise */
.stage { position: relative; margin-top: 64px; padding-bottom: 120px; }
.ice { position: absolute; left: 50%; bottom: 0; width: 160%; height: 260px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(60% 100% at 50% 100%, #e9f4ff 0%, #b9d8f4 38%, #6f9dcb 62%, transparent 63%); opacity: .95; }
.ice::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 30% 100%, rgba(255,255,255,.5), transparent 70%), radial-gradient(30% 40% at 72% 96%, rgba(255,255,255,.35), transparent 70%); }
.win {
  position: relative; width: min(100%, 1040px); margin: 0 auto; border-radius: 14px; overflow: hidden;
  background: #16202d; border: 1px solid rgba(207, 232, 255, .16);
  box-shadow: 0 50px 90px -30px rgba(0, 10, 30, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  transform: perspective(1800px) rotateX(6deg); transform-origin: 50% 100%;
}
.win-bar { display: flex; align-items: center; gap: 18px; height: 50px; padding: 0 16px; background: #171a21; border-bottom: 1px solid rgba(255,255,255,.06); }
.win-bar img { width: 26px; height: 26px; }
.win-bar b { font: 800 16px var(--display); letter-spacing: .04em; }
.win-tabs { display: flex; gap: 4px; }
.win-tabs span { padding: 6px 12px; border-radius: 8px; color: #8f98a0; font-size: 13px; font-weight: 600; }
.win-tabs span.on { color: #fff; background: rgba(102, 192, 244, .14); }
.win-dots { margin-left: auto; display: flex; gap: 8px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.win-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; padding: 18px; background: linear-gradient(#294b64, #1b2838 60%); }
.feat { position: relative; border-radius: 10px; overflow: hidden; min-height: 250px; background: linear-gradient(160deg, #1f5f88, #0b2541); }
.feat .mtn { position: absolute; inset: auto 0 0; height: 62%; background: #071628; clip-path: polygon(0 60%, 14% 30%, 26% 52%, 40% 10%, 55% 46%, 68% 22%, 82% 50%, 100% 28%, 100% 100%, 0 100%); }
.feat .sun { position: absolute; left: 22%; top: 18%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #ffd28a, #ff9f2e 60%, transparent 70%); filter: blur(2px); }
.feat .peng { position: absolute; right: 12%; bottom: 14%; width: 76px; }
.feat .t { position: absolute; left: 20px; bottom: 18px; }
.feat .t b { display: block; font: 800 26px var(--display); }
.feat .t span { color: var(--ice); font-size: 13px; }
.side { display: grid; gap: 10px; align-content: start; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.22); }
.row .c { width: 78px; height: 44px; border-radius: 6px; flex: none; }
.row b { display: block; font-size: 14px; }
.row span { color: #8f98a0; font-size: 12px; }
.c1 { background: linear-gradient(135deg, #ff7eb3, #5b2a86); }
.c2 { background: linear-gradient(135deg, #8ef7a5, #12512f); }
.c3 { background: linear-gradient(135deg, #7fd6ff, #233d8f); }
.c4 { background: linear-gradient(135deg, #ffd28a, #8a3b12); }
/* notification de succès qui sort de la fenêtre */
.toast { position: absolute; right: -18px; bottom: 54px; display: flex; gap: 12px; align-items: center; width: 300px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(23, 34, 56, .98), rgba(14, 21, 36, .98)); border: 1px solid rgba(255,255,255,.1); border-left: 4px solid #ffd75e;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); animation: pop 0.6s 1.2s cubic-bezier(.2,.9,.25,1.2) both; }
.toast .i { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 215, 94, .16); box-shadow: 0 0 0 1px rgba(255, 215, 94, .4); }
.toast small { display: block; color: #ffd75e; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.toast b { display: block; font-size: 15px; }
.toast span { color: #a9b8d0; font-size: 12.5px; }
@keyframes pop { from { transform: translateY(30px) scale(.9); opacity: 0; } }

/* ----- sections ----- */
section { padding: 110px 0; }
.sec-h { max-width: 680px; margin-bottom: 56px; }
.sec-h h2 { margin: 0 0 14px; font: 800 clamp(34px, 4.6vw, 54px)/1.02 var(--display); letter-spacing: -.018em; text-wrap: balance; }
.sec-h p { margin: 0; color: var(--muted); font-size: 18px; }

/* Fonctionnalités : rangées alternées, chacune avec son illustration */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line); }
.feature:nth-child(even) .art { order: -1; }
.feature h3 { margin: 0 0 10px; font: 700 30px/1.1 var(--display); letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--ice); max-width: 46ch; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); }
.feature li { padding-left: 22px; position: relative; margin: 6px 0; }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--navy); box-shadow: inset 0 0 0 2px var(--ice); }
.art { position: relative; min-height: 260px; border-radius: 22px; padding: 26px; background: linear-gradient(160deg, var(--deep), #08182e); border: 1px solid var(--line); overflow: hidden; }

/* illustration : téléchargements */
.q { display: grid; gap: 10px; }
.q div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.q .c { height: 40px; border-radius: 6px; }
.q b { font-size: 14px; }
.q small { display: block; color: var(--muted); font-size: 12px; }
.bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #06bfff, #2d73ff); }
.graph { display: block; width: 100%; height: 70px; margin-top: 14px; }

/* illustration : succès */
.ach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ach span { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: 30px; background: rgba(255, 215, 94, .12); box-shadow: 0 0 0 1px rgba(255, 215, 94, .35); }
.ach span.off { filter: grayscale(1); opacity: .35; background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px var(--line); }
.ach-bar { margin-top: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.ach-bar b { color: #ffd75e; font-size: 20px; }

/* illustration : overlay */
.keys { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 30px 0 22px; color: var(--muted); font-size: 22px; }
kbd { display: inline-grid; place-items: center; min-width: 64px; height: 56px; padding: 0 14px; border-radius: 12px; font: 600 18px var(--text); color: var(--snow);
  background: linear-gradient(#22406a, #142a49); box-shadow: inset 0 -4px 0 #0a1830, 0 6px 16px -6px #000; border: 1px solid rgba(255,255,255,.12); }
.ov-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 13px; color: var(--ice); }
.ov-list span { padding: 10px 6px; border-radius: 10px; background: rgba(255,255,255,.05); }

/* illustration : amis */
.friends { display: grid; gap: 10px; }
.friend { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #071426; position: relative; }
.av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #0c2140; background: #a3cf06; }
.av.on::after { background: #66c0f4; }
.friend b { display: block; font-size: 14.5px; }
.friend small { color: #a3cf06; font-size: 12.5px; }
.friend small.on { color: #66c0f4; }
.invite { margin-left: auto; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: rgba(163, 207, 6, .15); color: #c7ef3a; }

/* ----- studios ----- */
.studios { background: linear-gradient(180deg, var(--night), #0a1d36 40%, var(--night)); }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.perks { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.perks li b { display: block; font: 700 20px var(--display); margin-bottom: 4px; }
.perks li span { color: var(--muted); }
.code { margin: 0; border-radius: 18px; background: #050e1b; border: 1px solid var(--line); overflow: hidden; }
.code-tabs { display: flex; gap: 2px; padding: 8px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.code-tabs button { border: 0; background: none; color: var(--muted); font: 600 13px var(--text); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.code-tabs button[aria-selected="true"] { background: rgba(102, 192, 244, .14); color: var(--snow); }
.code pre { margin: 0; padding: 22px; overflow-x: auto; font: 14px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; color: #cfe1f5; }
.code .k { color: #ff9f2e; } .code .s { color: #8fe3a7; } .code .m { color: #6c86a6; }

/* ----- installation (vraie suite d'étapes) ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; font: 800 52px/1 var(--display); color: var(--beak); }
.steps b { display: block; font: 700 21px var(--display); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ----- FAQ ----- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 600 19px var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; color: var(--beak); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ice); max-width: 68ch; }

/* ----- appel final ----- */
.final { text-align: center; position: relative; overflow: hidden; }
.final h2 { margin: 0 auto 26px; max-width: 760px; font: 800 clamp(38px, 5.6vw, 68px)/1 var(--display); letter-spacing: -.022em; }
.final .peng-big { width: 120px; margin: 0 auto 26px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }

/* ----- pied de page ----- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--snow); }

/* ----- pages légales ----- */
.legal { padding: 70px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font: 800 clamp(34px, 5vw, 52px)/1.05 var(--display); letter-spacing: -.018em; margin: 0 0 8px; }
.legal .upd { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font: 700 24px/1.2 var(--display); margin: 44px 0 12px; }
.legal h3 { font: 600 18px var(--display); margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ice); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--snow); font-weight: 600; }
.legal td { color: var(--ice); }
.todo { background: rgba(255, 159, 46, .16); color: #ffcf96; padding: 1px 6px; border-radius: 5px; }
.note { padding: 14px 18px; border-radius: 12px; background: rgba(92, 224, 198, .08); border: 1px solid rgba(92, 224, 198, .25); color: var(--ice); }

/* ----- petits écrans ----- */
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .dl.sm { margin-left: auto; }
  .win-body { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; }
  .toast { right: 8px; bottom: 30px; width: 270px; }
  .feature, .split { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .art { order: 0; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .win-tabs span:nth-child(n+3) { display: none; }
  .side { grid-template-columns: 1fr; }
  .side .row:nth-child(n+3) { display: none; }
  .feat { min-height: 190px; }
  .stage { padding-bottom: 80px; }
  .ach { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ach span { font-size: 22px; }
  .ov-list { grid-template-columns: repeat(2, 1fr); }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
