/* ==========================================================
   Page dédiée ModuleTrafic — styles propres à la page (.mt-)
   S'appuie sur /styles.css (tokens, .nav, .wrap, .section,
   .sec-head, .eyebrow, .btn, .app-band, .cta-band).
   ========================================================== */

/* ---- Nav ---- */
.mt-nav-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.mt-nav-sep { color: var(--ink-4); font-weight: 400; margin: 0 2px; }
.mt-nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
@media (max-width: 720px) { .mt-nav-right .mt-nav-back { display: none; } }
@media (max-width: 560px) { .mt-nav-name { display: none; } .mt-nav-right { gap: 10px; } }

/* ---- Hero (clair, sur le fond topo du site) ---- */
.mt-hero { padding: calc(var(--section-py) * 0.75) 0 calc(var(--section-py) * 0.9); background: transparent; border-top: 0; }
.mt-hero h1 { font-size: clamp(34px, 4.2vw, 58px); max-width: 20ch; margin-top: 18px; }
.mt-hero h1 .accent { background: linear-gradient(92deg, var(--brand), #2bb3a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-hero-sub { margin-top: 20px; color: var(--ink-2); font-size: clamp(15.5px, 1.3vw, 17.5px); max-width: 54ch; }
.mt-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mt-hero-photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface-2); aspect-ratio: 4 / 3; }
.mt-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Blocs alternés ---- */
.mt-tour { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 130px); }
.mt-row { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.mt-row--rev .mt-row-media { order: 2; }
@media (max-width: 860px) {
  .mt-row { grid-template-columns: 1fr; gap: 28px; }
  .mt-row--rev .mt-row-media { order: 0; }
}
.mt-row > * { min-width: 0; }
.mt-row-media { display: flex; justify-content: center; min-width: 0; }
.mt-photo { width: 100%; max-width: 520px; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface-2); }
.mt-row-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.mt-row h2 { font-size: clamp(26px, 2.6vw, 38px); margin-top: 12px; max-width: 18ch; }
.mt-row-desc { margin-top: 16px; font-size: 16.5px; color: var(--ink-2); max-width: 52ch; line-height: 1.6; }
.mt-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mt-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.mt-points .chk { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in oklab, var(--aq-good) 16%, transparent); color: #1a8055; }

/* visuel : le message JSON réel */
.mt-json-card { width: 100%; max-width: 460px; min-width: 0; box-sizing: border-box; background: var(--brand-ink); color: #fff; border-radius: var(--radius-lg); padding: 22px 24px 20px; box-shadow: var(--shadow-lg); }
.mt-json-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.mt-json-head .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aq-good); color: var(--aq-good); animation: pulseDot 1.8s infinite; }
.mt-json { margin: 16px 0 0; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.9); white-space: pre-wrap; word-break: break-all; }
@media (max-width: 420px) { .mt-json { font-size: 12px; } .mt-json-card { padding: 18px 18px 16px; } }
.mt-json .k { color: #9cc7f2; }
.mt-json .n { color: #7fe3b0; }
.mt-json .s { color: #f5d38a; }
.mt-json-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* visuel : citation CNIL */
.mt-quote { width: 100%; max-width: 500px; margin: 0; padding: 26px 28px; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.mt-quote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--brand-ink); letter-spacing: -0.01em; }
.mt-quote footer { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.mt-quote footer a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
[data-theme="dark"] .mt-quote p { color: #e8f1fb; }

/* ---- Caractéristiques ---- */
.mt-specs { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.mt-spec { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.mt-spec:last-child { border-bottom: 0; }
.mt-spec .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); padding-top: 3px; }
.mt-spec .v { color: var(--ink-2); line-height: 1.5; }
@media (max-width: 560px) { .mt-spec { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; } }

/* ---- FAQ ---- */
.mt-faq { border-top: 1px solid var(--line); }
.mt-faq details { border-bottom: 1px solid var(--line); }
.mt-faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.mt-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.mt-faq summary:hover { color: var(--brand-strong); }
.mt-faq .mt-faq-a { padding: 0 0 22px; font-size: 15.5px; color: var(--ink-2); line-height: 1.65; max-width: 72ch; }

/* ---- CTA final ---- */
.mt-cta .cta-band { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 760px) { .mt-cta .cta-band { grid-template-columns: 1fr; } }
.mt-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 760px) { .mt-cta-actions { justify-content: flex-start; } }

/* ---- Footer ---- */
.mt-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 13.5px; color: var(--ink-3); }
.mt-footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.mt-footer a { color: var(--ink-3); }
.mt-footer a:hover { color: var(--brand-strong); }
.mt-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
