/* ctmLAB — site (GitHub Pages). Palette ctm : orange #FF7A00, mauve #8B2CFF, rose en touche. */
:root {
  --bg: #020205; --bg2: #05050A; --panel: #0B0D18; --line: #1C1B2C;
  --ink: #F4F2FA; --mute: #A9A6BC; --dim: #6E6B82;
  --or: #FF7A00; --ro: #FF2D95; --ma: #8B2CFF; --cy: #00D8FF;
  --grad: linear-gradient(90deg, #FF7A00 0%, #FF2D95 50%, #8B2CFF 100%);
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 600px at 15% -10%, rgba(255,122,0,.10), transparent 60%),
                    radial-gradient(1200px 700px at 90% 0%, rgba(139,44,255,.14), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* langue : chaque texte existe en fr et en en ; seul celui de la langue active s'affiche */
html[data-lang="fr"] [lang="en"]:not(html), html[data-lang="en"] [lang="fr"]:not(html) { display: none !important; }

/* en-tête */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(2,2,5,.72); border-bottom: 1px solid rgba(255,255,255,.06); }
.top .in { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { font-weight: 300; font-size: 22px; letter-spacing: .02em; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand b { font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .nav a.on { color: var(--ink); }
.lg { border: 1px solid var(--line); background: transparent; color: var(--mute); border-radius: 99px; padding: 4px 12px;
  font: 600 13px/1 inherit; cursor: pointer; letter-spacing: .06em; }
.lg:hover { color: var(--ink); border-color: #3a3550; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
.lead { font-size: 20px; color: var(--mute); max-width: 680px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c { text-align: center; } .c .lead { margin-left: auto; margin-right: auto; }

/* héros */
.hero { padding: 28px 0 8px; text-align: center; }
.hero .logo { display: block; width: min(620px, 100%); margin: 0 auto 18px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 48px); margin-bottom: 10px; }
.hero .lead { font-size: 18px; }
.hero + section { padding-top: 28px !important; }
.hero + section .apps { margin-top: 0; }

/* tube néon : halo + trait de couleur + cœur presque blanc */
.neon { position: relative; border-radius: var(--r); background: var(--panel); }
.neon::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--g, var(--grad)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.neon::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 28px -6px var(--h1, rgba(255,122,0,.45)), 0 0 40px -10px var(--h2, rgba(139,44,255,.55)), inset 0 0 0 .5px rgba(255,245,232,.35); }

/* cartes des apps */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 36px; }
.app { padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .2s; }
.app:hover { transform: translateY(-3px); }
.app .ic { width: 84px; height: 84px; border-radius: 20px; }
.app h3 { margin: 6px 0 0; }
.app p { margin: 0; color: var(--mute); font-size: 16px; }
.app .tag { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; border: 1px solid #3a3550; color: var(--mute); }
.pill.hot { color: #fff; border: 0; background: var(--grad); }
.app.beat { --g: linear-gradient(135deg, #FF7A00, #8B2CFF); }
.app.score { --g: linear-gradient(135deg, #FF7A00, #FF2D95, #8B2CFF); }
.app.notes { --g: linear-gradient(135deg, #FF7A00, #8B2CFF); }
.app.tax { --g: linear-gradient(135deg, #00D8FF, #00E67A); --h1: rgba(0,216,255,.4); --h2: rgba(0,230,122,.35); }
.app.plan { --g: linear-gradient(135deg, #006BFF, #8B2CFF); --h1: rgba(0,107,255,.45); }
.app.ear { --g: linear-gradient(135deg, #3B5BDB, #2E9E5B); --h1: rgba(59,91,219,.4); --h2: rgba(46,158,91,.35); }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 16px;
  text-decoration: none; color: #fff; background: var(--grad); box-shadow: 0 8px 30px -8px rgba(255,45,149,.55); }
.btn.ghost { background: transparent; border: 1px solid #3a3550; box-shadow: none; color: var(--ink); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 12px; background: #000;
  border: 1px solid #555; color: #fff; text-decoration: none; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; line-height: 1; opacity: .8; }
.store span { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; }
.store.soon { opacity: .75; cursor: default; }

/* page d'une app : héros avec téléphone */
.ahero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; }
.ahero .ic { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 18px; }
.ahero .btns { justify-content: flex-start; }
.phone { width: min(320px, 80vw); margin: 0 auto; border-radius: 46px; padding: 10px; background: #0c0c10;
  box-shadow: 0 0 0 1.5px #2a2838, 0 30px 80px -20px rgba(139,44,255,.55), 0 0 60px -10px rgba(255,122,0,.35); }
.phone img { border-radius: 37px; }
.feats { display: grid; gap: 70px; margin-top: 20px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feat:nth-child(even) .txt { order: 2; }
.feat .txt p { color: var(--mute); font-size: 18px; }
.ipad { border-radius: 26px; padding: 10px; background: #0c0c10; box-shadow: 0 0 0 1.5px #2a2838, 0 30px 80px -24px rgba(139,44,255,.5); }
.ipad img { border-radius: 18px; }
.price { font-size: 44px; font-weight: 800; }
.price s { font-size: 22px; color: var(--dim); font-weight: 600; margin-left: 10px; }
.checks { list-style: none; padding: 0; margin: 18px auto 0; display: inline-grid; gap: 8px; text-align: left; color: var(--mute); }
.checks li::before { content: '✓'; color: var(--or); font-weight: 800; margin-right: 10px; }

/* pages texte (aide, confidentialité) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 0; }
.doc h2 { margin-top: 40px; font-size: 26px; }
.doc p, .doc li { color: #d4d1e2; }
.doc .card { padding: 26px 28px; margin-top: 26px; }
.doc ul { padding-left: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.faq summary::after { content: '+'; float: right; color: var(--or); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; }
.mail { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--or); }

footer { border-top: 1px solid rgba(255,255,255,.06); margin-top: 40px; }
footer .in { max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
footer a { color: var(--mute); text-decoration: none; }
footer .sp { margin-left: auto; }

@media (max-width: 820px) {
  .nav { gap: 14px; font-size: 14px; } .top .in { gap: 14px; padding: 12px 16px; } .brand { font-size: 19px; }
  .nav .opt { display: none; }
  .ahero, .feat { grid-template-columns: 1fr; text-align: center; } .ahero .btns { justify-content: center; }
  .ahero .ic { margin-left: auto; margin-right: auto; }
  .feat:nth-child(even) .txt { order: 0; }
  section { padding: 52px 0; }
}
@media (max-width: 600px) {
  .hero { padding-top: 14px; }
  .hero .logo { margin-bottom: 10px; }
  .hero h1 { font-size: 25px; }
  .hero h1 br { display: none; }
  .hero .lead { font-size: 16px; }
  .hero { padding-bottom: 0; }
  .hero + section { padding-top: 16px !important; }
  .apps { gap: 10px; }
  .app { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 3px; padding: 14px 16px; align-items: start; }
  .app .ic { grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: 12px; }
  .app h3 { margin: 0; font-size: 18px; }
  .app p { font-size: 14px; line-height: 1.4; }
  .app .tag { margin-top: 4px; padding-top: 0; font-size: 12px; }
  .app .tag .pill { padding: 2px 8px; font-size: 11px; }
}

/* Pourquoi ctmLAB (texte de Charles) */
.story { max-width: 680px; margin: 0 auto; text-align: center; padding-top: 40px; }
.story h2 { margin-bottom: 18px; }
.story p { font-size: 18px; color: var(--mute); margin: 0 0 14px; }
.story .q { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--ink); margin: 26px 0 8px; }
.story .sig { margin-top: 28px; font-style: italic; }
@media (max-width:600px) { .story p { font-size: 16px; } }
