/* Accueil : partie droite, scoped to .duo-home so the legacy themes stay untouched. */
.duo-home {
  --home-ink: #1f2d4f;
  --home-text: #4a5568;
  --home-pink: #c2006b;
  /* Same brand tones as the desktop spine: white text stays >= 4.5:1. */
  --home-gradient: linear-gradient(135deg, #c8007a, #6d3fa6 55%, #1f78c8);
  box-sizing: border-box;
  padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px) 48px;
  color: var(--home-text);
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  container-type: inline-size;
}

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

.duo-home p { margin: 0 0 14px; color: var(--home-text); }
.duo-home strong { color: var(--home-ink); font-weight: 700; }
.duo-home sup { font-size: .7em; }

.duo-home p a {
  color: var(--home-pink);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.duo-home a:focus-visible {
  /* The legacy theme removes outlines with !important. */
  outline: 3px solid #6d3fa6 !important;
  outline-offset: 3px;
}

/* Intro */
.duo-home .duo-home__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fde7f2;
  color: var(--home-pink);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.duo-home__eyebrow sup { text-transform: none; }

.duo-home .duo-home__title {
  margin: 0 0 18px;
  color: var(--home-ink);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -.02em;
}

.duo-home__intro p:not(.duo-home__eyebrow) { font-size: 17px; }

/* Key figures */
.duo-home .duo-home__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 44px;
  padding: 0;
  list-style: none;
}

.duo-home__figures li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Top-aligned so the numbers line up even when a label wraps. */
  justify-content: flex-start;
  min-height: 104px;
  margin: 0;
  padding: 24px 10px 16px;
  border: 1px solid #eceff7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgb(31 45 79 / 6%);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.duo-home .duo-home__figures a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

/* Stretched link: the whole tile is clickable. */
.duo-home__figures a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.duo-home .duo-home__figures strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  background: var(--home-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.duo-home__figures span {
  margin-top: 6px;
  color: #5b6478;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}

/* Sections */
.duo-home__section { margin: 0 0 44px; }

.duo-home .duo-home__heading {
  margin: 0 0 18px;
  color: var(--home-ink);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}

.duo-home__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.duo-home__section-head .duo-home__heading { margin: 0; }

/* How it works */
.duo-home .duo-home__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duo-home__steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 14px;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #f6f7fc;
}

.duo-home__step-num {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--home-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.duo-home .duo-home__steps h3 {
  margin: 4px 0 2px;
  color: var(--home-ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.duo-home .duo-home__steps p { margin: 0; font-size: 14px; line-height: 1.55; }

/* Précisions d'utilisation, sous les trois étapes */
.duo-home .duo-home__usage { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.duo-home .duo-home__steps + .duo-home__usage { margin-top: 20px; }

/* Promise */
.duo-home__promise {
  position: relative;
  overflow: hidden;
  margin: 0 0 44px;
  padding: 28px 28px 24px;
  border-radius: 22px;
  background: var(--home-gradient);
  box-shadow: 0 14px 34px rgb(109 63 166 / 25%);
}

/* Echo of the cover rings. */
.duo-home__promise::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgb(255 255 255 / 6%);
  pointer-events: none;
}

.duo-home .duo-home__promise p {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 600;
}

.duo-home .duo-home__promise strong {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgb(255 255 255 / 55%);
  text-underline-offset: 4px;
}

.duo-home .duo-home__promise .duo-home__promise-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

/* Offer teasers: three random partners, text only */
.duo-home .duo-home__teasers {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duo-home__teasers li { margin: 0; }

.duo-home .duo-home__teasers a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  overflow: hidden;
  padding: 16px 18px 16px 22px;
  border: 1px solid #eceff7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgb(31 45 79 / 6%);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

/* Brand filament, same tones as the desktop spine. */
.duo-home__teasers a::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #c8007a, #6d3fa6 50%, #1f78c8);
}

.duo-home__teaser-meta {
  grid-column: 1;
  color: var(--home-pink);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.duo-home .duo-home__teasers strong {
  grid-column: 1;
  margin-top: 2px;
  color: var(--home-ink);
  font-size: 17px;
  line-height: 1.3;
}

.duo-home__teaser-offer {
  grid-column: 1;
  margin-top: 4px;
  color: var(--home-text);
  font-size: 15px;
  line-height: 1.5;
}

.duo-home__teaser-arrow {
  grid-column: 2;
  grid-row: 1 / span 3;
  color: var(--home-pink);
  transition: transform 180ms ease;
}

.duo-home .duo-home__teasers-note {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 13px;
}

/* Closing (the legacy themes shrink `.about p`). */
.duo-home .duo-home__closing p { font-size: 16px; }

.duo-home .duo-home__closing .duo-home__signature {
  margin: 22px 0 28px;
  color: var(--home-ink);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  font-style: italic;
  text-align: right;
}

.duo-home__signature span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
}

.duo-home__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
}

/* Same primary button as the cover. */
.duo-home .duo-home__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  max-width: 100%;
  padding: 8px 20px 8px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e3007e, #c2006b);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 0 rgb(98 0 54 / 45%), 0 14px 30px rgb(227 0 126 / 22%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.duo-home__price {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(80 0 44 / 32%);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.duo-home .duo-home__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--home-pink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .duo-home__figures li:has(a):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgb(31 45 79 / 12%);
  }
  .duo-home .duo-home__teasers a:hover {
    border-color: #ecc9df;
    box-shadow: 0 10px 24px rgb(31 45 79 / 12%);
  }
  .duo-home__teasers a:hover .duo-home__teaser-arrow { transform: translateX(4px); }
  .duo-home .duo-home__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 rgb(98 0 54 / 45%), 0 18px 34px rgb(227 0 126 / 30%);
  }
  .duo-home .duo-home__more:hover { text-decoration: underline; text-underline-offset: 4px; }
}

@container (min-width: 480px) {
  .duo-home .duo-home__figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@container (min-width: 540px) {
  .duo-home .duo-home__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duo-home__steps li { display: block; padding: 20px 18px; }
  .duo-home__step-num { margin-bottom: 12px; }
}

@container (max-width: 420px) {
  .duo-home .duo-home__figures strong { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .duo-home *,
  .duo-home *::before,
  .duo-home *::after { transition: none !important; }
}
