html,
body {
  margin: 0;
  width: 100%;
}

.medecin-page {
  width: 100%;
  background: #ffffff;
}

.mdf-section {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 25px;
}

.mdf-hero {
  min-height: 550px;
  border-radius: 25px;
  corner-shape: round;
  overflow: hidden;
  background: #184793;
  background-image: url("../images/medecindefamille/branding_background.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 32px;
  color: #ffffff;
}

.mdf-hero-content {
  width: 60%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0px 0 0px 72px;
}

.mdf-hero-logo {
  width: clamp(145px, 16vw, 205px);
  height: auto;
  margin-bottom: 34px;
}

.mdf-hero-title {
  margin: 0 0 26px 0;
  /* max-width: 560px; */
  color: #f2f5fb;
  font-size: clamp(2.3rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
}

.mdf-hero-lead-title {
  margin: 0 0 8px 0;
  padding: 30px 0 0px 0;
  /* max-width: 560px; */
  font-size: clamp(1.1rem, 1.7vw, 1rem);
  font-weight: 700;
  line-height: 1.25;
  color: #eef3ff;
}

.mdf-hero-description {
  margin: 0;
  padding: 0px 0 30px 0;
  /* max-width: 590px; */
  font-size: clamp(0.9rem, 1.15vw, 0.6rem);
  line-height: 1.45;
  color: rgba(234, 242, 255, 0.95);
}

.mdf-hero-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin-top: 44px;
  padding: 18px 42px;
  border-radius: 18px;
  background: #ffffff;
  color: #1e64ae;
  font-size: clamp(1.15rem, 1.2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mdf-hero-cta:hover,
.mdf-hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.mdf-hero-cta-note {
  margin: 14px 0 0 0;
  max-width: 560px;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(237, 244, 255, 0.88);
}

.mdf-hero-visual {
  width: 40%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-right: 46px;
}

.mdf-hero-doctor {
  /* width: min(570px, 100%); */

  height: 500px;
  display: block;
}

.mdf-section-heading-wrap {
  padding-top: 34px;
  padding-bottom: 30px;
}

.mdf-section-heading {
  padding: 30px 0 40px 50px;
}

.mdf-eyebrow {
  margin: 0 0 8px 0;
  color: #1e64ae;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 400;
}

.mdf-section-title {
  margin: 0;
  color: #000000;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.4vw, 3rem);
  line-height: 1.04;
  font-weight: 700;
}

.mdf-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 34px 50px 12px;
}

.mdf-trust-card {
  text-align: center;
  max-width: 290px;
  margin: 0 auto;
}

.mdf-trust-icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}

.mdf-trust-title {
  margin: 0 0 10px 0;
  color: #111111;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
}

.mdf-trust-text {
  margin: 0;
  color: #2b2b2b;
  font-size: 0.95rem;
  line-height: 1.35;
}

.mdf-trust-note {
  margin: 50px 0 0;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
  color: #111111;
}

.mdf-devices-box {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 36px 80px;
  border-radius: 50px;
  background: #e9f2fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.mdf-devices-content {
  width: 58%;
}

.mdf-devices-title {
  margin: 0 0 14px;
  color: #101010;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.2vw, 2.2rem);
  line-height: 1.1;
  font-weight: 700;
}

.mdf-devices-description {
  margin: 0 0 22px;
  /* max-width: 520px; */
  color: #2a2a2a;
  font-size: 0.94rem;
  line-height: 1.45;
}

.mdf-devices-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mdf-devices-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #101010;
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 600;
}

.mdf-devices-item i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}

.mdf-devices-visual {
  width: 42%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mdf-devices-image {
  width: min(400px, 100%);
  height: auto;
  display: block;
}

.mdf-process-layout {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.mdf-process-steps {
  width: 58%;
  display: grid;
  gap: 18px;
}

.mdf-process-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mdf-process-number {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #174b84;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.mdf-process-copy {
  min-width: 0;
}

.mdf-process-title {
  margin: 0 0 4px;
  color: #111111;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 700;
}

.mdf-process-text {
  margin: 0;
  color: #2a2a2a;
  font-size: 1rem;
  line-height: 1.35;
}

.mdf-process-visual {
  width: 42%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mdf-process-image {
  width: min(420px, 100%);
  height: auto;
  display: block;
}

.mdf-bonus-box {
  width: 100%;
  max-width: 900px;
  margin: 50px auto 0;
  padding: 28px 38px;
  border-radius: 25px;
  background: #1c4f8d;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #ffffff;
}

.mdf-bonus-icon-wrap {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  color: #1c4f8d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 2px;
}

.mdf-bonus-content {
  min-width: 0;
}

.mdf-bonus-eyebrow {
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.2;
  font-style: italic;
  color: rgba(255, 255, 255, 0.93);
}

.mdf-bonus-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 700;
}

.mdf-bonus-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.5;
}

.mdf-local-section {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  background: #e9f2fb;
}

.mdf-local-inner {
  width: 100%;
}

.mdf-local-heading {
  margin-bottom: 0;
}

.mdf-local-layout {
  padding: 8px 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.mdf-local-visual {
  width: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdf-local-image {
  width: min(520px, 100%);
  height: auto;
  display: block;
}

.mdf-local-content {
  width: 54%;
}

.mdf-local-title {
  margin: 0 0 8px;
  color: #111111;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 700;
}

.mdf-local-text {
  margin: 0 0 20px;
  color: #222222;
  font-size: 1rem;
  line-height: 1.35;
}

.mdf-local-text:last-child {
  margin-bottom: 0;
}

.mdf-local-list,
.mdf-local-list li {
  color: #000000;
}

.mdf-local-list {
  margin: 0;
  padding-left: 22px;
}

.mdf-final-section {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  background: #174b84;
}

.mdf-final-inner {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mdf-final-heading {
  margin-bottom: 0;
}

.mdf-final-section .mdf-eyebrow {
  margin-bottom: 10px;
  color: #a8cbf0;
}

.mdf-final-section .mdf-section-title {
  color: #ffffff;
}

.mdf-final-text {
  margin: 0;
  max-width: 860px;
  padding-top: 30px;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.45;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.mdf-final-section .mdf-hero-cta {
  margin-left: auto;
  margin-right: auto;
}

.mdf-final-note {
  margin: 16px 0 0;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  padding-top: 30px;
}

.mdf-final-note a {
  color: #a8cbf0;
  font-weight: 600;
  text-decoration: underline;
}

.mdf-final-note a:hover,
.mdf-final-note a:focus-visible {
  color: #ffffff;
}

.mdf-final-social {
  margin: 18px 0 0;
  text-align: center;
}

.mdf-final-social .list-inline-item {
  margin: 0 6px;
}

.mdf-final-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mdf-final-social a:hover,
.mdf-final-social a:focus-visible {
  transform: translateY(-2px);
  opacity: 0.8;
}

.mdf-final-social img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.mdf-testimonials-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mdf-testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(20, 76, 142, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 215px;
}

.mdf-testimonial-quote {
  margin: 0;
  color: #333333;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.55;
}

.mdf-testimonial-author-info {
  margin-top: auto;
  padding-top: 14px;
  text-align: right;
}

.mdf-testimonial-author {
  margin: 0 0 4px;
  color: #2e7eed;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
}

.mdf-testimonial-title {
  margin: 0;
  color: #666666;
  font-size: 0.84rem;
  line-height: 1.3;
}

.stars-rating {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  margin-bottom: 12px;
}

.star {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-color: #fac63e;
  mask: url("../images/icons/star.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("../images/icons/star.svg") no-repeat center;
  -webkit-mask-size: contain;
}

@media (max-width: 1280px) {
  .mdf-hero {
    min-height: 580px;
    gap: 20px;
  }

  .mdf-hero-content {
    padding: 44px 0 44px 44px;
  }

  .mdf-hero-visual {
    padding-right: 18px;
  }
}

@media (max-width: 992px) {
  .mdf-section {
    padding: 16px;
  }

  .mdf-hero {
    min-height: auto;
    border-radius: 28px;
  }

  .mdf-hero-content {
    width: 100%;
    padding: 36px 30px 34px;
  }

  .mdf-hero-visual {
    display: none;
  }

  .mdf-hero-title,
  .mdf-hero-lead-title,
  .mdf-hero-description,
  .mdf-hero-cta-note {
    max-width: 100%;
  }

  .mdf-section-heading {
    padding-left: 24px;
  }

  .mdf-eyebrow {
    font-size: 0.8rem;
  }

  .mdf-section-title {
    font-size: clamp(2.1rem, 8vw, 2rem);
  }

  .mdf-trust-grid {
    padding: 26px 24px 8px;
    gap: 16px;
  }

  .mdf-trust-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 14px;
  }

  .mdf-trust-title {
    font-size: 1rem;
  }

  .mdf-trust-text {
    font-size: 0.9rem;
  }

  .mdf-trust-note {
    margin-top: 20px;
    font-size: 0.92rem;
  }

  .mdf-devices-box {
    /* margin: 24px 24px 0; */
    padding: 28px;
    border-radius: 36px;
    /* flex-direction: column; */
    align-items: center;
    gap: 22px;
  }

  .mdf-devices-visual {
    order: -1;
    width: 100%;
  }

  .mdf-devices-content {
    width: 100%;
  }

  .mdf-devices-title {
    font-size: clamp(1.7rem, 6.4vw, 2rem);
  }

  .mdf-devices-description {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .mdf-devices-item {
    font-size: 0.94rem;
  }

  .mdf-devices-image {
    width: min(360px, 80%);
  }

  .mdf-process-layout {
    padding: 0 8px;
    gap: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .mdf-process-visual {
    order: -1;
    width: 100%;
  }

  .mdf-process-image {
    width: min(360px, 78%);
  }

  .mdf-process-steps {
    width: 100%;
    gap: 16px;
  }

  .mdf-process-title {
    font-size: 1.1rem;
  }

  .mdf-process-text {
    font-size: 0.9rem;
  }

  .mdf-bonus-box {
    padding: 24px 26px;
    gap: 14px;
  }

  .mdf-bonus-icon-wrap {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 0.95rem;
  }

  .mdf-bonus-eyebrow {
    font-size: 1rem;
  }

  .mdf-bonus-title {
    font-size: 1.1rem;
  }

  .mdf-bonus-text {
    font-size: 0.9rem;
  }

  .mdf-local-section {
    padding: 0;
  }

  .mdf-local-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .mdf-local-visual {
    order: -1;
    width: 100%;
  }

  .mdf-local-image {
    width: min(430px, 82%);
  }

  .mdf-local-content {
    width: 100%;
    max-width: 600px;
    padding-top: 30px;
    margin: 0 auto;
  }

  .mdf-local-title {
    font-size: 1.08rem;
  }

  .mdf-local-text {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .mdf-final-section {
    margin-top: 0;
    padding: 0;
  }

  .mdf-final-text {
    max-width: 780px;
    font-size: 1rem;
    padding-top: 15px;
  }

  .mdf-testimonials-grid {
    padding: 0 8px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .mdf-hero {
    border-radius: 22px;
  }

  .mdf-hero-content {
    padding: 28px 20px 24px;
  }

  .mdf-hero-logo {
    margin-bottom: 22px;
  }

  .mdf-hero-title {
    margin-bottom: 18px;
    font-size: clamp(1.95rem, 9vw, 2.5rem);
  }

  .mdf-hero-lead-title {
    font-size: 1rem;
  }

  .mdf-hero-description {
    font-size: 0.9rem;
  }

  .mdf-hero-cta {
    margin-top: 28px;
    width: 100%;
    padding: 15px 18px;
    font-size: 1.25rem;
  }

  .mdf-hero-cta-note {
    margin-top: 10px;
    font-size: 0.7rem;
  }

  .mdf-trust-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 24px 8px 2px;
  }

  .mdf-trust-card {
    padding-top: 20px;
    max-width: 320px;
  }

  .mdf-trust-icon {
    width: 80px;
    height: 80px;
  }

  .mdf-trust-title {
    font-size: 1rem;
  }

  .mdf-trust-text {
    font-size: 0.88rem;
  }

  .mdf-trust-note {
    margin-top: 18px;
    font-size: 0.9rem;
  }

  .mdf-devices-box {
    /* margin: 20px 8px 0; */
    flex-direction: column;
    padding: 20px 18px 22px;
    border-radius: 28px;
    gap: 16px;
  }

  .mdf-devices-title {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }

  .mdf-devices-description {
    font-size: 0.86rem;
    margin-bottom: 14px;
  }

  .mdf-devices-list {
    gap: 8px;
  }

  .mdf-devices-item {
    gap: 8px;
    font-size: 0.89rem;
  }

  .mdf-devices-item i {
    width: 16px;
    font-size: 0.92rem;
  }

  .mdf-devices-image {
    width: min(300px, 82%);
  }

  .mdf-process-layout {
    padding: 0;
    gap: 24px;
  }

  .mdf-process-image {
    width: min(260px, 74%);
  }

  .mdf-process-step {
    gap: 10px;
  }

  .mdf-process-number {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .mdf-process-title {
    font-size: 1rem;
  }

  .mdf-process-text {
    font-size: 0.86rem;
  }

  .mdf-bonus-box {
    margin-top: 40px;
    padding: 18px 16px;
    gap: 12px;
    border-radius: 25px;
  }

  .mdf-bonus-icon-wrap {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 0.88rem;
  }

  .mdf-bonus-eyebrow {
    font-size: 0.96rem;
    margin-bottom: 4px;
  }

  .mdf-bonus-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .mdf-bonus-text {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .mdf-local-section {
    margin-top: 0;
    padding: 0;
  }

  .mdf-local-layout {
    gap: 18px;
  }

  .mdf-local-image {
    width: min(330px, 88%);
  }

  .mdf-local-heading {
    margin-bottom: 18px;
  }

  .mdf-local-title {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .mdf-local-text {
    font-size: 0.86rem;
    margin-bottom: 12px;
  }

  .mdf-final-section {
    margin-top: 0;
    padding: 0;
  }

  .mdf-final-text {
    font-size: 0.95rem;
  }

  .mdf-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 0 10px;
  }

  .mdf-testimonial-card {
    min-height: auto;
    padding: 18px 16px;
  }

  .mdf-testimonial-quote {
    font-size: 0.9rem;
  }

  .mdf-testimonials-grid .mdf-testimonial-card:nth-child(n + 4) {
    display: none;
  }
}