/* Konfluo — site vitrine et pages légales */

@font-face {
  font-family: "Epilogue";
  src: url("../fonts/epilogue-var.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --violet: #4800b2;
  --violet-2: #6200ee;
  --violet-soft: #e8deff;
  --navy: #12105a;
  --ink: #1a1b21;
  --ink-2: #49454f;
  --teal: #4fdbcb;
  --teal-ink: #00453e;
  --surface: #faf8ff;
  --surface-2: #f4f3fb;
  --line: #e3dff0;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(26, 16, 90, 0.35);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-2); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: "Epilogue", "Manrope", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.9rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46rem; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--white); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: "Epilogue", sans-serif; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--violet); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--white); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  border: 0; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn-primary { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: var(--white); box-shadow: 0 10px 24px -10px rgba(72, 0, 178, 0.7); }
.btn-primary:hover { color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, 0.24); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 90, 0.15) 0%, rgba(18, 16, 90, 0.35) 45%, rgba(18, 16, 90, 0.88) 100%),
    linear-gradient(90deg, rgba(72, 0, 178, 0.45), rgba(72, 0, 178, 0) 60%);
}
.hero .wrap { padding-top: 120px; padding-bottom: clamp(48px, 9vh, 96px); width: 100%; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, 0.9); }
.hero .eyebrow { color: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 9px 16px 9px 13px; min-width: 176px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.store:hover { color: #fff; background: #111; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.68rem; line-height: 1.1; opacity: 0.85; }
.store strong { display: block; font-size: 1.08rem; line-height: 1.15; font-weight: 700; }
.store[aria-disabled="true"] { opacity: 0.72; cursor: default; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 10vw, 120px) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 48rem; margin-bottom: clamp(32px, 5vw, 56px); }

.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 0 rgba(26, 27, 33, 0.02);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet); margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--ink-2); margin: 0; }

.format { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.format img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; width: 100%; }
.format .body { padding: 22px 24px 26px; }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; border-radius: 999px;
  padding: 4px 11px; margin-bottom: 10px;
}
.tag-free { background: #d9fbf6; color: var(--teal-ink); }
.tag-paid { background: var(--violet-soft); color: var(--violet); }

.photo { border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(s); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: "Epilogue", sans-serif; font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: var(--white);
}
.steps strong { display: block; color: var(--navy); font-size: 1.08rem; }
.steps span { color: var(--ink-2); }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.06rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--violet); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* CTA */
.cta {
  border-radius: calc(var(--radius) + 10px);
  background: radial-gradient(120% 140% at 0% 0%, var(--violet-2) 0%, var(--violet) 45%, var(--navy) 100%);
  color: var(--white); padding: clamp(36px, 6vw, 64px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
}
.cta h2 { color: var(--white); }
.cta p { color: rgba(255, 255, 255, 0.86); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Legal / text pages ---------- */
.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--violet-soft), var(--surface)); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-head .wrap, .wrap.prose { max-width: 54rem; }
.prose { padding-bottom: clamp(64px, 9vw, 110px); }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--navy); }
.updated { color: var(--ink-2); font-size: 0.95rem; }
.callout {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--violet);
  border-radius: 12px; padding: 18px 20px; margin: 1.4em 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 56px 0 36px; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--white); font-family: "Epilogue", sans-serif; font-weight: 800; font-size: 1.25rem; }
.footer-brand img { width: 34px; height: 34px; background: var(--white); border-radius: 9px; padding: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 36px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
