:root {
  --navy: #14546f;
  --teal: #2faeb4;
  --teal-soft: #9fd6d8;
  --teal-mist: #d7efef;
  --teal-wash: #e8f6f6;
  --orange: #ed7d31;
  --orange-soft: #f8d3b8;
  --green: #95c11f;
  --green-soft: #dce9b3;
  --blue-tarifs: #24408f;
  --ink: #14546f;
  --muted: #3d6b7c;
  --paper: #ffffff;
  --shadow: 0 18px 40px rgba(20, 84, 111, 0.08);
  --radius: 28px;
  --font-display: "Nunito", "Santana", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Myriad Pro", system-ui, sans-serif;
  --header-h: 84px;
}

@font-face {
  font-family: "Santana";
  src: url("../assets/fonts/Santana-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro";
  src: url("../assets/fonts/MyriadPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.bg-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 85% 8%, rgba(159, 214, 216, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 20%, rgba(200, 235, 233, 0.5), transparent 55%),
    linear-gradient(180deg, #f7fcfc 0%, #ffffff 35%, #eaf7f7 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(47, 174, 180, 0.12);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(20, 84, 111, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.brand img {
  width: 72px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--navy);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(47, 174, 180, 0.28);
}

.nav-cta:hover {
  background: var(--navy);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  opacity: 0.55;
  filter: blur(2px);
  animation: floaty 12s ease-in-out infinite;
}

.blob-a {
  width: min(52vw, 620px);
  right: -8%;
  top: -12%;
}

.blob-b {
  width: min(40vw, 460px);
  right: 8%;
  top: 28%;
  animation-delay: -4s;
}

.leaf {
  position: absolute;
  opacity: 0.35;
  width: 110px;
}

.leaf-tl {
  top: 4%;
  left: 2%;
  transform: rotate(-18deg);
}

.leaf-br {
  bottom: 6%;
  right: 3%;
  width: 140px;
  opacity: 0.28;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  font-family: var(--font-display);
}

.brand-mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--navy);
  background: linear-gradient(120deg, var(--navy) 20%, var(--teal) 55%, var(--navy) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0.6rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 174, 180, 0.32);
}

.btn-primary:hover {
  background: var(--navy);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  border: 1.5px solid rgba(47, 174, 180, 0.45);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-photo-mask {
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 48% 52% / 38% 42% 58% 62%;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  animation: morph 16s ease-in-out infinite;
}

.hero-photo-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

/* Sections */
.section {
  position: relative;
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head.center {
  text-align: center;
}

.section h2,
.mission-banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-sub {
  margin: 0.7rem auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Leviers */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem 1.7rem;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.feature h3 {
  margin: 0.9rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.feature-icon img {
  width: 38px;
  height: auto;
}

.feature-pro {
  background: linear-gradient(165deg, #fff7f1 0%, #ffe4d0 100%);
  color: var(--orange);
}

.feature-pro .feature-icon {
  background: var(--orange);
}

.feature-pro h3 {
  color: var(--orange);
  text-align: center;
}

.feature-patient {
  background: linear-gradient(165deg, #f2fbfb 0%, #cfeedf 100%);
  color: var(--teal);
}

.feature-patient .feature-icon {
  background: var(--teal);
}

.feature-patient h3 {
  color: var(--teal);
  text-align: center;
}

.feature-salles {
  background: linear-gradient(165deg, #f7fbea 0%, #e2efb5 100%);
  color: var(--green);
}

.feature-salles .feature-icon {
  background: var(--green);
}

.feature-salles h3 {
  color: var(--green);
  text-align: center;
}

.bridge-copy {
  margin: 2.75rem auto 0;
  max-width: 48rem;
  text-align: center;
  font-size: 1.12rem;
  color: var(--navy);
  line-height: 1.55;
}

/* Quotidien */
.quotidien {
  background:
    linear-gradient(180deg, rgba(232, 246, 246, 0.35), rgba(199, 232, 232, 0.55));
}

.usage-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.usage {
  text-align: center;
  padding: 0.5rem 0.75rem 1rem;
}

.usage-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  background: #fff;
}

.usage-icon img {
  width: 46px;
  height: auto;
}

.usage-saas {
  background: #dff4f5;
}

.usage-rapide {
  background: #ffe8d6;
}

.usage-pdf {
  background: #eaf4c8;
}

.usage h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.usage:nth-child(1) h3 {
  color: var(--teal);
}

.usage:nth-child(2) h3 {
  color: var(--orange);
}

.usage:nth-child(3) h3 {
  color: var(--green);
}

.usage p {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
}

/* Mission */
.mission-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border-radius: 36px;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.mission-logo {
  width: 78px;
  height: auto;
}

.mission-banner h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--teal);
  font-weight: 800;
}

.mission-photo {
  width: min(220px, 28vw);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
}

.mission-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Tarifs */
.tarifs {
  background: linear-gradient(180deg, #cfeaea 0%, #bfe0e1 55%, #d8efef 100%);
  overflow: hidden;
}

.tarifs-decor {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(28vw, 220px);
  opacity: 0.35;
  pointer-events: none;
  transform: rotate(8deg);
}

.tarifs-decor img {
  width: 100%;
  height: auto;
}

.tarifs h2 {
  color: var(--blue-tarifs);
  display: inline-block;
  border-bottom: 4px solid var(--green);
  padding-bottom: 0.2rem;
  margin-bottom: 1.5rem;
}

.tarifs-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(149, 193, 31, 0.55);
  border-radius: 22px;
  padding: 1.7rem 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}

.tarifs-intro {
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.tarifs-intro a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.devis-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}

.form-field label span {
  color: var(--orange);
}

.form-field input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(20, 84, 111, 0.2);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 174, 180, 0.2);
}

.form-field input.is-invalid {
  border-color: #c0392b;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.98rem;
}

.form-status.is-success {
  background: rgba(149, 193, 31, 0.22);
  color: #3d5f10;
}

.form-status.is-error {
  background: rgba(192, 57, 43, 0.12);
  color: #8e2419;
}

.devis-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  position: relative;
  background: #fff;
  padding: 1.5rem 0 2.5rem;
}

.footer-wave {
  position: absolute;
  top: -78px;
  left: 0;
  right: 0;
  height: 80px;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.footer-brand p {
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-size: 0.95rem;
}

.logo-ildys {
  width: min(360px, 100%);
  height: auto;
}

.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--teal);
  font-size: 0.95rem;
}

.footer-contact img {
  width: 18px;
  height: auto;
  flex-shrink: 0;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.feature-row .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.feature-row .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.usage-row .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.usage-row .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(18px) rotate(2deg);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 48% 52% / 38% 42% 58% 62%;
  }
  50% {
    border-radius: 52% 48% 42% 58% / 48% 38% 62% 52%;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: 1.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .brand-mark {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .hero h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.2rem);
  }

  .hero-visual {
    min-height: 240px;
    max-height: 42vh;
  }

  .hero-photo-mask {
    inset: 0 10% 0 10%;
  }

  .feature-row,
  .usage-row {
    grid-template-columns: 1fr;
  }

  .mission-banner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .mission-photo {
    width: min(280px, 100%);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tarifs-decor {
    width: 70vw;
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blob,
  .hero-photo-mask,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
