/* =========================================================
   NEXT DIGITAL WORKS — socle commun des maquettes A/B/C/D
   Charte NEXT : vert #00A13F / #9DC765 / #DCE9BB, Poppins,
   neutres #1C1C1C #565656 #9E9C9D #DADADA #E8E6E3 #F7F6F4
   ========================================================= */
:root {
  --g: #00A13F; --g2: #9DC765; --g3: #DCE9BB;
  --ink: #1C1C1C; --text: #565656; --muted: #9E9C9D; --grey: #DADADA;
  --line: #E8E6E3; --bg: #FFFFFF; --bg2: #F7F6F4;
  --learn: #F17E23; --cowork: #005EA8; --cowork2: #00B5EE; --group: #E94539;
  --radius: 14px; --radius-s: 8px;
  --container: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* Typo utilitaire */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--g); }
.kicker.on-dark { color: #fff; }
.display { font-size: clamp(42px, 7vw, 96px); line-height: .98; letter-spacing: -.035em; }
.h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text); max-width: 640px; }
/* Surlignage « marqueur » vert, animé à l'apparition */
.mark { background-image: linear-gradient(var(--g3), var(--g3)); background-repeat: no-repeat; background-size: 0% 38%; background-position: 0 88%; transition: background-size .9s var(--ease) .2s; padding: 0 .06em; }
.in .mark, .mark.in { background-size: 100% 38%; }
.green { color: var(--g); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--g); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--g2); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .3s, box-shadow .3s, transform .35s var(--ease); }
.site-header.scrolled { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--g); transition: right .3s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { right: 0; }
.nav .btn { min-height: 44px; padding: 10px 20px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav ul { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { display: none; }
  .brand img { height: 40px; }
}

/* ===== Pré-footer : appel à l'action (section à part) ===== */
.pre-footer { background: var(--g); padding: 64px 0; }
.pre-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.pre-footer h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 780px; color: var(--ink); }
.pre-footer h2 span { color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #fff; color: var(--ink); }

/* ===== Footer : structure commune NLC / Cowork / Digital ===== */
.site-footer { background: var(--ink); color: var(--grey); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 150px 1.4fr 1fr 1fr 1.3fr; gap: 44px; } .footer-eco { border-right: 1px solid rgba(255,255,255,.12); padding-right: 30px; } }
.footer-label, .site-footer h3 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.footer-label { color: var(--muted); }
.footer-eco { display: grid; gap: 10px; align-content: start; }
.eco-btn { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color .2s, border-color .2s, transform .2s; }
.eco-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); color: #fff; transform: translateX(3px); }
.eco-btn.active { background: rgba(0,161,63,.16); border-color: rgba(0,161,63,.55); color: #fff; }
.eco-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.eco-icon img { width: 30px; height: 30px; }
.footer-brand img { height: 50px; width: auto; }
.footer-brand p { margin: 18px 0 20px; max-width: 320px; line-height: 1.65; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer ul a { color: var(--grey); text-decoration: none; }
.site-footer ul a:hover { color: var(--g2); }
.footer-contact li { line-height: 1.55; }
.footer-contact .maps { color: var(--g2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: var(--grey); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.socials a:hover { background: var(--g); color: var(--ink); }
.socials svg { width: 17px; height: 17px; }
.site-footer :focus-visible { outline-color: var(--g2); }

/* ===== Apparitions au scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ===== Défilé de mots-clés ===== */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: #fff; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: ""; width: 10px; height: 10px; background: var(--g); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Interfaces stylisées (en attendant les vraies captures) ===== */
.mock { background: #fff; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(28,28,28,.28), 0 0 0 1px rgba(28,28,28,.06); overflow: hidden; font-size: 11px; color: var(--text); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--grey); }
.mock-bar b { margin-left: 10px; font-weight: 500; font-size: 10px; color: var(--muted); }
.mock-body { padding: 14px; display: grid; gap: 10px; }
.mock-row { display: grid; gap: 10px; }
.mock-kpis { grid-template-columns: repeat(5, 1fr); }
.mock-kpi { border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.mock-kpi em { font-style: normal; display: block; font-size: 9px; color: var(--muted); }
.mock-kpi strong { display: block; font-size: 15px; color: var(--ink); }
.mock-kpi .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--g); margin-right: 4px; }
.mock-kpi .dot.warn { background: var(--learn); }
.mock-bars { display: flex; align-items: end; gap: 6px; height: 70px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.mock-bars span { flex: 1; background: var(--g3); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.mock-bars span:nth-child(3n) { background: var(--g); }
@keyframes grow { from { transform: scaleY(.1); } }
.mock-list { display: grid; gap: 6px; }
.mock-list div { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.mock-tag { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--g3); color: var(--ink); }
.mock-tag.warn { background: #FDDDC4; }
.mock-kanban { grid-template-columns: repeat(4, 1fr); }
.mock-col { background: var(--bg2); border-radius: 8px; padding: 6px; display: grid; gap: 5px; align-content: start; }
.mock-col > em { font-style: normal; font-size: 9px; font-weight: 600; color: var(--ink); }
.mock-card { background: #fff; border-radius: 5px; padding: 6px; border-left: 3px solid var(--g); font-size: 9px; }
.mock-player { aspect-ratio: 16/8; border-radius: 8px; background: linear-gradient(135deg, var(--ink), #3a3a3a); display: grid; place-items: center; }
.mock-player i { width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.mock-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 64%; background: var(--g); }
.mock-note { font-size: 11px; color: var(--muted); margin-top: 10px; font-style: italic; }
.phone { border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 6px #111; background: #111; }

/* Étiquettes */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.tag.solid { background: var(--g3); border-color: var(--g3); }

/* Lignes de flux animées (élément signature : les processus qui circulent) */
.flow path { fill: none; stroke: var(--g2); stroke-width: 1.5; stroke-dasharray: 6 10; animation: flow 3.5s linear infinite; }
.flow circle { fill: var(--g); }
@keyframes flow { to { stroke-dashoffset: -64; } }

/* Bandeau maquette */
.mq-badge { position: fixed; right: 16px; bottom: 16px; z-index: 300; background: var(--ink); color: #fff; font-size: 12px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.mq-badge a { color: var(--g2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mark { transition: none; background-size: 100% 38%; }
  .ticker-track, .flow path, .mock-bars span { animation: none; }
  .btn, .btn svg { transition: none; }
}

/* ===== Diagnostic (A, D) ===== */
.diag { background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(28,28,28,.35), 0 0 0 1px rgba(28,28,28,.05); padding: 30px; position: relative; overflow: hidden; }
.diag-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.diag-top button { font: inherit; font-size: 13px; background: none; border: 0; color: var(--text); text-decoration: underline; cursor: pointer; }
.diag-track { height: 5px; background: var(--line); border-radius: 3px; margin: 14px 0 26px; overflow: hidden; }
.diag-track span { display: block; height: 100%; width: 0; background: var(--g); border-radius: 3px; transition: width .5s var(--ease); }
.diag-q { font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.25; min-height: 2.5em; letter-spacing: -.01em; }
.diag-opts { display: grid; gap: 10px; margin-top: 20px; }
.diag-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg2); border: 2px solid transparent; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.diag-opt:hover { border-color: var(--g); background: #fff; transform: translateX(4px); }
.diag-key { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.diag-opt:hover .diag-key { background: var(--g); border-color: var(--g); }
[data-body].swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateX(24px); } }
.diag-result h3 { font-size: clamp(26px, 3vw, 34px); margin: 6px 0 12px; outline: none; }
.diag-result .label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g); }
.diag-meter { --v: .5; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--g3), var(--g2), var(--g)); position: relative; margin: 18px 0 8px; }
.diag-meter::after { content: ""; position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: left .8s var(--ease); }
.diag-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.diag-offer { margin: 18px 0 22px; padding: 14px 16px; border-radius: 12px; background: var(--g3); color: var(--ink); font-weight: 600; }
.diag-offer small { display: block; font-weight: 500; font-size: 12px; color: var(--text); }
@media (prefers-reduced-motion: reduce) { [data-body].swap { animation: none; } .diag-opt, .diag-track span, .diag-meter::after { transition: none; } }

/* ===== Contact ===== */
.contact { padding: 110px 0; background: var(--bg2); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 80px; } }
.contact-info dl { display: grid; gap: 20px; margin: 36px 0 0; }
.contact-info dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-info dd { margin: 4px 0 0; color: var(--ink); font-weight: 500; font-size: 17px; }
.contact-info dd a { text-decoration-color: var(--g); text-underline-offset: 4px; }
.form { background: #fff; border-radius: 22px; padding: 34px; display: grid; gap: 18px; box-shadow: 0 30px 60px -30px rgba(28,28,28,.2); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 2px solid transparent; border-radius: 10px; padding: 13px 15px; width: 100%; transition: border-color .2s, background-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--g); flex: none; }
.captcha { border: 1px dashed var(--grey); border-radius: 10px; padding: 12px; font-size: 13px; text-align: center; color: var(--muted); }
.form [role=status] { font-size: 14px; color: var(--g); font-weight: 500; }

/* ===== Retour en haut ===== */
.to-top { position: fixed; right: 20px; bottom: 72px; z-index: 140; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--g); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Captures réelles dans un cadre navigateur */
.mock.shot img { display: block; width: 100%; height: auto; }
/* Dans les tuiles de mosaïque : zoom sur la partie la plus parlante de la capture */
.tile .mock.shot img { width: 175%; max-width: none; }
.t-d .mock.shot img { width: 130%; }
.t-i .mock.shot img { width: 100%; margin-top: -58%; }
