/* ==========================================================================
   Calaosoft — feuille de style commune
   ========================================================================== */

:root {
  /* Charte Calaosoft : orange #E4A300 (R228 V163 B0) · gris #798E97 (R121 V142 B151) */
  --ink: #1d272c;
  --ink-2: #3b4a51;
  --muted: #65767d;
  --line: #e3e8ea;
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --brand: #e4a300;        /* orange Calaosoft */
  --brand-600: #cc9200;
  --brand-deep: #a87700;   /* orange assombri : icônes et grands titres sur fond blanc */
  --brand-ink: #875f00;    /* orange lisible pour le petit texte sur fond blanc */
  --brand-50: #fdf5e1;
  --accent: #798e97;       /* gris Calaosoft */
  --accent-ink: #51666e;
  --accent-50: #eef2f3;
  --code: #f2c24a;         /* orange clair sur fond sombre */
  --grey-light: #a9bac1;   /* gris clair sur fond sombre */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 39, 44, .04), 0 10px 30px rgba(29, 39, 44, .07);
  --shadow-lg: 0 30px 60px -20px rgba(29, 39, 44, .3);
  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #bcc8cc; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section--dark .section-head p { color: #9fadb3; }
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px;
}
.eyebrow::before { content: "//"; color: var(--accent); }
.section--dark .eyebrow { color: var(--code); }
.hl { color: var(--brand-deep); }
.hl-accent { color: var(--brand); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 620px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(228, 163, 0, .8); }
.btn--primary:hover { background: var(--brand-600); }
.btn--accent { background: var(--brand); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(228, 163, 0, .8); }
.btn--accent:hover { background: var(--brand-600); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--lg { padding: 18px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { flex: none; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 36px; height: 36px; }
.logo__img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1240px) {
  .header__inner { gap: 16px; }
  .nav a { padding: 8px 7px; font-size: .88rem; }
  .header__cta .btn { padding: 11px 14px; font-size: .86rem; }
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-50); text-decoration: none; }
.nav a.nav__partner { color: var(--accent-ink); }
.nav a.nav__partner:hover, .nav a.nav__partner[aria-current="page"] { background: var(--accent-50); color: var(--ink); }
.nav__mobile-cta { display: none !important; }
.header__cta .btn { padding: 12px 20px; font-size: .92rem; }
.burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .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 { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(228,163,0,.14), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(121,142,151,.14), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
  opacity: .9;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 600; margin-bottom: 22px;
}
.hero__badge b { background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .78rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; font-weight: 600; color: var(--ink-2); padding: 0; margin: 0; list-style: none; }
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 18px; height: 18px; color: var(--brand-deep); flex: none; }

/* Illustration code + terminal */
.stack { position: relative; min-height: 460px; }
.code-card {
  position: absolute; top: 0; left: 0; width: 88%;
  background: #182125; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-family: var(--mono); font-size: .82rem; color: #d0dadd; overflow: hidden;
}
.code-card__bar { display: flex; gap: 6px; padding: 12px 14px; background: #11181b; align-items: center; }
.code-card__bar i { width: 10px; height: 10px; border-radius: 50%; background: #34444b; }
.code-card__bar i:first-child { background: var(--brand); }
.code-card__bar span { margin-left: 10px; font-size: .75rem; color: #7b8d95; }
.code-card pre { margin: 0; padding: 18px 20px 26px; line-height: 1.75; white-space: pre; overflow: hidden; }
.tk-k { color: var(--grey-light); } .tk-f { color: var(--code); } .tk-s { color: #f7dc9a; } .tk-c { color: #62757d; }
.device {
  position: absolute; right: 0; bottom: 0; width: 210px;
  background: #222c31; border-radius: 30px 30px 26px 26px; padding: 14px 12px 22px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #34424a;
}
.device::before { /* fenêtre scanner */
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 14px; border-radius: 8px 8px 0 0; background: #141b1f; border-top: 3px solid var(--brand);
}
.device__screen { background: #fff; border-radius: 16px; padding: 14px; font-size: .78rem; color: var(--ink); }
.device__head { display: flex; justify-content: space-between; font-weight: 800; font-size: .8rem; margin-bottom: 10px; }
.device__head span { color: var(--brand-ink); }
.scan-line { height: 64px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px); position: relative; margin-bottom: 10px; opacity: .85; }
.scan-line::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 12%; } 50% { top: 88%; } }
.device__row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }
.device__row b { font-weight: 700; }
.device__ok { margin-top: 10px; background: var(--brand-50); color: var(--brand-ink); border-radius: 8px; padding: 7px 8px; font-weight: 700; text-align: center; }
.device__keys { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.device__keys i { width: 34px; height: 10px; border-radius: 6px; background: #34424a; }
.device__keys i:nth-child(2) { background: var(--brand); }
.float-chip {
  position: absolute; left: 6%; bottom: 40px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: .88rem;
}
.float-chip b { display: block; color: var(--ink); }
.float-chip small { color: var(--muted); }
.float-chip__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-deep); }
.float-chip__ic svg { width: 20px; height: 20px; }

/* ---------- Bande logos / chiffres ---------- */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-deep); margin-bottom: 20px; }
.card__ic svg { width: 26px; height: 26px; }
.card__ic--accent { background: var(--accent-50); color: var(--accent-ink); }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.card ul li { padding: 6px 0 6px 26px; position: relative; font-size: .95rem; color: var(--ink-2); }
.card ul li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--brand-deep); border-bottom: 2px solid var(--brand-deep); transform: rotate(-45deg); }
.card--feature { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; background: var(--ink); border-color: var(--ink); color: #bcc8cc; }
.card--feature h3 { color: #fff; font-size: 1.5rem; }
.card--feature p { color: #9fadb3; }
.card--feature .card__ic { background: rgba(228, 163, 0, .14); color: var(--code); }
.card--feature ul li { color: #dce3e5; }
.card--feature ul li::before { border-color: var(--code); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: .85rem; color: var(--code); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; margin: 0; color: #9fadb3; }
.step small { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: .75rem; color: var(--grey-light); }

/* ---------- Bloc partenaire CipherLab ---------- */
.partner {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(135deg, #1d272c 0%, #26343a 60%, #2f4048 100%); color: #bcc8cc;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.partner::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,163,0,.3), transparent 65%);
}
.partner h2 { color: #fff; }
.partner .eyebrow { color: var(--code); }
.partner .eyebrow::before { color: var(--grey-light); }
.partner__logo {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; font-weight: 800; color: #fff; letter-spacing: .02em;
}
.partner__logo small { font-weight: 600; color: #9fadb3; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.partner__plus { color: var(--brand); font-weight: 800; }
.partner__list { display: grid; gap: 14px; position: relative; z-index: 1; }
.partner__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; }
.partner__item b { color: #fff; display: block; margin-bottom: 2px; }
.partner__item p { margin: 0; font-size: .93rem; color: #9fadb3; }
.partner__item .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(228,163,0,.14); color: var(--code); }
.partner__item .ic svg { width: 22px; height: 22px; }

/* ---------- Réalisations ---------- */
.case { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.case:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case__visual { aspect-ratio: 16 / 10; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: -.02em; position: relative; }
.case__visual small { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; opacity: .8; }
.case__visual--1 { background: linear-gradient(135deg, #e4a300, #f2c24a); color: var(--ink); }
.case__visual--2 { background: linear-gradient(135deg, #51666e, #798e97); }
.case__visual--3 { background: linear-gradient(135deg, #1d272c, #3b4a51); }
.case__body { padding: 24px 26px 28px; }
.case__body p { color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-family: var(--mono); font-size: .72rem; padding: 4px 9px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.tag--accent { background: var(--brand-50); color: var(--brand-ink); border-color: #f5dea0; }

/* ---------- Secteurs ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; color: var(--ink); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > *, .form__row > *, .grid > *, .hero__grid > * { min-width: 0; }
.split--rev > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li > svg { flex: none; width: 24px; height: 24px; color: var(--brand-deep); margin-top: 2px; }
.checklist b { color: var(--ink); }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }

/* Tableau comparatif */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-soft); color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.compare thead th:last-child { background: var(--brand); color: var(--ink); }
.compare td:first-child { font-weight: 700; color: var(--ink); }
.compare td:last-child { background: var(--brand-50); color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Gamme matériel */
.hw { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.hw__type { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 8px; }
.hw h3 { margin-bottom: 8px; }
.hw p { color: var(--muted); font-size: .95rem; flex: 1; }
.hw__use { font-size: .88rem; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 8px; }
.hw__use b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; color: var(--ink); font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--brand-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-band { background: var(--brand); color: #3d2c00; border-radius: 28px; padding: clamp(36px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--ink); max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
.cta-band .btn--ghost-light { color: var(--ink); border-color: rgba(29, 39, 44, .3); }
.cta-band .btn--ghost-light:hover { border-color: var(--ink); }
.cta-band--dark { background: var(--ink); color: #9fadb3; }
.cta-band--dark h2 { color: #fff; }
.cta-band--dark .btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.25); }
.cta-band--dark .btn--ghost-light:hover { border-color: #fff; }
.cta-band__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page header (pages internes) ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero--dark { background: var(--ink); color: #bcc8cc; border-bottom: 0; }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .lead { color: #9fadb3; }
.page-hero--dark .eyebrow { color: var(--code); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: inherit; }
.page-hero--dark .breadcrumb { color: #84959c; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 4px var(--brand-50); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options label { cursor: pointer; position: relative; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--ink-2); background: #fff; transition: .15s; }
.options input:checked + span { border-color: var(--brand-deep); background: var(--brand-50); color: var(--brand-ink); }
.options input:focus-visible + span { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }
.form__success { display: none; padding: 24px; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-ink); font-weight: 600; }
.form.is-sent { display: none; }
.form.is-sent + .form__success { display: block; }
.contact-side { display: grid; gap: 16px; align-content: start; }
.contact-side .card { padding: 24px; }
.contact-side a { font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #93a3a9; padding: 72px 0 28px; margin-top: 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #c8d2d5; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; }
.footer .logo__img { height: 38px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; font-size: .85rem; }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* Menu replié : 7 entrées ne tiennent pas sous 1100 px */
@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
  .nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px;
  }
  .nav-open .nav a { padding: 14px 12px; }
  .nav-open .nav__mobile-cta { display: flex !important; margin-top: 10px; }
}
@media (max-width: 960px) {
  .hero__grid, .split, .partner { grid-template-columns: 1fr; gap: 40px; }
  .split--rev > :first-child { order: 0; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .card--feature { grid-column: span 2; }
  .stack { min-height: 420px; max-width: 560px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .card--feature { grid-column: auto; grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stack { min-height: 400px; }
  .code-card { width: 100%; font-size: .72rem; }
  .device { width: 170px; }
  .float-chip { display: none; }
  .hero__ctas .btn { width: 100%; }
}

/* ---------- Menu : sous-menu « Expertises » ---------- */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__parent::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.nav__group.is-current > .nav__parent { color: var(--brand-ink); background: var(--brand-50); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px; display: grid; gap: 2px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 60;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav .nav__menu a { display: block; padding: 10px 12px; white-space: normal; }
.nav__menu a small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 1100px) {
  .nav-open .nav__group { display: block; }
  .nav-open .nav__parent { display: block; }
  .nav-open .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .nav-open .nav__menu a small { display: none; }
}

/* ---------- Pages piliers : composants ---------- */
.def-list { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 10px; }
.def-list li::marker { color: var(--brand-deep); font-weight: 800; }
.def-list b { color: var(--ink); }
.section--dark .card--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .card--dark p { color: #9fadb3; }
.card--trade-link { border: 2px solid #dde6ff; background: #f7f9ff; display: flex; flex-direction: column; align-items: flex-start; }
.card--trade-link p { margin-bottom: 18px; }
.card--trade-link .btn { margin-top: auto; }
.post-cat-inline { font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #3565f2; background: #eef2ff; padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.compare--3 { min-width: 680px; }
.compare--neutral thead th:last-child { background: var(--bg-soft); }
.compare--neutral td:last-child { background: #fff; font-weight: 400; color: var(--ink-2); }
.app-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; }
.app-steps > li { counter-increment: etape; position: relative; }
.app-steps > li::before { content: counter(etape, decimal-leading-zero); display: block; font-family: var(--mono); font-weight: 600; color: var(--brand-deep); margin-bottom: 10px; }
.app-steps small { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: .74rem; color: var(--accent-ink); }
@media (max-width: 960px) { .app-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .app-steps { grid-template-columns: 1fr; } }

.card__more { display: inline-block; margin-top: 16px; font-weight: 700; }

/* Page légale */
.legal-table { min-width: 640px; font-size: .9rem; }
.legal-table td:last-child { background: #fff; font-weight: 400; color: var(--ink-2); }
.legal-table thead th:last-child { background: var(--bg-soft); }
.legal-table small { color: var(--muted); font-weight: 500; }
.legal-table code { font-size: .82rem; }
