/* ============================================
   CA Échographie · MédIA+
   Direction: medtech clinique premium, international
   Palette alignée sur le logo : bleu vif sur marine profond
   ============================================ */

:root {
  /* Texte & surfaces neutres */
  --ink:        #0F1A2B;
  --ink-soft:   #4B5768;
  --line:       #E0E6EE;
  --line-soft:  #EDF1F6;
  --paper:      #F7F9FC;
  --white:      #FFFFFF;

  /* Identité marque (issue du logo) */
  --navy:       #0A1628;   /* fond marine du logo */
  --navy-deep:  #060F1F;
  --navy-soft:  #102338;
  --blue:       #1E9CE8;   /* bleu CA du logo */
  --blue-deep:  #0F7BC4;
  --blue-soft:  #E6F4FD;
  --blue-bright:#5BBEF5;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 24px 64px rgba(10, 22, 40, 0.18);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- scanline top accent ---------- */
.scanline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 50%, var(--navy) 100%);
  z-index: 200;
}

/* ---------- layout helpers ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 32px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 16px;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.eyebrow .tick {
  font-family: var(--font-mono);
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11.5px;
}

.lead {
  font-size: 17px;
  margin-top: 14px;
  max-width: 560px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--navy);
  white-space: nowrap;
}

.brand-logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.18);
}

.brand-sep { margin: 0 6px; color: var(--line); }
.brand-sub { color: var(--blue-deep); }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  background: var(--navy);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(30, 156, 232, 0.32);
}
.btn.primary:hover { background: var(--blue-deep); box-shadow: 0 12px 28px rgba(30, 156, 232, 0.42); transform: translateY(-2px); }

.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn.ghost:hover { border-color: var(--blue); color: var(--blue-deep); }

.btn.full { width: 100%; margin-top: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0.55;
  pointer-events: none;
}

.hero-wave { width: 100%; height: 220px; }

.wave-path {
  stroke: rgba(30, 156, 232, 0.5);
  stroke-width: 1.6;
  animation: wave-drift 14s ease-in-out infinite;
}

@keyframes wave-drift {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-12px) scaleY(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 32px 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .eyebrow { color: var(--blue-bright); }
.hero-copy .eyebrow .dot {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 156, 232, 0.22);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  color: var(--white);
  font-weight: 700;
  margin-top: 8px;
}

.hero h1 .accent { color: var(--blue-bright); }

.hero .tagline {
  font-family: var(--font-display);
  margin-top: 22px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue-bright);
  text-transform: uppercase;
}

.hero .subtitle {
  margin-top: 14px;
  font-size: 18px;
  color: rgba(231, 236, 243, 0.78);
  max-width: 480px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero .btn.ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.22);
}
.hero .btn.ghost:hover { border-color: var(--blue); color: var(--blue-bright); }

.trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(231, 236, 243, 0.7);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- hero device ---------- */
.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
}

.device-frame {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1B3658 0%, #0D2238 100%);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.device-bezel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-deep);
}

.device-bezel img {
  width: 100%;
  display: block;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  max-width: 220px;
}

.card-icon { color: var(--blue-deep); font-size: 12px; }

.floating-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--navy);
}
.floating-card small { color: var(--ink-soft); font-size: 11.5px; }

.card-a { top: 12%; left: -6%; }
.card-b { bottom: 14%; right: -8%; }

/* ---------- stats ---------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 2px solid var(--blue-soft);
}

.stat strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
}
.stat .unit { color: var(--blue); }

.stat span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-soft);
}

.feature-grid .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  font-size: 18px;
  margin-bottom: 16px;
}

.feature-grid h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.feature-grid p {
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- sonde ---------- */
.sonde { background: var(--paper); }

.sonde-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.sonde-copy ul {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sonde-copy li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink);
}

.sonde-copy li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue);
  transform: rotate(45deg);
}

/* Prix : élément distinctif */
.price-tag {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--navy);
  border-radius: var(--radius-md);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--navy-soft);
}

.price-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-top: 4px;
}

.price-unit {
  font-size: 13px;
  margin-left: 8px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  vertical-align: super;
}

.price-note {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

.sonde-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.img-box img { width: 100%; height: 100%; object-fit: cover; }

.img-box-tall { aspect-ratio: 3/4; }
.img-box-tall img { object-fit: contain; padding: 24px; background: var(--white); }

/* ---------- audience ---------- */
.audience { background: var(--white); }

.audience-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.audience-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.audience-list li:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.audience-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- gallery ---------- */
.gallery-section { background: var(--paper); }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.gallery .img-box.wide {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  aspect-ratio: auto;
  height: 100%;
}

.gallery .img-box.wide img { object-fit: cover; }

.gallery .img-box:not(.wide) { aspect-ratio: 4/3; }

/* ---------- quote ---------- */
.quote {
  position: relative;
  text-align: center;
  background: var(--navy);
  border-radius: var(--radius-lg);
  margin: 64px auto;
  padding: 88px 32px;
  overflow: hidden;
}

.quote-wave {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 60px;
  opacity: 0.45;
}
.quote-wave path { stroke: var(--blue); stroke-width: 1.4; }

.quote h2 {
  color: var(--white);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.quote p {
  margin-top: 18px;
  color: rgba(231, 236, 243, 0.72);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

/* ---------- contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-head {
  max-width: 680px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-soft);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card-static {
  cursor: default;
}
.contact-card-static:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.contact-card-static:hover::before {
  transform: scaleX(0);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  margin-bottom: 16px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.contact-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.contact-meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.5;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 32px;
  background: var(--navy);
  border-radius: var(--radius-md);
  color: var(--white);
}

.contact-cta strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--white);
}

.contact-cta span {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

/* ---------- footer ---------- */
footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-soft);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-logo {
  width: 44px; height: 44px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 15px;
}

.footer-brand span {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-top: 2px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--blue-bright); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-device { margin-top: 24px; }
  .floating-card { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .sonde-card { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .audience-list { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .img-box.wide { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16/9; height: auto; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .brand-text { font-size: 14.5px; }
  .brand-sep { display: none; }
  .brand-sub { display: block; font-size: 12px; }

  .section { padding: 64px 20px; }
  .hero-inner { padding: 56px 20px 64px; }
  .hero h1 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .audience-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .img-box.wide { grid-column: 1; }
  .quote { padding: 56px 24px; margin: 40px auto; border-radius: var(--radius-md); }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ============================================
   Pages légales (mentions-legales, confidentialite)
   ============================================ */

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 32px 96px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.legal-page .legal-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--navy);
}

.legal-page p, .legal-page li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}

.legal-page p { margin-bottom: 16px; }

.legal-page ul {
  margin-bottom: 20px;
  padding-left: 0;
}

.legal-page ul li {
  list-style: none;
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 2px;
  transform: rotate(45deg);
}

.legal-page a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page strong { color: var(--navy); }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-deep);
}
.legal-back:hover { color: var(--navy); }

@media (max-width: 720px) {
  .legal-page { padding: 56px 20px 72px; }
}
