/* biblyo.app — charte « Violet clair » : fonds blancs, cartes lavande, accent violet ; dégradé réservé aux ciels. */
@font-face { font-family: Figtree; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Figtree; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-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; }
:root { --bg: #fff; --card: #F5F2FF; --line: #E4DEF7; --ink: #1B1340; --muted: #5A5478; --accent: #6D4AE0; --accent-ink: #5A38CC; --sky: #2A1B6E; --peach: #F2B880; --ok: #1F7A4D; --warn: #B3261E; --r: 28px; --r-sm: 16px;
  --font: Figtree, system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'PingFang SC', 'Hiragino Sans', 'Malgun Gothic', sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); }
a { color: var(--accent-ink); }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6vw, 62px); } h2 { font-size: clamp(28px, 4vw, 42px); } h3 { font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.eyebrow { font: 700 14px/1.3 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 680px; margin-bottom: 32px; }
:lang(ar) .eyebrow, :lang(hi) .eyebrow, :lang(ja) .eyebrow, :lang(zh) .eyebrow, :lang(ko) .eyebrow { letter-spacing: 0; text-transform: none; }
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { word-break: auto-phrase; text-wrap: balance; }
:lang(ar) body, :lang(ar) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
section { scroll-margin-top: 80px; }
.ico { width: 24px; height: 24px; flex: none; }

/* En-tête */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .logo { width: 36px; height: 36px; display: block; flex: none; } .brand .logo svg { width: 100%; height: 100%; display: block; border-radius: 9px; }
.brand .word { font: 800 24px/1 var(--font); letter-spacing: -.03em; }
nav.site { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
nav.site a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; } nav.site a:hover { color: var(--accent-ink); }
.lang-pick { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; border: 1px solid transparent; }
.lang-pick:hover, .lang-pick:focus-within { color: var(--ink); background: var(--card); border-color: var(--line); }
.lang-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-pick select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
@media (max-width: 820px) { nav.site a { display: none; } nav.site a.keep { display: inline; } }
@media (max-width: 420px) { nav.site a.keep { display: none; } }

/* Badges des stores */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #A6A6A6; text-decoration: none; font: 700 20px/1.1 var(--font); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font: 500 11px/1.25 var(--font); }
.store.soon { background: #fff; color: var(--ink); border: 1px solid #C9BFEF; }
.store.big { min-width: 230px; }
.sky .store.soon { background: rgba(255, 255, 255, .96); }
.note { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* Ciel : fond violet profond, paysage en bas (seul endroit où le dégradé est permis) */
.sky { position: relative; color: #fff; background: #2A1B6E url(/landscape.svg) center bottom / cover no-repeat; border-radius: var(--r); overflow: hidden; }
.sky h2, .sky h3 { color: #fff; } .sky .lead, .sky .section-lead { color: #E6E0FF; } .sky .eyebrow { color: #F2B880; }
.sky a { color: #fff; }

/* Téléphones */
.device { position: relative; width: 100%; max-width: 250px; aspect-ratio: 600 / 1298; background: #120B33; border-radius: 34px; padding: 8px; box-shadow: 0 30px 60px -24px rgba(20, 8, 70, .6), 0 2px 6px rgba(20, 8, 70, .25); }
.device img { display: block; width: 100%; height: 100%; border-radius: 27px; object-fit: cover; background: var(--card); }
.device::after { content: ''; position: absolute; top: 14px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 12px; background: #120B33; }

/* Accueil */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-art { min-height: 520px; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 48px 24px 0; }
.hero-art .device { max-width: 230px; } .hero-art .device + .device { margin-inline-start: -34px; margin-bottom: 0; transform: translateY(28px); }
.hero-art .device:first-child { transform: translateY(0); z-index: 1; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { min-height: 440px; } .hero-art .device { max-width: 190px; } }
.moment { padding: 12px 0 72px; }
.moment .sky { padding: 64px 40px 200px; }
.steps5 { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps5 li { counter-increment: s; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-sm); padding: 18px 16px; }
.steps5 li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #F2B880; color: #2A1B6E; font-weight: 800; margin-bottom: 12px; }
.steps5 b { display: block; font-size: 18px; margin-bottom: 4px; } .steps5 span { color: #E6E0FF; font-size: 15px; line-height: 1.45; display: block; }
@media (max-width: 900px) { .steps5 { grid-template-columns: 1fr 1fr; } .moment .sky { padding: 44px 22px 150px; } }
@media (max-width: 520px) { .steps5 { grid-template-columns: 1fr; } }
.features { padding: 24px 0 72px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 26px 24px; }
.card .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
.showcase { padding: 0 0 72px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 12px; }
.shot { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--card); border-radius: var(--r); padding: 36px 20px 28px; }
.shot .device { max-width: 220px; } .shot h3 { margin-top: 24px; } .shot p { color: var(--muted); margin: 0; max-width: 320px; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } .shot .device { max-width: 210px; } }
.calm { padding: 0 0 72px; }
.calm .box { background: var(--card); border-radius: var(--r); padding: 56px 40px; }
.calm .grid3 .card { background: #fff; }
.plans { padding: 0 0 72px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 32px 30px; background: #fff; }
.plan.plus { background: var(--card); border-color: var(--accent); border-width: 2px; }
.plan h3 { font-size: 24px; } .plan > p { color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; } .plan li svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }
.cta { padding: 0 0 88px; }
.cta .sky { padding: 72px 32px 190px; text-align: center; }
.cta .lead { margin: 0 auto; } .cta .stores { justify-content: center; } .cta .note { color: #E6E0FF; }
@media (max-width: 560px) { .cta .sky { padding: 52px 20px 130px; border-radius: 24px; } }

/* Pages de texte : pleine largeur du conteneur */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.doc h2 { font-size: clamp(22px, 3vw, 28px); margin: 40px 0 10px; }
.doc p, .doc li { color: #2D2756; } .doc ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.doc .lead { max-width: none; }
.translated { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; font-size: 15px; margin: 24px 0 0; }
.updated { color: var(--muted); font-size: 14px; }
table.data { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
table.data th, table.data td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data th { background: var(--card); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
:lang(ar) table.data th, :lang(hi) table.data th, :lang(ja) table.data th, :lang(zh) table.data th, :lang(ko) table.data th { text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) { table.data { font-size: 14px; } table.data th, table.data td { padding: 9px 8px; } }

/* FAQ : <details> animés (site.js du modèle nuits-normandes), utilisables sans JavaScript */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 20px; margin: 10px 0; overflow: hidden; }
details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; font-size: 18px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ''; width: 12px; height: 12px; flex: none; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details > :not(summary) { color: var(--muted); }
details > p:last-child { margin-bottom: 18px; }
details.anim { overflow: hidden; } details.closing summary::after { transform: rotate(45deg) translateY(-3px); }
details[open]:not(.closing) > :not(summary) { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { details summary::after { transition: none; } details > :not(summary) { animation: none !important; } html { scroll-behavior: auto; } }
.help-group { margin-top: 36px; font-size: clamp(22px, 3vw, 28px); }

/* Contact */
.form { display: grid; gap: 16px; margin-top: 20px; max-width: none; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form input, .form select, .form textarea { font: 500 17px var(--font); color: var(--ink); background: #fff; border: 1px solid #C9BFEF; border-radius: 14px; padding: 12px 14px; width: 100%; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 700 17px var(--font); cursor: pointer; text-decoration: none; justify-self: start; }
.btn:hover { background: #5A38CC; } .btn:disabled { opacity: .55; }
.form-msg { min-height: 1.4em; font-weight: 700; margin: 0; } .form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--warn); }

/* Pied de page */
footer.site { background: var(--card); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
footer.site a { color: var(--muted); text-decoration: none; } footer.site a:hover { color: var(--ink); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand p { color: var(--muted); margin: 12px 0 0; max-width: 340px; }
footer.site .stores { margin: 20px 0 0; gap: 10px; } footer.site .store { min-height: 46px; padding: 6px 14px 6px 10px; font-size: 16px; gap: 8px; }
footer.site .store.soon { color: var(--ink); } footer.site .store svg { width: 22px; height: 22px; } footer.site .store small { font-size: 10px; }
.foot-col { display: grid; align-content: start; gap: 10px; }
.foot-col h2 { font: 800 13px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 4px 0 6px; }
:lang(ar) .foot-col h2, :lang(hi) .foot-col h2, :lang(ja) .foot-col h2, :lang(zh) .foot-col h2, :lang(ko) .foot-col h2 { text-transform: none; letter-spacing: 0; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; color: var(--muted); font-size: 14px; } .foot-bottom p { margin: 0; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
[hidden] { display: none !important; }

/* Lien de téléchargement (link.biblyo.app) */
.lk-page { min-height: 100dvh; background: #2A1B6E url(/landscape.svg) center bottom / cover no-repeat; color: #fff; }
.lk { max-width: 560px; min-height: 100dvh; margin: 0 auto; padding: 56px 20px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lk-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 18px 50px rgba(10, 4, 50, .5); }
.lk-name { margin: 22px 0 10px; font: 700 14px/1 var(--font); letter-spacing: .32em; text-transform: uppercase; color: #F2B880; }
.lk-title { font-size: clamp(32px, 8.6vw, 46px); text-wrap: balance; margin: 0 0 14px; color: #fff; }
.lk-sub { margin: 0 0 30px; color: #E6E0FF; font-size: 17px; max-width: 400px; text-wrap: balance; }
.lk-btns { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.lk-btn { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 6px 7px 6px 20px; border-radius: 999px; text-decoration: none; background: #fff; color: var(--ink); font: 700 17px/1.15 var(--font); text-align: start; }
.lk-btn.primary { background: #F2B880; }
.lk-ic { display: inline-flex; width: 24px; justify-content: center; flex: none; } .lk-ic svg { width: 22px; height: 22px; }
.lk-label { flex: 1; } .lk-label small { display: block; font: 600 12px/1.2 var(--font); color: #4A4466; }
.lk-go { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--accent); color: #fff; }
[dir="rtl"] .lk-go svg { transform: scaleX(-1); }
.lk-note { margin: 20px 0 0; font-size: 14px; color: #E6E0FF; }
.lk-lang { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; min-height: 42px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; font: 600 14px var(--font); color: #fff; cursor: pointer; }
.lk-lang:focus-within { outline: 2px solid #F2B880; outline-offset: 2px; }
.lk-lang select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
