/* Logalysm — feuille de style du site, d'après la maquette Claude Design
   (design system : tokens couleurs, typo, espacements). */

/* ---------- Polices (auto-hébergées, licence OFL : /assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --blue-900: #0B3D91;
  --blue-50: #EDF2F9;
  --blue-75: #F0F3F8;
  --blue-100: #D6E2F5;
  --blue-200: #C9D6EC;
  --green-50: #DDF5EC;
  --green-600: #0E9F6E;
  --green-700: #0E7A55;
  --ink-900: #0E1A1F;
  --ink-700: #3E5055;
  --ink-500: #6D7F83;
  --line-100: #EEF1F1;
  --line-200: #DDE4E5;
  --line-300: #C7D1D3;
  --gray-50: #F7F9F9;
  --white: #FFFFFF;
  --red-50: #FCE8E6;
  --red-700: #B42318;

  --gradient-brand: linear-gradient(120deg, #0B3D91, #0B5FA8 55%, #10B981);
  --shadow-media: 0 -10px 40px rgba(11, 61, 145, .08), 0 20px 40px rgba(14, 26, 31, .05);

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --page-max: 1280px;
  --gutter-min: clamp(20px, 5.625vw, 72px);           /* 72px à 1280px */
  --gutter: max(var(--gutter-min), calc((100% - var(--page-max)) / 2 + var(--gutter-min)));
  --section-y: clamp(64px, 8.75vw, 112px);            /* 112px à 1280px */

  --radius-button: 8px;
  --radius-card: 14px;
  --radius-media: 16px;
  --radius-banner: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink-900);
  font: 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  /* Pied de page collé en bas sur les pages courtes */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }
:focus-visible { outline: 2px solid var(--blue-900); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
sup { font-size: .65em; line-height: 0; }

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.375vw + 4px, 56px); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 2.5vw + 8px, 40px); line-height: 1.12; letter-spacing: -.03em; }

.eyebrow { margin: 0; font: 13px/1.5 var(--font-mono); color: var(--green-600); letter-spacing: .04em; text-transform: uppercase; }
.lead { margin: 0; font-size: clamp(17px, 1.2vw + 4px, 19px); line-height: 1.6; color: var(--ink-700); text-wrap: pretty; }
.lead strong { font-weight: 500; color: var(--ink-900); }
.text { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-700); text-wrap: pretty; }
.text--sm { font-size: 16px; }
.accent { color: var(--blue-900); }
.accent-green { color: var(--green-600); }
.mono-label { font: 12px/1.5 var(--font-mono); color: var(--ink-500); }
.mono-label--blue { font-size: 13px; color: var(--blue-900); }
.link { color: var(--blue-900); font-weight: 500; }

/* ---------- Boutons, pastilles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 24px; border-radius: var(--radius-button);
  background: var(--blue-900); color: var(--white);
  font-size: 15px; font-weight: 500; line-height: 1.4; white-space: nowrap;
}
.btn--sm { padding: 11px 20px; font-size: 14px; flex-shrink: 0; }
.btn--ghost { background: var(--white); color: var(--ink-900); border: 1px solid var(--line-300); font-weight: 400; padding: 14px 23px; }
.btn--white { background: var(--white); color: var(--blue-900); padding: 15px 26px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--blue-200);
  background: var(--white); color: var(--blue-900); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.badge { padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge--error { background: var(--red-50); color: var(--red-700); }
.badge--ok { background: var(--green-50); color: var(--green-700); font-size: 12px; padding: 4px 10px; }

/* ---------- En-tête ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 22px var(--gutter); border-bottom: 1px solid var(--line-200);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.logo img { display: block; height: 30px; width: auto; }
.logo--footer { color: var(--ink-900); }
.logo--footer img { height: 28px; }
.site-nav { display: flex; gap: 36px; font-size: 15px; color: var(--ink-700); }
.site-nav a[aria-current] { color: var(--blue-900); font-weight: 500; }

/* ---------- Sections ---------- */
.section {
  display: flex; flex-direction: column; gap: 40px;
  padding: var(--section-y) var(--gutter);
}
.section--flush-top { padding-top: 0; }
.section--after-hero { padding-top: clamp(56px, 7.5vw, 96px); }
.section--page { padding-top: clamp(56px, 7.5vw, 96px); gap: 48px; }
.section--tint { background: var(--blue-50); }
.section--soft { background: var(--blue-75); }
.section--ruled { border-top: 1px solid var(--line-200); }
.section--before-cta { margin-bottom: clamp(56px, 7.5vw, 96px); }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 56px 80px; align-items: start;
}
.split--center { align-items: center; }

.stack { display: flex; flex-direction: column; gap: 22px; }
.stack--tight { gap: 14px; }
.stack--text { gap: 18px; }
.stack--hero { gap: 24px; }
.stack--intro { max-width: 760px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; }
.section-head .link { white-space: nowrap; }

/* ---------- Hauts de page ---------- */
.hero { display: flex; flex-direction: column; gap: 26px; padding: clamp(56px, 7.5vw, 96px) var(--gutter); }
.hero--center {
  align-items: center; text-align: center;
  padding-bottom: clamp(64px, 8.125vw, 104px);
  background: linear-gradient(var(--blue-50), var(--white) 70%);
}
.hero--center h1 { max-width: 860px; }
.hero--center .lead { max-width: 640px; }
.hero--center .pills, .hero--center .actions { justify-content: center; }
.hero--page {
  padding-bottom: clamp(56px, 6.875vw, 88px);
  background: linear-gradient(var(--blue-50), var(--white) 80%);
}
.hero--page h1 { max-width: 900px; }
.hero--page .lead { max-width: 680px; }
.hero--product {
  display: grid; gap: 64px;
  padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 7.5vw, 96px);
  background: linear-gradient(var(--white), var(--blue-50));
}
.hero--contact {
  display: grid; gap: 56px 80px; padding-bottom: var(--section-y);
  background: linear-gradient(var(--blue-50), var(--white) 60%);
}
.hero--contact .stack--hero { gap: 26px; }
.hero--error { padding-bottom: var(--section-y); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 24px var(--gutter) 0;
  font: 12px/1.5 var(--font-mono); color: var(--ink-500); white-space: nowrap;
}
.breadcrumb [aria-current] { color: var(--ink-900); }

/* ---------- Liste à coches ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--green-600); font-size: 13px;
}

/* ---------- Rapport d'exemple ---------- */
.report {
  margin: 0; min-width: 0; background: var(--white); border: 1px solid var(--line-200);
  border-radius: var(--radius-media); box-shadow: var(--shadow-media); overflow: hidden;
}
.report__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--line-200);
}
.report__file { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.report__file strong { font-size: 15px; font-weight: 500; }
.report__status { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; color: var(--ink-700); }
.report__item { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; }
.report__item + .report__item { border-top: 1px solid var(--line-100); }
.report__rule { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.report__level { font-size: 12px; font-weight: 500; color: var(--red-700); }
.report__rule code { font: 13px/1.5 var(--font-mono); color: var(--blue-900); white-space: nowrap; }
.report__item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-700); }
.report__foot {
  padding: 12px 24px; background: var(--gray-50); border-top: 1px solid var(--line-200);
  font: 11px/1.5 var(--font-mono); color: var(--ink-500);
}

/* ---------- Bandeau de repères ---------- */
.stats { border-top: 1px solid var(--line-200); border-bottom: 1px solid var(--line-200); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--page-max); margin: 0 auto; }
.stats__item { display: flex; flex-direction: column; gap: 6px; padding: 40px 48px; }
.stats__item + .stats__item { border-left: 1px solid var(--line-200); }
.stats dt { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; color: var(--blue-900); letter-spacing: -.02em; line-height: 1.3; }
.stats dd { margin: 0; font-size: 15px; color: var(--ink-700); }

/* ---------- Calendrier ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.timeline li {
  display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 28px 32px;
  border: 1px solid var(--line-200); border-radius: var(--radius-card);
}
.timeline strong { min-width: 130px; font-weight: 500; color: var(--blue-900); }
.timeline span { flex: 1 1 240px; font-size: 16px; line-height: 1.6; color: var(--ink-700); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-200); }
.faq details { border-bottom: 1px solid var(--line-200); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--blue-900); font-size: 22px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; max-width: 620px; font-size: 15px; line-height: 1.7; color: var(--ink-700); }

/* ---------- Liste de définitions (portée, lexique) ---------- */
.deflist { margin: 0; border-top: 1px solid var(--line-200); }
.section--tint .deflist { border-top-color: var(--blue-200); }
.deflist div {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-200);
}
.deflist dt { font-weight: 500; }
.deflist dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-700); }

/* ---------- Schéma ---------- */
.diagram { margin: 0; padding: 16px; background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-media); }
.diagram__scroll { overflow-x: auto; }
.diagram img { display: block; width: 100%; min-width: 720px; border-radius: 8px; }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3.2vw, 40px);
  background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-card);
}
.card h3 { font-size: 24px; letter-spacing: -.02em; }
.card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-700); }
.card .link { margin-top: 6px; }

.guide-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.guide-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px;
  background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-card);
  font-size: 16px; font-weight: 500;
}
.guide-links a span, .guide__title span { color: var(--blue-900); }

.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.guide {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 32px;
  background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-card);
}
.guide__title { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 500; }
.guide__summary { font-size: 15px; line-height: 1.6; color: var(--ink-700); }
.link--after { align-self: flex-start; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.principles div { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--blue-200); }
.principles h3 { font-size: 20px; }
.principles p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-700); }

.product {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px;
  padding: clamp(28px, 3.2vw, 40px) clamp(24px, 3.75vw, 48px);
  background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-media);
}
.product__body { display: flex; flex-direction: column; gap: 12px; }
.product__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.product__title h3 { font-size: 28px; letter-spacing: -.02em; }
.product__body p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.65; color: var(--ink-700); }

/* ---------- Contact ---------- */
.contact-notes { margin-top: 8px; border-top: 1px solid var(--line-200); }
.contact-notes p {
  display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 20px 0;
  border-bottom: 1px solid var(--line-200); font-size: 16px; line-height: 1.6; color: var(--ink-700);
}
.contact-notes .mono-label, .contact-card > .mono-label { text-transform: uppercase; }
.contact-card {
  align-self: start; display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3.75vw, 48px);
  background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-media);
  box-shadow: 0 20px 40px rgba(14, 26, 31, .05);
}
.contact-card__email { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -.02em; color: var(--blue-900); overflow-wrap: anywhere; }
.contact-card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-700); }
.contact-card .btn { align-self: flex-start; }

/* ---------- Mentions légales ---------- */
.legal { border-bottom: 1px solid var(--line-200); }
.legal section {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px 48px; padding: 40px 0; border-top: 1px solid var(--line-200);
}
.legal h2 { font-size: 20px; letter-spacing: 0; line-height: 1.4; }
.legal section > div { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.7; color: var(--ink-700); }
.legal p { margin: 0; }
.legal strong { color: var(--ink-900); font-weight: 500; }
.legal a { color: var(--blue-900); }

/* ---------- Bandeau d'appel ---------- */
.cta { padding: 0 var(--gutter) clamp(56px, 7.5vw, 96px); }
.cta__banner {
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  padding: clamp(48px, 5.625vw, 72px) clamp(24px, 5.625vw, 72px);
  background: var(--gradient-brand); color: var(--white); border-radius: var(--radius-banner);
}
.cta__banner p { margin: 0; max-width: 560px; font-size: 17px; color: var(--blue-100); }
.cta__banner .btn { margin-top: 6px; }

/* ---------- Pied de page ---------- */
.site-footer {
  display: flex; flex-direction: column; gap: 48px; padding: 64px var(--gutter) 32px;
  background: var(--blue-75); border-top: 1px solid var(--line-200); font-size: 14px; color: var(--ink-700);
}
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 48px; }
.site-footer__cols > * { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__brand span { max-width: 260px; line-height: 1.6; }
.site-footer__title { color: var(--ink-900); font-weight: 500; }
.site-footer__copy { margin: 0; padding-top: 24px; border-top: 1px solid var(--line-200); font-size: 13px; color: var(--ink-500); }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { padding: 28px var(--gutter-min); }
  .stats__item + .stats__item { border-left: 0; border-top: 1px solid var(--line-200); }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .site-nav { order: 3; flex-basis: 100%; gap: 24px; overflow-x: auto; }
  .hero--product { gap: 48px; }
}
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .actions .btn { flex: 1 1 100%; }
  .timeline li { padding: 22px 24px; }
  .report__head, .report__item { padding-left: 20px; padding-right: 20px; }
}
