/* =========================================================
   Fichora — feuille de style commune
   ========================================================= */
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Lettres d'Europe centrale et du turc (ł, ą, ş, ğ…) : chargée seulement si besoin */
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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: #f6f6fb;
  --bg-2: #eceefa;
  --surface: #ffffff;
  --surface-2: #f3f4fa;
  --ink: #12131c;
  --muted: #5c6178;
  --line: #e2e4f0;
  --brand: #5a4bef;
  --brand-strong: #4636d6;
  --brand-soft: #eeebff;
  --brand-ink: #ffffff;
  --blue: #0080fc;
  --teal: #16d0b4;
  --ok: #0a9e86;
  --danger: #d1382b;
  --grad: linear-gradient(135deg, #6b55d6 0%, #4a5ff0 50%, #0a86fc 100%);
  --shadow-sm: 0 1px 2px rgba(20, 20, 50, .06), 0 1px 3px rgba(20, 20, 50, .05);
  --shadow: 0 2px 6px rgba(20, 20, 60, .05), 0 12px 32px -8px rgba(30, 25, 90, .14);
  --shadow-lg: 0 24px 60px -16px rgba(40, 30, 120, .32);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c14;
    --bg-2: #11131f;
    --surface: #151726;
    --surface-2: #1c1f33;
    --ink: #eceefb;
    --muted: #9ba1bb;
    --line: #272b44;
    --brand: #8c7fff;
    --brand-strong: #a99fff;
    --brand-soft: #221e48;
    --brand-ink: #0d0b26;
    --ok: #2fdcc0;
    --danger: #ff7d70;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Jakarta", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* La police du site n'a pas l'alphabet cyrillique : police système, homogène */
:lang(ru), :lang(uk) { font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--surface); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Fond décoratif ---------- */
.bg-glow {
  position: absolute; inset: 0 0 auto 0; height: 620px; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
}
.bg-glow::before { width: 520px; height: 420px; left: -120px; top: -160px; background: #8b7dff; }
.bg-glow::after { width: 480px; height: 380px; right: -140px; top: -120px; background: #3ddbc3; opacity: .3; }
@media (prefers-color-scheme: dark) {
  .bg-glow::before { opacity: .22; }
  .bg-glow::after { opacity: .14; }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo picture, .logo img { display: block; height: 38px; width: auto; }
.logo img { transition: transform .35s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-weight: 600; font-size: .95rem; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 12px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: .88rem; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; color: var(--muted); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; max-height: min(70vh, 520px); overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  animation: pop .18s var(--ease);
}
.lang li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.lang li a:hover { background: var(--surface-2); }
.lang li a[aria-current="true"] { color: var(--brand); }
.lang li a small { color: var(--muted); font-weight: 700; }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; left: 12px; right: 12px; top: calc(var(--header-h) - 4px);
    flex-direction: column; padding: 8px; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s, transform .18s var(--ease);
  }
  .nav-links a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-primary {
  border: none; color: #fff; background: var(--grad); background-size: 140% 140%;
  box-shadow: 0 8px 22px -8px rgba(70, 80, 225, .65);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px -8px rgba(70, 80, 225, .8); background-position: 100% 0; }
.btn-soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }
.btn-soft:hover { color: var(--brand-strong); border-color: var(--brand); }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Héros ---------- */
.hero { position: relative; padding-top: 40px; padding-bottom: 20px; text-align: center; }
@media (min-width: 700px) { .hero { padding-top: 64px; padding-bottom: 28px; } }
.hero p.lead { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 640px; margin: 0 auto 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 18px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .85rem; font-weight: 700; color: var(--muted);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.badges li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600;
}
.badges svg { width: 17px; height: 17px; color: var(--ok); }

/* ---------- Sections ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 700px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* Cartes d'outils (accueil) */
.tools-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--ink); }
.tool-card .ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 10px 22px -10px rgba(70, 80, 225, .8);
}
.tool-card .ico svg { width: 28px; height: 28px; }
.tool-card h3 { margin: 6px 0 0; font-size: 1.2rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tool-card .go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.tool-card .go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.tool-card:hover .go svg { transform: translateX(4px); }
.tool-card.soon { box-shadow: none; border-style: dashed; background: transparent; pointer-events: none; }
.tool-card.soon .ico { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* Avantages */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { padding: 22px; }
.feature .fi {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--brand-soft); color: var(--brand);
}
.feature .fi svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Étapes */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 26px 22px 22px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.steps p { margin: 0; color: var(--muted); }

/* Formats */
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0 0 18px; padding: 0; }
.formats li { padding: 10px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; letter-spacing: .02em; box-shadow: var(--shadow-sm); }
.formats-note { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* Pages de texte */
.page-head { padding-top: 44px; padding-bottom: 10px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.prose { max-width: 760px; padding: 28px 22px; margin-bottom: 64px; }
@media (min-width: 700px) { .prose { padding: 40px 44px; } }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .9rem; margin-top: 2em; }
.todo { background: #fff3c4; color: #6b4e00; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .todo { background: #4a3a05; color: #ffe08a; } }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--brand-soft); margin: 1.2em 0; }
.contact-box strong { font-size: 1.1rem; word-break: break-all; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); margin-top: 20px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid p { color: var(--muted); font-size: .93rem; max-width: 340px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-grid ul a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.kofi {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600;
  transition: color .15s, border-color .15s, transform .15s;
}
.kofi svg { width: 17px; height: 17px; color: #ff5e5b; }
.kofi:hover { color: var(--ink); border-color: #ff5e5b; transform: translateY(-1px); }

/* ---------- Animations ---------- */
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tile-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero > * { animation: rise .6s var(--ease) both; }
.hero > *:nth-child(2) { animation-delay: .06s; }
.hero > *:nth-child(3) { animation-delay: .12s; }
.hero > *:nth-child(4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Page d'accueil racine (choix de langue) ---------- */
.lang-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.lang-pick a { min-width: 160px; }

.root-page { min-height: 100vh; display: flex; align-items: center; }
.root-page .hero { padding-top: 40px; padding-bottom: 40px; }
.root-logo { margin-bottom: 30px; }
.root-logo picture, .root-logo img { height: 64px; }
.root-line { display: block; font-size: clamp(1.3rem, 4vw, 2.2rem); }
.root-line:nth-child(2) { opacity: .75; }
.root-line:nth-child(3) { opacity: .55; }
