/*
 * Four readings of the home page, one per reference site. Same brand (ink, orange, Instrument Sans),
 * same contents and interface visuals; the composition, the shapes and the type treatment change.
 * Maquette only: this file is loaded by the variant pages alone.
 */
.v .ui,
.v .browser,
.v .phone__screen {
  --r-lg: 8px;
  --r-md: 6px;
  --r-sm: 4px;
}

/* ================= A · Finex / Finmigo: soft panels, round cards, the app in a phone ================= */
.v-a {
  --r-lg: 22px;
  --r-md: 14px;
  --muted: #f1f2f0;
  background: #f6f7f5;
}
.v-a .header {
  background: rgba(246, 247, 245, 0.92);
  border-bottom-color: transparent;
}
.v-a .btn {
  border-radius: 13px;
}
.v-a .display {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
}
.a-h1 {
  font-size: clamp(2.6rem, 5.3vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 1.02;
  text-wrap: balance;
}
.a-h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}
.a-h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.a-hero {
  padding-block: clamp(24px, 3.4vw, 48px) clamp(40px, 5vw, 72px);
}
.a-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}
.a-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-block: 28px 8px;
  min-width: 0;
}
.a-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}
.a-proof__stack {
  display: flex;
  flex: none;
}
.a-proof__stack img {
  width: 48px;
  height: 48px;
  margin-left: -13px;
  border: 3px solid #f6f7f5;
  border-radius: 50%;
  object-fit: cover;
}
.a-proof__stack img:first-child {
  margin-left: 0;
}
.a-proof__text {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
  font-size: 14.5px;
  color: var(--ink-3);
}
.a-proof__text b {
  font-size: 17px;
  color: var(--ink);
}
.a-note {
  max-width: 40ch;
  font-size: 15px;
  color: var(--ink-2);
}
.a-panel {
  position: relative;
  min-height: 600px;
  min-width: 0;
  border-radius: 28px;
  background: #ffe4d6;
}
.a-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  object-position: 60% 22%;
}
.a-float--1 {
  left: -34px;
  bottom: 30%;
  width: 280px;
}
.a-float--2 {
  right: -16px;
  bottom: 38px;
  width: 250px;
}
.a-logos {
  padding-block: 26px;
  border-block: 1px solid var(--line);
}
.a-logos .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
}
.a-loved {
  background: #ffffff;
}
.a-loved .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
}
.a-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 24px;
  margin: 44px 0 0;
}
.a-stats dt {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.a-stats dd {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-3);
}
.a-loved__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
}
.a-loved__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink-2);
}
.a-loved__text .btn {
  align-self: flex-start;
  margin-top: 8px;
}
.a-center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}
.a-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.a-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
}
.a-card > p,
.a-card__copy > p,
.a-card--photo > div > p {
  font-size: 15.5px;
  color: var(--ink-2);
}
.a-card--wide {
  grid-column: span 4;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
}
.a-card__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.a-card__copy .btn {
  align-self: flex-start;
  margin-top: 6px;
}
.a-card__tint {
  display: flex;
  justify-content: center;
  flex: none;
  width: 46%;
  max-height: 360px;
  padding: 26px 16px 0;
  border-radius: 18px;
  background: #ffe4d6;
  overflow: hidden;
}
.a-card__tint--top {
  width: auto;
  max-height: 290px;
  margin: -8px -8px 14px;
}
.a-card--dark {
  background: #111317;
  color: #ffffff;
}
.a-card--dark > p,
.a-card--dark > div > p {
  color: #b9bec7;
}
.a-card--photo {
  position: relative;
  justify-content: flex-end;
  min-height: 390px;
  padding: 0;
}
.a-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.a-card--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 19, 23, 0.9), rgba(17, 19, 23, 0.08) 66%);
}
.a-card--photo > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
}
.a-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffe4d6;
}
.a-icon svg {
  width: 22px;
  height: 22px;
}
.a-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}
.a-chips span {
  padding: 9px 14px;
  border-radius: 999px;
  background: #23272e;
  font-size: 13.5px;
  font-weight: 500;
}
.v-a .section--muted {
  background: #f6f7f5;
}
.v-a .cell,
.v-a .plan {
  border-color: transparent;
}
.v-a .section:not(.section--muted):not(.section--ink) {
  background: #ffffff;
}

/* ================= B · Teamzo: centred, calm, the product in a large window ================= */
.v-b {
  --r-lg: 14px;
  --r-md: 10px;
}
.v-b .header {
  border-bottom-color: transparent;
}
.v-b .btn {
  border-radius: 10px;
}
.v-b .display {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.b-hero {
  padding-block: clamp(40px, 6vw, 84px) 0;
  text-align: center;
}
.b-hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.b-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--muted);
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
}
.b-chip b {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.b-chip svg {
  width: 15px;
  height: 15px;
}
.b-h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6.6vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}
.b-h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.b-hero .lead {
  max-width: 56ch;
}
.b-hero .hero__cta {
  justify-content: center;
}
/* The three-step stage becomes the product shot under the headline. */
.v-b #fonctionnement {
  position: relative;
  padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 64px);
  background: none;
  overflow: hidden;
}
.v-b #fonctionnement::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(1240px, 98vw);
  height: 74%;
  background:
    radial-gradient(58% 60% at 28% 42%, rgba(255, 95, 31, 0.34), transparent 70%),
    radial-gradient(50% 56% at 76% 56%, rgba(255, 180, 143, 0.5), transparent 70%);
  filter: blur(34px);
  transform: translateX(-50%);
}
.v-b #fonctionnement .wrap {
  position: relative;
}
.v-b #fonctionnement .section__head,
.v-b #fonctionnement .steps {
  display: none;
}
.v-b #fonctionnement .how {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1080px;
  margin-inline: auto;
}
.v-b #fonctionnement .browser {
  border-color: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.55),
    0 44px 80px -44px rgba(17, 19, 23, 0.45);
}
.v-b #fonctionnement .caption {
  justify-content: center;
  margin-top: 26px;
}
.b-logos {
  padding-block: 4px 56px;
  text-align: center;
}
.b-logos p {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
}
.b-logos .pay-logos {
  justify-content: center;
  gap: 46px;
}
.b-logos .pay-logos svg {
  height: 30px;
  filter: grayscale(1);
  opacity: 0.72;
}
.b-center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}
.b-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
}
.b-tag svg {
  width: 14px;
  height: 14px;
}
.b-h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}
.v-b .card3,
.v-b .cell:not(.cell--ink):not(.cell--photo) {
  background-color: #fafafb;
  background-image:
    linear-gradient(rgba(228, 230, 235, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(228, 230, 235, 0.5) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 52px 52px;
}
.v-b .cell__visual {
  background: none;
}
.v-b .section--muted {
  background: #ffffff;
}
.v-b .section__head {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}
.v-b .eyebrow .sq {
  border-radius: 50%;
}
.v-b .h3 {
  font-weight: 600;
}

/* ================= C · Sportiix: the poster. Full photo, giant word, site tape, capitals ================= */
.v-c {
  --r-lg: 0px;
  --r-md: 0px;
  --r-sm: 0px;
}
.v-c .announce {
  display: none;
}
.c-hero {
  position: relative;
  height: min(92vh, 860px);
  min-height: 580px;
  background: #111317;
  color: #ffffff;
  overflow: hidden;
}
.c-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}
.c-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(17, 19, 23, 0.62), transparent 46%),
    linear-gradient(to bottom, rgba(17, 19, 23, 0.5), rgba(17, 19, 23, 0.12) 42%, rgba(17, 19, 23, 0.6));
}
.c-hero__nav {
  position: absolute;
  left: 32px;
  top: 64px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 600;
}
.c-hero__nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  text-decoration: none;
}
.c-hero__nav a::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.c-hero__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.c-hero__side {
  position: absolute;
  right: max(32px, 7vw);
  top: 132px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(300px, 72vw);
}
.c-hero__side h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.28;
}
.c-hero__side p {
  font-size: 15px;
  color: #e4e6eb;
}
.c-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 7px;
  border-radius: 999px;
  background: #111317;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  color: #ffffff;
}
.c-pill span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #111317;
}
.c-pill svg {
  width: 16px;
  height: 16px;
}
.c-pill--light {
  background: #ffffff;
  color: #111317;
}
.c-hero__fact {
  font-weight: 600;
}
.c-hero__giant {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.13em;
  z-index: 2;
  margin: 0;
  font-size: 23.5vw;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.8;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  pointer-events: none;
}
.c-ribbon {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 15%;
  z-index: 3;
  background: var(--accent);
  color: #111317;
  box-shadow: 0 12px 30px -12px rgba(17, 19, 23, 0.6);
  transform: rotate(-2.2deg);
  overflow: hidden;
}
.c-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-self: start;
  gap: 9px;
  padding: 5px 12px;
  background: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111317;
}
.c-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #111317;
  transform: rotate(45deg);
}
.c-h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}
.c-intro .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.c-intro__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.c-intro__copy p {
  max-width: 48ch;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-2);
}
.c-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 480px;
  margin: 10px 0 0;
}
.c-stats div {
  padding: 22px 22px 22px 0;
}
.c-stats div:nth-child(odd) {
  border-right: 1px solid #111317;
}
.c-stats div:nth-child(even) {
  padding-left: 24px;
}
.c-stats div:nth-child(-n + 2) {
  border-bottom: 1px solid #111317;
}
.c-stats dt {
  font-size: clamp(2.6rem, 4.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.c-stats dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.c-intro__photo {
  box-shadow: 0 32px 50px -26px rgba(17, 19, 23, 0.6);
  transform: rotate(2deg);
}
.c-intro__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.c-steps {
  padding-top: 0;
}
.c-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  text-align: center;
}
.c-center .c-tag {
  align-self: center;
}
.c-steps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(250px, auto);
  gap: 16px;
}
.c-step {
  position: relative;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
  background: #2a2d33;
  color: #ffffff;
  overflow: hidden;
}
.c-step img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 19, 23, 0.94), rgba(17, 19, 23, 0.12) 72%);
}
.c-step > span,
.c-step > h3,
.c-step > p,
.c-step > a {
  position: relative;
  z-index: 1;
}
.c-step > span {
  position: absolute;
  top: 22px;
  left: 24px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.c-step h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}
.c-step p {
  max-width: 44ch;
  font-size: 15px;
  font-weight: 500;
  color: #e4e6eb;
}
.c-step--tall {
  grid-column: 2;
  grid-row: 1 / span 3;
}
.c-step--tall .c-pill {
  margin-top: 12px;
}
.v-c .display {
  letter-spacing: -0.025em;
  line-height: 0.94;
  text-transform: uppercase;
}
.v-c .h3,
.v-c .step__title {
  text-transform: uppercase;
}
.v-c .btn {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.v-c .eyebrow {
  align-self: flex-start;
  padding: 5px 12px;
  background: var(--accent);
  font-size: 14px;
  font-weight: 700;
  color: #111317;
}
.v-c .eyebrow .sq {
  background: #111317;
  transform: rotate(45deg);
}
.v-c #fonctionnement {
  background: #111317;
  color: #ffffff;
}
.v-c #fonctionnement .step {
  border-color: #2c3038;
}
.v-c #fonctionnement .step__title {
  color: #9aa0a9;
}
.v-c #fonctionnement .step[aria-selected='true'] .step__title {
  color: #ffffff;
}
.v-c #fonctionnement .step__text,
.v-c #fonctionnement .caption {
  color: #b9bec7;
}
.v-c #fonctionnement .step__n {
  border-color: #2c3038;
  background: #111317;
  color: #ffffff;
}
.v-c #fonctionnement .step[aria-selected='true'] .step__n {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

/* ================= D · Onefin, in our own look =================
 * Kept from the reference: the warm gradient top, phones fanned out over a
 * photo, sheets laid over one another, centred titles, the sentence
 * that fills in. Everything else is the app's: Instrument Sans condensed,
 * 8 px corners, flat buttons, the orange square. Orange is never a text colour.
 */
.d-top {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #ff7a3d 0%, #ffb08a 13%, #ffe6d9 32%, #ffffff 56%, #fff1ea 100%);
  overflow: hidden;
  /* Clipped without becoming a scroll box: the thin band of trades can then stick to the foot of the window. */
  overflow: clip;
}
/* A building site behind the phones: it rises out of the gradient and keeps its warmth. */
.d-top__photo {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: min(62%, 640px);
  margin: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 52%);
  mask-image: linear-gradient(transparent, #000 52%);
}
/* Only the room is kept, its window and its bare wall: nothing behind the phones competes with them. */
.d-top__photo {
  overflow: hidden;
}
.d-top__photo img {
  width: 138%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 0 30%;
}
.d-top__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 230, 217, 0.5), rgba(255, 122, 61, 0.34));
  mix-blend-mode: multiply;
}
.v-d .announce {
  background: transparent;
  color: #111317;
}
.v-d .announce .sq,
.v-d .d-top .header .wordmark i {
  background: #111317;
}
.v-d .header {
  position: relative;
  top: auto;
  border-bottom: 0;
  background: none;
  backdrop-filter: none;
}
/* The menus float over the gradient as a rounded sheet, like the sheets of the page. */
.v-d .mega {
  left: 50%;
  right: auto;
  top: calc(100% - 4px);
  width: min(calc(100% - 24px), var(--container));
  padding: 26px 0 28px;
  border: 0;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(17, 19, 23, 0.06),
    0 44px 80px -36px rgba(110, 40, 8, 0.55),
    0 14px 28px -16px rgba(17, 19, 23, 0.22);
  transform: translate(-50%, -8px);
}
.v-d .nav__item.is-open .mega {
  transform: translate(-50%, 0);
}
.v-d .mega__list a:hover,
.v-d .mega__list a:focus-visible,
.v-d .mega__list a.is-on {
  background: #fff1ea;
}
.d-hero {
  padding-top: clamp(18px, 2.6vw, 40px);
  text-align: center;
}
.d-hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
}
.d-hero .wrap > * {
  animation: px-rise 900ms var(--ease-view) both;
}
.d-hero .wrap > :nth-child(2) {
  animation-delay: 80ms;
}
.d-hero .wrap > :nth-child(3) {
  animation-delay: 200ms;
}
.d-hero .wrap > :nth-child(4) {
  animation-delay: 280ms;
}
.d-hero .wrap > :nth-child(5) {
  animation-delay: 340ms;
}
.d-hero .wrap > :nth-child(6) {
  animation-delay: 420ms;
}
.d-hero .checks {
  justify-content: center;
  color: #111317;
}
.d-hero .px-chip {
  border-color: rgba(17, 19, 23, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}
.d-h1 {
  font-size: clamp(2.25rem, min(7vw, 5.7vh + 2.45rem), 6.35rem);
  line-height: 0.98;
}
.d-h1 > span {
  display: block;
}
/* « chantiers » on an ink label, slightly tilted; « clics » struck in orange. */
.d-h1 em {
  display: inline-block;
  padding: 0 0.12em 0.05em;
  border-radius: var(--r-lg);
  background: #111317;
  font-style: normal;
  color: #ffffff;
  transform: rotate(-2deg);
}
/* The last word of the headline turns: « départements », « régions », « villes ». Its place widens or narrows
   with it, so the centred line follows smoothly, and an orange stroke is drawn under each new word. */
.d-turn {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  white-space: nowrap;
  transition: width 460ms var(--ease-view);
}
.d-turn__word {
  position: relative;
  display: inline-block;
  transition:
    opacity 200ms ease-out,
    transform 380ms var(--ease-pop);
}
.d-turn__word::after {
  content: '';
  position: absolute;
  inset: auto 0.02em 0.04em 0;
  z-index: -1;
  height: 0.1em;
  background: var(--accent);
  transform-origin: 0 50%;
  transition: transform 520ms var(--ease-fill) 160ms;
}
.d-turn.is-out .d-turn__word {
  opacity: 0;
  transform: translateY(-0.22em);
  transition-duration: 180ms, 180ms;
}
.d-turn.is-out .d-turn__word::after {
  transform: scaleX(0);
  transition: none;
}
.d-turn.is-under .d-turn__word {
  transform: translateY(0.22em);
  transition: none;
}
.d-hero .lead {
  max-width: 58ch;
  color: #111317;
}
.d-hero .hero__cta {
  justify-content: center;
}
/* Three phones, one story: the catalogue in the middle, the purchase on its left, the client's contact on its right. */
.d-hero__stage {
  position: relative;
  width: 100%;
  height: clamp(430px, 44vw, 548px);
  margin-top: clamp(12px, 1.8vw, 28px);
  --p: 1;
}
.d-phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 268px;
  margin-left: -134px;
  text-align: left;
}
.d-phone--main {
  z-index: 3;
  transform: translateY(calc((1 - var(--p)) * 40px));
}
.d-phone--left,
.d-phone--right {
  z-index: 2;
  animation: d-fan 1100ms var(--ease-view) 500ms both;
}
.d-phone--left {
  transform: translate(-268px, calc(58px + (1 - var(--p)) * 90px)) rotate(-9deg) scale(0.9);
}
.d-phone--right {
  transform: translate(268px, calc(58px + (1 - var(--p)) * 90px)) rotate(9deg) scale(0.9);
}
/* The two side phones come out from behind the middle one. */
@keyframes d-fan {
  from {
    opacity: 0;
    transform: translateY(70px) scale(0.86);
  }
}
.phone__shot {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}
.phone__buy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}
.phone__buy .buy__meta {
  font-size: 13px;
}
.phone__buy .buy__price {
  font-size: 25px;
}
.phone__buy .choices {
  gap: 8px;
}
.phone__buy .choice {
  padding: 9px 10px;
  font-size: 13.5px;
}
/* Notifications of new chantiers, the ones the phones list. */
.d-note {
  z-index: 4;
  width: 294px;
  text-align: left;
  animation:
    px-rise 900ms var(--ease-view) 1100ms both,
    px-bob 7s ease-in-out infinite;
}
/* Each one rests on the top corner of a side phone, clear of its screen and of the man in the photo. */
.d-note--1 {
  left: max(10px, calc(50% - 606px));
  top: 78px;
  rotate: -4deg;
}
.d-note--2 {
  right: max(10px, calc(50% - 498px));
  top: 8px;
  rotate: 3deg;
  animation-delay: 1400ms, -3s;
}
/* From 1100 px the man of the photo comes back: he stands at the right of the three phones, phone in hand.
   The phones stay in the middle. The box starts where the picture starts, so its fade has no edge; his head
   sits level with the phones, and the picture is pushed right until his hand clears the last phone. */
@media (min-width: 1100px) {
  .d-top {
    --head: min(9.1vw, 131px);
    --stage: clamp(430px, 44vw, 548px);
  }
  .d-hero__stage {
    height: var(--stage);
  }
  .d-top__photo {
    left: 50%;
    width: min(100%, 1440px);
    height: calc(var(--stage) + 34px + var(--head));
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.3) 8%, #000 16%);
    mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.3) 8%, #000 16%);
  }
  .d-top__photo img {
    position: absolute;
    right: max(-8.9vw, -128px);
    top: 0;
    width: 112%;
    height: auto;
    object-fit: fill;
  }
  .d-top__photo::after {
    background: linear-gradient(180deg, rgba(255, 230, 217, 0.4), rgba(255, 150, 100, 0.2));
  }
  /* Over the picture, the three assurances keep a ground of their own. */
  .d-hero .checks {
    padding: 9px 18px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  /* The second notification floats in front of him, under the phone he holds. */
  .d-note--2 {
    right: max(-18px, calc(50% - 716px));
    top: 300px;
    width: 256px;
  }
  .d-note--2 .toast__time {
    display: none;
  }
}
/* Where the window is just wide enough, the side phones close up to leave him his place. */
@media (min-width: 1100px) and (max-width: 1320px) {
  .d-phone--left {
    transform: translate(-236px, calc(58px + (1 - var(--p)) * 90px)) rotate(-9deg) scale(0.9);
  }
  .d-phone--right {
    transform: translate(236px, calc(58px + (1 - var(--p)) * 90px)) rotate(9deg) scale(0.9);
  }
  .d-note--1 {
    width: 248px;
  }
  .d-note--1 .toast__time {
    display: none;
  }
}
@media (min-width: 1441px) {
  .d-top__photo {
    -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.3) 8%, #000 16%), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(transparent, rgba(0, 0, 0, 0.3) 8%, #000 16%), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}
.d-sheets {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}
.d-sheet,
.v-d .d-sheets > .section,
.v-d .d-sheets > .px-pre {
  position: relative;
  margin-top: -26px;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -26px 46px -36px rgba(17, 19, 23, 0.4);
}
.v-d .d-sheets > .section {
  padding-bottom: calc(clamp(64px, 8.5vw, 124px) + 26px);
}
/* A tape at the head of the sheets: the first sheet rises 26 px over whatever precedes it, so the tape keeps that much
   of its own colour under its text, and the words stay whole. */
.v-d .d-sheets > .tape {
  padding-bottom: 26px;
}
/* The trades of the catalogue: one thin dark line. It holds to the foot of the window as long as the hero is on screen,
   then comes to rest on the foot of the hero, right above the first sheet (whose 44 px overlap hides its padding). */
.d-strip {
  position: sticky;
  bottom: -44px;
  z-index: 4;
  margin-top: -88px;
  padding-bottom: 44px;
  background: #111317;
  color: #ffffff;
}
.d-strip .px-acts {
  padding-block: 0;
  scrollbar-width: none;
}
.d-strip .px-acts::-webkit-scrollbar {
  display: none;
}
.d-strip .px-acts__track {
  animation-duration: 80s;
}
.d-strip .px-acts__group {
  gap: 0;
  height: 44px;
  padding-right: 0;
  align-items: center;
}
.d-strip .px-acts__group li {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  aspect-ratio: auto;
  padding-inline: 16px;
  border-radius: 0;
  overflow: visible;
  background: none;
  transform: none;
}
.d-strip .px-acts__group li:nth-child(even) {
  transform: none;
}
.d-strip .px-acts__group li::after {
  content: none;
}
.d-strip .px-acts__group img {
  flex: none;
  width: 36px;
  height: 24px;
  border-radius: 4px;
  transform: none;
}
.d-strip .px-acts__group span {
  position: static;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.d-strip .px-acts__group span br {
  display: none;
}
.d-strip .px-acts__group .sq {
  display: none;
}
.d-sheet {
  padding-block: clamp(64px, 8vw, 112px) clamp(96px, 10vw, 144px);
  background: #ffffff;
}
.d-sheet--first {
  margin-top: 0;
}
.v-d .d-sheets > .section:not(.section--muted):not(.section--ink),
.v-d .d-sheets > .px-pre {
  background: #ffffff;
}
.v-d .d-sheets > .px-pre {
  padding-bottom: clamp(36px, 5vw, 80px);
}
.d-center,
.v-d .d-sheets > .section > .wrap > .section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-inline: auto;
  text-align: center;
}
.v-d .d-sheets .section__head--row > div {
  align-items: center;
}
.d-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 5px;
  border-radius: var(--r-md);
  background: #111317;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}
.d-label b {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--accent);
  color: #ffffff;
}
.d-fill {
  max-width: 22ch;
  margin: clamp(48px, 7vw, 96px) auto;
  font-size: clamp(1.6rem, 3.9vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-align: center;
}
.d-fill span {
  transition: color 320ms ease-out;
}
.d-fill.is-live span:not(.is-on) {
  color: #c9cdd4;
}
.d-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.d-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(340px, 100%);
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #ffffff;
  box-shadow: 0 34px 54px -40px rgba(17, 19, 23, 0.45);
  text-align: left;
  transition: transform 500ms var(--ease-view);
}
.d-card::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-bottom: 12px;
  background: var(--accent);
}
.d-card span {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.d-card b {
  font-size: clamp(2.8rem, 4.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.d-card strong {
  font-size: 17px;
}
.d-card p {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-2);
}
.d-card--1 {
  transform: rotate(-3deg);
}
.d-card--2 {
  transform: rotate(2deg) translateY(18px);
}
.d-card--3 {
  transform: rotate(-1.5deg);
}
.d-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .a-hero .wrap,
  .a-loved .wrap,
  .c-intro .wrap,
  .c-steps__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .a-panel {
    min-height: 460px;
  }
  .a-float--1 {
    left: 12px;
    bottom: 44%;
  }
  .a-float--2 {
    right: 12px;
  }
  .a-card,
  .a-card--wide {
    grid-column: 1 / -1;
  }
  .a-card--wide {
    flex-direction: column;
  }
  .a-card__tint {
    width: auto;
  }
  .c-step,
  .c-step--tall {
    grid-column: 1;
    grid-row: auto;
    min-height: 260px;
  }
  .c-hero__side {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 40%;
    width: auto;
    max-width: 320px;
  }
  .c-hero__nav {
    left: 16px;
    top: 28px;
  }
  .c-intro__photo {
    max-width: 320px;
  }
  .d-hero__stage {
    height: 470px;
    margin-top: 34px;
  }
  /* The side phones show at the edges of the screen. */
  .d-phone--left {
    transform: translate(-196px, 64px) rotate(-9deg) scale(0.84);
  }
  .d-phone--right {
    transform: translate(196px, 64px) rotate(9deg) scale(0.84);
  }
  .d-note--1 {
    left: 4px;
    top: -26px;
    width: min(270px, 78%);
  }
  .d-note--2 {
    display: none;
  }
  .d-top__photo {
    height: 46%;
  }
  .d-card--1,
  .d-card--2,
  .d-card--3 {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-ribbon .tape__track {
    animation: none;
  }
}

/* ================= Inner pages in the Onefin format =================
 * The same warm top, shorter: the title on the left, its visual on the right. The sections below are the sheets. */
.d-top--in {
  background: linear-gradient(180deg, #ff7a3d 0%, #ffb08a 14%, #ffe6d9 38%, #fff6f1 100%);
}
.d-in {
  padding-block: clamp(20px, 3vw, 44px) calc(clamp(44px, 5vw, 76px) + 44px);
  overflow: visible;
}
/* The sheets are centred: so are the example cards and their caption. */
.v-d .d-sheets .examples {
  margin-inline: auto;
}
.v-d .d-sheets .examples + .caption {
  justify-content: center;
}
/* A trade without measured bids: our price alone, no comparison. */
.v-d .versus--seul {
  grid-template-columns: minmax(0, 1fr);
  max-width: 620px;
  margin-inline: auto;
}
/* The price grid of the lead pages: the table alone, on the whole width, scrolling sideways on a phone. */
.v-d .rates--full {
  display: block;
  overflow-x: auto;
}
.v-d .rates--full table {
  width: 100%;
  min-width: 720px;
}
/* A list of plain facts (communes, what a request shows), in the look of the lists of links. */
.cities--plain > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  font-weight: 500;
}
.cities--plain > span small {
  flex: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
}
/* The breadcrumb of an inner page, above its title. */
.fil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: -8px;
  font-size: 13px;
  color: var(--ink-2);
}
.fil a {
  color: inherit;
  text-decoration: none;
}
.fil a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fil [aria-current] {
  font-weight: 600;
  color: var(--ink);
}

/* ================= Inner pages: links as pills, photo tiles, lists beside a visual ================= */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.v-d .d-sheets .section__head + .pills,
.v-d .d-sheets .pills__title + .pills {
  justify-content: center;
}
.pills a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 200ms ease-out,
    transform 200ms var(--ease-view);
}
.pills a:hover,
.pills a:focus-visible {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.pills a small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}
.pills__title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pills__title a {
  color: inherit;
}
.pills__title + .trades {
  margin-top: 18px;
}
/* Small photo tiles of trades: four in a row, the photo of the trade under its name. */
.trades--mini {
  margin-top: 28px;
}
.trades--few {
  grid-template-columns: repeat(auto-fit, minmax(210px, 282px));
  justify-content: center;
}
.trades--mini .trade {
  min-height: 168px;
  padding: 14px;
}
.trades--mini .trade__name {
  font-size: 16px;
  line-height: 1.2;
}
.trades--mini .trade__list {
  font-size: 13px;
}
@media (max-width: 900px) {
  .trades--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .trades--mini .trade {
    min-height: 136px;
  }
}
/* Two columns: a list or cards, and their visual. */
.d-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 68px);
  align-items: center;
  margin-top: 8px;
  text-align: left;
}
.d-duo--flip > .d-duo__text {
  order: 2;
}
.d-duo .cities {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0;
}
.d-duo__photo {
  position: relative;
  margin: 0;
}
.d-duo__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.d-duo__photo .float {
  position: absolute;
  left: -18px;
  bottom: 24px;
  max-width: min(330px, 86%);
}
.d-duo--flip .d-duo__photo .float {
  left: auto;
  right: -18px;
}
.d-duo .zonebox {
  max-width: 520px;
  margin-inline: auto;
}
.cards3--col {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 900px) {
  .d-duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .d-duo--flip > .d-duo__text {
    order: 0;
  }
  .d-duo__photo .float,
  .d-duo--flip .d-duo__photo .float {
    left: 10px;
    right: auto;
    bottom: 12px;
  }
}
/* A trade, town by town: the map of France beside the regions; the region under the pointer lights up. */
.regions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  text-align: left;
}
.regions__map {
  position: sticky;
  top: 24px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #ffffff;
}
.regions__map .france path.is-new {
  fill: var(--accent);
}
.regions__say {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}
.regions__list {
  display: grid;
  gap: 10px;
}
.region {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #ffffff;
  transition: border-color 200ms ease-out;
}
.region:hover,
.region:focus-within {
  border-color: var(--ink);
}
.region__name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.region__name small {
  flex: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
}
.region .pills {
  margin-top: 12px;
  gap: 6px;
}
.region .pills a {
  padding: 6px 10px;
  font-size: 14px;
}
@media (max-width: 900px) {
  .regions {
    grid-template-columns: minmax(0, 1fr);
  }
  .regions__map {
    position: static;
    max-width: 420px;
    margin-inline: auto;
  }
}
/* The small interface visuals of the three steps. */
.step-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, 100%);
  text-align: left;
}
.step-ui .zone__chips {
  margin: 0 0 4px;
}
/* A block of written content: number, heading, a first paragraph that carries, three facts, the rest; a framed visual. */
.seo .d-duo {
  margin-top: 0;
  align-items: center;
}
.seo .d-duo__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.seo .eyebrow {
  gap: 10px;
}
.seo__n {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--on-accent);
}
.seo .d-duo__text .h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.06;
}
.seo .d-duo__text > .seo__lead {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}
.seo .d-duo__text > p:not(.eyebrow):not(.seo__lead):not(.seo__flow) {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-2);
}
.seo .d-duo__text a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}
.seo__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0;
}
.seo__facts > div {
  padding: 13px 14px 14px;
  border-radius: var(--r-md);
  background: var(--muted);
}
.section--muted .seo__facts > div {
  background: #ffffff;
}
.seo__facts dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.seo__facts dd {
  margin: 5px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
}
.seo__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.seo__flow i {
  display: inline-flex;
  color: var(--ink-3);
}
.seo__flow svg {
  width: 14px;
  height: 14px;
}
/* The visual of a block, wedged on an orange square as in the hero; the square sits on the outer side of the page. */
.cale {
  position: relative;
  padding: 0 28px 28px 0;
}
.cale::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 44%;
  background: var(--accent);
}
.d-duo--flip .cale {
  padding: 0 0 28px 28px;
}
.d-duo--flip .cale::before {
  right: auto;
  left: 0;
}
.cale > * {
  position: relative;
}
.cale .d-duo__photo .float {
  left: -18px;
  right: auto;
  bottom: 26px;
}
.d-duo--flip .cale .d-duo__photo .float {
  left: auto;
  right: -18px;
}
.cale .seo__prix {
  max-width: none;
  margin: 0;
}
/* The request sheet of the app can sit on either side. */
.qualif__grid--flip {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}
.qualif__grid--flip > .qualif__stage {
  order: 2;
}
@media (max-width: 900px) {
  .seo__facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .cale,
  .d-duo--flip .cale {
    padding: 0 0 18px 18px;
  }
  .cale::before,
  .d-duo--flip .cale::before {
    right: auto;
    left: 0;
  }
  .cale .d-duo__photo .float,
  .d-duo--flip .cale .d-duo__photo .float {
    left: 10px;
    right: auto;
    bottom: 12px;
  }
  .qualif__grid--flip > .qualif__stage {
    order: 0;
  }
}

/* ================= Towns on one line, under a search field =================
 * The row moves on its own and waits under the pointer; the search brings the card of a town to the front. */
.vsearch {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 26px auto 0;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: #ffffff;
  transition: border-color 200ms ease-out;
}
.vsearch:focus-within {
  border-color: var(--ink);
}
.vsearch svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}
.vsearch input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: none;
  font: 500 16px/1 var(--font);
  color: var(--ink);
}
.vsearch input::placeholder {
  font-weight: 400;
  color: var(--ink-3);
}
.vsearch__say {
  min-height: 21px;
  margin: 10px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--ink-2);
}
.vrail {
  margin-top: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.vrail::-webkit-scrollbar {
  display: none;
}
.vrail__track {
  display: flex;
  width: max-content;
  padding-block: 6px 10px;
}
.vrail__group {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
}
.vrail__group:first-child {
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 212px;
  height: 138px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #ffffff;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 200ms ease-out,
    transform 260ms var(--ease-view),
    box-shadow 200ms ease-out;
}
.vcard:hover,
.vcard:focus-visible {
  border-color: var(--ink);
  transform: translateY(-2px);
}
/* The outline of the town's department, in the corner of its card. */
.vcard__shape {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 92px;
  height: 78px;
  fill: #e8eaee;
  transition: fill 200ms ease-out;
}
.vcard:hover .vcard__shape,
.vcard.is-found .vcard__shape {
  fill: var(--accent);
}
.vcard__code {
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 3px 7px;
  border-radius: var(--r-sm);
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}
.vcard__name {
  position: relative;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.vcard__dept {
  position: relative;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-2);
}
.vcard__go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.vcard__go svg {
  width: 16px;
  height: 16px;
}
.vcard:hover .vcard__go,
.vcard.is-found .vcard__go {
  opacity: 1;
}
.vcard.is-found {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 95, 31, 0.22);
}
@media (max-width: 640px) {
  .vcard {
    width: 176px;
    height: 124px;
  }
  .vcard__shape {
    width: 76px;
    height: 64px;
  }
}

/* ===== Editorial pages (gen/redac.mjs): a comparison table and rows of five or four numbered cards ===== */
.cmp {
  margin-top: 8px;
  text-align: left;
}
.cmp table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--bg);
  font-size: 15.5px;
}
.cmp thead th {
  padding: 13px 18px;
  background: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section--muted .cmp thead th {
  background: var(--chip);
}
.cmp tbody th,
.cmp tbody td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
  text-align: left;
}
.cmp tbody th {
  width: 23%;
  font-weight: 600;
}
.cmp tbody td {
  color: var(--ink-2);
}
/* Our own line, or our own column: said plainly, on the soft orange of the app. */
.cmp__here th,
.cmp__here td,
.cmp--last tbody td:last-child {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 500;
}
.cmp__here th {
  box-shadow: inset 4px 0 0 var(--accent);
  font-weight: 700;
}
.cmp--last thead th:last-child {
  background: var(--accent);
  color: var(--on-accent);
}
.cards3--five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.cards3--five > * {
  grid-column: span 2;
}
.cards3--five > :nth-child(n + 4) {
  grid-column: span 3;
}
.cards3--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .cards3--five,
  .cards3--four {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards3--five > *,
  .cards3--five > :nth-child(n + 4) {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .cmp thead {
    display: none;
  }
  .cmp table,
  .cmp tbody,
  .cmp tr,
  .cmp tbody th,
  .cmp tbody td {
    display: block;
    width: auto;
  }
  .cmp tr + tr {
    border-top: 1px solid var(--line);
  }
  .cmp tbody th {
    padding: 16px 16px 6px;
    border-top: 0;
    font-size: 16.5px;
  }
  .cmp tbody td {
    padding: 6px 16px;
    border-top: 0;
  }
  .cmp tbody td:last-child {
    padding-bottom: 16px;
  }
  .cmp tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
}

/* The date an editorial page was last revised, under its first paragraph. */
.hero__date {
  margin: -6px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

/* The Google Ads calculator: four sliders on a line, three results under them. */
.earn--ads {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.earn--ads .calc__result--here {
  grid-column: span 2;
}
@media (max-width: 1000px) {
  .earn--ads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .earn--ads {
    grid-template-columns: minmax(0, 1fr);
  }
  .earn--ads .calc__result--here {
    grid-column: auto;
  }
}

/* A comparison where our column comes first. */
.cmp--first tbody td:nth-child(2) {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 500;
}
.cmp--first thead th:nth-child(2) {
  background: var(--accent);
  color: var(--on-accent);
}

/* The 404 page: the numerals drawn like the wordmark, on an ink panel. */
.e404__panneau {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: clamp(260px, 30vw, 400px);
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--float);
}
.e404__chiffres {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
  margin: auto 0;
  font-size: clamp(110px, 17vw, 230px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
}
.e404__chiffres i {
  width: 0.56em;
  height: 0.56em;
  background: var(--accent);
}
.e404__legende {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-2);
}
.e404__legende .sq {
  width: 8px;
  height: 8px;
  background: var(--accent);
}
