/* ═══════════════════════════════════════════════════════════════
   ACODE — subpage layer (service + legal pages)
   Loads AFTER main.css. Bilingual content uses .fr/.en spans,
   toggled by the <html lang> attribute set by js/i18n.js.
   ═══════════════════════════════════════════════════════════════ */

html[lang="fr"] .en { display: none !important; }
html[lang="en"] .fr { display: none !important; }

/* ── sub hero ──────────────────────────────────────────────── */
.sub-hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 24px 90px;
  overflow: hidden;
}
.sub-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.sub-hero__bg .orb { opacity: .38; }
.sub-hero__bg .hero__grid { inset: -2% -2% -46%; }
.sub-hero__inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--grey);
  margin-bottom: 26px;
}
.crumb a { color: var(--grey); text-decoration: none; transition: color .25s; }
.crumb a:hover { color: var(--cyan); }
.crumb .sep { color: rgba(167,176,192,.5); }
.crumb .here { color: rgba(245,247,250,.85); }

.sbadge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  margin-bottom: 26px;
}
.sbadge b { color: var(--cyan); font-weight: 700; letter-spacing: .12em; }

.sub-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -.028em;
  max-width: 820px;
  margin-bottom: 24px;
}
.sub-hero__lead {
  max-width: 620px;
  font-size: clamp(15.5px, 1.7vw, 18.5px);
  color: var(--grey);
  margin-bottom: 38px;
}
.sub-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── generic section header on subpages ────────────────────── */
.sub-section { position: relative; padding: 96px 0; }
.sub-section--tint {
  background:
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(124,58,237,.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 8% 92%, rgba(0,229,255,.05), transparent 60%);
}

/* ── two-column problem layout ─────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

/* pain list */
.pain-list { display: flex; flex-direction: column; gap: 14px; }
.pain-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.028);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.pain-list li:hover { border-color: rgba(255,84,112,.35); transform: translateX(4px); }
.pain-list .dot {
  flex: 0 0 10px; height: 10px; margin-top: 7px;
  border-radius: 50%;
  background: rgba(255,84,112,.8);
  box-shadow: 0 0 12px rgba(255,84,112,.5);
}
.pain-list strong {
  display: block;
  font-family: var(--font-display); font-size: 15.5px; font-weight: 700;
  margin-bottom: 4px;
}
.pain-list p { font-size: 14px; color: var(--grey); }

/* time list (automation) */
.time-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.time-list li {
  display: flex; gap: 18px; align-items: center;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.028);
}
.time-list .hours {
  flex: 0 0 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--cyan);
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.25);
}
.time-list strong { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.time-list p { font-size: 13.5px; color: var(--grey); }
.time-total {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,84,112,.3);
  background: rgba(255,84,112,.06);
}
.time-total b {
  display: block;
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: #FF8CA0;
}
.time-total span { font-size: 14px; color: var(--grey); }

/* flow card (automation "what runs automatically") */
.flow-card { padding: 28px; }
.flow-card h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--cyan);
  margin-bottom: 22px;
}
.flow-steps { position: relative; display: flex; flex-direction: column; gap: 0; }
.flow-steps li {
  position: relative;
  display: flex; gap: 16px;
  padding: 0 0 22px 26px;
}
.flow-steps li::before {
  content: ''; position: absolute; left: 4px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet-soft));
  box-shadow: 0 0 10px rgba(0,229,255,.6);
}
.flow-steps li::after {
  content: ''; position: absolute; left: 8px; top: 20px; bottom: 2px;
  width: 1.5px;
  background: linear-gradient(to bottom, rgba(0,229,255,.4), rgba(124,58,237,.25));
}
.flow-steps li:last-child { padding-bottom: 0; }
.flow-steps li:last-child::after { display: none; }
.flow-steps strong {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
}
.flow-steps p { font-size: 13.5px; color: var(--grey); margin-top: 3px; }
.tag-auto {
  font-size: 9.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--green);
  padding: 3px 8px; border-radius: 999px;
  background: rgba(54,242,185,.1);
  border: 1px solid rgba(54,242,185,.3);
}

/* ── feature grid (what's included) ────────────────────────── */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat {
  padding: 26px 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.feat:hover { border-color: rgba(0,229,255,.3); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feat strong {
  display: block;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 700;
  margin-bottom: 8px;
}
.feat strong::before { content: '◆ '; color: var(--cyan); font-size: 10px; vertical-align: 2px; }
.feat p { font-size: 14px; color: var(--grey); }

/* ── outcomes ──────────────────────────────────────────────── */
.outcome-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.outcome {
  text-align: center;
  padding: 36px 24px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  position: relative; overflow: hidden;
}
.outcome::before {
  content: ''; position: absolute; left: 20%; right: 20%; top: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.outcome b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 4vw, 52px); letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.outcome strong { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.outcome p { font-size: 13px; color: var(--grey); }

/* ── sector cards ──────────────────────────────────────────── */
.sector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sector {
  padding: 24px 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.028);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.sector:hover { border-color: rgba(139,92,246,.4); transform: translateY(-3px); }
.sector .stag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #C4B1FF;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(139,92,246,.3);
  margin-bottom: 14px;
}
.sector strong {
  display: block;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  margin-bottom: 7px;
}
.sector p { font-size: 13.5px; color: var(--grey); }

/* ── assistant type cards (IA) ─────────────────────────────── */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.type-card { padding: 30px; }
.type-card strong {
  display: block;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
}
.type-card strong::before { content: '◆ '; color: var(--green); font-size: 10px; vertical-align: 2px; }
.type-card > p { font-size: 14.5px; color: var(--grey); margin-bottom: 16px; }
.type-card ul { display: flex; flex-direction: column; gap: 7px; }
.type-card ul li {
  position: relative; padding-left: 20px;
  font-size: 13.5px; color: rgba(245,247,250,.85);
}
.type-card ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 2.5px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

/* ── benefit rows (IA left/right highlights) ───────────────── */
.benefit-rows { display: flex; flex-direction: column; gap: 13px; }
.benefit-rows li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,229,255,.2);
  background: rgba(0,229,255,.05);
}
.benefit-rows .dot {
  flex: 0 0 9px; height: 9px; margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(54,242,185,.6);
}
.benefit-rows strong { display: block; font-family: var(--font-display); font-size: 14.5px; font-weight: 700; }
.benefit-rows p { font-size: 13px; color: var(--grey); }

/* ── chat demo (IA) ────────────────────────────────────────── */
.chat {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.chat__head {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,17,31,.6);
}
.chat__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(0,229,255,.95), rgba(124,58,237,.85) 75%);
  box-shadow: 0 0 18px rgba(0,229,255,.45);
}
.chat__name { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.chat__status { font-size: 12px; color: var(--green); }
.chat__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 15px;
  font-size: 13.8px; line-height: 1.5;
}
.msg--user {
  align-self: flex-end;
  background: rgba(0,229,255,.13);
  border: 1px solid rgba(0,229,255,.25);
  border-bottom-right-radius: 5px;
}
.msg--bot {
  align-self: flex-start;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.msg time { display: block; margin-top: 6px; font-size: 10.5px; color: var(--grey); }

/* ── final CTA on subpages ─────────────────────────────────── */
.sub-cta { padding: 40px 0 110px; }
.sub-cta__card {
  position: relative;
  text-align: center;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 64px);
  overflow: hidden;
  border-color: rgba(0,229,255,.18);
}
.sub-cta__card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
  max-width: 700px; margin: 0 auto 18px;
}
.sub-cta__card > p { max-width: 560px; margin: 0 auto 34px; color: var(--grey); font-size: 16px; }
.sub-cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sub-cta__note { margin-top: 22px !important; font-size: 13px !important; }

/* ── legal prose pages ─────────────────────────────────────── */
.prose-wrap { max-width: 800px; margin: 0 auto; padding: calc(var(--nav-h) + 70px) 24px 100px; position: relative; }
.prose-wrap .sbadge { margin-bottom: 20px; }
.prose-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 10px;
}
.prose-date {
  color: var(--grey); font-size: 14px;
  padding-bottom: 26px; margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  margin: 38px 0 14px;
}
.prose h2::before { content: '◆ '; color: var(--cyan); font-size: 11px; vertical-align: 2px; }
.prose p { color: rgba(245,247,250,.82); font-size: 15px; margin-bottom: 12px; }
.prose a { color: var(--cyan); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose ul { margin: 0 0 14px; display: flex; flex-direction: column; gap: 7px; }
.prose ul li { position: relative; padding-left: 20px; color: rgba(245,247,250,.82); font-size: 14.5px; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2.5px;
  background: linear-gradient(135deg, var(--cyan), var(--violet-soft));
}
.prose .info-block {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 22px;
}
.prose .info-block p { margin-bottom: 6px; }
.prose .info-block p:last-child { margin-bottom: 0; }
.prose table {
  width: 100%; border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prose th {
  text-align: left;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,229,255,.06);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.prose td {
  padding: 11px 14px;
  color: rgba(245,247,250,.82);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.prose tr:last-child td { border-bottom: 0; }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feat-grid, .sector-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .sub-section { padding: 72px 0; }
  .feat-grid, .sector-grid { grid-template-columns: 1fr; }
  .sub-hero__ctas .btn { width: 100%; }
  .sub-cta__btns .btn { width: 100%; }
  .prose table { display: block; overflow-x: auto; }
}
