/* Kuittly — site, style « Relevé » (mêmes couleurs, police, rayons que l'app v1.53.0+).
   Sources : lib/core/constants.dart (AppColors), lib/shared/theme/app_theme.dart (KColors, tailles, rayons). */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/outfit-600.woff2") format("woff2"); }

:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --surface2: #EEEEF2; --divider: #E5E4EA;
  --text: #15141A; --text2: #5E5C67; --text3: #8C8A96;
  --accent: #6C5CE7; --accent-text: #5546D6; --on-accent: #FFFFFF; --tonal: #EFEDFD;
  --late: #C62828; --due: #A75A00; --paid: #0F7B5F; --star: #FFB300;
  --late-bg: #FBEAEA;
  --r: 12px; --r-sm: 8px;
  --top-h: 61px; /* hauteur de l'en-tête collant (60 + bordure) */
  --font: "Outfit", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
/* Sombre : réglage de l'appareil (sauf si le visiteur a choisi « Clair »), ou choix « Sombre » avec le bouton ☀ / ☾ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E12; --surface: #18181F; --surface2: #22222B; --divider: #2A2A33;
    --text: #F3F3F6; --text2: #A6A5B1; --text3: #75737F;
    --accent-text: #8F84F0; --tonal: #26233F;
    --late: #FF6B6B; --due: #F5A524; --paid: #2FBF8F;
    --late-bg: #2B1A1E;
  }
}
:root[data-theme="dark"] {
    --bg: #0E0E12; --surface: #18181F; --surface2: #22222B; --divider: #2A2A33;
    --text: #F3F3F6; --text2: #A6A5B1; --text3: #75737F;
    --accent-text: #8F84F0; --tonal: #26233F;
    --late: #FF6B6B; --due: #F5A524; --paid: #2FBF8F;
    --late-bg: #2B1A1E;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--font); font-size: 16px; line-height: 1.4; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Barre du haut */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--divider); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 20px; }
.brand img { width: 32px; height: 32px; }
.sections { display: none; align-items: center; gap: 24px; margin-left: 16px; }
.sections a, .more summary { color: var(--text2); text-decoration: none; font-size: 15px; font-weight: 500; }
.sections a:hover, .more summary:hover { color: var(--text); }
.sections > a[aria-current], .more summary.on { color: var(--accent-text); }
@media (min-width: 900px) { .sections { display: flex; } }
.sections > a { white-space: nowrap; }
@media (max-width: 1023px) { html[lang="ta"] .sections { gap: 16px; } } /* titres tamouls plus longs */
/* « Plus ▾ » : les sections qui ne tiennent pas dans l'en-tête */
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; white-space: nowrap; }
.more summary::-webkit-details-marker { display: none; }
.more ul { position: absolute; right: -12px; top: calc(100% + 14px); list-style: none; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 6px; min-width: 220px; }
.more li a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); white-space: nowrap; }
.more li a:hover { background: var(--surface2); }
.more li a[aria-current] { color: var(--accent-text); background: var(--tonal); }

/* Aller à une section : elle arrive juste sous l'en-tête */
main > section { position: relative; }
main > section[id], .old-anchor { scroll-margin-top: var(--top-h); }
.old-anchor { position: absolute; top: 0; left: 0; }

/* Bouton menu ☰ (sous 900 px) et son panneau : toutes les sections + les langues */
.menu { display: none; }
@media (max-width: 899px) { .menu { display: block; } }
.menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface2); color: var(--text); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.menu .i-close, .menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel { position: fixed; left: 0; right: 0; top: var(--top-h); max-height: calc(100vh - var(--top-h)); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--divider); z-index: 6; }
.js .menu-panel { bottom: 0; max-height: none; overflow: hidden; display: flex; flex-direction: column; background: rgba(14, 14, 18, 0.45); border: 0; }
.menu-sheet { background: var(--surface); padding: 8px 16px 20px; overflow-y: auto; min-height: 0; border-bottom: 1px solid var(--divider); }
.menu-secs ul { list-style: none; display: flex; flex-direction: column; }
.menu-secs li + li { border-top: 1px solid var(--divider); }
.menu-secs a { display: flex; align-items: center; min-height: 52px; padding: 0 12px; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 500; border-radius: var(--r-sm); }
.menu-secs a:hover { background: var(--surface2); }
.menu-secs a[aria-current] { color: var(--accent-text); background: var(--tonal); }
/* Langue sur téléphone : une ligne « Langue : Français ▾ ». Avec JS : <select> natif invisible posé sur la ligne. Sans JS : <details> + liens. */
.lang-pick { margin-top: 12px; }
.foot-pick, .lp-js { display: none; }
.lp-js { position: relative; }
.js .lp-js { display: block; }
.js .lp-nojs { display: none; }
.lp-face, .lp-nojs summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface2); color: var(--text); font-size: 16px; }
.lp-face svg, .lp-nojs summary svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; }
.lp-l { color: var(--text2); white-space: nowrap; }
.lang-pick b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-v { margin-left: auto; color: var(--text2); }
.lp-sel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; font-size: 16px; }
.lp-js:focus-within .lp-face { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-nojs summary { list-style: none; cursor: pointer; }
.lp-nojs summary::-webkit-details-marker { display: none; }
.lp-nojs[open] .lp-v { transform: rotate(180deg); }
.menu-langs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.menu-langs a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface2); color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; }
.menu-langs a[aria-current] { background: var(--tonal); color: var(--accent-text); font-weight: 600; }
@media (max-width: 899px) {
  .js .foot-pick { display: block; order: -1; margin: 0 0 20px; max-width: 480px; }
  .js footer .lang-list, .js footer .lang-head { display: none; }
}
.menu-open body { overflow: hidden; }
.langs { margin-left: auto; position: relative; }
.langs summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 40px; border-radius: var(--r-sm); background: var(--surface2); color: var(--text); font-size: 14px; font-weight: 500; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 6px; width: 220px; max-height: 70vh; overflow-y: auto; }
.langs li a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 15px; }
.langs li a:hover { background: var(--surface2); }
.langs li a[aria-current] { color: var(--accent-text); font-weight: 600; background: var(--tonal); }

/* Titres et textes */
h1 { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.2; font-weight: 600; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
@media (min-width: 720px) { h1 { font-size: 48px; } h2 { font-size: 28px; } }
.lead { font-size: 17px; color: var(--text2); }
.small { font-size: 14px; color: var(--text2); }
section { padding: 48px 0; }
.sec-head { margin-bottom: 20px; max-width: 640px; }
.sec-head p { margin-top: 8px; color: var(--text2); }
.label { font-size: 14px; color: var(--text2); font-weight: 500; margin-bottom: 8px; }

/* Boutons (comme l'app : violet uni, rayon 12, sans ombre ni dégradé) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r); font: 600 16px/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer; text-align: center; }
.btn-fill { background: var(--accent); color: var(--on-accent); }
.btn-fill:hover { filter: brightness(1.08); }
.btn-tonal { background: var(--tonal); color: var(--accent-text); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Pastille de statut (KStatusDot : point de 8 px + texte de la même couleur) */
.dot { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot.paid { color: var(--paid); } .dot.due { color: var(--due); } .dot.late { color: var(--late); } .dot.neutral { color: var(--text2); }
.star { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.star::before { content: "★"; color: var(--star); font-size: 15px; }

/* Accueil */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 64px 0 40px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-sm); background: var(--tonal); color: var(--accent-text); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { max-width: 560px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.phone { justify-self: center; width: min(300px, 78vw); border-radius: 28px; overflow: hidden; border: 1px solid var(--divider); background: var(--surface); }
.phone img { width: 100%; }

/* Groupe de lignes (KGroup / KRow) */
.group { background: var(--surface); border-radius: var(--r); overflow: hidden; }
.row { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.row + .row { border-top: 1px solid var(--divider); }
.row .ico { flex: none; }
.row p { color: var(--text2); font-size: 15px; margin-top: 4px; }
.ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--tonal); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; stroke: var(--accent-text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 600; flex: none; }

/* Étapes */
.steps { display: grid; gap: 12px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: var(--r); padding: 20px; }
.card h3 { margin: 12px 0 6px; }
.card p { color: var(--text2); font-size: 15px; }

/* Captures */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots figure { scroll-snap-align: start; }
.shots .phone { width: 100%; border-radius: 22px; }
.shots figcaption { font-size: 14px; color: var(--text2); margin-top: 10px; }
@media (min-width: 900px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* Fonctions */
.features { display: grid; gap: 12px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { margin-top: 4px; }
.feature p { color: var(--text2); font-size: 15px; flex: 1; }

/* Prix */
.plans { display: grid; gap: 16px; align-items: start; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; max-width: 860px; } }
.plan { background: var(--surface); border-radius: var(--r); padding: 24px; border: 2px solid transparent; }
.plan.plus { border-color: var(--accent); }
.plan h3 { font-size: 22px; }
.plan .desc { color: var(--text2); margin-top: 4px; }
.price { font-size: 34px; font-weight: 600; margin-top: 16px; line-height: 1.1; }
.price small { font-size: 16px; font-weight: 500; color: var(--text2); }
.plan .alt { color: var(--text2); font-size: 15px; margin-top: 6px; }
.plan ul { list-style: none; margin: 20px 0 24px; border-top: 1px solid var(--divider); }
.plan li { padding: 10px 0; border-bottom: 1px solid var(--divider); display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paid); flex: none; margin-top: 7px; }
.plan .btn { width: 100%; }
.note { margin-top: 16px; font-size: 14px; color: var(--text2); }

/* Confidentialité, Suisse */
.two { display: grid; gap: 24px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } }
.two .text p { color: var(--text2); margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface2); color: var(--text); font-size: 14px; font-weight: 500; }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--tonal); color: var(--accent-text); }
.cta { background: var(--tonal); border-radius: var(--r); padding: 32px 20px; text-align: center; }
.cta p { color: var(--text2); margin: 8px auto 0; max-width: 520px; }
.cta .btns { justify-content: center; }

/* Pied de page */
footer { border-top: 1px solid var(--divider); padding: 32px 0 40px; margin-top: 24px; font-size: 14px; color: var(--text2); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
footer .links a { color: var(--text); text-decoration: none; }
footer .links a:hover { text-decoration: underline; }
footer .lang-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0; }
footer .lang-list a { color: var(--text2); text-decoration: none; }
footer .lang-list a:hover { color: var(--text); }

.top-price, footer .lang-head { display: none; }
/* Téléphone (≤ 640 px) : page plus courte, prix plus haut. L'ordinateur ne change pas. */

@media (max-width: 640px) {
  /* En-tête : lien « Tarifs » + menu des langues */
  .top .wrap { gap: 8px; min-height: 56px; }
  .top-price { display: inline-flex; align-items: center; margin-left: auto; min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--tonal); color: var(--accent-text); font-size: 14px; font-weight: 600; text-decoration: none; }
  .langs { margin-left: 0; }
  :root { --top-h: 57px; }

  /* Ordre : accueil, 3 étapes, tarifs, puis le reste */
  main { display: flex; flex-direction: column; }
  main > section { order: 2; }
  main > .hero, main > #etapes, main > #tarifs { order: 1; }

  /* Espaces plus petits */
  section { padding: 28px 0; }
  .hero { padding: 24px 0 12px; }
  .hero .wrap { gap: 24px; }
  .hero .wrap > * { min-width: 0; } /* un très long mot (tamoul) ne fait plus déborder la page */
  .hero h1 { overflow-wrap: break-word; }
  .sec-head { margin-bottom: 14px; }
  .btns { margin-top: 20px; }
  .hero-langs { display: none; }
  .hero .phone { display: none; } /* capture du haut cachée : déjà dans « L'app en images » */

  /* Captures : une à la fois, glisser au doigt */
  .shots { grid-auto-columns: 74%; gap: 12px; overscroll-behavior-x: contain; }

  /* Fonctions : petites cartes sur 2 colonnes, sans la description */
  .features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature { padding: 12px; gap: 6px; }
  .feature h3 { font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; hyphens: auto; }
  .feature p { display: none; }
  .feature .ico { width: 34px; height: 34px; }
  .feature .ico svg { width: 20px; height: 20px; }
  .feature .dot, .feature .star { font-size: 13px; }

  /* Tarifs */
  .plan { padding: 20px; }
  .plan ul { margin: 14px 0 18px; }
  .plan li { padding: 8px 0; }

  /* Confidentialité et Suisse : plus compact */
  .two { gap: 14px; }
  .two .text p { margin-top: 8px; font-size: 15px; }
  .row { padding: 12px; gap: 12px; }
  .row .ico { width: 34px; height: 34px; }
  .row .ico svg { width: 20px; height: 20px; }
  .row h3 { font-size: 16px; }
  .row p { font-size: 14px; margin-top: 2px; }
  .chips { gap: 6px; margin-top: 12px; }
  .chip { padding: 6px 10px; font-size: 13px; }
  .cta { padding: 24px 16px; }

  /* Pied de page : la liste des langues d'abord, en pastilles */
  footer { margin-top: 0; padding: 24px 0 32px; }
  footer .wrap { display: flex; flex-direction: column; }
  footer .lang-head { display: block; order: -1; font-weight: 500; color: var(--text); margin-bottom: 8px; }
  footer .lang-list { order: -1; gap: 6px; margin: 0 0 20px; }
  footer .lang-list a { padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface2); color: var(--text); font-size: 13px; font-weight: 500; }
}
main > section:focus { outline: none; }

/* Grands écrans (≥ 1500 px), référence 1920 × 1080 */
@media (min-width: 1500px) {
  html { font-size: 17px; }
  .wrap { max-width: 1360px; padding: 0 32px; }
  .hero { min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 48px 0; }
  .hero .wrap { width: 100%; grid-template-columns: 1.2fr 0.8fr; gap: 64px; }
  .hero h1 { font-size: 64px; line-height: 1.05; }
  .hero .lead { max-width: 640px; font-size: 20px; }
  .phone { width: 360px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .features { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .feature { padding: 22px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; gap: 32px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; gap: 24px; }
  .sec-head { max-width: 760px; }
}
@media (min-width: 2200px) {
  .wrap { max-width: 1560px; }
  .hero h1 { font-size: 76px; }
  .phone { width: 400px; }
}

/* ---------- Effets interactifs (fx.js). Sans JavaScript ou avec « moins d'animations » : site normal. ---------- */
.fx-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 20; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #A29BFE, var(--paid)); pointer-events: none; }
.top { transition: background-color .25s, box-shadow .25s, border-color .25s; }
/* Le flou est sur un calque derrière l'en-tête, pas sur l'en-tête : un backdrop-filter sur .top enfermait le menu ☰
   (position: fixed) dans les 60 px de l'en-tête, et il ne s'ouvrait plus une fois la page descendue. */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.top.scrolled { background: transparent; box-shadow: 0 6px 24px -12px rgba(21, 20, 26, .25); border-bottom-color: transparent; }
.top.scrolled::before { opacity: 1; }

/* Accueil : fond lumineux qui respire + téléphone qui flotte */
.hero { position: relative; isolation: isolate; }
main { overflow-x: clip; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, #A29BFE, transparent 65%); animation: fx-blob 14s ease-in-out infinite alternate; }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--paid) 70%, transparent), transparent 65%); animation: fx-blob 18s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::before, :root:not([data-theme="light"]) .hero::after { opacity: .35; } }
:root[data-theme="dark"] .hero::before, :root[data-theme="dark"] .hero::after { opacity: .35; }
@keyframes fx-blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.12); } 100% { transform: translate(30px, -20px) scale(.95); } }
.hero h1 { background: linear-gradient(100deg, var(--text) 30%, var(--accent-text) 60%, var(--text) 85%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-shine 7s ease-in-out infinite; }
@keyframes fx-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero .phone { --rx: 0deg; --ry: 0deg; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 40px 80px -30px rgba(108, 92, 231, .45), 0 18px 36px -18px rgba(21, 20, 26, .35); }
.hero .phone picture { display: block; animation: fx-float 6s ease-in-out infinite; }
@keyframes fx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Boutons : immobiles partout (choix de Djordan, 18.11.2026) ; seulement une ombre douce au survol */
.btn { transition: box-shadow .2s, background-color .2s, filter .2s; }
.btn-fill:hover { box-shadow: 0 10px 22px -12px rgba(108, 92, 231, .6); filter: brightness(1.06); }

/* Cartes : se soulèvent + halo sous la souris */
.card, .feature, .plan { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
@media (hover: hover) {
  .card:hover, .feature:hover, .plan:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(21, 20, 26, .35); }
  .feature:hover .ico, .card:hover .num { transform: scale(1.1) rotate(-4deg); }
}
.ico, .num { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.fx-glow { position: relative; isolation: isolate; }
.fx-glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.fx-glow:hover::before { opacity: 1; }
@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan.plus { background: linear-gradient(var(--surface), var(--surface)) padding-box,
  conic-gradient(from var(--fx-a), var(--accent), #A29BFE, var(--paid), #A29BFE, var(--accent)) border-box; border-color: transparent; animation: fx-spin 6s linear infinite; }
@keyframes fx-spin { to { --fx-a: 360deg; } }

/* Étapes : ligne de temps verticale, remplie au défilement (fx.js règle --p et .on) */
.steps.timeline { grid-template-columns: 1fr; gap: 16px; position: relative; padding-left: 60px; max-width: 760px; --p: 1; }
.steps.timeline::before, .steps.timeline::after { content: ""; position: absolute; z-index: 0; left: 19px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; }
.steps.timeline::before { background: var(--divider); }
.steps.timeline::after { background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.js .steps.timeline { --p: 0; }
.steps.timeline .card { position: relative; z-index: 1; padding: 20px 22px; }
.steps.timeline .card h3 { margin-top: 0; font-size: 19px; }
.steps.timeline .num { position: absolute; left: -60px; top: 14px; width: 42px; height: 42px; font-size: 18px; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg); transition: background-color .35s, color .35s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.js .steps.timeline .card:not(.on) .num { background: var(--surface); color: var(--text3); outline: 2px solid var(--divider); outline-offset: -2px; }
.js .steps.timeline .card.on .num { transform: scale(1.08); }
.js .steps.timeline .card { transition: opacity .4s, translate .6s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.js .steps.timeline .card:not(.on) { opacity: .6; }
@media (min-width: 720px) { .steps.timeline { grid-template-columns: 1fr; gap: 20px; } .steps.timeline .card { padding: 24px 28px; } }

/* « Simple comme bonjour » : un vrai téléphone, penché en 3D, avec les captures de l'app.
   Il reste fixe pendant qu'on descend (à droite sur ordinateur, en haut sur téléphone) :
   l'écran glisse à chaque étape, puis deux morceaux de la capture sortent, agrandis (zoom dans l'app). */
.device { position: relative; width: 250px; padding: 9px; border-radius: 38px; background: linear-gradient(145deg, #3A3942, #17161C 55%, #2A2930);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), inset 0 0 0 4px #0B0B0F, 0 2px 0 rgba(255,255,255,.05); }
.dev-screen { position: relative; border-radius: 30px; overflow: hidden; background: #F5F5F7; aspect-ratio: 540 / 1058; display: grid; }
.dev-screen picture, .dev-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dev-cam { position: absolute; top: 17px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0B0B0F; box-shadow: inset 0 0 0 2px #23222A; z-index: 4; }
.dev-btn { position: absolute; width: 3px; border-radius: 2px; background: #2C2B33; }
.dev-btn.b1 { right: -3px; top: 22%; height: 11%; } .dev-btn.b2 { left: -3px; top: 18%; height: 7%; } .dev-btn.b3 { left: -3px; top: 28%; height: 13%; }
.dev-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 32%); }

.vis-stage { --p: 0; --z: 0; display: grid; place-items: center; perspective: 1400px; }
.vis-stage > * { grid-area: 1 / 1; }

/* Tache de couleur derrière : violet, puis menthe, puis corail */
.dev-blob { width: 360px; height: 360px; border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%; background: var(--tonal); filter: blur(2px);
  transition: background-color .8s ease, border-radius 1.2s ease, transform 1.2s cubic-bezier(.2,.8,.2,1); transform: translateY(calc(var(--p) * 30px)) rotate(calc(var(--p) * 40deg)); }
.vis-stage[data-step="1"] .dev-blob { background: color-mix(in srgb, var(--paid) 22%, var(--bg)); border-radius: 58% 42% 40% 60% / 44% 58% 42% 56%; }
.vis-stage[data-step="2"] .dev-blob { background: color-mix(in srgb, #F2896B 24%, var(--bg)); border-radius: 42% 58% 52% 48% / 60% 40% 60% 40%; }
.dev-floor { align-self: end; width: 70%; height: 26px; margin-bottom: 4px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); }

/* Téléphone penché, qui se tourne un peu à chaque étape */
.vis-stage .device { transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1);
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg) translateY(calc(var(--p) * -14px));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), inset 0 0 0 4px #0B0B0F, 28px 40px 60px -30px rgba(0,0,0,.55), 6px 0 0 -2px #0D0C11; }
.vis-stage[data-step="1"] .device { transform: rotateY(-6deg) rotateX(4deg) rotateZ(0deg) translateY(calc(var(--p) * -14px)); }
.vis-stage[data-step="2"] .device { transform: rotateY(10deg) rotateX(5deg) rotateZ(-2deg) translateY(calc(var(--p) * -14px)); }

/* L'écran glisse comme dans l'app */
.vis-stage .vis-screen { grid-area: 1 / 1; transform: translateX(100%); transition: transform .65s cubic-bezier(.65,0,.25,1); }
.vis-stage .vis-screen.on { transform: none; }
.vis-stage[data-step="1"] .vis-screen:nth-child(1), .vis-stage[data-step="2"] .vis-screen:nth-child(-n+2):not(.on) { transform: translateX(-30%); }
.vis-stage .vis-screen picture { transition: filter .3s linear; filter: brightness(calc(1 - var(--z) * .45)) saturate(calc(1 - var(--z) * .4)); }

/* Zoom : des morceaux de la capture se soulèvent hors de l'écran, agrandis */
.pop-layer { position: absolute; inset: 9px; pointer-events: none; transform-style: preserve-3d; z-index: 3; }
.pop-set { position: absolute; inset: 0; transform-style: preserve-3d; }
.pop { position: absolute; overflow: hidden; border-radius: 16px; background: #F5F5F7; opacity: 0; transform: scale(.714); backface-visibility: hidden;
  transition: opacity .35s ease, transform .7s cubic-bezier(.2,.9,.25,1.15), box-shadow .7s ease; }
.pop img { display: block; width: 100%; height: 100%; object-fit: cover; }

.vis-stage[data-pop="1"][data-step="0"] .pop-set[data-s="0"] .pop1, .vis-stage[data-pop="2"][data-step="0"] .pop-set[data-s="0"] .pop,
.vis-stage[data-pop="1"][data-step="1"] .pop-set[data-s="1"] .pop1, .vis-stage[data-pop="2"][data-step="1"] .pop-set[data-s="1"] .pop,
.vis-stage[data-pop="1"][data-step="2"] .pop-set[data-s="2"] .pop1, .vis-stage[data-pop="2"][data-step="2"] .pop-set[data-s="2"] .pop { opacity: 1; }
.vis-stage[data-pop="1"] .pop1, .vis-stage[data-pop="2"] .pop1 { transform: translate3d(-9%, -8px, 60px) scale(1.01); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.06); }
.vis-stage[data-pop="2"] .pop2 { transform: translate3d(8%, 10px, 80px) scale(1); box-shadow: 0 36px 70px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.06); transition-delay: .05s; }
.pop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); }
.vis-stage[data-pop="1"] .pop1::after, .vis-stage[data-pop="2"] .pop::after { transform: translateX(120%); transition: transform .9s ease .25s; }

/* Ordinateur : le téléphone à droite, fixe */
@media (min-width: 900px) {
  .scrolly { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; }
  /* Texte intégré : pas de carte, grand titre, une étape centrée à la hauteur du téléphone à la fois */
  .scrolly .steps.timeline { gap: 0; padding: 0 0 0 68px; max-width: none; }
  .scrolly .steps.timeline::before, .scrolly .steps.timeline::after { top: 39vh; bottom: 39vh; }
  .scrolly .steps.timeline .card { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 10px;
    background: none; border: 0; box-shadow: none; transform: none; }
  .scrolly .steps.timeline .card.fx-glow::before { display: none; }
  .scrolly .steps.timeline .card h3 { font-size: clamp(28px, 2.5vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 14px; }
  .scrolly .steps.timeline .card p { font-size: 18px; line-height: 1.55; max-width: 470px; }
  .scrolly .steps.timeline .num { top: 50%; margin-top: -22px; width: 44px; height: 44px; }
  .js .scrolly .steps.timeline .card { opacity: .22; translate: 0 0; transition: opacity .5s ease, translate .6s cubic-bezier(.2,.8,.2,1); }
  .js .scrolly .steps.timeline .card:not(.cur) { translate: -6px 0; }
  .js .scrolly .steps.timeline .card.cur { opacity: 1; }
  .vis-stage { position: sticky; top: calc(50vh - 280px + var(--top-h) / 2); align-self: start; height: 560px; }
  .vis-stage .device { width: 262px; }
}
/* Téléphone : le téléphone ET le texte de l'étape restent fixés à l'écran ; on fait défiler pour passer d'une étape à l'autre.
   Les vraies étapes (texte lisible par Google et les lecteurs d'écran) servent de « pistes » invisibles. */
.vis-cap { display: none; }
@media (max-width: 899px) {
  .scrolly { display: flex; flex-direction: column; --stage-h: min(52svh, 460px); }
  .vis-stage { order: -1; position: sticky; top: var(--top-h); z-index: 2; margin: 0 -16px; background: var(--bg); perspective: 1000px; }
  .vis-stage .device { width: calc((var(--stage-h) - 14px) * 540 / 1058 + 14px); padding: 7px; border-radius: 30px; }
  .vis-stage .dev-screen { border-radius: 24px; }
  .vis-stage .pop-layer { inset: 7px; }
  .vis-stage .dev-cam { top: 13px; width: 8px; height: 8px; margin-left: -4px; }
  .dev-blob { width: calc(var(--stage-h) * .8); height: calc(var(--stage-h) * .8); }
  .vis-stage[data-pop="1"] .pop1, .vis-stage[data-pop="2"] .pop1 { transform: translate3d(-5%, -4px, 50px) scale(.96); }
  .vis-stage[data-pop="2"] .pop2 { transform: translate3d(5%, 6px, 60px) scale(.93); }
  .pop { border-radius: 12px; }

  /* Avec JavaScript : écran plein, texte sous le téléphone, étapes invisibles qui donnent la longueur à faire défiler */
  /* Fond transparent : la lueur de l'accueil continue en douceur (plus de bord net) ; le téléphone juste sous le titre */
  /* Le titre « Simple comme bonjour » reste fixé en haut ; dessous, téléphone + texte, l'espace libre réparti également.
     --sh = hauteur du titre, mesurée par fx.js (2 lignes dans certaines langues). */
  .js #etapes .sec-head { position: sticky; top: var(--top-h); z-index: 3; margin-bottom: 0; padding: 6px 0 10px; }
  .js .vis-stage { top: calc(var(--top-h) + var(--sh, 72px)); height: calc(100svh - var(--top-h) - var(--sh, 72px));
    grid-template-rows: auto auto; align-content: space-evenly; padding: 0; background: transparent; }
  .js .vis-stage > .dev-blob, .js .vis-stage > .dev-floor, .js .vis-stage > .device { grid-area: 1 / 1; }
  .js .vis-cap { display: grid; grid-area: 2 / 1; width: 100%; padding: 14px 16px 0; gap: 12px; }
  .vis-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .vis-dots i { height: 4px; border-radius: 2px; background: var(--divider); overflow: hidden; position: relative; }
  .vis-dots i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
  .vis-dots i:nth-child(1)::after { transform: scaleX(clamp(0, calc(var(--t, 0) * 3), 1)); }
  .vis-dots i:nth-child(2)::after { transform: scaleX(clamp(0, calc(var(--t, 0) * 3 - 1), 1)); }
  .vis-dots i:nth-child(3)::after { transform: scaleX(clamp(0, calc(var(--t, 0) * 3 - 2), 1)); }
  .vis-cap-item { grid-row: 2; grid-column: 1; display: flex; gap: 14px; align-items: flex-start; min-height: 132px; opacity: 0; transform: translateY(14px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
  .vis-stage[data-step="0"] .vis-cap-item[data-s="0"], .vis-stage[data-step="1"] .vis-cap-item[data-s="1"], .vis-stage[data-step="2"] .vis-cap-item[data-s="2"] { opacity: 1; transform: none; transition-delay: .1s; }
  .vis-cap-item .num { width: 36px; height: 36px; font-size: 16px; flex: none; }
  .vis-cap-item .cap-t { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .vis-cap-item p { color: var(--text2); font-size: 15px; line-height: 1.4; }
  .js .scrolly .steps.timeline { padding: 0; gap: 0; }
  .js .scrolly .steps.timeline::before, .js .scrolly .steps.timeline::after { display: none; }
  html.js .scrolly .steps.timeline .card { height: 115svh; opacity: 0; pointer-events: none; padding: 0; background: none; overflow: hidden; }
}
@media (max-width: 899px) and (min-width: 720px) { .vis-stage { margin: 0 -32px; } .js .vis-cap { padding: 14px 32px 0; } }


/* « Tout ce dont vous avez besoin » : 4 cartes, puis « Voir toutes les fonctions » (details natif, texte dans la page) */
@media (min-width: 1000px) { .features.first { grid-template-columns: repeat(4, 1fr); } }
.feature .tags { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.feat-more { margin-top: 16px; }
.feat-more > summary { list-style: none; cursor: pointer; display: flex; width: fit-content; margin: 0 auto; gap: 10px; }
.feat-more > summary::-webkit-details-marker { display: none; }
.feat-more > summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.feat-more[open] > summary svg { transform: rotate(180deg); }
.feat-more[open] > summary { margin-bottom: 16px; }
.feat-more[open] > .features, .feat-more[open] > .feat-all { animation: fx-pop .35s ease-out; }
.feat-all { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .feat-all { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.feat-col { background: var(--surface); border-radius: var(--r); padding: 20px 22px; }
.feat-col.plus { border: 2px solid var(--accent); }
.feat-col h3 { font-size: 13px; letter-spacing: .04em; color: var(--text2); margin-bottom: 8px; }
.feat-col ul { list-style: none; }
.feat-col li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 15px; }
.feat-col li:first-child { border-top: 0; }
.feat-col li > span:first-child { flex: 1; }
.feat-col li .dot, .feat-col li .star { flex: none; font-size: 13px; white-space: nowrap; margin-top: 1px; }

/* Bouton clair / sombre : ordinateur dans l'en-tête, téléphone dans le menu ☰ (rien sans JavaScript) */
.theme-pick, .menu-theme { display: none; }
.theme-pick button, .mt-seg button { border: 0; cursor: pointer; font: inherit; color: var(--text2); background: transparent; }
.theme-pick svg, .mt-seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.theme-pick svg.moon, .mt-seg svg.moon { fill: currentColor; }
@media (min-width: 900px) {
  .js .theme-pick { display: inline-flex; margin-left: auto; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface2); }
  .js .theme-pick + .langs { margin-left: 0; }
  .theme-pick button { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; transition: background-color .2s, color .2s; }
  .theme-pick button:hover { color: var(--text); }
  .theme-pick button[aria-pressed="true"] { background: var(--surface); color: var(--accent-text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
}
@media (max-width: 899px) {
  .js .menu-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 4px; }
  .mt-l { color: var(--text2); font-size: 15px; }
  .mt-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface2); }
  .mt-seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; }
  .mt-seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent-text); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
}

/* Tarifs : Mensuel / Annuel */
.bill { display: none; }
.js .bill { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; margin-top: 16px; padding: 4px; border-radius: 999px; background: var(--surface2); isolation: isolate; }
.bill::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent);
  box-shadow: 0 6px 16px -6px rgba(108, 92, 231, .7); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.bill.y::before { transform: translateX(100%); }
.bill button { border: 0; background: none; font: 500 14px/1 var(--font); color: var(--text2); padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .25s; }
.bill button[aria-checked="true"] { color: var(--on-accent); }
.plan .price .amt { font-variant-numeric: tabular-nums; }
.per-month { color: var(--paid); font-size: 15px; font-weight: 500; margin-top: 4px; animation: fx-pop .3s ease-out; }

/* Captures : survol + agrandissement */
.shots .phone { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.js .shots .phone { cursor: zoom-in; }
@media (hover: hover) { .shots .phone:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 28px 50px -24px rgba(108, 92, 231, .55); } }
.shots .phone:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.fx-zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; }
.fx-zoom[open] { display: grid; place-items: center; animation: fx-pop .25s ease-out; }
.fx-zoom::backdrop { background: rgba(14, 14, 18, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fx-zoom figure { display: grid; justify-items: center; gap: 12px; padding: 64px 16px 80px; }
.fx-zoom img { height: min(74vh, 900px); width: auto; border-radius: 26px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.fx-zoom figcaption { color: #fff; font-size: 16px; text-align: center; }
.fx-zoom button { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; font: 600 22px/1 var(--font);
  background: rgba(255,255,255,.14); color: #fff; transition: background-color .2s, transform .2s; }
.fx-zoom button:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }
.fx-zoom .fx-x { top: 16px; right: 16px; }
.fx-zoom [data-go="-1"] { left: 16px; top: 50%; margin-top: -24px; }
.fx-zoom [data-go="1"] { right: 16px; top: 50%; margin-top: -24px; }
@media (max-width: 640px) {
  .fx-zoom [data-go] { top: auto; bottom: 16px; margin: 0; }
  .fx-zoom [data-go="-1"] { left: calc(50% - 60px); } .fx-zoom [data-go="1"] { right: calc(50% - 60px); }
  .fx-zoom img { height: min(66vh, 900px); }
}
@keyframes fx-pop { from { opacity: 0; transform: scale(.96); } }

/* Pastilles : petit saut au survol */
.chip { transition: transform .2s, background-color .2s, color .2s; }
@media (hover: hover) { .chip:hover { transform: translateY(-2px); } }

/* Appel final : dégradé qui bouge */
.cta { background: linear-gradient(120deg, var(--tonal), color-mix(in srgb, var(--accent) 22%, var(--tonal)), var(--tonal)); background-size: 220% 220%; animation: fx-pan 12s ease-in-out infinite; }
@keyframes fx-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Apparition au défilement */
.fx-ready .fx-in { opacity: 0; translate: 0 22px; transition: opacity .6s ease var(--d, 0ms), translate .6s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.fx-ready .fx-in.fx-on { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .phone { transform: none; }
}


/* Guides (articles) : /{langue}/guides/ */
.sections > a.sec-guides { color: var(--text); }
.guide { padding: 24px 0 8px; }
.g-wrap { max-width: 760px; }
.g-index { max-width: 1080px; }
.g-draft { background: var(--due); color: #fff; text-align: center; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text3); margin-bottom: 20px; }
.g-crumbs a { color: var(--text2); text-decoration: none; }
.g-crumbs a:hover { color: var(--text); text-decoration: underline; }
.g-head { margin-bottom: 20px; }
.g-head h1 { font-size: clamp(30px, 5vw, 44px); }
.g-cat { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-text); background: var(--tonal); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }
.g-lead { font-size: 19px; line-height: 1.45; color: var(--text2); margin-top: 12px; max-width: 680px; }
.g-meta { font-size: 14px; color: var(--text3); margin-top: 12px; }
.g-disc { font-size: 14px; color: var(--text2); background: var(--surface2); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 24px; }
.g-toc { background: var(--surface); border-radius: var(--r); padding: 16px 20px; margin-bottom: 28px; }
.g-toc p { font-weight: 600; margin-bottom: 8px; }
.g-toc ol { padding-left: 20px; display: grid; gap: 6px; }
.g-toc a { text-decoration: none; }
.g-toc a:hover { text-decoration: underline; }
.g-body { font-size: 17px; line-height: 1.65; }
.g-body > * + * { margin-top: 16px; }
.g-body h2 { font-size: 26px; margin-top: 40px; scroll-margin-top: calc(var(--top-h) + 12px); }
.g-body h3 { font-size: 20px; margin-top: 28px; scroll-margin-top: calc(var(--top-h) + 12px); }
.g-body ul, .g-body ol { padding-left: 24px; display: grid; gap: 8px; }
.g-body strong { font-weight: 600; }
.g-note { background: var(--tonal); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 14px 18px; }
.g-sources { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--divider); font-size: 14px; }
.g-sources h2 { font-size: 18px; margin-bottom: 10px; }
.g-sources ol { padding-left: 20px; display: grid; gap: 6px; color: var(--text2); word-break: break-word; }
.g-cta { margin-top: 40px; }
.g-related { margin-top: 40px; }
.g-related h2 { margin-bottom: 16px; }
.g-related > p { margin-top: 16px; }
.g-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: var(--r); padding: 20px; color: var(--text); text-decoration: none; border: 1px solid transparent; transition: border-color .2s; }
.g-card:hover { border-color: var(--accent); }
.g-card .g-cat { margin: 0; align-self: flex-start; }
.g-card h3 { font-size: 19px; }
.g-card p { color: var(--text2); font-size: 15px; flex: 1; }
.g-date { font-size: 13px; color: var(--text3); }

/* Badge officiel App Store (sortie iPhone) : image d'Apple telle quelle, même hauteur que les boutons */
.store-badge { display: inline-flex; align-items: center; min-height: 48px; }
.store-badge img { height: 48px; width: auto; display: block; }
.stores { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; } /* espace ≥ 1/4 de la hauteur (Apple) */
footer .tm { font-size: 12px; color: var(--text3); margin-top: 8px; max-width: 720px; }
