/* Page « Demander une démo » — étend le shell partagé */

@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial");
  size-adjust: 112.16%;
  ascent-override: 92.83%;
  descent-override: 30.94%;
  line-gap-override: 8.84%;
}

.demo-page main {
  background: #fff;
}

.demo-page h1,
.demo-page h2,
.demo-page h3 {
  font-family: "Poppins", "Poppins Fallback", "Figtree", sans-serif;
}

.demo-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--cyan-dark);
  background: #e1f7fa;
  border: 1px solid #c9edf2;
  border-radius: 50%;
}

.demo-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
}

.demo-kicker {
  width: max-content;
  margin: 0 auto 10px;
  padding: 6px 16px;
  color: #2d8198;
  background: #ddf5f8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1;
  text-transform: uppercase;
}

.demo-section-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.demo-section-head h2,
.demo-process-copy h2,
.demo-faq-head h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
}

.demo-section-head p {
  margin: 0;
  color: #607d91;
  font-size: 15px;
  line-height: 1.5;
}

/* Hero */

.demo-hero {
  position: relative;
  padding: 44px 0 56px;
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.95), transparent 32%),
    radial-gradient(circle at 92% 80%, rgba(8,180,194,.10), transparent 36%),
    linear-gradient(110deg, #effafe 0%, #f8fcfd 48%, #e6f6f9 100%);
}

.demo-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

.demo-hero-copy {
  padding-top: 18px;
}

.demo-eyebrow {
  margin-bottom: 14px;
}

.demo-hero h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(38px, 3.6vw, 54px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.06;
}

.demo-hero h1 span {
  display: block;
  color: var(--cyan);
}

.demo-hero-lead {
  max-width: 560px;
  margin: 0 0 26px;
  color: #486d88;
  font-size: 17px;
  line-height: 1.5;
}

.demo-hero-points {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.demo-hero-points li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.demo-hero-points .icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--cyan-dark);
  background: #fff;
  border: 1px solid #cdecf1;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(12,70,103,.06);
  stroke-width: 1.9;
}

.demo-hero-points strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.demo-hero-points span span,
.demo-hero-points li > span {
  color: #688599;
  font-size: 13.5px;
  line-height: 1.4;
}

.demo-expert {
  max-width: 560px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: rgba(255,255,255,.85);
  border: 1px solid #dcecef;
  border-radius: 12px;
}

.demo-expert img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cdecf1;
}

.demo-expert p {
  margin: 0;
  color: #607d91;
  font-size: 13px;
  line-height: 1.45;
}

.demo-expert strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 14px;
}

.demo-expert a {
  color: #057f9b;
  font-weight: 700;
  white-space: nowrap;
}

.demo-expert p > span {
  white-space: nowrap;
}

.demo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.demo-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
}

.demo-trust .icon {
  width: 18px;
  height: 18px;
  color: var(--cyan-dark);
}

/* Formulaire */

.demo-form-card {
  position: relative;
  padding: 26px 28px 22px;
  background: #fff;
  border: 1px solid #d8eaef;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(12,70,103,.12);
  scroll-margin-top: 110px;
}

.demo-form-head h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.5px;
}

.demo-form-head p {
  margin: 0 0 18px;
  color: #688499;
  font-size: 12.5px;
}

.required {
  color: #b3264f;
}

.demo-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.demo-fieldset legend,
.demo-field label {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  color: #335f7b;
  font-size: 12.5px;
  font-weight: 700;
}

.demo-optional {
  color: #8aa0af;
  font-weight: 500;
}

.demo-profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.demo-profile {
  position: relative;
  display: block;
  cursor: pointer;
}

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

.demo-profile-card {
  min-height: 62px;
  height: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid #d3e4e9;
  border-radius: 10px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.demo-profile-card .icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  color: var(--cyan-dark);
  background: #ecf9fb;
  border-radius: 50%;
  stroke-width: 1.9;
}

.demo-profile-card strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
}

.demo-profile-card small {
  display: block;
  margin-top: 2px;
  color: #7891a2;
  font-size: 11px;
  line-height: 1.3;
}

.demo-profile:hover .demo-profile-card {
  border-color: #9fd6df;
}

.demo-profile input:focus-visible + .demo-profile-card {
  box-shadow: 0 0 0 3px rgba(8,180,194,.22);
}

.demo-profile input:checked + .demo-profile-card {
  background: #eefafc;
  border-color: var(--cyan-dark);
  box-shadow: inset 0 0 0 1px var(--cyan-dark);
}

.demo-profile input:checked + .demo-profile-card .icon {
  color: #fff;
  background: var(--cyan-dark);
}

.demo-fieldset.is-invalid .demo-profile-card {
  border-color: #d47a90;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.demo-field {
  min-width: 0;
}

.demo-field-full {
  grid-column: 1 / -1;
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid #cbdde3;
  border-radius: 8px;
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.demo-field select {
  appearance: none;
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23527189' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 11px center / 16px no-repeat;
}

.demo-field textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.45;
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
  color: #98aab6;
}

.demo-field input:hover,
.demo-field select:hover,
.demo-field textarea:hover {
  border-color: #a9cbd3;
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px rgba(8,180,194,.14);
}

.demo-field.is-invalid input,
.demo-field.is-invalid select {
  border-color: #c74965;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-chip {
  position: relative;
  cursor: pointer;
}

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

.demo-chip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #3f6680;
  background: #fff;
  border: 1px solid #cbdde3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.demo-chip:hover span {
  border-color: #9fd6df;
}

.demo-chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(8,180,194,.22);
}

.demo-chip input:checked + span {
  color: #fff;
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
}

.demo-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 14px;
}

.demo-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--cyan-dark);
}

.demo-consent label {
  color: #607f93;
  font-size: 11.5px;
  line-height: 1.45;
}

.demo-consent a,
.demo-patient-note a,
.demo-success a,
.demo-faq-head a {
  color: #167e96;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-consent.is-invalid label {
  color: #a22e4d;
}

.demo-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 9px;
  font-size: 15px;
}

.demo-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: #417289;
  font-size: 12.5px;
  line-height: 1.4;
}

.demo-status.is-error {
  color: #a22e4d;
  font-weight: 600;
}

.demo-patient-note {
  margin: 6px 0 0;
  padding-top: 12px;
  color: #7891a2;
  border-top: 1px solid #e6f0f3;
  font-size: 12px;
  text-align: center;
}

.demo-success {
  padding: 30px 6px 12px;
  text-align: center;
  outline: none;
}

.demo-success[hidden] {
  display: none;
}

.demo-success-icon {
  width: 68px;
  height: 68px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  color: #fff;
  background: var(--cyan-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 8px #e1f7fa;
}

.demo-success-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.demo-success h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 600;
}

.demo-success p {
  max-width: 420px;
  margin: 0 auto 12px;
  color: #607d91;
  font-size: 14px;
  line-height: 1.55;
}

.demo-success .demo-success-alt {
  font-size: 12.5px;
}

.demo-success .button {
  margin-top: 8px;
}

/* Programme */

.demo-agenda {
  padding: 64px 0;
  background: #fff;
}

.demo-agenda-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.demo-agenda-item {
  position: relative;
  padding: 24px 22px 22px;
  background: #fff;
  border: 1px solid #e0eef2;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(12,70,103,.05);
}

.demo-agenda-num {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #e3f1f5;
  font-family: "Poppins", "Poppins Fallback", sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.demo-agenda-item .demo-icon {
  margin-bottom: 16px;
}

.demo-agenda-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  color: #057f9b;
  font-size: 12px;
  font-weight: 700;
}

.demo-agenda-time .icon {
  width: 14px;
  height: 14px;
}

.demo-agenda-item h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
}

.demo-agenda-item p {
  margin: 0;
  color: #657f92;
  font-size: 14px;
  line-height: 1.5;
}

/* Profils */

.demo-audiences {
  padding: 60px 0;
  background:
    radial-gradient(circle at 8% 40%, rgba(8,180,194,.08), transparent 28%),
    linear-gradient(180deg, #effafe, #eaf8fb);
}

.demo-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.demo-audience {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: #fff;
  border: 1px solid #dcecef;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(12,70,103,.05);
}

.demo-audience .demo-icon {
  margin-bottom: 14px;
}

.demo-audience h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 600;
}

.demo-audience ul {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.demo-audience li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  color: #50738a;
  font-size: 14px;
  line-height: 1.45;
}

.demo-audience li .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--cyan-dark);
  stroke-width: 2.4;
}

.demo-audience-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #057f9b;
  font-size: 14px;
  font-weight: 700;
}

.demo-audience-link .icon {
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
}

.demo-audience-link:hover .icon,
.demo-audience-link:focus-visible .icon {
  transform: translateX(3px);
}

/* Déroulé */

.demo-process {
  padding: 64px 0;
  background: #fff;
}

.demo-process-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.demo-process-photo {
  min-height: 420px;
  height: 100%;
  border-radius: 18px;
  background: url("afterclinic-demo-process.jpg") 58% center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(12,70,103,.12);
}

.demo-process-copy .demo-kicker {
  margin-left: 0;
}

.demo-process-copy h2 {
  margin-bottom: 26px;
}

.demo-steps {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, #bfe8ee, #e3f4f7);
}

.demo-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 18px;
}

.demo-step-icon {
  grid-row: span 3;
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cyan-dark);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #bfe8ee;
}

.demo-step-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.demo-step-num {
  color: #057f9b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.demo-step h3 {
  margin: 2px 0 3px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
}

.demo-step p {
  margin: 0;
  color: #657f92;
  font-size: 14px;
  line-height: 1.5;
}

/* FAQ */

.demo-faq {
  padding: 60px 0;
  background: linear-gradient(180deg, #f5fbfd, #eef8fb);
}

.demo-faq-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.demo-faq-head p {
  margin: 0;
  color: #607d91;
  font-size: 15px;
  line-height: 1.55;
}

.demo-faq-list {
  display: grid;
  gap: 10px;
}

.demo-faq-item {
  background: #fff;
  border: 1px solid #dcecef;
  border-radius: 12px;
}

.demo-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.demo-faq-plus {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  background: #e8f8fa;
  border: 1px solid #cfeef2;
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}

.demo-faq-plus::before,
.demo-faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  background: var(--cyan-dark);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.demo-faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.demo-faq-item[open] .demo-faq-plus {
  background: var(--cyan-dark);
  transform: rotate(45deg);
}

.demo-faq-item[open] .demo-faq-plus::before,
.demo-faq-item[open] .demo-faq-plus::after {
  background: #fff;
}

.demo-faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: #607d91;
  font-size: 14px;
  line-height: 1.55;
}

/* CTA final */

.demo-final {
  padding: 50px 0 60px;
  background: #fff;
}

.demo-final-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(8,180,194,.35), transparent 40%),
    linear-gradient(120deg, var(--navy) 0%, #0a4f80 100%);
  border-radius: 18px;
}

.demo-final-card h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -.6px;
}

.demo-final-card p {
  margin: 0;
  color: #cfe6f2;
  font-size: 15px;
}

.demo-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

.demo-final-actions .button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}

/* Responsive */

@media (max-width: 1100px) {
  .demo-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  }

  .demo-agenda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .demo-hero {
    padding: 28px 0 40px;
  }

  .demo-hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .demo-hero-copy {
    padding-top: 0;
    text-align: center;
  }

  .demo-eyebrow {
    margin-inline: auto;
  }

  .demo-hero-lead {
    margin-inline: auto;
  }

  .demo-hero-points,
  .demo-expert {
    display: none;
  }

  .demo-trust {
    justify-content: center;
    margin-top: 16px;
  }

  .demo-form-card {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
    scroll-margin-top: 90px;
  }

  .demo-audience-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }

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

  .demo-process-photo {
    min-height: 260px;
  }

  .demo-faq-inner {
    grid-template-columns: 1fr;
  }

  .demo-final-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px;
  }
}

@media (max-width: 600px) {
  .demo-hero h1 {
    font-size: clamp(32px, 9.4vw, 40px);
    letter-spacing: -1.3px;
  }

  .demo-hero-lead {
    margin-bottom: 4px;
    font-size: 15.5px;
  }

  .demo-form-card {
    padding: 20px 16px 18px;
    border-radius: 14px;
  }

  .demo-form-head h2 {
    font-size: 20px;
  }

  .demo-profiles {
    gap: 8px;
  }

  .demo-profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 12px 8px;
    text-align: center;
  }

  .demo-profile-card small {
    display: none;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .demo-field input,
  .demo-field select,
  .demo-field textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .demo-agenda,
  .demo-audiences,
  .demo-process,
  .demo-faq {
    padding: 44px 0;
  }

  .demo-agenda-grid {
    grid-template-columns: 1fr;
  }

  .demo-section-head {
    margin-bottom: 22px;
  }

  .demo-section-head p {
    font-size: 14px;
  }

  .demo-process-photo {
    min-height: 210px;
  }

  .demo-faq-item summary {
    padding: 14px 15px;
    font-size: 14.5px;
  }

  .demo-final {
    padding: 34px 0 44px;
  }

  .demo-final-actions,
  .demo-final-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-profile-card,
  .demo-chip span,
  .demo-faq-plus,
  .demo-audience-link .icon {
    transition: none;
  }
}
