/* Mise en page : bandes pleine largeur claires, un système par bande (texte + écran de démonstration),
   une seule bande anthracite pour l'approche. Motif repris du logo : éclats bleu et rouge, lettrage large. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --ink: #23262b;          /* anthracite des lettres ACA, assombri pour le texte */
  --ink-2: #5b6472;
  --line: #e1e5eb;
  --anthracite: #2b2e33;
  --blue: #1c5fc4;
  --navy: #123a7a;
  --red: #c4161c;
  --ok: #1f8a5b;
  --warn: #b26a00;
  --on-dark: #f3f5f8;
  --on-dark-2: #a9b1bd;

  --f-display: "Inter Tight", "Segoe UI", Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", Arial, sans-serif;
  --f-wide: "Michroma", "Eurostile", "Segoe UI", sans-serif;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.eyebrow { font: 400 0.68rem/1.4 var(--f-wide); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow--b { color: var(--blue); }
.eyebrow--r { color: var(--red); }
.eyebrow--light { color: var(--on-dark-2); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 500 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--navy); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .875rem; }
.link { font-weight: 500; text-decoration: none; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }

/* Barre de navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--anthracite); text-decoration: none; flex-shrink: 0; }
.brand__mark { height: 26px; width: auto; display: block; }
.brand__word { font: 400 .62rem/1 var(--f-wide); letter-spacing: .42em; text-transform: uppercase; color: var(--navy); }
.nav__links { display: flex; gap: 26px; margin-inline: auto; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: .875rem; opacity: .8; white-space: nowrap; }
.nav__links a:hover { opacity: 1; color: var(--blue); }
.nav__end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; color: var(--ink-2); font: 500 .75rem/1 var(--f-body); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--anthracite); color: #fff; }

/* Accueil */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero__in { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero h1 { max-width: 15em; }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--ink-2); max-width: 38em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.hero__art { max-width: 1180px; margin: clamp(24px, 4vw, 48px) auto 0; padding-inline: 12px; }
.hero__art svg { display: block; width: 100%; height: auto; }
.draw { fill: none; stroke: var(--anthracite); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; }
.draw--2 { stroke-width: 9; }
.draw--3 { stroke-width: 3; stroke: var(--ink-2); }
.ground { stroke: var(--line); stroke-width: 2; }
.shard--b { fill: var(--blue); }
.shard--r { fill: var(--red); }
.js .draw { animation: draw 1.8s cubic-bezier(.6,0,.2,1) .2s both; }
.js .draw--2 { animation-delay: .5s; }
.js .draw--3 { animation-delay: .9s; }
.js .shard { animation: shard .9s cubic-bezier(.2,.7,.2,1) 1.1s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes shard { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.sectors li { font-size: .875rem; color: var(--ink-2); padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }

/* Bandes « système » */
.sys { padding-block: clamp(72px, 10vw, 140px); }
.sys--alt { background: var(--bg-alt); }
.sys__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.sys--flip .sys__text { order: 2; }
.sys__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.feats { display: grid; gap: 18px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 26px; }
.feats li { display: grid; gap: 2px; }
.feats strong { font-weight: 600; }
.feats span { color: var(--ink-2); font-size: .97rem; }

/* Écrans de démonstration */
.mock { min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 70px -30px rgba(18, 58, 122, .28), 0 2px 6px rgba(35, 38, 43, .04); overflow: hidden; font-size: .93rem; }
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mock__bar em { font: 400 .58rem/1 var(--f-wide); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-style: normal; }
.mock__foot { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; background: var(--bg-alt); }
.sys--alt .mock__foot { background: var(--bg); }

.rows li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 22px; }
.rows li + li { border-top: 1px solid var(--line); }
.rows div { display: grid; min-width: 0; }
.rows b { font-weight: 600; }
.rows small { color: var(--ink-2); font-size: .82rem; }
.pill { flex-shrink: 0; font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pill--ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill--warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill--crit { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
.meter { flex: 1; max-width: 160px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.dot { flex-shrink: 0; display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot--ok { background: var(--ok); } .dot--r { background: var(--red); } .dot--b { background: var(--blue); }

.audit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 24px 22px; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__bg { stroke: var(--line); }
.ring__fg { stroke: var(--blue); stroke-linecap: round; }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring b { font: 600 1.7rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.ring small { color: var(--ink-2); font-size: .78rem; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) center/11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.500 6.300 5 8.700 9.500 3.600' fill='none' stroke='%23fff' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks li.ko::before { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.500 3.500 8.500 8.500M8.500 3.500 3.500 8.500' fill='none' stroke='%23fff' stroke-width='1.800' stroke-linecap='round'/%3E%3C/svg%3E"); }

.live { display: inline-flex; align-items: center; gap: 9px; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 76px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.wave i { width: 4px; height: 100%; border-radius: 2px; background: var(--blue); transform: scaleY(.25); animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.4s; background: var(--navy); }
.wave i:nth-child(3n+1) { animation-delay: -.8s; }
.wave i:nth-child(4n) { animation-duration: 1s; }
.wave i:nth-child(5n) { animation-duration: 1.7s; }
@keyframes wave { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(.85); } }
.chat { display: grid; gap: 10px; padding: 20px 22px; }
.msg { max-width: 82%; padding: 10px 15px; border-radius: 18px; }
.msg--in { background: var(--bg-alt); border-bottom-left-radius: 5px; justify-self: start; }
.msg--out { background: var(--blue); color: #fff; border-bottom-right-radius: 5px; justify-self: end; }

.tabs { display: flex; gap: 2px; padding: 3px; background: var(--bg-alt); border-radius: 999px; }
.tabs button { border: 0; background: none; font: 500 .82rem/1 var(--f-body); color: var(--ink-2); padding: 8px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(35,38,43,.14); }
.bench { padding: 24px 22px 22px; display: grid; gap: 12px; }
.bench__plot { position: relative; height: 190px; border-bottom: 1px solid var(--line); }
.bench__band { position: absolute; top: 0; bottom: 0; left: 40%; width: 20%; background: color-mix(in srgb, var(--ok) 9%, transparent); border-inline: 1px dashed color-mix(in srgb, var(--ok) 45%, transparent); }
.bench__plot .pt { position: absolute; width: 13px; height: 13px; margin: -6.5px; border-radius: 50%; transition: left .6s cubic-bezier(.2,.7,.2,1), top .6s cubic-bezier(.2,.7,.2,1), background .3s; }
.bench__axis { display: flex; justify-content: space-between; color: var(--ink-2); font-size: .78rem; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .85rem; color: var(--ink-2); margin-top: 6px; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Bande anthracite */
.dark { background: var(--anthracite); color: var(--on-dark); padding-block: clamp(72px, 10vw, 140px); }
.dark__head { display: grid; gap: 22px; max-width: 46rem; }
.dark .lead { color: var(--on-dark-2); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(255,255,255,.14); }
.pillars li { padding: 32px 26px 8px 0; display: grid; gap: 12px; align-content: start; }
.pillars li + li { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.14); }
.pillars svg { width: 44px; height: 44px; fill: none; stroke: var(--on-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillars h3 { font: 400 .72rem/1.4 var(--f-wide); letter-spacing: .2em; text-transform: uppercase; }
.pillars p { color: var(--on-dark-2); font-size: .95rem; }

/* Contact */
.contact { padding-block: clamp(72px, 10vw, 140px); }
.contact__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__text { display: grid; gap: 22px; }
.coords { display: grid; gap: 16px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 26px; }
.coords dt { font: 400 .6rem/1.4 var(--f-wide); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 3px; }
.coords a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 3vw, 36px); background: var(--bg-alt); border-radius: var(--radius); }
.field { display: grid; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 500; }
.field label small { color: var(--ink-2); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.form .invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--blue); }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__status { font-size: .93rem; font-weight: 500; min-width: 0; flex: 1 1 220px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--red); }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding-block: 28px; font-size: .82rem; color: var(--ink-2); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: var(--ink-2); }
.foot strong { color: var(--ink); }

/* Page mentions légales */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal .wrap { max-width: 760px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.01em; margin-top: 18px; }
.legal p { color: var(--ink-2); }

/* Apparition au défilement : l'état de repos reste visible sans JavaScript */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .nav__links { display: none; }
}
@media (max-width: 860px) {
  .sys__in, .contact__in { grid-template-columns: minmax(0, 1fr); }
  .sys--flip .sys__text { order: 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li, .pillars li + li { padding: 28px 20px 8px 0; border-left: 0; }
  .pillars li:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
  .pillars li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); margin-top: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__word { display: none; }
  .nav__in { gap: 12px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .audit { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .checks { justify-self: stretch; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li, .pillars li + li, .pillars li:nth-child(even) { padding: 26px 0 0; border-left: 0; margin-top: 0; }
  .pillars li + li { border-top: 1px solid rgba(255,255,255,.14); margin-top: 26px; }
  .draw { stroke-width: 9; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .draw, .js .shard, .wave i, .live i { animation: none; }
  .wave i { transform: scaleY(.5); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bench__plot .pt { transition: none; }
}
