/* =========================================================
   Autoclave Express — instrument-panel design system
   ========================================================= */
:root {
  --ink: #0C1B22;
  --ink-2: #122831;
  --ink-3: #1B3641;
  --paper: #F3F6F6;
  --paper-2: #FFFFFF;
  --line: #DCE5E5;
  --line-dark: rgba(255, 255, 255, 0.10);
  --steel: #5E727B;
  --steel-2: #8A9AA1;
  --accent: #16B7A5;
  --accent-bright: #25D2BE;
  --accent-d: #0C8576;
  --hot: #FF6B45;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --ar: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] body { font-family: var(--ar); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand-text { font-family: var(--ar); }

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 14px;
}
[dir="rtl"] .eyebrow { font-family: var(--mono); letter-spacing: 0; }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1rem + 2.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-lede {
  max-width: 56ch;
  color: var(--steel);
  font-size: 1.05rem;
  margin: 0 0 36px;
}

[data-mono] { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
[dir="rtl"] .btn { font-family: var(--ar); font-weight: 600; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-d); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(243,246,246,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { color: var(--accent-d); display: inline-flex; }
.brand-text { font-family: var(--display); font-weight: 700; letter-spacing: .02em; font-size: 1.02rem; }
.brand-dot { color: var(--hot); }

.main-nav { display: flex; gap: 24px; margin-inline-start: auto; }
.main-nav a { font-size: .92rem; color: var(--steel); transition: color .15s ease; }
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 13px; cursor: pointer;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  list-style: none; margin: 0; padding: 6px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(12,27,34,.14);
  min-width: 156px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%; text-align: start; background: transparent; border: 0;
  padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--ink);
  font-family: var(--body); font-size: .9rem;
}
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: var(--paper); }
.lang-menu button[aria-current="true"] { color: var(--accent-d); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 6vw, 92px) 0 clamp(40px, 5vw, 70px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 3.7rem);
  line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 18px;
}
[dir="rtl"] .hero h1 { line-height: 1.25; }
.lede { font-size: 1.16rem; color: var(--steel); max-width: 46ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Signature panel */
.panel {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  border: 1px solid var(--ink-3);
  border-radius: 20px;
  padding: 20px;
  color: #EAF3F2;
  box-shadow: 0 30px 70px -28px rgba(12,27,34,.55);
}
.panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-id { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--steel-2); }
.panel-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--accent-bright); }
.panel-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(37,210,190,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,210,190,.55);} 70% { box-shadow: 0 0 0 9px rgba(37,210,190,0);} 100% { box-shadow:0 0 0 0 rgba(37,210,190,0);} }

.panel-graph { background: rgba(0,0,0,.18); border-radius: 12px; padding: 6px; margin-bottom: 16px; }
.cycle-svg { width: 100%; height: 180px; }
.grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.cycle-area { fill: url(#fill); opacity: 0; transition: opacity .6s ease .9s; }
.cycle-area.in { opacity: 1; }
.cycle-line {
  fill: none; stroke: var(--accent-bright); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 760; stroke-dashoffset: 760;
}
.cycle-line.in { animation: draw 2.1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.plateau { stroke: var(--hot); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: 0; transition: opacity .5s ease 1.6s; }
.plateau.in { opacity: .8; }
.cycle-dot { fill: var(--hot); opacity: 0; }
.cycle-dot.in { opacity: 1; }

.panel-readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.readout { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: 10px; padding: 11px 12px; }
.r-label { display: block; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 5px; }
.r-value { font-family: var(--mono); font-size: 1.18rem; font-weight: 500; display: flex; align-items: baseline; gap: 3px; }
.r-unit { font-size: .72rem; color: var(--steel-2); }
.r-phase { font-size: .92rem; color: var(--accent-bright); }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--paper-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat-k { display: block; font-size: 1.7rem; font-weight: 500; color: var(--ink); letter-spacing: .01em; }
.stat-l { display: block; font-size: .82rem; color: var(--steel); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-dark { background: var(--ink); color: #DCE9E8; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lede { color: var(--steel-2); }
.section-dark .eyebrow { color: var(--accent-bright); }
.section-rule { border-top: 1px solid var(--line); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(12,27,34,.35); border-color: #C4D3D3; }
.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(22,183,165,.12); color: var(--accent-d); margin-bottom: 16px;
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--steel); font-size: .94rem; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--accent); }
.step-n { display: block; font-size: 1.05rem; color: var(--accent-bright); margin-bottom: 12px; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 1.18rem; margin: 0 0 8px; color: #fff; }
.step p { margin: 0; color: var(--steel-2); font-size: .94rem; }

/* products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
}
.product-feature { background: var(--ink); color: #E6F1F0; border-color: var(--ink-3); transform: scale(1.0); box-shadow: 0 30px 60px -34px rgba(12,27,34,.5); }
.product-feature h3, .product-feature .product-spec li { color: #fff; }
.product-feature p { color: var(--steel-2); }
.product-head { margin-bottom: 14px; }
.product-tag {
  display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-d); background: rgba(22,183,165,.12); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.product-feature .product-tag { color: var(--ink); background: var(--accent-bright); }
.product h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin: 0; letter-spacing: -.01em; }
.product > p { color: var(--steel); font-size: .96rem; margin: 0 0 18px; }
.product-spec { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.product-feature .product-spec { border-top-color: var(--line-dark); }
.product-spec li { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--steel); font-family: var(--mono); }
.product-feature .product-spec li { color: #CFE0DF; }
.product-spec li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* compliance */
.compliance-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
.compliance-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.compliance-list li {
  position: relative; padding-inline-start: 34px; font-size: 1rem; color: var(--ink);
  padding-block: 4px;
}
.compliance-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(22,183,165,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l4 4 10-10' fill='none' stroke='%230C8576' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 15px; background-repeat: no-repeat; background-position: center;
}
[dir="rtl"] .compliance-list li::before { transform: scaleX(-1); }

/* quote */
.quote { background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%); color: #EAF3F2; padding: clamp(56px, 7vw, 96px) 0; }
.quote-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.quote h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 1rem + 3vw, 3rem); letter-spacing: -.02em; margin: 0 0 14px; color: #fff; }
.quote p { color: var(--steel-2); font-size: 1.1rem; margin: 0 0 30px; }
.quote-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.quote-mail { color: var(--accent-bright); font-size: .92rem; }

/* footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.footer-brand .brand-text { font-size: 1.05rem; }
.footer-brand p { color: var(--steel); font-size: .9rem; margin: 10px 0 0; max-width: 40ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.footer-nav a { color: var(--steel); font-size: .9rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { grid-column: 1 / -1; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--steel-2); font-size: .82rem; }

/* focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2.5px solid var(--accent-d); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .product-feature { transform: none; }
  .compliance-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-inline-start: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .header-actions .btn-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cycle-line { stroke-dashoffset: 0; }
  .cycle-area, .plateau, .cycle-dot { opacity: 1; }
}

/* logo header IoT Autoclave Express */
.brand-logo{height:42px;width:auto;display:block;}
@media(max-width:600px){.brand-logo{height:34px;}}

/* ===== Trilogy shop (configurator) ===== */
.chain{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:10px;margin:32px 0 40px;}
.chain-step{flex:1 1 130px;min-width:120px;background:var(--paper-2);border:1px solid var(--line);border-radius:12px;padding:14px;text-align:center;}
.chain-step b{display:block;font-family:var(--display);color:var(--ink);font-size:15px;}
.chain-step em{display:block;font-style:normal;color:var(--steel);font-size:12px;margin-top:4px;}
.chain-arr{align-self:center;color:var(--accent);font-size:20px;font-weight:700;}
.shop{max-width:560px;margin:0 auto;background:var(--paper-2);border:1px solid var(--line);border-radius:var(--radius);padding:22px;}
.shop-base{display:flex;align-items:flex-start;gap:14px;border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin-bottom:16px;}
.shop-base-main{flex:1;}
.shop-base-main b{display:block;font-family:var(--display);color:var(--ink);font-size:16px;}
.shop-base-main span{display:block;color:var(--steel);font-size:13px;margin-top:2px;}
.shop-base-main small{display:block;color:var(--accent-d);font-size:12px;margin-top:6px;}
.shop-base-price{text-align:right;white-space:nowrap;}
.shop-base-price b{font-family:var(--display);font-size:20px;color:var(--ink);}
.shop-base-price em{display:block;font-style:normal;color:var(--steel);font-size:12px;}
.shop-optrow{display:flex;align-items:center;justify-content:space-between;margin:0 2px 12px;}
.shop-optrow>span{color:var(--steel);font-size:13px;}
.shop-billing{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;}
.shop-billing button{border:0;background:transparent;color:var(--steel);font-size:13px;padding:6px 14px;cursor:pointer;font-family:var(--body);}
.shop-billing button.on{background:var(--accent);color:#fff;}
.shop-opt{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px;cursor:pointer;}
.shop-opt input{width:18px;height:18px;accent-color:var(--accent);cursor:pointer;flex:none;}
.shop-opt-main{flex:1;}
.shop-opt-main b{display:block;color:var(--ink);font-size:14px;}
.shop-opt-main span{display:block;color:var(--steel);font-size:12px;}
.shop-opt-price{text-align:right;white-space:nowrap;}
.shop-opt-price b{color:var(--ink);font-size:14px;}
.shop-opt-price em{font-style:normal;color:var(--steel);font-size:12px;}
.shop-save{color:var(--accent-d);font-size:12px;margin:6px 2px 0;min-height:0;}
.shop-total{border-top:1px solid var(--line);margin-top:14px;padding-top:14px;}
.shop-total-row{display:flex;align-items:baseline;justify-content:space-between;}
.shop-total-row span{color:var(--steel);font-size:14px;}
.shop-total-row b{font-family:var(--display);font-size:24px;color:var(--ink);}
.shop-total-row.sub{margin-top:4px;}
.shop-total-row.sub span:last-child{font-size:14px;color:var(--steel);}
.shop-cta{display:block;text-align:center;margin-top:16px;padding:13px;border-radius:10px;background:var(--hot);color:#fff;font-family:var(--display);font-size:15px;text-decoration:none;}
.shop-cta:hover{filter:brightness(1.05);}
.shop-pay{text-align:center;color:var(--steel-2);font-size:12px;margin:10px 0 0;}

/* chain band: fond bleu #0B6FFF */
.chain{background:#0B6FFF;padding:26px 20px;border-radius:14px;}
.chain-arr{color:#ffffff;}

/* tous les fonds fonces -> #0B6FFF */
.chain{background:transparent !important;padding:0 !important;}
.chain-arr{color:var(--accent) !important;}
.section-dark{background:#0B6FFF !important;}
.hero{background:#0B6FFF !important;}
.panel,.live-panel,.dashboard,.device,.hero-card{background:#0B6FFF !important;}
:root{--ink:#0B6FFF;--ink-2:#0B6FFF;--ink-3:#2a82ff;}

/* textes lisibles sur le fond bleu #0B6FFF : noir gras */
.section-dark, .section-dark *, .hero, .hero *{color:#000000 !important;font-weight:700 !important;}
.section-dark .eyebrow, .hero .eyebrow{color:#000000 !important;}
.chain-step b, .chain-step em{color:#0B6FFF !important;}
.shop *{font-weight:inherit !important;}

/* zones bleues : texte BLANC (au lieu de noir) */
.section-dark, .section-dark *, .hero, .hero *{color:#ffffff !important;}
.chain-step b, .chain-step em{color:#0B6FFF !important;}
/* menu de navigation en #fa0565 */
.main-nav a{color:#fa0565 !important;font-weight:700 !important;}
.main-nav a:hover{color:#c80450 !important;}

/* bas de page bleu : sous-texte + email en blanc */
.cta, .cta *, .final-cta, .final-cta *, #quote, #quote *{color:#ffffff !important;}
#quote a, .cta a{color:#ffffff !important;text-decoration:underline;}

/* bas de page bleu : sous-texte + email en blanc */
.cta, .cta *, .final-cta, .final-cta *, #quote, #quote *{color:#ffffff !important;}
#quote a, .cta a{color:#ffffff !important;text-decoration:underline;}

/* section quote (bas bleu) : tout en blanc lisible */
.quote h2, .quote p, .quote .quote-inner, .quote a{color:#ffffff !important;}
.quote p{opacity:1 !important;}

/* section quote (bas bleu) : tout en blanc lisible */
.quote h2, .quote p, .quote .quote-inner, .quote a{color:#ffffff !important;}
.quote p{opacity:1 !important;}
