/* M-TrackR — site vitrine */
:root {
  --sunflower-gold: #ffbc42;
  --raspberry-red: #d81159;
  --vintage-berry: #8f2d56;
  --teal: #218380;
  --frosted-blue: #73d2de;
  --bg: #0a0a14;
  --bg-card: #14142400;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(115, 210, 222, 0.18);
  --text: #eef2f6;
  --text-dim: #a8b3c0;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(115, 210, 222, 0.12);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
  color: var(--text-dim); text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 5px 10px; border-radius: 8px; border: 1px solid transparent;
}
.lang-switch a:hover { color: var(--frosted-blue); }
.lang-switch a[aria-current="true"] {
  color: var(--frosted-blue); border-color: var(--card-border);
  background: rgba(115, 210, 222, 0.08);
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 24px 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;  height: 130%;
  background: radial-gradient(ellipse at 30% 20%, rgba(33, 131, 128, 0.25), transparent 55%),
              radial-gradient(ellipse at 70% 30%, rgba(216, 17, 89, 0.18), transparent 55%),
              radial-gradient(ellipse at 50% 80%, rgba(143, 45, 86, 0.15), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero img.logo { width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 12px 60px rgba(115, 210, 222, 0.25); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 28px; letter-spacing: -0.02em; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--frosted-blue), var(--teal) 30%, var(--raspberry-red) 70%, var(--sunflower-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tagline { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--text-dim); margin-top: 14px; max-width: 640px; margin-inline: auto; }
.cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 14px; text-decoration: none;
  font-weight: 700; font-size: 1rem; transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--raspberry-red), var(--vintage-berry));
  color: #fff; box-shadow: 0 6px 24px rgba(216, 17, 89, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(216, 17, 89, 0.45); }
.btn-secondary { background: rgba(115, 210, 222, 0.1); color: var(--frosted-blue); border: 1px solid var(--card-border); }
.btn-secondary:hover { background: rgba(115, 210, 222, 0.18); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 0.9rem; font-weight: 600; color: var(--sunflower-gold);
  border: 1px solid rgba(255, 188, 66, 0.35); border-radius: 999px; padding: 7px 16px;
  background: rgba(255, 188, 66, 0.07);
}
.badge img { width: 22px; height: 22px; }
.sources-row {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  margin-top: 18px; color: var(--text-dim); font-size: 0.9rem; flex-wrap: wrap;
}
.sources-row img { width: 26px; height: 26px; vertical-align: middle; }
.sources-row .src { display: inline-flex; align-items: center; gap: 7px; }

/* Hashtags */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 24px 56px; max-width: 760px; margin: 0 auto; }
.tags span {
  font-size: 0.82rem; color: var(--frosted-blue); background: rgba(115, 210, 222, 0.07);
  border: 1px solid rgba(115, 210, 222, 0.18); border-radius: 999px; padding: 4px 12px;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); text-align: center; margin-bottom: 12px; }
section .section-sub { text-align: center; color: var(--text-dim); max-width: 620px; margin: 0 auto 44px; }
.accent-bar { width: 64px; height: 4px; border-radius: 2px; margin: 16px auto 32px;
  background: linear-gradient(90deg, var(--teal), var(--frosted-blue)); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px;
}
.card .icon { font-size: 1.8rem; display: block; text-align: center; }
.card .icon-row { display: flex; justify-content: center; align-items: center; gap: 14px; }
.card .icon-row img { width: 34px; height: 34px; }
.card h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Captures d'écran */
.screens { display: flex; justify-content: center; align-items: flex-start; gap: 32px; flex-wrap: nowrap; }
.screens figure { margin: 0; text-align: center; position: relative; z-index: 1; outline: none; }
.screens img {
  width: min(140px, 38vw); height: auto; border-radius: 16px;
  border: 1px solid var(--card-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  transform-origin: top center; cursor: zoom-in;
}
.screens figure:hover, .screens figure:focus-within, .screens figure:focus { z-index: 5; }
.screens figure:hover img, .screens figure:focus-within img, .screens figure:focus img {
  transform: scale(2.4); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}
@media (hover: none) {
  .screens figure:hover img { transform: none; }
}
.screens figcaption { margin-top: 12px; color: var(--text-dim); font-size: 0.9rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step { text-align: center; padding: 24px; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-weight: 800; font-size: 1.3rem; color: #fff;
}
.step:nth-child(1) .num { background: linear-gradient(135deg, var(--teal), var(--frosted-blue)); }
.step:nth-child(2) .num { background: linear-gradient(135deg, var(--vintage-berry), var(--raspberry-red)); }
.step:nth-child(3) .num { background: linear-gradient(135deg, var(--raspberry-red), var(--sunflower-gold)); }
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--frosted-blue); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--text-dim); }

/* Pages légales / support */
.page-hero { text-align: center; padding: 56px 24px 8px; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-hero .updated { color: var(--text-dim); font-size: 0.9rem; margin-top: 10px; }
.legal-content { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.legal-content h2 { font-size: 1.25rem; margin: 36px 0 12px; color: var(--frosted-blue); }
.legal-content p, .legal-content li { color: var(--text-dim); }
.legal-content ul { padding-left: 22px; margin: 10px 0; }
.legal-content li { margin: 6px 0; }
.legal-content a { color: var(--frosted-blue); }
.legal-content strong { color: var(--text); }
.nutshell {
  background: linear-gradient(135deg, rgba(33, 131, 128, 0.12), rgba(115, 210, 222, 0.05));
  border: 1.5px solid rgba(115, 210, 222, 0.3); border-radius: var(--radius);
  padding: 26px 30px; margin: 28px 0 8px;
}
.nutshell h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--frosted-blue); }
.nutshell ul { list-style: none; padding: 0; margin: 0; }
.nutshell li { padding: 5px 0; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nutshell li::before { content: "✓ "; color: var(--sunflower-gold); }
.contact-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px 30px; margin: 24px 0; text-align: center;
}
.contact-card .btn { margin-top: 14px; }

/* Footer */
footer {
  border-top: 1px solid rgba(115, 210, 222, 0.12);
  padding: 36px 24px; text-align: center; color: var(--text-dim); font-size: 0.9rem;
}
footer a { color: var(--frosted-blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .foot-langs { margin-top: 10px; }

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  section { padding: 44px 0; }
}
