:root {
  --navy: #0c2340;
  --navy-2: #16345c;
  --ink: #122033;
  --ink-soft: #3d4f63;
  --muted: #5c6d80;
  --paper: #f5f8fc;
  --white: #ffffff;
  --mist: #e7eef6;
  --line: #d3deeb;
  --cta: #1b5f9a;
  --cta-hover: #154c7c;
  --alert: #7a2e2e;
  --alert-bg: #f8ece8;
  --focus: #1b5f9a;
  --max: 72rem;
  --serif: "Libre Baskerville", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--cta);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-family: var(--sans);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  background: var(--cta);
  color: var(--white);
}

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

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

.btn-ghost:hover {
  background: var(--mist);
  color: var(--navy);
}

.btn-block {
  width: 100%;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  min-height: 4.4rem;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-mark {
  height: 2.75rem;
  width: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0.12rem;
}

.brand-mark img {
  height: 2.5rem;
  width: auto;
  max-width: 4.6rem;
  object-fit: contain;
  display: block;
  background: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.audience {
  display: flex;
  flex-shrink: 0;
  background: var(--mist);
  border-radius: 999px;
  padding: 0.18rem;
}

.site-nav .audience a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav .audience a[aria-current="page"] {
  background: var(--white);
  color: var(--navy);
}

.header-cta {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  flex: 1;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.site-nav a.btn {
  color: var(--white);
  font-size: 0.95rem;
}

.site-nav a.btn:hover {
  color: var(--white);
}

/* Hero */

.hero {
  padding: 3.6rem 0 3.2rem;
  background:
    radial-gradient(circle at 85% 10%, #dce8f5 0, transparent 42%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 36rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-logo {
  --logo-w: 18.5rem;
  --logo-h: 12.45rem;
  --logo-d: 2.1rem;
  margin: 0;
  min-height: 22rem;
  display: grid;
  place-items: center;
  position: relative;
}

.logo-3d {
  position: relative;
  width: var(--logo-w);
  height: calc(var(--logo-h) + 3.5rem);
}

.logo-3d-scene {
  width: var(--logo-w);
  height: var(--logo-h);
  perspective: 56rem;
  perspective-origin: 50% 42%;
}

.logo-3d-cube {
  position: relative;
  width: var(--logo-w);
  height: var(--logo-h);
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-24deg);
  animation: logo-orbit 16s ease-in-out infinite;
}

.logo-3d-face {
  position: absolute;
  background: transparent;
}

.logo-3d-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-3d-front {
  width: var(--logo-w);
  height: var(--logo-h);
  transform: translateZ(calc(var(--logo-d) / 2));
  -webkit-mask-image: url("../assets/logo-theral.png");
  mask-image: url("../assets/logo-theral.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.logo-3d-back,
.logo-3d-right,
.logo-3d-left,
.logo-3d-top,
.logo-3d-bottom {
  display: none;
}

.logo-3d-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0.2rem;
  height: 1.4rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(12, 35, 64, 0.28), transparent 70%);
  animation: logo-shadow 16s ease-in-out infinite;
}

@keyframes logo-orbit {
  0% {
    transform: rotateX(12deg) rotateY(-28deg) translateY(0);
  }
  50% {
    transform: rotateX(8deg) rotateY(28deg) translateY(-0.55rem);
  }
  100% {
    transform: rotateX(12deg) rotateY(-28deg) translateY(0);
  }
}

@keyframes logo-shadow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(0.86);
    opacity: 0.55;
  }
}

/* Sections */

.section {
  padding: 4.2rem 0;
}

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

.section-navy {
  background: var(--navy);
  color: #e8eef6;
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-navy p,
.section-navy li {
  color: #c9d6e6;
}

.section-navy .eyebrow {
  color: #9bb0c8;
}

.section-navy a {
  color: #e8eef6;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-head h2,
.intro-copy h2,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.7rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

/* Intro */

.intro-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 2.5rem;
  align-items: start;
}

.intro-photo {
  margin: 0;
}

.intro-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0.85rem 1.4rem rgba(12, 35, 64, 0.16));
}

.intro-copy p {
  color: var(--ink-soft);
}

.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.proofs li {
  background: var(--mist);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.proofs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.proofs a:hover {
  text-decoration-thickness: 2px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.step,
.choice,
.offer,
.appui,
.faq details,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem 1.3rem 1.4rem;
}

.step-num,
.appui-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.step h3,
.choice h3,
.offer h3,
.appui h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  color: var(--navy);
}

.step p,
.choice p,
.offer p,
.appui p {
  margin: 0;
  color: var(--ink-soft);
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.choice a {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* Offers */

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.offer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.offer.is-featured {
  border-color: var(--navy);
  background: linear-gradient(180deg, #f3f7fc 0%, var(--white) 42%);
  box-shadow: 0 0 0 1px var(--navy);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 0.45rem;
  color: var(--ink-soft);
}

.price-list strong {
  color: var(--navy);
}

.price-list .was {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.35rem;
}

.offer .btn {
  margin-top: auto;
}

.solidaire-note {
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Approach */

.approach-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
}

.approach-grid ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.approach-grid li + li {
  margin-top: 0.45rem;
}

/* Complex */

.complexe-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
  align-items: stretch;
  margin: 1.2rem 0 0;
}

.hospital-list,
.complexe-pack {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--navy);
  border-radius: 0.9rem;
  background: var(--white);
}

.hospital-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.hospital-list p {
  margin: 0;
}

.hospital-list a {
  font-weight: 600;
  text-decoration: none;
}

.complexe-pack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.complexe-pack h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0;
}

.complexe-pack > p {
  margin: 0;
  color: var(--ink-soft);
}

.complexe-pack-price {
  color: var(--navy);
}

.complexe-pack-price strong {
  font-size: 1.35rem;
}

.complexe-pack-price .was {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.35rem;
}

.complexe-pack .btn {
  margin-top: auto;
}

.alert {
  background: var(--alert-bg);
  color: var(--alert);
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
}

.alert a {
  color: var(--alert);
}

/* FAQ */

.faq {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
}

.faq details[open] {
  border-color: var(--navy-2);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--navy);
}

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-card p + p {
  margin-top: 1rem;
}

.contact-card a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.share button,
.share a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.share button.is-copied {
  border-color: var(--navy);
}

.fine-print {
  margin: 1.2rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* B2B */

.appuis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.appui {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.appui.is-featured {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
  background: linear-gradient(180deg, #f3f7fc 0%, var(--white) 50%);
}

.appui .price {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0;
}

.appui .price span {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.cadre-box {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  max-width: 48rem;
}

.cadre-box p {
  margin: 0;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #c9d6e6;
  padding: 2.8rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.8rem;
}

.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9bb0c8;
  margin: 0 0 0.7rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a {
  color: #e8eef6;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9bb0c8;
  font-size: 0.8rem;
}

/* Inner pages */

.page-hero {
  padding: 3.2rem 0 1.6rem;
  background: var(--paper);
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 2.2rem 0 0.7rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.15rem;
}

/* Mobile */

@media (max-width: 920px) {
  .wrap {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .site-nav .audience a {
    font-size: 0.72rem;
    padding: 0.3rem 0.48rem;
  }

  .site-nav {
    gap: 0.5rem 0.75rem;
  }

  .site-nav ul {
    gap: 0.7rem;
  }

  .site-nav a {
    font-size: 0.86rem;
  }

  .header-cta {
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
  }

  .hero,
  .section {
    padding: 2.6rem 0;
  }

  .hero-grid,
  .intro-grid,
  .steps,
  .choices,
  .offers,
  .approach-grid,
  .contact-grid,
  .appuis,
  .footer-grid,
  .complexe-split {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    order: -1;
    min-height: 16rem;
    --logo-w: 15.5rem;
    --logo-h: 10.4rem;
  }

  .hero-grid {
    gap: 1.6rem;
  }

  .intro-photo {
    max-width: 16rem;
  }
}

@media (max-width: 640px) {
  .brand-text span {
    display: none;
  }

  .site-nav {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .audience {
    width: 100%;
  }

  .site-nav .audience a {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    padding: 0.3rem 0.28rem;
  }
}
