/* SecuRX — medical white & blue brand system */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --navy: #003b95;
  --navy-deep: #002866;
  --blue: #0077c8;
  --cyan: #00aeef;
  --cyan-soft: #e8f7fc;
  --ice: #f4fafd;
  --white: #ffffff;
  --ink: #1a2b3c;
  --muted: #5a6f82;
  --line: #d4e5ef;
  --ok: #0d8a5b;
  --warn: #c47a00;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 59, 149, 0.08);
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--cyan);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-size: 0.875rem !important;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--cyan-soft);
  color: var(--navy);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(0, 174, 239, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(0, 59, 149, 0.08), transparent 50%),
    linear-gradient(180deg, var(--ice) 0%, var(--white) 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23003b95' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  max-width: 720px;
}

.hero-logo {
  height: clamp(72px, 12vw, 110px);
  width: auto;
  margin-bottom: 1.75rem;
  animation: fadeRise 0.8s ease both;
}

.hero h1 {
  animation: fadeRise 0.8s 0.12s ease both;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36em;
  animation: fadeRise 0.8s 0.22s ease both;
}

.hero .cta-row {
  animation: fadeRise 0.8s 0.32s ease both;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  animation: fadeRise 0.8s 0.05s ease both;
}

.tagline::before,
.tagline::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--ice);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  font-size: 1.1rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

/* —— Flow steps (how it works) —— */
.flow {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.flow-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeRise 0.6s ease forwards;
}

.flow-step:nth-child(1) { animation-delay: 0.05s; }
.flow-step:nth-child(2) { animation-delay: 0.15s; }
.flow-step:nth-child(3) { animation-delay: 0.25s; }
.flow-step:nth-child(4) { animation-delay: 0.35s; }
.flow-step:nth-child(5) { animation-delay: 0.45s; }

.flow-step:last-child {
  border-bottom: none;
}

.flow-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.25);
}

.flow-body h3 {
  margin-bottom: 0.35rem;
}

.flow-body p {
  margin: 0;
}

.highlight-band {
  margin: 2.5rem 0 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(105deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-band h3 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.highlight-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1.05rem;
}

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

.feature {
  padding-top: 1.25rem;
  border-top: 3px solid var(--cyan);
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  font-size: 0.98rem;
}

/* —— Callout / caution —— */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: #fff8e8;
  border-left: 4px solid var(--warn);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.callout strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-deep);
  margin-bottom: 0.25rem;
}

.callout p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.callout-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.info-callout {
  background: var(--cyan-soft);
  border-left-color: var(--cyan);
}

/* —— Two col —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.diagram {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.diagram svg {
  width: 100%;
  height: auto;
}

.diagram-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* —— Hero claim triplet —— */
.claim-triplet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  animation: fadeRise 0.8s 0.4s ease both;
}

.claim-triplet li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.claim-triplet li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%230077c8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1 5.2 4.3 8.5 11 1.5'/%3E%3C/svg%3E") center no-repeat;
}

/* —— Key figures strip —— */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.stat span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* —— Before / after comparison —— */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.compare-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.compare-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-card li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
}

.compare-card li:last-child {
  border-bottom: none;
}

.compare-card li::before {
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.compare-before {
  background: #fdf6f6;
  border-color: #f0d8d8;
}

.compare-before h3 {
  color: #9a2c2c;
}

.compare-before li {
  color: #6b4a4a;
  border-bottom-color: #f0d8d8;
}

.compare-before li::before {
  content: "✕";
  color: #c14a4a;
}

.compare-after {
  background: var(--cyan-soft);
  border-color: #bfe6f5;
}

.compare-after li {
  color: var(--ink);
  border-bottom-color: #bfe6f5;
}

.compare-after li::before {
  content: "✓";
  color: var(--ok);
}

/* —— Benefit cards —— */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--cyan);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.96rem;
}

/* —— FAQ —— */
.faq {
  max-width: 46rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-deep);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cyan);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
}

/* —— Final CTA —— */
.cta-band {
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.08rem;
}

.cta-band .cta-row {
  justify-content: center;
}

/* —— Hero sub-headline —— */
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--blue);
  margin: -0.25rem 0 1rem;
  letter-spacing: -0.01em;
  animation: fadeRise 0.8s 0.18s ease both;
}

.made-in {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-deep);
  animation: fadeRise 0.8s 0.45s ease both;
}

.made-in::before {
  content: "";
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0055a4 0 33%, #fff 33% 66%, #ef4135 66%);
  border: 1px solid var(--line);
}

/* —— Two states (sous tension / émission) —— */
.states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.state-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.state-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.state-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.state-card p {
  margin: 0;
}

.state-lamp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--ice);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.lamp {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.15);
}

.lamp-power {
  background: var(--cyan);
}

.lamp-xray {
  background: #ffb020;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.2), 0 0 18px rgba(255, 176, 32, 0.6);
  animation: pulseGlow 1.1s ease-in-out infinite;
}

.state-source {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.state-source strong {
  color: var(--blue);
}

/* —— Three-step process (Détecter / Transmettre / Signaler) —— */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-step {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.process-step .step-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  margin: 0;
  font-size: 0.96rem;
}

.process-step::after {
  content: "→";
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cyan);
  font-weight: 700;
}

.process-step:last-child::after {
  content: none;
}

/* —— Module cards (Capteur / Afficheur) —— */
.modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.module-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.module-card .eyebrow {
  margin-bottom: 0.4rem;
}

.module-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.module-spec {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.module-spec li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.module-spec li:last-child {
  border-bottom: none;
}

.module-spec span:first-child {
  color: var(--muted);
}

.module-spec span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
  text-align: right;
}

/* —— Dimensioning example —— */
.dimension {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.dimension-rule {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.dimension-rule strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.dimension-rule h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.dimension-rule p {
  margin: 0;
  font-size: 0.95rem;
}

.dimension-example {
  grid-column: 1 / -1;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(105deg, var(--navy-deep), var(--blue));
  color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.dimension-example .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.dimension-example .big {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.dimension-example p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.dimension-example .equation {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

/* —— Status pill (Appairé / En attente) —— */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-on {
  background: var(--cyan-soft);
  color: var(--navy);
}

.pill-wait {
  background: #f1f4f7;
  color: var(--muted);
}

/* —— Footer contact —— */
.footer-contact {
  display: grid;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--white);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--cyan);
}

.footer-contact .footer-addr {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.cta-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.cta-contact a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.cta-contact a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* —— Machine room-change story —— */
.scenario {
  display: grid;
  gap: 1rem;
}

.scenario-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.scenario-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.scenario-label span {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0;
}

.scenario-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.scenario-arrow::before,
.scenario-arrow::after {
  content: "";
  height: 1px;
  width: 2rem;
  background: var(--line);
}

.scenario svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.voyants-on {
  animation: pulseGlow 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .voyants-on {
    animation: none;
    opacity: 1;
  }
}

/* —— Options list —— */
.option-list {
  display: grid;
  gap: 0;
}

.option-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.option-item:first-child {
  border-top: 1px solid var(--line);
}

.option-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.option-item p {
  margin: 0;
  max-width: 40rem;
}

.option-code {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: var(--cyan-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* —— Page header (inner) —— */
.page-hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0, 174, 239, 0.1), transparent 50%),
    var(--ice);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  font-size: 1.15rem;
  max-width: 40rem;
  margin: 0;
}

/* —— Configurator —— */
.config-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.config-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.config-panel + .config-panel {
  margin-top: 1.25rem;
}

.config-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.field {
  margin-bottom: 1.25rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.45rem;
}

.field .hint {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-weight: 400;
}

.field select,
.field input[type="number"],
.field input[type="text"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  appearance: none;
  background-image: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23003b95' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.field select:focus,
.field input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: block;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.choice input:checked + span {
  border-color: var(--navy);
  background: var(--cyan-soft);
  color: var(--navy-deep);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.salle-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--ice);
}

.salle-block h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.salle-block .remove-salle {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-display);
}

.salle-block .remove-salle:hover {
  color: #b00020;
}

/* Result panel */
.result-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
}

.result-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - var(--nav-h) - 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-header {
  background: linear-gradient(120deg, var(--navy-deep), var(--blue));
  color: var(--white);
  padding: 1.35rem 1.5rem;
}

.result-header h2 {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.result-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.result-header-cta {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-size: 0.88rem;
}

.result-header-cta:hover {
  background: var(--cyan-soft);
  color: var(--navy-deep);
}

.result-body {
  padding: 1.25rem 1.5rem 1.5rem;
  min-height: 0;
  overflow-y: auto;
}

.bom-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.bom-group {
  margin-bottom: 1.25rem;
}

.bom-group h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bom-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.bom-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.bom-table td:last-child {
  text-align: right;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--navy);
  white-space: nowrap;
}

.bom-code {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
}

.reco-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.reco-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.reco-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.reco-list li.warn::before {
  background: var(--warn);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.result-actions .btn {
  width: 100%;
  font-size: 0.88rem;
  padding: 0.7rem 1rem;
}

.quote-form {
  margin-top: 1.25rem;
}

.quote-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.quote-form .field {
  margin-bottom: 0.85rem;
}

.quote-form textarea {
  resize: vertical;
  min-height: 72px;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.quote-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.quote-status.is-ok {
  color: var(--ok);
}

.quote-status.is-err {
  color: #b00020;
}

.quote-status.is-pending {
  color: var(--muted);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.modal-open {
  overflow: hidden;
}

.quote-modal[hidden] {
  display: none;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 25, 64, 0.68);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.quote-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 25, 64, 0.3);
  animation: fadeRise 0.25s ease both;
}

.quote-modal-dialog h2 {
  margin-bottom: 0.45rem;
}

.quote-modal-dialog > p:not(.eyebrow) {
  margin-bottom: 0;
}

.quote-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.quote-modal-close:hover {
  background: var(--cyan-soft);
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.site-footer img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* —— Print —— */
@media print {
  .site-header,
  .nav-toggle,
  .result-actions,
  .result-header-cta,
  .quote-modal,
  .quote-form,
  .cta-row {
    display: none !important;
  }

  .config-layout {
    grid-template-columns: 1fr;
  }

  .result-sticky {
    position: static;
  }

  body {
    background: white;
  }
}

/* —— Animations —— */
@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }

  .compare,
  .states,
  .modules,
  .dimension {
    grid-template-columns: 1fr;
  }

  .dimension-example {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    content: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .config-layout {
    grid-template-columns: 1fr;
  }

  .result-sticky {
    position: static;
  }

  .result-body {
    max-height: none;
  }

  .result-panel {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: none;
  }

  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .option-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .quote-fields {
    grid-template-columns: 1fr;
  }

  .quote-modal {
    align-items: end;
    padding: 0;
  }

  .quote-modal-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}
