/* ==========================================================================
   Mastery — page d'accueil v2
   Inspiration de mise en forme : retention.com
   (fond clair, titres très gras, libellés monospace, grilles à bordures fines)
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #0c0c0e;
  --text: #45454d;
  --muted: #7a7a84;
  --line: rgba(12, 12, 14, 0.10);
  --line-strong: rgba(12, 12, 14, 0.18);
  --accent: #6a52e0;          /* violet Mastery (entre #667eea et #764ba2) */
  --accent-ink: #4f3bc0;
  --accent-soft: #efecfd;
  --dark: #0c0c0e;
  --whatsapp: #25d366;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --gutter: 40px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; font-family: var(--mono); font-size: 12px;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo ---------- */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow { color: var(--accent); }
.dot { color: var(--accent); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; font-family: var(--font); }

.display {
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 {
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.h3 { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: #2c2c33; font-weight: 400; }
p { margin: 0 0 1em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #26262b; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--dark); color: rgba(255,255,255,.75); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #c9c0ff; }
.topbar strong { color: #fff; font-weight: 700; }
.topbar .tb-right { display: flex; gap: 22px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; height: 72px; gap: 28px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; margin-left: -6px; }
.brand .mono { font-size: 8.5px; color: var(--muted); letter-spacing: 0.2em; }

.menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; justify-content: center; }
.menu > li { position: relative; }
.menu-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); padding: 10px 12px; border-radius: var(--radius);
}
.menu-link:hover { color: var(--accent); }
.chev { width: 8px; height: 8px; transition: transform .2s; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 240px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(12,12,14,.25);
  padding: 10px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 14px; color: var(--ink); border-radius: var(--radius);
}
.dropdown a:hover { background: var(--bg); color: var(--accent); }
.dropdown a img { width: 20px; height: 20px; object-fit: contain; }
.dropdown .dd-label { padding: 8px 12px 4px; color: var(--muted); }
.dropdown.mega { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; }
.dropdown.mega .dd-label { grid-column: 1 / -1; }

@media (min-width: 1081px) {
  .menu > li:hover > .dropdown,
  .menu > li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .menu > li:hover .chev { transform: rotate(180deg); }
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-actions .btn { padding: 11px 16px; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .nav .container { justify-content: space-between; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - 72px); overflow-y: auto; display: none;
  }
  .nav.open .menu { display: flex; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu-link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 12px; }
  .dropdown, .dropdown.mega {
    position: static; transform: none; opacity: 1; visibility: visible; display: none;
    min-width: 0; box-shadow: none; border: 0; padding: 0 0 12px; background: transparent; grid-template-columns: 1fr;
  }
  .menu > li.open > .dropdown { display: block; }
  .menu > li.open > .dropdown.mega { display: grid; }
  .menu > li.open .chev { transform: rotate(180deg); }
  .nav-actions .btn-ghost { display: none; }
  .menu .menu-mobile-only { display: block; padding: 18px 0 0; border: 0; }
}
.menu-mobile-only { display: none; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 56px; display: grid; gap: 20px; }
.section-head.split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 40px; }
.section-head .lead { margin: 0; color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .eyebrow { display: inline-block; margin-bottom: 26px; }
.hero h1 { max-width: 14ch; margin: 0 auto; }
.hero .lead { max-width: 640px; margin: 28px auto 0; }
.typing { margin-top: 26px; color: var(--muted); min-height: 1.6em; }
.typing .typed { color: var(--ink); font-weight: 700; }
.typing .caret { display: inline-block; width: 7px; height: 13px; background: var(--accent); vertical-align: -2px; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.trust { margin-top: 18px; color: var(--muted); font-size: 10px; }
.trust span + span::before { content: "·"; margin: 0 10px; color: var(--line-strong); }
.hero-ctas { display: flex; justify-content: center; gap: 12px; margin-top: 38px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 900px; margin: 72px auto 0; }
.stat { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.stat-num { font-weight: 900; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stat .mono { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }

/* ---------- Logos clients (défilement) ---------- */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0 48px; background: var(--bg); }
.logos .label { text-align: center; color: var(--muted); margin-bottom: 30px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 22px; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: scroll 60s linear infinite; }
.marquee-track img { margin-right: 64px; }
.marquee-track .dup { display: contents; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 52px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s; }
.marquee img.sm { height: 40px; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 32px 48px; padding: 0 var(--gutter); }
  .marquee-track img { margin-right: 0; }
  .marquee-track .dup { display: none; }
}

/* ---------- Grilles à bordures (style retention) ---------- */
/* Les filets entre cellules viennent d'un espacement de 1 px sur fond gris :
   prévoir un nombre de cellules qui remplit les rangées. */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--surface); min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.card .sub { color: var(--accent); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.card p { font-size: 14.5px; line-height: 1.6; margin: 0; color: var(--text); }
.card .num { color: var(--muted); margin-bottom: 18px; }

a.card { transition: background .2s; }
a.card:hover { background: #fcfcfa; }
a.card:hover .h3 .arr { transform: translateX(4px); color: var(--accent); }
.h3 .arr { display: inline-block; transition: transform .2s; color: var(--muted); font-weight: 400; margin-left: 4px; }

.card-foot { margin-top: auto; padding-top: 22px; }
.card-foot .mono { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 10px; }
a.card:hover .card-foot .mono { color: var(--accent); }

/* Modules (icônes) */
.module { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px 14px; text-align: center; min-height: 150px; }
.module img { width: 40px; height: 40px; object-fit: contain; }
.module span { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.modules-wrap { margin-top: 48px; }
.modules-wrap .mono { color: var(--muted); margin-bottom: 16px; display: block; }

/* ---------- Plateforme ---------- */
.platform { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.platform .h2 { margin: 18px 0 26px; }
.checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.checks li::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.frame { border: 1px solid var(--line); background: var(--surface); padding: 18px; }
.frame-cap { display: flex; justify-content: space-between; color: var(--muted); padding: 0 2px 14px; font-size: 10px; }

/* ---------- Produits ---------- */
.product { padding: 0; gap: 0; }
.product .thumb { aspect-ratio: 600 / 300; overflow: hidden; border-bottom: 1px solid var(--line); }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.product:hover .thumb img { transform: scale(1.03); }
.product .body { padding: 26px 28px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* ---------- Livraison des données ---------- */
.delivery .card { padding: 34px 36px; }
.delivery .card .mono { color: var(--accent); margin-bottom: 14px; }
.delivery .h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px; }
.figure { margin: 24px 0 0; border: 1px solid var(--line); background: #0d2340; }
.figure img { width: 100%; }
.figure figcaption { background: var(--surface); padding: 14px 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Fonctionnalités ---------- */
.feature { padding: 32px 30px; display: flex; gap: 20px; align-items: flex-start; }
.feature img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.feature .h3 { font-size: 1.02rem; margin-top: 4px; }
.feature .mono { color: var(--muted); display: block; margin-bottom: 6px; font-size: 10px; }

/* ---------- Secteurs ---------- */
.industry { display: flex; align-items: center; gap: 14px; padding: 20px 22px; transition: background .2s; }
.industry:hover { background: #fcfcfa; }
.industry img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.industry .name { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; flex: 1; }
.industry .mono { color: var(--muted); font-size: 9.5px; }
.industry:hover .mono { color: var(--accent); }

/* ---------- Compatibilité matériel ---------- */
.hw { display: flex; align-items: center; justify-content: center; height: 96px; padding: 18px 24px; }
.hw img { max-height: 34px; max-width: 72%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.hw:hover img { filter: none; opacity: 1; }
.more-link { margin-top: 22px; display: flex; justify-content: flex-end; }

/* ---------- Terrain (photos) ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: #ddd; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(12,12,14,.75)); color: #fff; font-size: 9.5px;
}
.g1 { grid-column: span 5; grid-row: span 3; }
.g2 { grid-column: span 4; grid-row: span 3; }
.g3 { grid-column: span 3; grid-row: span 3; }
.g4 { grid-column: span 3; grid-row: span 2; }
.g5 { grid-column: span 5; grid-row: span 2; }
.g6 { grid-column: span 4; grid-row: span 2; }
.g7 { grid-column: span 4; grid-row: span 2; }
.g8 { grid-column: span 4; grid-row: span 2; }
.g9 { grid-column: span 4; grid-row: span 2; }

/* ---------- Valeurs + partenaires ---------- */
.partners { margin-top: 48px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 220px 1fr; }
.partners .label { padding: 24px 26px; border-right: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; }
.partners .row { display: flex; align-items: center; justify-content: space-around; gap: 24px; padding: 20px 26px; flex-wrap: wrap; }
.partners img { height: 54px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.partners img:hover { filter: none; opacity: 1; }

/* ---------- CTA final ---------- */
.cta { background: var(--dark); color: rgba(255,255,255,.72); padding: 104px 0; }
.cta .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cta .mono { color: #b8acff; }
.cta h2 { color: #fff; margin: 18px 0 22px; max-width: 18ch; }
.cta p { max-width: 560px; font-size: 1.05rem; margin: 0; }
.cta .cta-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cta .cta-side .mono { color: rgba(255,255,255,.5); font-size: 10px; margin-top: 6px; }

/* ---------- Pied de page ---------- */
.footer { background: #f3f3ef; padding: 72px 0 32px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer .mono.h { color: var(--muted); margin-bottom: 16px; display: block; font-size: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: var(--accent); }
.footer .brand img { height: 32px; width: auto; }
.nowrap { white-space: nowrap; }
.footer address { font-style: normal; line-height: 1.7; margin-top: 18px; color: var(--text); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 36px; height: 36px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.social a:hover { border-color: var(--ink); color: var(--ink); }
.social svg { width: 16px; height: 16px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 10px; }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #0b3d1d; padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(12,12,14,.35); font-weight: 700; font-size: 14px;
  transition: transform .2s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .platform { grid-template-columns: 1fr; gap: 40px; }
  .grid-5.hw-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta .container { grid-template-columns: 1fr; }
  .cta .cta-side { align-items: flex-start; }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 110px; }
  .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9 { grid-column: span 3; grid-row: span 2; }
  .g1 { grid-column: span 6; grid-row: span 3; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 52px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; margin-top: 52px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .grid-5, .grid-5.hw-grid { grid-template-columns: repeat(2, 1fr); }
  .hw { height: 80px; }
  .module { min-height: 128px; }
  .partners { grid-template-columns: 1fr; }
  .partners .label { border-right: 0; border-bottom: 1px solid var(--line); justify-content: center; }
  .partners img { height: 42px; }
  .marquee img { height: 40px; max-width: 130px; }
  .marquee img.sm { height: 32px; }
  .marquee-track img { margin-right: 44px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; grid-auto-flow: dense; }
  .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9 { grid-column: span 1; grid-row: span 2; }
  .g1, .g5, .g9 { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .nav-actions .btn-dark { padding: 10px 12px; }
  .trust span { display: block; }
  .trust span + span::before { content: none; }
}
@media (max-width: 400px) {
  .nav-actions .btn-dark .lbl-long { display: none; }
}

/* ==========================================================================
   Sous-pages (À propos, Carrières, Contact, Devis, Support, FAQ, Conditions)
   ========================================================================== */

/* En-tête de page */
.page-hero { padding: 72px 0 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin: 0 0 28px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero .display { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 18ch; }
.page-hero .lead { max-width: 680px; margin: 26px 0 0; }
.page-hero .hero-ctas { justify-content: flex-start; margin-top: 34px; }
.page-hero.center { text-align: center; }
.page-hero.center .display, .page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page-hero.center .crumbs, .page-hero.center .hero-ctas { justify-content: center; }
.section.tight { padding: 80px 0; }
.section.first { border-top: 0; padding-top: 0; }

/* Mise en page éditoriale : titre à gauche, texte à droite */
.split-2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); font-weight: 700; }
.sticky { position: sticky; top: 104px; }

/* Bande photo */
.photo-band { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; gap: 12px; }
.photo-band figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: #ddd; position: relative; }
.photo-band figure:first-child { grid-row: span 2; }
.hw.partner img { height: 48px; max-height: none; max-width: 82%; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(12,12,14,.7)); color: #fff; font-size: 9.5px; }

/* Chiffres en ligne */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kpis .stat-num { font-size: clamp(2rem, 3.6vw, 2.8rem); }

/* Équipe */
.person { padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 18px; }
.person .role { color: var(--muted); font-size: 14px; }

/* Étapes numérotées */
.steps { counter-reset: step; }
.step { padding: 30px; }
.step .mono { color: var(--accent); display: block; margin-bottom: 18px; }
.step p { font-size: 14.5px; margin: 8px 0 0; }

/* Accordéons (FAQ, offres d'emploi) */
.acc { border: 1px solid var(--line); background: var(--surface); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 22px 26px; color: var(--ink); font-weight: 700; font-size: 1.02rem; line-height: 1.4; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: #fcfcfa; }
.acc summary .q { flex: 1; }
.acc summary .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.acc summary .plus::before, .acc summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s; }
.acc summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc details[open] summary { color: var(--accent-ink); }
.acc .ans { padding: 0 26px 26px; color: var(--text); font-size: 15.5px; line-height: 1.7; max-width: 820px; }
.acc .ans p { margin: 0 0 .8em; }
.acc .ans ul { margin: 0 0 1em; padding-left: 1.1em; }
.acc .ans li { margin-bottom: .4em; }
.acc .ans h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 18px 0 10px; }
.acc-group + .acc-group { margin-top: 48px; }
.acc-group > .mono { display: block; color: var(--muted); margin-bottom: 14px; }

/* Offres d'emploi */
.job summary { flex-wrap: wrap; }
.job .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); font-weight: 500; white-space: nowrap; }
.tag.accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.job .apply { margin-top: 18px; }

/* Recherche FAQ */
.search { position: relative; max-width: 620px; }
.search input { width: 100%; padding: 18px 20px 18px 50px; font: inherit; font-size: 16px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.page-hero.center .search { margin: 34px auto 0; }
.empty { display: none; padding: 26px; border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); }
.empty.show { display: block; }
.faq-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.faq-nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); }
.faq-nav a:hover { border-color: var(--ink); }

/* Formulaires */
.form-card { background: var(--surface); border: 1px solid var(--line); padding: 36px; }
.form-card .h3 { margin-bottom: 6px; }
.form-card > p { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.field label .opt { color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 13px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230c0c0e' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c2412d; background: #fff8f6; }
.field .err { display: none; color: #b3361f; font-size: 13px; }
.field.invalid .err { display: block; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.consent.invalid { color: #b3361f; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-actions .btn { padding: 16px 24px; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }
.form-actions .note { font-size: 12.5px; color: var(--muted); }
.form-alert { display: none; margin-top: 18px; padding: 18px 20px; border: 1px solid; border-radius: var(--radius); font-size: 15px; }
.form-alert.show { display: block; }
.form-alert.ok { border-color: #b7e2c4; background: #f0faf3; color: #17572d; }
.form-alert.ko { border-color: #f1c4b9; background: #fff6f3; color: #8a2a16; }
.form-alert strong { display: block; margin-bottom: 4px; }
.form-alert a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Canaux de contact */
.channel { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.channel .mono { color: var(--accent); margin-bottom: 10px; }
.channel .val { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.channel p { font-size: 14px; margin: 4px 0 0; }
a.channel:hover .val { color: var(--accent-ink); }

/* Adresses */
.office { padding: 30px; }
.office address { font-style: normal; line-height: 1.7; margin: 10px 0 18px; color: var(--text); }
.office .mono { color: var(--muted); }

/* Bloc légal */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: 104px; border-left: 1px solid var(--line-strong); padding-left: 18px; }
.toc .mono { color: var(--muted); display: block; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: toc; }
.toc a { font-size: 14px; color: var(--text); }
.toc a:hover { color: var(--accent); }
.legal-body h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin: 48px 0 14px; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.75; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Encart de réassurance */
.assure { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.assure li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.assure .mono { color: var(--accent); padding-top: 3px; }
.assure strong { display: block; color: var(--ink); }
.assure span.t { font-size: 14.5px; color: var(--text); }

.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 16px; }
.logo-row img { height: 34px; width: auto; filter: grayscale(1); opacity: .6; }

/* Support : cartes de ressources */
.res { padding: 30px; display: flex; flex-direction: column; gap: 8px; min-height: 210px; }
.res .ico { width: 40px; height: 40px; border: 1px solid var(--line-strong); display: grid; place-items: center; border-radius: var(--radius); margin-bottom: 14px; color: var(--accent); }
.res .ico svg { width: 18px; height: 18px; }

/* Responsive sous-pages */
@media (max-width: 1080px) {
  .split-2, .legal { grid-template-columns: 1fr; gap: 36px; }
  .sticky, .toc { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .photo-band { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .photo-band figure:first-child { grid-column: 1 / -1; grid-row: span 2; }
}
@media (max-width: 760px) {
  .page-hero { padding: 48px 0 44px; }
  .photo-band { grid-auto-rows: 130px; gap: 8px; }
  .form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .acc summary { padding: 18px; }
  .acc .ans { padding: 0 18px 20px; }
  .section.tight { padding: 60px 0; }
  .toc { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 1080px) and (min-width: 761px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-5 > :last-child:nth-child(odd) { grid-column: span 2; }
}
.split-2.wide-r { grid-template-columns: 1fr 1.05fr; }
@media (max-width: 1080px) { .split-2.wide-r { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .job summary { display: grid; grid-template-columns: 1fr auto; row-gap: 12px; }
  .job summary .q { grid-column: 1; grid-row: 1; }
  .job summary .plus { grid-column: 2; grid-row: 1; }
  .job summary .meta { grid-column: 1 / -1; grid-row: 2; }
  .grid-4.two-m { grid-template-columns: 1fr 1fr; }
  .person { padding: 22px 18px; }
}

/* ---------- Logo animé (le fond blanc du GIF disparaît sur les fonds clairs) ---------- */
.brand picture { display: block; line-height: 0; }

/* ---------- Devis : capture de la plateforme en arrière-plan ---------- */
.hero-bg { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/photos/plateforme-ecran.webp") right center / cover no-repeat;
  filter: saturate(.85);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(250,250,247,.98) 0%, rgba(250,250,247,.95) 38%, rgba(250,250,247,.72) 68%, rgba(250,250,247,.5) 100%),
    linear-gradient(180deg, rgba(250,250,247,0) 70%, rgba(250,250,247,.9) 100%);
}
.hero-bg .form-card { box-shadow: 0 30px 60px -30px rgba(12,12,14,.35); }
@media (max-width: 1080px) {
  .hero-bg::before { background-position: 70% top; background-size: auto 520px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(250,250,247,.88) 0%, rgba(250,250,247,.95) 300px, var(--bg) 520px); }
}

/* ---------- Boîtiers compatibles ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.chip span { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: rgba(250,250,247,.6); }
.hw-count { color: var(--muted); margin: 6px 0 18px; min-height: 1.2em; }
.makers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; }
.maker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.maker summary, .maker.static { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; }
.maker.static { cursor: default; }
.maker summary::-webkit-details-marker { display: none; }
.maker summary:hover { background: #fcfcfa; }
.mk-name { flex: 1; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; }
.mk-count { color: var(--muted); font-size: 10px; text-align: right; }
.maker .plus { width: 18px; height: 18px; flex-shrink: 0; position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.maker .plus::before, .maker .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.maker .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.maker[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.maker[open] { grid-column: span 1; }
.models { list-style: none; margin: 0; padding: 4px 16px 16px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; }
.models li { font-family: var(--mono); font-size: 11.5px; padding: 4px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.models li.hit { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); font-weight: 500; }
.models li.dim { display: none; }
.proto-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.proto-cloud span { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); color: var(--text); }
.proto-cloud span:hover { border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 1080px) { .makers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .makers { grid-template-columns: 1fr; } .proto-cloud span { font-size: 11px; } }
