/* Pages MySoftphone : mêmes fonds, couleurs, cadres et repères que le site. */
.mp-page {
  --mp-blue: #008be2;
  --mp-ink: #15191d;
  --mp-muted: #4c5864;
  --mp-radius: 20px;
  color: var(--mp-ink);
  font-family: "Open Sans", sans-serif;
}

.mp-shell {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.mp-hero {
  padding: 140px 0 64px;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), url("images/NosSolutions2.png") center / cover;
}

.mp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.mp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.mp-hero-copy {
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: 26px 32px;
  background: rgba(0, 0, 0, .25);
  border-radius: var(--mp-radius);
  text-align: center;
}

.mp-hero .mp-breadcrumb,
.mp-hero .mp-actions {
  justify-content: center;
}

.mp-hero-copy > p:not(.mp-eyebrow) {
  max-width: 800px;
  margin-inline: auto;
}

.mp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}

.mp-breadcrumb a {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.mp-breadcrumb a:hover {
  text-decoration: underline;
}

.mp-page .mp-eyebrow,
.mp-overview-links .mp-eyebrow {
  color: var(--mp-blue, #008be2);
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.mp-page h1,
.mp-page h2,
.mp-overview-links h2 {
  margin: 0 0 24px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.mp-page h1 {
  font-size: clamp(2rem, 3.45vw, 3rem);
}

.mp-page h2,
.mp-overview-links h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.mp-page h3,
.mp-overview-links h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.mp-page p,
.mp-page li,
.mp-overview-links p {
  font-size: 1rem;
  line-height: 1.65;
}

.mp-page p {
  margin: 0 0 20px;
}

.mp-page p:last-child,
.mp-overview-links p:last-child {
  margin-bottom: 0;
}

.mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.mp-button,
.mp-page a.mp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 30px;
  background: #007fd1;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease;
}

.mp-button::after {
  content: "→";
  font-size: 1.35em;
  line-height: 1;
}

.mp-page .mp-hero a.mp-button,
.mp-page .mp-blue a.mp-button {
  color: #111;
  background: #f2f2f2;
}

.mp-button.mp-button-outline,
.mp-page a.mp-button.mp-button-outline {
  color: inherit;
  border-color: #8695a0;
  background: transparent;
}

.mp-button:hover {
  transform: translateY(-2px);
}

.mp-button:active {
  transform: scale(.98);
}

.mp-button:focus-visible,
.mp-link-card:focus-visible,
.mp-page a:focus-visible,
.mp-page summary:focus-visible {
  outline: 3px solid #36a9ff;
  outline-offset: 5px;
}

.mp-screen {
  margin: 0;
  min-width: 0;
}

.mp-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.mp-hero .mp-screen {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding: 0;
}

.mp-hero .mp-hero-composite-tall {
  max-width: 660px;
}

.mp-hero .mp-hero-illustration {
  max-width: 840px;
}

.mp-hero .platform-tilted > .platform-surface {
  transform: none;
}

.mp-hero .platform-surface {
  box-shadow: 0 3px 0 #afbac5, 0 24px 50px rgba(0, 14, 29, .4);
}

.mp-device-scene {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 6% 4% 0;
}

.mp-device-scene img {
  display: block;
  width: 100%;
  height: auto;
}

.mp-device-mobile {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  padding: 5px;
  border: 1px solid #7c8a95;
  border-radius: 28px;
  background: #101e28;
  box-shadow: 0 14px 30px rgba(0, 20, 36, .35);
}

.mp-device-mobile img {
  border-radius: 22px;
}

/* La source de <picture> change avec le format, sans recadrer l’interface. */
.mp-responsive-hero picture {
  display: block;
}

@media (min-width: 1200px) {
  .mp-hero .mp-responsive-with-companion {
    position: relative;
    padding: 0 6% 4% 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .mp-hero .mp-responsive-hero {
    max-width: 780px;
  }
}

@media (max-width: 1199px) {
  .mp-responsive-hero .mp-device-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .mp-hero .mp-responsive-hero {
    max-width: 300px;
  }

  .mp-responsive-hero > .platform-surface {
    border-radius: 26px;
  }
}

/* Sur les grands écrans, donner la majorité de la largeur au visuel.
   En dessous, conserver la composition verticale et ses captures natives. */
@media (min-width: 1440px) {
  .mp-hero > .mp-shell {
    width: min(1600px, calc(100% - 80px));
  }

  .mp-hero-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(32px, 2.5vw, 48px);
  }

  .mp-hero-copy {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding: 26px 28px;
    text-align: left;
  }

  .mp-hero h1 {
    font-size: clamp(2.5rem, 2.8vw, 3rem);
  }

  .mp-hero-copy > p:not(.mp-eyebrow) {
    max-width: none;
    margin-inline: 0;
  }

  .mp-hero .mp-breadcrumb,
  .mp-hero .mp-actions {
    justify-content: flex-start;
  }

  .mp-hero .mp-actions {
    column-gap: 24px;
  }

  .mp-hero .mp-responsive-hero {
    max-width: none;
  }
}

.mp-section,
.mp-overview-links {
  padding: 80px 0;
}

.mp-soft {
  background: #f2f2f2;
}

.mp-blue {
  color: white;
  background: linear-gradient(120deg, #001e2c, #006cb4);
}

.mp-intro {
  max-width: 860px;
  margin-bottom: 36px;
}

.mp-intro.mp-centered {
  margin-inline: auto;
  text-align: center;
}

.mp-intro > p:not(.mp-eyebrow),
.mp-card > p,
.mp-link-card > p {
  color: var(--mp-muted, #4c5864);
}

.mp-blue .mp-intro > p:not(.mp-eyebrow),
.mp-blue .mp-lead {
  color: #f0f7fc;
}

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

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

.mp-stack {
  display: grid;
  gap: 18px;
}

.mp-stack .mp-card {
  padding: 24px 28px;
}

.mp-stack h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.mp-card,
.mp-link-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid #e3e8ec;
  border-radius: var(--mp-radius, 20px);
  background: white;
  color: #15191d;
}

.mp-card .mp-icon,
.mp-link-card .mp-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  color: #008be2;
}

.mp-card .mp-number {
  display: block;
  margin: 0 0 18px;
  color: #008be2;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.mp-link-card,
.mp-page a.mp-link-card {
  display: flex;
  flex-direction: column;
  color: #15191d;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.mp-link-card:hover {
  border-color: #008be2;
  transform: translateY(-3px);
}

.mp-link-card > p {
  margin: 0 0 26px;
}

.mp-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  color: #0078c6;
  font-size: .95rem;
  font-weight: 700;
}

.mp-card-link span {
  font-size: 1.4rem;
}

.mp-feature-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.mp-feature-list li {
  position: relative;
  padding-left: 28px;
}

.mp-feature-list li::before {
  position: absolute;
  left: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #008be2;
  content: "";
}

.mp-split + .mp-grid {
  margin-top: 40px;
}

.mp-mobile-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: 80px;
}

.mp-phone {
  width: min(100%, 250px);
  margin: 0 auto;
  padding: 6px;
  border: 1px solid #7c8a95;
  border-radius: 30px;
  background: #101e28;
  box-shadow: 0 14px 30px rgba(0, 20, 36, .18);
}

.mp-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.mp-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0;
}

.mp-providers span {
  padding: 15px 24px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}

.mp-caption {
  margin-top: 20px !important;
  font-size: .9rem !important;
  color: #596775;
}

.mp-blue .mp-caption {
  color: #daecf8;
}

.mp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
}

.mp-related a {
  color: #0079c7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mp-blue .mp-related a {
  color: white;
}

.mp-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border: 1px solid #dce3e9;
  border-radius: 16px;
}

.mp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  line-height: 1.5;
}

.mp-table th,
.mp-table td {
  padding: 20px 24px;
  border-bottom: 1px solid #dce3e9;
}

.mp-table th {
  background: #eef5fa;
}

.mp-table tr:last-child td {
  border-bottom: 0;
}

.mp-page .mp-faq {
  margin-top: 32px;
}

.mp-faq details {
  padding: 22px 26px;
  margin-top: 14px;
  border: 1px solid #e2e8ee;
  border-radius: 16px;
  background: white;
  color: #15191d;
}

.mp-faq summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.mp-faq details p {
  margin: 20px 0 0;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .mp-shell { max-width: 940px; }
  .mp-split { gap: 32px; }
  .mp-card, .mp-link-card { padding: 26px; }
}

@media (max-width: 991px) {
  .mp-shell { max-width: 720px; }
  .mp-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .mp-hero { padding-top: 140px; }
  .mp-grid { grid-template-columns: minmax(0, 1fr); }
  .mp-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-mobile-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); gap: 32px; }
  .mp-section, .mp-overview-links { padding: 60px 0; }
  .mp-split .mp-screen { order: 1; }
}

@media (max-width: 767px) {
  .mp-shell { max-width: 540px; }
  .mp-hero { padding-top: 120px; }
  .mp-hero-copy { padding: 24px 18px; text-align: left; }
  .mp-hero .mp-breadcrumb, .mp-hero .mp-actions { justify-content: flex-start; }
  .mp-device-mobile { width: 27%; padding: 3px; border-radius: 15px; }
  .mp-device-mobile img { border-radius: 11px; }
  .mp-grid-two, .mp-mobile-layout { grid-template-columns: minmax(0, 1fr); }
  .mp-card, .mp-link-card { padding: 28px; }
  .mp-actions { gap: 14px; }
  .mp-button, .mp-page a.mp-button { padding-inline: 20px; letter-spacing: .25px; }
  .mp-table th, .mp-table td { padding: 16px; font-size: .9rem; }
}

@media (max-width: 575px) {
  .mp-shell { max-width: 340px; }
  .mp-section, .mp-overview-links { padding: 48px 0; }
  .mp-phone { max-width: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-button, .mp-link-card { transition: none; transform: none !important; }
}
