/* Leyfin — site vitrine. Couleurs et police de l'app. Aucun script, aucune ressource externe. */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/Manrope-Regular.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/Manrope-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/Manrope-Bold.woff2") format("woff2"); }

:root {
  --bg: #f3f1ff;
  --bg-alt: #e9efff;
  --surface: #ffffff;
  --ink: #272a4b;
  --muted: #5d6384;
  --line: #e1e3f6;
  --primary: #6b5af0;
  --deep: #4a3bc4;
  --on-primary: #ffffff;
  --shadow: 0 18px 50px rgba(74, 59, 196, 0.16);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141729;
    --bg-alt: #181b30;
    --surface: #23263f;
    --ink: #ecefff;
    --muted: #a0a6cc;
    --line: #373b5e;
    --primary: #7c6cf4;
    --deep: #c6bbff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

/* ---- barre du haut */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }
.lang { text-decoration: none; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--ink); }

/* ---- héros */
.hero { padding: clamp(40px, 7vw, 90px) 0; background: radial-gradient(900px 500px at 85% -10%, rgba(124, 108, 244, 0.28), transparent 60%), radial-gradient(700px 400px at -5% 20%, rgba(79, 134, 242, 0.2), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.store { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; margin-top: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store.alt { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.store.soon { opacity: 0.92; cursor: default; }
.cta-note { color: var(--muted); font-size: 0.9rem; margin: 10px 0 18px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; font-weight: 600; }

/* ---- téléphone */
.phone { border: 9px solid #101018; border-radius: 44px; overflow: hidden; background: #101018; box-shadow: var(--shadow); }
.phone img { width: 100%; }
.hero-phone { display: flex; justify-content: center; }
.phone.big { width: min(300px, 78vw); transform: rotate(3deg); }

/* ---- sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--bg-alt); }
.sub { color: var(--muted); max-width: 36em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px 4px 34px; margin-top: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.gallery::-webkit-scrollbar { display: none; }
.gal-btn { position: absolute; top: 42%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 1.3rem/1 "Manrope", system-ui, sans-serif; cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.gal-btn[hidden] { display: none; }
.gal-btn:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.gal-btn:disabled { opacity: 0.35; cursor: default; }
.gal-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.gal-btn.prev { left: -6px; }
.gal-btn.next { right: -6px; }
.shot { flex: 0 0 auto; width: 230px; margin: 0; scroll-snap-align: center; }
.shot .phone { border-width: 7px; border-radius: 34px; }
.shot figcaption { text-align: center; color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-top: 12px; }

.trust { display: grid; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding: 8px 0 8px 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 16px; width: 5px; height: 9px; border: solid var(--on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.textlink { font-weight: 700; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); }

/* ---- pages de texte */
.doc { padding: clamp(28px, 5vw, 60px) 0 80px; }
.doc h2 { font-size: 1.2rem; margin-top: 1.8em; color: var(--deep); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; }
.muted { color: var(--muted); }

.eyebrow { color: var(--deep); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; margin: 0 0 10px; }

/* ---- guides (articles) */
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.article h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.article .lead { max-width: none; margin-bottom: 1.4em; }
.article h2 { font-size: 1.35rem; margin-top: 1.9em; color: var(--deep); }
.article ol { padding-left: 1.3em; }
.article li { margin-bottom: 0.55em; }
.cta-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 2.2em 0 1.5em; box-shadow: var(--shadow); }
.cta-box h2 { margin-top: 0; font-size: 1.3rem; }
.cta-box p { color: var(--muted); }
.related { list-style: none; padding: 0; }
.related li { margin-bottom: 10px; }
.related a { font-weight: 700; text-decoration: none; }
.related a:hover { text-decoration: underline; }
.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.guide-cards a.card { text-decoration: none; color: inherit; display: block; }
.guide-cards a.card:hover { border-color: var(--primary); }
.guide-cards h3 { color: var(--deep); }

/* ---- pied de page */
.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 0.92rem; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { order: -1; }
  .phone.big { transform: none; }
  .grid, .guide-cards { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .lang { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
