/*
 * InvexShop — page de présentation (racine du site), en français et en anglais.
 * Couleurs de l'application : vert forêt de l'en-tête, jaune des boutons
 * « Encaisser ». Le ticket de caisse sert de fil : c'est ce que le commerçant
 * connaît le mieux. Une seule police téléchargée (titres), 41 Ko ; le texte
 * est en police du système : la page s'ouvre vite, même en 3G.
 */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest: #08432c;
  --leaf: #0b6b44;
  --mint: #eef3ef;
  --mint-deep: #dde8e1;
  --ink: #16211c;
  --muted: #4b5a52;
  --paper: #ffffff;
  --mango: #f6c344;
  --mango-dark: #e2ab1c;
  --line: #c9d6ce;
  --display: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --gutter: 20px;
  --measure: 36rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--forest); margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 8.5vw, 4.4rem); line-height: 1; font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.05; font-weight: 720; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 680; }
p { margin: 0; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 12px;
  font: 700 1.0625rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  border: 2px solid var(--forest); background: transparent; color: var(--forest);
}
.btn.main { background: var(--mango); border-color: var(--mango); color: var(--forest); }
.btn.main:hover { background: var(--mango-dark); border-color: var(--mango-dark); }
.btn.plain:hover { background: var(--mint-deep); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.small { min-height: 42px; padding: 8px 16px; font-size: 1rem; }
.btn.on-dark { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn.on-dark:hover { background: rgba(255, 255, 255, .1); }

/* ---------------------------------------------------------------- en-tête */

.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { font: 750 1.3rem/1 var(--display); letter-spacing: -0.01em; }
.brand span { display: block; font-size: .78rem; color: var(--muted); }
.lang { font-weight: 700; text-decoration: none; padding: 8px 6px; }
.top .btn.small { white-space: nowrap; padding: 8px 14px; }
.lang .short { display: none; }
@media (max-width: 419px) {
  .brand span span { display: none; }
  .lang .long { display: none; }
  .lang .short { display: inline; }
}

/* ---------------------------------------------------------------- accroche */

.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 40px; }
.hero h1 { max-width: 12ch; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); max-width: var(--measure); margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin-top: 14px; font-size: .95rem; color: var(--muted); max-width: var(--measure); }

/* Téléphone (vraie capture de l'application) et ticket qui sort de l'imprimante */
.stage { position: relative; justify-self: center; width: min(100%, 16.5rem); }
.phone {
  width: 16.5rem; margin: 0; border-radius: 34px; padding: 10px;
  background: #13201a; box-shadow: 0 30px 60px -30px rgba(8, 67, 44, .55);
}
.phone img { border-radius: 25px; aspect-ratio: 640 / 1316; width: 100%; background: var(--mint); }
/* Le ticket imprimé, à côté du téléphone (grands écrans seulement) */
.stage .slip { display: none; }
@keyframes print {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-24px) rotate(2deg); }
  to { clip-path: inset(0 0 0 0); transform: translateY(0) rotate(2deg); }
}

/* ---------------------------------------------------------------- ticket de caisse */

.paper {
  background: var(--paper); color: #1b1b1b;
  font: 400 .9rem/1.45 var(--mono);
  padding: 18px 18px 22px;
  filter: drop-shadow(0 10px 18px rgba(8, 67, 44, .16));
  /* bords dentelés du papier thermique */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x;
}
.paper .c { text-align: center; }
.paper .l { display: flex; justify-content: space-between; gap: 12px; }
.paper .l span:last-child { white-space: nowrap; }
.paper .sub { padding-left: 1.2em; color: #555; }
.paper hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.paper strong { font-weight: 700; }
.slip.paper { font-size: .8rem; padding: 14px 14px 18px; }

/* ---------------------------------------------------------------- sections */

.section { padding: 64px 0; }
.section .intro { font-size: 1.125rem; color: var(--muted); max-width: var(--measure); margin-top: 14px; }

/* Le ticket du soir : le ticket entier, et à côté ce qu'il vous dit */
.evening { background: var(--mint-deep); }
.receipt { display: grid; gap: 32px; margin-top: 36px; }
.ticket { width: min(100%, 24rem); font-size: .92rem; padding: 26px 20px 30px; }
.notes { display: grid; gap: 22px; align-content: start; }
.why h3 { margin-bottom: 4px; }
.why p { color: var(--muted); max-width: 30rem; }
.after { margin-top: 28px; max-width: var(--measure); }

/* Sans Internet : trois temps, et le bandeau de l'application qui change */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 14px; align-items: start; align-content: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--forest); color: var(--mango); font: 750 1.35rem/1 var(--display);
}
.steps h3 { margin: 4px 0 4px; }
.steps p { color: var(--muted); }
.strip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-weight: 600; margin-top: 10px; width: fit-content; max-width: 100%; }
.strip::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.strip.off { background: #fff1d6; color: #7a3e00; }
.strip.off::before { background: #e08a00; }
.strip.on { background: #e1efe7; color: var(--forest); }
.strip.on::before { background: var(--leaf); }

/* Fonctions */
.features { margin: 36px 0 0; display: grid; gap: 22px 40px; }
.features dt { font: 680 1.2rem/1.25 var(--display); color: var(--forest); }
.features dd { margin: 4px 0 0; color: var(--muted); }
.shot { margin-top: 40px; display: grid; gap: 12px; align-items: center; }
.shot img { border-radius: 16px; width: min(100%, 26rem); box-shadow: 0 16px 40px -24px rgba(8, 67, 44, .5); }
.shot p { color: var(--muted); max-width: 26rem; }
.who { margin-top: 48px; font: 600 clamp(1.25rem, 3.4vw, 1.6rem)/1.35 var(--display); color: var(--forest); max-width: 44rem; }

/* Prix : un tableau comme celui d'une boutique */
.board { margin-top: 32px; background: var(--forest); color: #fff; border-radius: 22px; padding: 10px 22px; }
.board .plan { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 20px 0; border-bottom: 1px dashed rgba(255, 255, 255, .28); }
.board .plan:last-child { border-bottom: 0; }
.board .name { font: 720 1.4rem/1.15 var(--display); color: #fff; }
.board .price { text-align: right; font: 750 1.6rem/1.1 var(--display); color: var(--mango); white-space: nowrap; }
.board .per { display: block; font: 500 .85rem/1.3 var(--text); color: rgba(255, 255, 255, .78); }
.board .desc, .board ul { grid-column: 1 / -1; color: rgba(255, 255, 255, .86); }
.board ul { margin: 6px 0 0; padding-left: 1.1em; }
.board .empty { padding: 18px 0; color: rgba(255, 255, 255, .9); }
.tax { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* Questions */
.faq { margin-top: 28px; max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 1.1rem; list-style-position: inside; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: var(--measure); }

/* Dernier appel */
.cta { background: var(--forest); color: #fff; padding: 64px 0; }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { margin-top: 14px; color: rgba(255, 255, 255, .85); max-width: var(--measure); }

/* Pied de page */
.foot { padding: 36px 0 48px; font-size: .92rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 10px; }
.foot strong { color: var(--ink); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; }

/* ---------------------------------------------------------------- grands écrans */

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 1fr; }
  .receipt { grid-template-columns: 24rem minmax(0, 1fr); gap: 56px; align-items: stretch; }
  .notes { align-content: space-around; padding: 28px 0; }
  .shot { grid-template-columns: auto 1fr; gap: 32px; }
}

@media (min-width: 960px) {
  .hero { padding: 40px 0 88px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; }
  .stage { width: 17rem; }
  .phone { width: 17rem; }
  .section { padding: 88px 0; }
}

@media (min-width: 1140px) {
  .hero .wrap { gap: 32px; }
  .stage { width: 32rem; }
  .stage .slip {
    display: block; position: absolute; right: 0; top: 30%; width: 14rem;
    transform: rotate(2deg); transform-origin: top center;
    animation: print 1.4s cubic-bezier(.2, .7, .2, 1) .4s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .slip { animation: none; }
}

/* ---------------------------------------------------------------- désinscription des e-mails (0.23.0) */

.unsub { padding: 24px 0 56px; }
.unsub-card {
  max-width: 34rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px; display: grid; gap: 16px;
}
.unsub-card h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.05; }
.unsub-text { font-size: 1.1rem; max-width: var(--measure); }
.unsub-text:focus { outline: none; }
.unsub-address { font: 600 1rem/1.4 var(--mono); color: var(--forest); background: var(--mint); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.unsub .actions { margin-top: 4px; }
