/* Operos : styles communs des sous-pages (repris de index.html, qui garde son CSS inline) */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --accent: #2563EB;
  --accent-hover: #1E40AF;
  --accent-soft: #EFF6FF;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
nav .logo { justify-self: start; }
nav .nav-menu { justify-self: center; margin: 0; }
nav .nav-cta { justify-self: end; }
.logo {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.nav-menu { display: flex; gap: 36px; align-items: center; }
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: white;
  padding: 10px 18px;
  background: var(--text);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.nav-cta:hover { background: var(--accent); }
@media (max-width: 900px) {
  nav .container { grid-template-columns: auto auto; }
  .nav-menu { display: none; }
}

/* BOUTONS */
.cta-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--text); color: white; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }

/* EN-TÊTE DE PAGE DE SERVICE */
.page-hero {
  padding: 96px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.breadcrumb,
nav.breadcrumb {
  position: static;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { margin: 0 8px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.page-hero h1 {
  font-size: 50px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0 auto 24px;
  max-width: 860px;
  color: var(--text);
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero p.subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* BANDEAU ACCROCHE */
.hook-banner { padding: 28px 0; background: var(--text); text-align: center; }
.hook-banner p { color: rgba(255, 255, 255, 0.92); font-size: 17px; font-weight: 500; }
.hook-banner a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.hook-banner a:hover { text-decoration-color: white; }

/* SECTIONS */
section.block { padding: 104px 0; }
section.block.alt { background: var(--bg-alt); }
.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
  color: var(--text);
}
h3 { color: var(--text); letter-spacing: -0.015em; }
.section-intro {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.55;
}
.section-header-center { text-align: center; margin-bottom: 56px; }
.section-header-center .section-intro { margin: 20px auto 0; }
.section-header-center h2 { margin-bottom: 0; }

/* PERTES */
.loss-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.loss-grid .loss-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.loss-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.25s ease;
}
.loss-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.loss-sector {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.loss-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.loss-card p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }

/* ÉTAPES */
.steps { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.step-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }

/* POUR QUI / LIVRABLES */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col h2 { font-size: 32px; }
.two-col p { color: var(--text-muted); font-size: 17px; line-height: 1.6; margin-bottom: 20px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 20px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 28px 0; }
.faq-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.faq-item p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }

/* AUTRES SERVICES */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.25s ease;
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.15);
}
.related-card .service-number {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.related-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.related-card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.related-card .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent); }
.back-home { text-align: center; margin-top: 40px; }
.back-home a { font-size: 15px; font-weight: 600; color: var(--accent); }
.back-home a:hover { text-decoration: underline; }

/* CTA FINAL */
.final-cta {
  text-align: center;
  padding: 100px 40px;
  background: var(--text);
  color: white;
  border-radius: 24px;
  margin: 80px 0 40px;
}
.final-cta h2 { color: white; margin-bottom: 20px; font-size: 40px; }
.final-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 19px;
  margin: 0 auto 40px;
  max-width: 580px;
  line-height: 1.55;
}
.final-cta .btn-primary { background: white; color: var(--text); }
.final-cta .btn-primary:hover { background: var(--accent); color: white; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
footer a { color: var(--accent); margin: 0 12px; font-weight: 500; }
footer a:hover { text-decoration: underline; }
.footer-services { margin-top: 12px; line-height: 2; }
.copyright { margin-top: 16px; font-size: 13px; color: var(--text-subtle); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 20px; }
  .page-hero { padding: 72px 0 56px; }
  .page-hero h1 { font-size: 34px; letter-spacing: -0.02em; }
  .page-hero p.subtitle { font-size: 17px; }
  .hook-banner p { font-size: 15px; }
  h2 { font-size: 30px; }
  .two-col h2 { font-size: 28px; }
  section.block { padding: 72px 0; }
  .loss-grid, .related-grid, .two-col { grid-template-columns: 1fr; gap: 16px; }
  .two-col { gap: 32px; }
  .loss-card, .panel { padding: 26px; }
  .step { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .final-cta { padding: 60px 24px; }
  .final-cta h2 { font-size: 30px; }
  .final-cta p { font-size: 16px; }
}

/* ARTICLES (guides) */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 0 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.article-meta {
  font-size: 14px;
  color: var(--text-subtle);
  margin-bottom: 32px;
}
.article h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 56px 0 16px;
  scroll-margin-top: 96px;
}
.article h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 36px 0 12px;
  scroll-margin-top: 96px;
}
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 24px; }
.article li { margin-bottom: 8px; padding-left: 4px; }
.article li::marker { color: var(--accent); font-weight: 600; }
.article a:not(.btn) {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 99, 235, 0.35);
}
.article a:not(.btn):hover { text-decoration-color: var(--accent); }
.article strong { font-weight: 700; }
.article .callout {
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0;
}
.article .callout p:last-child, .article .callout ul:last-child, .article .callout ol:last-child { margin-bottom: 0; }
.article .callout strong:first-child { color: var(--accent-hover); }
.article-toc,
nav.article-toc {
  position: static;
  backdrop-filter: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0 0 40px;
}
.article-toc p { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.article-toc ol { margin: 0; padding-left: 22px; }
.article-toc li { margin-bottom: 4px; font-size: 16px; }
.article .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0 28px; border: 1px solid var(--border); border-radius: 12px; }
.article table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article th, .article td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.article th { background: var(--bg-alt); font-weight: 700; }
.article tr:last-child td { border-bottom: 0; }
.article .faq-item:last-child { border-bottom: 0; }
.article .faq-item h3 { margin-top: 0; }
@media (max-width: 900px) {
  .article { padding: 44px 0 16px; font-size: 16px; }
  .article h2 { font-size: 25px; margin-top: 44px; }
  .article h3 { font-size: 19px; }
  .article .callout, .article-toc { padding: 18px; }
}
