/* Hey!ko — le site. Direction « Nuit fluide » : les jetons de l'app (ios/Heyko/Interface/Theme/NuitFluide.swift).
   L'app est sombre par nature (UIUserInterfaceStyle = Dark) : le site aussi. */
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("polices/Archivo-600.ttf") format("truetype"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("polices/Archivo-700.ttf") format("truetype"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("polices/Archivo-800.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("polices/InstrumentSans-400.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("polices/InstrumentSans-500.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("polices/InstrumentSans-600.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("polices/IBMPlexMono-500.ttf") format("truetype"); }

:root {
  --fond-haut: #191521; --fond-bas: #0d0b12; --fond-fin: #141019;
  --texte: #F4F2F7; --texte-2: #A19EA6; --texte-3: #98959D;
  --verre: rgba(255,255,255,.07); --verre-bord: rgba(255,255,255,.12);
  --violet: #a385ff; --cyan: #00c1cc; --rose: #f68ed8; --orange: #fdaa58; --vert: #5adb82;
  --encre: #0B0A0F; --halo: #7d61de;
  --degrade: linear-gradient(120deg, var(--violet), var(--cyan));
  --anneau: conic-gradient(var(--cyan), var(--violet), var(--rose), var(--cyan));
  --rayon: 20px; --rayon-grand: 28px;
  --ombre: 0 24px 60px rgba(0,0,0,.45);
  --titre: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  --corps: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--texte); font: 17px/1.6 var(--corps); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: linear-gradient(180deg, var(--fond-haut), var(--fond-bas) 55%, var(--fond-fin)) fixed, var(--fond-bas);
}
a { color: var(--cyan); }
.large { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.etroit { max-width: 740px; margin: 0 auto; padding: 0 20px; }
.etiquette { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--titre); letter-spacing: -0.02em; }

/* ── En-tête ─────────────────────────────────────── */
header.nav { position: sticky; top: 0; z-index: 10; background: rgba(13,11,18,.72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--verre-bord); }
.nav .large { display: flex; align-items: center; gap: 24px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; font: 700 19px var(--titre); color: inherit; text-decoration: none; }
.marque img { width: 34px; height: 34px; border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav nav a { color: var(--texte-2); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--texte); }
.langue { color: var(--texte); text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--verre-bord); border-radius: 999px; padding: 6px 14px; }
.langue:hover { border-color: var(--cyan); color: var(--cyan); }
@media (max-width: 760px) { .nav nav { display: none; } .langue { margin-left: auto; } }

/* ── Héros ───────────────────────────────────────── */
.heros { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 0 40px; }
.heros::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -120px; top: -60px; background: radial-gradient(circle, rgba(125,97,222,.35), transparent 65%); filter: blur(30px); z-index: -1; }
.heros h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.03; letter-spacing: -0.035em; margin: 0 0 20px; }
.heros h1 em { font-style: normal; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heros .chapo { font-size: clamp(18px, 2vw, 21px); color: var(--texte-2); max-width: 36ch; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 13px 20px; font: 600 16px var(--corps); text-decoration: none; color: var(--texte); background: var(--verre); border: 1px solid var(--verre-bord); }
.bouton small { display: block; font-size: 11px; font-weight: 500; color: var(--texte-2); letter-spacing: .02em; }
.bouton.plein { background: var(--texte); color: var(--encre); border-color: transparent; }
.bouton.plein small { color: rgba(11,10,15,.6); }
.bouton svg { width: 20px; height: 20px; flex: none; }
a.bouton:hover { border-color: var(--cyan); }
@media (max-width: 900px) { .heros { grid-template-columns: 1fr; padding-top: 48px; } }

/* ── L'iPhone dessiné (écran d'écoute de l'app) ──── */
.scene { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 560px; }
.iphone { position: relative; width: 270px; height: 560px; border-radius: 48px; background: #050407; padding: 10px; box-shadow: var(--ombre), 0 0 0 1px rgba(255,255,255,.08) inset; flex: none; }
.vitre { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: linear-gradient(180deg, var(--fond-haut), var(--fond-bas) 60%, var(--fond-fin)); padding: 58px 18px 20px; display: flex; flex-direction: column; }
.vitre::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; top: 90px; left: -40px; background: rgba(125,97,222,.3); filter: blur(60px); }
.ile { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 88px; height: 26px; border-radius: 16px; background: #000; z-index: 2; }
.vitre > *:not(.ile) { position: relative; }
.vitre .etiquette { font-size: 9.5px; margin: 0 0 4px; }
.vitre .nom { font: 700 23px/1.08 var(--titre); letter-spacing: -0.02em; }
.anneau { width: 176px; height: 176px; border-radius: 50%; margin: 26px auto 0; position: relative; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,255,255,.04) 55%, transparent 56%); box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 0 60px -10px rgba(125,97,222,.7); }
.anneau::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--anneau); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%); mask: radial-gradient(circle, transparent 66%, #000 67%); opacity: .85; }
.barres { display: flex; gap: 4px; align-items: center; height: 64px; }
.barres i { width: 5px; border-radius: 3px; background: linear-gradient(var(--cyan), var(--violet)); height: 20px; animation: son 1.1s ease-in-out infinite alternate; }
.barres i:nth-child(2) { animation-delay: -.2s } .barres i:nth-child(3) { animation-delay: -.5s } .barres i:nth-child(4) { animation-delay: -.8s }
.barres i:nth-child(5) { animation-delay: -.3s } .barres i:nth-child(6) { animation-delay: -.65s } .barres i:nth-child(7) { animation-delay: -.1s }
@keyframes son { from { height: 10px } to { height: 58px } }
.volume { margin-top: auto; border-radius: 16px; background: var(--verre); border: 1px solid var(--verre-bord); padding: 11px 12px; }
.volume .haut { display: flex; justify-content: space-between; font: 500 9px var(--mono); letter-spacing: .12em; color: var(--texte-3); }
.rail { height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); margin-top: 9px; position: relative; }
.rail i { position: absolute; inset: 0 36% 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.rail b { position: absolute; left: 64%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; }
.boutons-ip { display: flex; gap: 8px; margin-top: 10px; }
.boutons-ip span { flex: 1; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.1); }
.boutons-ip span.rouge { color: #FF453A; }

/* ── Le panneau Mac dessiné (barre des menus) ─────── */
.panneau { position: absolute; left: 0; bottom: 120px; width: 215px; border-radius: 16px; padding: 14px; background: linear-gradient(180deg, rgba(25,21,33,.97), rgba(13,11,18,.98)); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--ombre); font-size: 12px; }
.panneau .etiquette { font-size: 9px; margin: 0 0 3px; }
.panneau .nom { font: 700 17px var(--titre); }
.interrupteur { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--verre); border: 1px solid var(--verre-bord); }
.interrupteur .bascule { margin-left: auto; width: 30px; height: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--cyan), var(--violet)); position: relative; flex: none; }
.interrupteur .bascule::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.pastille { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 10px var(--vert); display: inline-block; margin-right: 6px; }
@media (max-width: 900px) { .panneau { position: relative; left: auto; bottom: auto; margin-top: 18px; width: 270px; } .scene { flex-direction: column; justify-content: center; } }

/* ── Sections ────────────────────────────────────── */
section { padding: 96px 0 0; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 20ch; }
.intro { color: var(--texte-2); font-size: 19px; max-width: 58ch; margin: 0 0 40px; }
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.carte { border-radius: var(--rayon); background: var(--verre); border: 1px solid var(--verre-bord); padding: 24px; }
.carte .num { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font: 600 13px var(--mono); margin-bottom: 14px; }
.carte svg.ic { width: 26px; height: 26px; color: var(--cyan); margin-bottom: 12px; }
.carte h3 { margin: 0 0 6px; font-size: 21px; }
.carte p { margin: 0; color: var(--texte-2); font-size: 16px; }
@media (max-width: 900px) { .cartes { grid-template-columns: 1fr; } }

.franc { border-radius: var(--rayon-grand); padding: 40px; background: rgba(253,170,88,.08); border: 1px solid rgba(253,170,88,.28); display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.franc p { color: var(--texte-2); margin: 0 0 12px; }
.franc .chiffre { font: 800 64px/1 var(--titre); letter-spacing: -0.04em; }
.franc .chiffre small { font: 500 16px var(--corps); color: var(--texte-2); letter-spacing: 0; display: block; margin-top: 8px; }
@media (max-width: 860px) { .franc { grid-template-columns: 1fr; padding: 28px 22px; } }

.prive { border-radius: var(--rayon-grand); padding: 48px; background: rgba(0,193,204,.06); border: 1px solid rgba(0,193,204,.22); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.prive p { color: var(--texte-2); font-size: 18px; margin: 0 0 24px; }
.prive ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prive li { display: flex; gap: 14px; align-items: flex-start; background: var(--verre); border-radius: 16px; padding: 15px 17px; }
.prive li svg { flex: none; width: 22px; height: 22px; color: var(--vert); margin-top: 2px; }
.prive li b { display: block; }
.prive li span { color: var(--texte-2); font-size: 15px; }
@media (max-width: 860px) { .prive { grid-template-columns: 1fr; padding: 30px 22px; } }

.compat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.compat div { border-radius: var(--rayon); background: var(--verre); border: 1px solid var(--verre-bord); padding: 20px 22px; }
.compat b { display: block; font: 700 18px var(--titre); margin-bottom: 4px; }
.compat span { color: var(--texte-2); font-size: 15px; }
@media (max-width: 860px) { .compat { grid-template-columns: 1fr; } }

/* ── Pages de texte (confidentialité, assistance) ─── */
.page { padding-top: 56px; padding-bottom: 40px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; }
.page .date { color: var(--texte-3); margin: 0 0 32px; font-size: 15px; }
.page h2 { font-size: 23px; letter-spacing: -0.01em; margin: 44px 0 12px; max-width: none; }
.page p, .page li { margin: 0 0 12px; color: #d9d6de; }
.page ul { padding-left: 22px; }
.bref { border-radius: var(--rayon); padding: 22px 24px; background: rgba(90,219,130,.08); border: 1px solid rgba(90,219,130,.25); }
.bref ul { margin: 0; } .bref li { margin-bottom: 6px; }
.table { border: 1px solid var(--verre-bord); border-radius: var(--rayon); overflow: hidden; }
.ligne { padding: 18px 20px; border-top: 1px solid var(--verre-bord); background: rgba(255,255,255,.03); }
.ligne:first-child { border-top: 0; }
.ligne h3 { margin: 0 0 6px; font-size: 17px; }
.ligne p { margin: 0 0 4px; font-size: 16px; }
.champ { color: var(--texte-3); font-weight: 600; }
code { font: 500 14px var(--mono); background: var(--verre); border-radius: 6px; padding: 1px 6px; }

.contact { border-radius: var(--rayon); padding: 26px; background: var(--verre); border: 1px solid var(--verre-bord); margin-bottom: 36px; }
.contact p { color: var(--texte-2); margin: 0 0 14px; }
.contact a.mail { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 18px; text-decoration: none; word-break: break-all; }
.contact svg { width: 20px; height: 20px; flex: none; }
details { border-bottom: 1px solid var(--verre-bord); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--verre-bord); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--cyan); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p, details ol, details ul { margin: 10px 0 0; color: var(--texte-2); }
details li { color: var(--texte-2); margin-bottom: 6px; }
.page .groupe { margin: 44px 0 6px; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }

footer { margin-top: 110px; border-top: 1px solid var(--verre-bord); padding: 28px 0 48px; color: var(--texte-3); font-size: 14px; }
footer .large { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer a { color: var(--texte-3); text-decoration: none; }
footer a:hover { color: var(--texte); }
footer .droite { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
