/* Tiercraft site: the app's own look (theme.ts) — near-black surfaces, the violet
   primary, the classic tier colours and the gold of the energy. */
:root {
  color-scheme: dark;
  --bg: #0B0C12;
  --bg-2: #0F1115;
  --surface: #181B22;
  --surface-2: #20242D;
  --border: #2C313C;
  --text: #F2F4F8;
  --muted: #9AA3B2;
  --primary: #7C5CFF;
  --primary-2: #A98BFF;
  --pink: #FF7FA0;
  --gold: #FFD43B;
  --s: #FF7F7F; --a: #FFBF7F; --b: #FFDF7F; --c: #FFFF7F; --d: #BFFF7F;
  --card: #2B2F3A;
  --radius: 18px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); overflow-x: hidden; }
a { color: var(--primary-2); }
img { max-width: 100%; }

/* Background glows, as on the App Store screenshots. */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 520px at 8% 4%, rgba(124, 92, 255, .30), transparent 70%),
    radial-gradient(640px 520px at 100% 38%, rgba(255, 127, 127, .14), transparent 70%),
    radial-gradient(700px 600px at 0% 100%, rgba(124, 92, 255, .20), transparent 70%),
    linear-gradient(180deg, #12131C 0%, var(--bg) 60%); }
.glow::after { content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .06) 0 2px, transparent 3px);
  background-size: 28px 28px; }

/* Header: the wordmark over the five tier colours, like the app's home screen. */
.top { max-width: 1120px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.5px; line-height: 1.1; }
.strip { display: flex; gap: 4px; margin-top: 5px; }
.strip i { flex: 1; height: 4px; border-radius: 2px; min-width: 14px; }
.strip i:nth-child(1) { background: var(--s); } .strip i:nth-child(2) { background: var(--a); }
.strip i:nth-child(3) { background: var(--b); } .strip i:nth-child(4) { background: var(--c); }
.strip i:nth-child(5) { background: var(--d); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 14px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; border: 0;
  box-shadow: 0 10px 30px rgba(124, 92, 255, .35); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124, 92, 255, .5); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn.small { padding: 10px 16px; font-size: 14px; border-radius: 12px; box-shadow: none; }
.btn.ghost { background: var(--surface); border: 1px solid var(--border); box-shadow: none; }

/* Text pages (assistance, confidentialité). */
.page { max-width: 760px; margin: 0 auto; padding: 8px 16px 72px; }
.page h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin: 24px 0 8px; }
.page h2 { font-size: 21px; font-weight: 800; margin: 36px 0 10px; }
.page h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.page p, .page li { color: #D5DAE3; }
.muted { color: var(--muted); font-size: 14px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 12px 0; }
.box p { margin: 0; }
.page table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; display: block; overflow-x: auto; }
.page th, .page td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; min-width: 140px; }
.page th { color: var(--muted); font-weight: 600; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.mail:hover { border-color: var(--primary); }

footer { max-width: 1120px; margin: 0 auto; padding: 32px 16px 48px; color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; border-top: 1px solid var(--border); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* On a phone, each row of a three-column table becomes a card: when, what, why. */
@media (max-width: 640px) {
  .page table, .page tbody, .page tr, .page td { display: block; width: 100%; }
  .page table { overflow: visible; }
  .page tr:first-child { display: none; }
  .page tr { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
  .page td { border: 0; padding: 4px 0; min-width: 0; }
  .page td:first-child { font-weight: 800; color: var(--text); }
  .page td:nth-child(2)::before { content: "Données : "; color: var(--muted); font-weight: 700; }
  .page td:nth-child(3)::before { content: "Pourquoi : "; color: var(--muted); font-weight: 700; }
}

/* Appearance animations of the text pages (site.js), the same as the home page's:
   the title word by word, then each block fades and rises as it scrolls into view. */
.js .page .rise { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--dl, 0) * 1ms); }
.js .page .rise.in { opacity: 1; transform: none; }
.js .page h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(3deg); filter: blur(8px);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2, 1.3, .3, 1), filter .7s ease; transition-delay: calc(var(--wi) * 90ms); }
.js .page h1.in .w { opacity: 1; transform: none; filter: none; }
.top .strip i { transform: scaleX(0); transform-origin: left; animation: grow .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.top .strip i:nth-child(2) { animation-delay: .08s; } .top .strip i:nth-child(3) { animation-delay: .16s; }
.top .strip i:nth-child(4) { animation-delay: .24s; } .top .strip i:nth-child(5) { animation-delay: .32s; }
@keyframes grow { to { transform: scaleX(1); } }
.box { transition: border-color .2s, transform .2s; }
.box:hover { border-color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .js .page .rise, .js .page h1 .w { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .top .strip i { transform: none; animation: none; }
}
