/* The sales pages (tidett.ca, commandez.app, jegagne.app). A bright product page: the real screens of the product, in
   device frames, carry the page; type is the system's (SF on Apple devices, Inter elsewhere), one blue for actions,
   one product accent used only in the eyebrows. Light and dark follow the device. */
@font-face { font-family: Inter; src: url(InterVariable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #ffffff;           /* page */
  --bg-2: #f5f5f7;         /* alternate sections, tiles */
  --text: #1d1d1f;         /* 16.8:1 on white */
  --text-2: #6e6e73;       /* 4.9:1 on white, 4.6:1 on #f5f5f7 */
  --line: #d2d2d7;
  --action: #0066cc;       /* links and buttons: 5.6:1 on white */
  --action-hover: #0077ed;
  --on-action: #ffffff;
  --accent: #0f766e;       /* the product's eyebrow: Tidett teal, 5.5:1 on white */
  --device: #1d1d1f;
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .25), 0 18px 36px -18px rgba(0, 0, 0, .3);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Inter, 'Segoe UI', Roboto, system-ui, sans-serif;
}
html[data-product="commande"] { --accent: #c2321b; }   /* 5.6:1 on white */
html[data-product="jeu"] { --accent: #a35f00; }        /* 5.3:1 on white */
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --bg-2: #161617; --text: #f5f5f7; --text-2: #a1a1a6; --line: #424245; --action: #2997ff; --action-hover: #47a6ff;
    --accent: #2dd4bf; --device: #2c2c2e; --glass: rgba(22, 22, 23, .78); }
  html[data-product="commande"] { --accent: #ff7a5c; }
  html[data-product="jeu"] { --accent: #ffb340; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, 100% - 44px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 44px); }

/* two languages, three products: only this one shows */
html[data-lang="fr"] .en, html[data-lang="en"] .fr { display: none !important; }
html:not([data-product="caisse"]) [data-only="caisse"],
html:not([data-product="commande"]) [data-only="commande"],
html:not([data-product="jeu"]) [data-only="jeu"] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

/* ---------- the family's bar ---------- */
.gnav { position: sticky; top: 0; z-index: 30; height: 48px; background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); }
.gnav-in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 8px; }
.gnav a, .gnav .lang { color: var(--text); opacity: .82; font-size: 13px; letter-spacing: -.01em; padding: 0 8px; min-height: 44px; display: inline-flex; align-items: center; }
.gnav a:hover, .gnav .lang:hover { opacity: 1; text-decoration: none; }
.gnav .logo svg { width: 22px; height: 22px; }
.gnav .logo rect { fill: var(--text); }
.gnav .logo path { stroke: var(--bg); stroke-width: 3.2; stroke-linecap: round; fill: none; }
html[data-product="caisse"] .gnav [data-p="caisse"], html[data-product="commande"] .gnav [data-p="commande"], html[data-product="jeu"] .gnav [data-p="jeu"] { opacity: 1; font-weight: 600; }
.lang { border: 0; background: none; font: inherit; cursor: pointer; }
@media (max-width: 640px) { .gnav a[href="#forfaits"] { display: none; } .gnav-in { overflow-x: auto; scrollbar-width: none; } .gnav a, .gnav .lang { padding: 0 6px; font-size: 12px; white-space: nowrap; flex: none; } }

/* ---------- the product's bar ---------- */
.lnav { position: sticky; top: 48px; z-index: 29; height: 56px; background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.lnav-in { display: flex; align-items: center; height: 100%; gap: 22px; }
.lnav-title { color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: .01em; margin-right: auto; }
.lnav-title:hover { text-decoration: none; }
.lnav-links { display: flex; gap: 22px; }
.lnav-links a { color: var(--text); font-size: 12px; opacity: .8; min-height: 44px; display: inline-flex; align-items: center; }
.pill { background: var(--action); color: var(--on-action); font-size: 12px; padding: 6px 13px; border-radius: 980px; min-height: 28px; display: inline-flex; align-items: center; white-space: nowrap; }
.pill:hover { background: var(--action-hover); text-decoration: none; }
@media (max-width: 760px) { .lnav-links { display: none; } }

/* ---------- type ---------- */
.eyebrow { color: var(--accent); font-size: 21px; font-weight: 600; letter-spacing: .01em; margin-bottom: 8px; }
h1 { font-size: clamp(44px, 8vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.hero-sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--text-2); max-width: 760px; margin: 22px auto 0; letter-spacing: -.01em; }
.section-title { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.03em; text-align: center; }
.section-sub { font-size: clamp(19px, 2vw, 21px); color: var(--text-2); text-align: center; max-width: 680px; margin: 16px auto 0; }
h3 { font-size: 24px; line-height: 1.17; font-weight: 700; letter-spacing: -.02em; }

/* ---------- buttons ---------- */
.ctas { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 980px; background: var(--action); color: var(--on-action); font: 400 17px/1 var(--font); letter-spacing: -.02em; cursor: pointer; }
.btn:hover { background: var(--action-hover); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.more { font-size: 17px; min-height: 44px; display: inline-flex; align-items: center; }
.more::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 6px; }

/* ---------- devices: the product's real screens ---------- */
.device { position: relative; background: var(--device); box-shadow: var(--shadow); overflow: hidden; }
.device img { width: 100%; }
.device.ipad { border-radius: 26px; padding: 14px; }
.device.ipad img { border-radius: 13px; }
.device.kiosk { border-radius: 28px; padding: 16px 16px 30px; }
.device.kiosk img { border-radius: 10px; }
.device.iphone { border-radius: 46px; padding: 11px; }
.device.iphone img { border-radius: 36px; }
.device.iphone::before { content: ''; position: absolute; top: 20px; left: 50%; width: 28%; height: 22px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 1; }
.device.tv { border-radius: 10px; padding: 8px; }
.device.tv img { border-radius: 4px; }

/* ---------- heroes ---------- */
.hero { text-align: center; padding: 76px 0 0; overflow: hidden; }
.stage { position: relative; width: min(1040px, 100% - 44px); margin: 64px auto 0; padding-bottom: 96px; }
.stage .device.ipad { width: 100%; }
.stage .float-r { position: absolute; width: 21%; right: -2%; bottom: 40px; }
.stage.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.stage.phones .device { width: min(300px, 31%); }
.stage.phones .front { z-index: 2; }
.stage.phones .tilt-l { transform: translateX(18%) rotate(-6deg) scale(.88); transform-origin: bottom right; }
.stage.phones .tilt-r { transform: translateX(-18%) rotate(6deg) scale(.88); transform-origin: bottom left; }
@media (max-width: 640px) { .stage .float-r { display: none; } .hero { padding-top: 52px; } }

/* ---------- the statement ---------- */
.statement { background: var(--bg-2); padding: 120px 0; text-align: center; }
.statement h2 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.03em; }
.statement h2 em { font-style: normal; color: var(--text-2); }
.statement p { font-size: clamp(19px, 2vw, 21px); color: var(--text-2); margin-top: 22px; }
.flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; margin-top: 56px; flex-wrap: wrap; }
.flow-step { background: var(--bg); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 190px; text-align: left; }
.flow-step b { font-size: 17px; }
.flow-step span { color: var(--text-2); font-size: 15px; }
.flow-arrow { align-self: center; width: 20px; height: 2px; background: var(--line); position: relative; }
.flow-arrow::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-right: 2px solid var(--line); border-top: 2px solid var(--line); transform: rotate(45deg); }
@media (max-width: 900px) { .flow { flex-direction: column; align-items: center; } .flow-step { width: min(360px, 100%); } .flow-arrow { transform: rotate(90deg); margin: 6px 0; } }

/* ---------- tiles ---------- */
.tiles-wrap { padding: 120px 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.tile { background: var(--bg-2); border-radius: 28px; padding: 44px 44px 0; overflow: hidden; display: flex; flex-direction: column; gap: 32px; }
.tile .tile-text p:not(.eyebrow) { color: var(--text-2); margin-top: 12px; }
.tile .eyebrow { font-size: 17px; }
.tile .device { margin-top: auto; transform: translateY(18px); }
.tile.big { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; padding: 56px 0 56px 56px; gap: 48px; }
.tile.big .device { transform: translateX(28px); margin: 0; }
.tile.big h3 { font-size: clamp(28px, 3.2vw, 40px); }
.tile.tall .device { width: 74%; align-self: center; }
.tile.dark { background: #000; color: #f5f5f7; }
.tile.dark .tile-text p:not(.eyebrow) { color: #a1a1a6; }
.tile.dark .eyebrow { color: #2dd4bf; }
.tile.dark .device { background: #2c2c2e; }
.aside { text-align: center; color: var(--text-2); margin: 40px auto 0; max-width: 720px; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.big { grid-template-columns: 1fr; padding: 36px 28px 0; }
  .tile.big .device { transform: translateY(18px); }
}

/* ---------- trust ---------- */
.trust { background: var(--bg-2); padding: 100px 0; }
.trust-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.trust-item p { color: var(--text-2); margin-top: 10px; }
@media (max-width: 860px) { .trust-in { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- journeys (online, game) ---------- */
.journey { background: var(--bg-2); padding: 120px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 64px; }
.step { text-align: center; }
.step .device { width: min(260px, 82%); margin: 0 auto 32px; }
.step p { color: var(--text-2); margin-top: 10px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 64px; } }
.grid-facts { padding: 100px 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 64px; }
.fact p { color: var(--text-2); margin-top: 10px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* ---------- the system ---------- */
.system { padding: 120px 0; }
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.fam { background: var(--bg-2); border-radius: 28px; padding: 36px 32px; color: var(--text); display: flex; flex-direction: column; text-align: center; }
.fam:hover { text-decoration: none; }
.fam:hover .more { text-decoration: underline; }
.fam-shot { height: 260px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 28px; }
.fam-shot .ipad { width: 100%; }
.fam-shot .iphone { width: 132px; border-radius: 26px; padding: 6px; }
.fam-shot .iphone img { border-radius: 21px; }
.fam-shot .iphone::before { top: 10px; height: 12px; }
.fam p { color: var(--text-2); margin: 8px 0 14px; }
.fam .more { margin-top: auto; justify-content: center; color: var(--action); }
html[data-product="caisse"] .fam[data-p="caisse"], html[data-product="commande"] .fam[data-p="commande"], html[data-product="jeu"] .fam[data-p="jeu"] { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 860px) { .family { grid-template-columns: 1fr; } }

/* ---------- plans ---------- */
.plans-wrap { background: var(--bg-2); padding: 120px 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: start; }
.plan { background: var(--bg); border-radius: 28px; padding: 40px 32px; }
.plan h3 { font-size: 32px; }
.plan-who { color: var(--text-2); margin-top: 4px; }
.plan-tag { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.plan.best { box-shadow: inset 0 0 0 2px var(--action); }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.plan li { padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding: 120px 0; }
.form { display: grid; gap: 16px; margin-top: 48px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font: 400 17px/1.4 var(--font); color: var(--text); background: var(--bg); letter-spacing: -.01em; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 4px color-mix(in srgb, var(--action) 25%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: 14px; color: var(--text-2); }
.form-end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-weight: 600; }
.form-msg.ok { color: #1a7f37; }
.form-msg.bad { color: #d70015; }
@media (prefers-color-scheme: dark) { .form-msg.ok { color: #30d158; } .form-msg.bad { color: #ff453a; } }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--bg-2); padding: 28px 0 40px; font-size: 12px; color: var(--text-2); }
.foot-note { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.foot-links { display: flex; gap: 18px; }
.foot a { color: var(--text-2); }

/* ---------- arriving on screen (only when motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  html.anim .reveal-up { opacity: 0; transform: translateY(80px) scale(.96); transition: opacity 1.1s cubic-bezier(.2, .7, .2, 1) .15s, transform 1.1s cubic-bezier(.2, .7, .2, 1) .15s; }
  html.anim .reveal.in, html.anim .reveal-up.in { opacity: 1; transform: none; }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
