/* Captel — feuille de style principale
   Mobile d'abord. Une seule police web (Saira, auto-hébergée) pour les titres ; texte en police système. */

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100% 115%;
  font-display: swap;
}

:root {
  --bg: #0B0E14;
  --bg-2: #10141C;
  --surface: #141A24;
  --surface-2: #1A2130;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #EEF2F7;
  --muted: #9BA6B5;
  --brand: #0A457C;      /* bleu du logo */
  --accent: #58A6FF;     /* même teinte, éclaircie pour le fond sombre */
  --accent-hover: #86BFFF;
  --accent-ink: #061020;
  --sun: #FFC857;
  --ok: #7EE2A8;
  --error: #FF8A8A;
  --head: "Saira", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 74rem;
  --r: 16px;
  --header-h: 4rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head); font-stretch: 112%; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-stretch: 105%; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } body { font-size: 1.0625rem; } }
.hl { color: var(--accent); }
.muted { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 1rem; font: 600 .76rem/1.2 var(--head); font-stretch: 115%; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; }
/* Valeur à compléter avant la mise en ligne */
.todo { color: var(--sun); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.3rem; white-space: nowrap; border: 1px solid transparent; border-radius: 10px; font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 20, .85); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.logo { display: inline-block; flex: none; }
.logo img { height: 1.9rem; width: auto; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 1.3rem; height: 1.3rem; }
.menu-toggle .close { display: none; }
.menu-toggle[aria-expanded="true"] .open { display: none; }
.menu-toggle[aria-expanded="true"] .close { display: block; }

.site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 1rem 1.5rem; display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { display: grid; gap: .2rem; }
.site-nav a { display: block; padding: .75rem .5rem; color: var(--text); text-decoration: none; border-radius: 8px; font-size: 1.05rem; }
.site-nav a:hover { background: var(--surface); }
.nav-cta { display: grid; gap: .6rem; margin-top: 1rem; }
.site-nav .btn { display: inline-flex; }
.site-nav .btn:hover { background: var(--accent-hover); }
/* Sans JavaScript, le menu reste accessible : il s'affiche en ligne sous le logo */
.no-js .menu-toggle { display: none; }
.no-js .bar { flex-wrap: wrap; }
.no-js .site-nav { position: static; display: block; border: 0; padding: 0 0 1rem; }

@media (min-width: 64rem) {
  .menu-toggle { display: none; }
  .site-nav, .no-js .site-nav { position: static; display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1.5rem; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 1.5rem; }
  .site-nav a { display: inline; padding: 0; font-size: .93rem; color: var(--muted); }
  .site-nav a:hover { background: none; color: var(--text); }
  .nav-cta { display: flex; margin: 0; }
  .nav-cta .btn { padding: .6rem 1rem; font-size: .9rem; color: var(--accent-ink); }
  .nav-cta .btn-secondary { color: var(--text); }
}

/* ---------- Accroche ---------- */
.hero { position: relative; padding: clamp(3rem, 9vw, 6.5rem) 0 0; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20rem 0 auto; height: 48rem; background: radial-gradient(closest-side, rgba(88, 166, 255, .22), transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.lead { font-size: clamp(1.08rem, 2.1vw, 1.3rem); color: var(--muted); max-width: 40rem; margin: 0 auto 1.8rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 2rem; }
.chips li { padding: .45rem .8rem; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255, 255, 255, .03); font-size: .82rem; line-height: 1.2; }
.chips b { color: var(--accent); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }

/* Capture « tableau de bord » (illustration) */
.shot { max-width: 62rem; margin: clamp(2.5rem, 7vw, 4.5rem) auto 0; text-align: left; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -20px 80px -30px rgba(88, 166, 255, .35); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font: .78rem var(--mono); color: var(--muted); }
.shot-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line-2); }
.shot-bar span { margin-left: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: .8rem; }
.shot-body > * { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.kpi { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .75rem; }
.kpi small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { font: 600 clamp(1.05rem, 3.5vw, 1.6rem)/1.3 var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .sun { color: var(--sun); }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.chart svg { width: 100%; height: auto; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; font-size: .8rem; color: var(--muted); }
.legend { display: flex; gap: 1rem; }
.legend i { display: inline-block; width: .55rem; height: .55rem; margin-right: .35rem; border-radius: 2px; }
@media (min-width: 48rem) {
  .shot-body { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); padding: 1.2rem; gap: 1rem; }
  .kpis { grid-template-columns: 1fr; gap: .8rem; }
  .kpi { padding: 1rem 1.1rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Blocs alternés texte / visuel */
.feature { display: grid; gap: 2rem; align-items: center; padding: 2rem 0; }
.feature + .feature { border-top: 1px solid var(--line); }
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1.1fr; gap: 4rem; padding: 2.5rem 0; }
  .feature.flip > :first-child { order: 2; }
}
.icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1.2rem; border-radius: 12px; background: rgba(88, 166, 255, .12); border: 1px solid rgba(88, 166, 255, .25); color: var(--accent); }
.icon svg { width: 1.4rem; height: 1.4rem; }
.points { display: grid; gap: .7rem; margin: 1.2rem 0 1.6rem; }
.points li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; color: var(--muted); }
.points li::before { content: ""; width: 1.1rem; height: 1.1rem; margin-top: .3rem; border-radius: 50%; background: rgba(88, 166, 255, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2358A6FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.points b { color: var(--text); font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); min-width: 0; }
@media (min-width: 40rem) { .visual { padding: 1.4rem; } }
.code { margin: 0; overflow-x: auto; font: .82rem/1.75 var(--mono); color: #C9D4E3; white-space: pre; }
.code .k { color: var(--accent); }
.code .s { color: #9EE6B8; }
.code .c { color: #8592A3; }
.code .n { color: var(--sun); }
.flow { display: grid; gap: .7rem; }
.node { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.node svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--accent); }
.node small { display: block; font-size: .8rem; color: var(--muted); }
.node .val { margin-left: auto; font: 600 .95rem var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-link { width: 1px; height: 1.1rem; margin-left: 1.65rem; background: linear-gradient(var(--accent), transparent); }
.products { display: grid; gap: .8rem; }
.product { padding: 1.1rem 1.2rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.product h4 { margin: 0 0 .3rem; font-size: 1.15rem; font-stretch: 110%; }
.product p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Méthode */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 1.1rem; font: 600 .85rem var(--head); letter-spacing: .1em; color: var(--accent); }
.step p { margin: 0; color: var(--muted); }

/* Pour qui */
.audiences { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.audience { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .2s; }
.audience:hover { border-color: rgba(88, 166, 255, .35); transform: translateY(-2px); }
.audience p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Chiffres clés */
.figures { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 48rem) { .figures { grid-template-columns: repeat(2, 1fr); } }
.figure { padding: 1.8rem 1.5rem; background: var(--bg); }
.figure strong { display: block; margin-bottom: .5rem; font: 600 clamp(2.3rem, 5vw, 3.3rem)/1 var(--head); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.figure span { font-size: .95rem; color: var(--muted); }

/* Références */
.refs { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .refs { grid-template-columns: repeat(3, 1fr); } }
.ref { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); }
.ref b { display: block; margin-bottom: .2rem; font: 600 1.05rem/1.3 var(--head); font-stretch: 108%; }
.ref span { font-size: .93rem; color: var(--muted); }

/* Contact */
.cta-band { display: grid; gap: 2.5rem; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line-2); border-radius: 24px; background: radial-gradient(40rem 20rem at 100% 0, rgba(88, 166, 255, .18), transparent 70%), var(--surface); }
@media (min-width: 56rem) { .cta-band { grid-template-columns: 1fr 1.15fr; } }
.contact-direct { display: grid; gap: .4rem; margin-top: 1.5rem; font-size: .95rem; color: var(--muted); font-style: normal; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; margin-bottom: .35rem; font-size: .88rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea { width: 100%; padding: .75rem .9rem; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88, 166, 255, .22); }
.form textarea { min-height: 9rem; resize: vertical; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }

/* ---------- Pages de texte (mentions légales, 404) ---------- */
.prose { max-width: 48rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }
.facts { display: grid; grid-template-columns: 1fr; gap: .15rem 1.5rem; margin: 0 0 1em; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0 0 .6rem; }
@media (min-width: 40rem) { .facts { grid-template-columns: 14rem 1fr; } .facts dd { margin: 0; } }

/* ---------- Pied de page ---------- */
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 1.7rem; width: auto; margin-bottom: 1rem; }
.site-footer h2 { margin: 0 0 .8rem; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text); }
.site-footer ul { display: grid; gap: .4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; }
.legal p { margin: 0 0 .4rem; }
