/* Neuf cartes validées : styles limités à cette rubrique de l'accueil. */
.home-benefits {
  --benefit-gutter: max(var(--gutter), calc((100vw - 1472px) / 2 + var(--gutter)));
  --benefit-gap: 24px;
  --benefit-width: min(430px, calc((100vw - 2 * var(--benefit-gutter) - 2 * var(--benefit-gap)) / 3));
  padding-block: 78px 72px;
  overflow: hidden;
  background: #f8f7f4;
}
.home-benefits .section-title { margin-bottom: 20px; }
.home-benefits .home-benefits-intro { font-size: 17px; line-height: 1.75; max-width: 900px; color: #526166; }
.home-benefits-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--benefit-gutter); padding: 36px var(--benefit-gutter) 30px; scrollbar-width: none; outline-offset: -3px; }
.home-benefits-viewport::-webkit-scrollbar { display: none; }
.home-benefits-track { display: flex; gap: var(--benefit-gap); width: max-content; }
.home-benefit-card { position: relative; isolation: isolate; width: var(--benefit-width); aspect-ratio: 3 / 4; flex: none; overflow: hidden; border-radius: 24px; background: #eee9df; box-shadow: 0 6px 20px #183b420b, 0 1px 3px #183b4205; scroll-snap-align: start; transition: transform .22s ease, box-shadow .22s ease; }
.home-benefit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.home-benefits .home-benefit-card h3 { position: relative; font-size: clamp(25px, 2.1vw, 31px); font-weight: 600; letter-spacing: -.04em; line-height: 1.2; color: #0b252b; margin: 30px; max-width: calc(100% - 60px); text-wrap: balance; }
.home-benefit-fee { background: #e1edef; }
.home-benefits .home-benefit-fee h3 { font-size: clamp(23px, 1.95vw, 29px); }
.home-benefit-composition { position: absolute; inset: 39% 20px auto; text-align: center; color: #245c67; }
.home-benefits .home-benefit-value { font-size: clamp(130px, 15.6vw, 214px); letter-spacing: -.085em; line-height: 1; font-weight: 600; white-space: nowrap; display: flex; align-items: baseline; justify-content: center; gap: .045em; margin: 0; }
.home-benefit-value span { font-size: .67em; letter-spacing: -.055em; }
.home-benefits .home-benefit-caption { font-size: 15px; line-height: 1.6; letter-spacing: -.015em; margin: 25px 0 0; }
.home-benefit-rule { position: absolute; bottom: 43px; left: calc(50% - 23px); width: 46px; height: 4px; border-radius: 5px; background: #d8a8bf; }
.home-benefit-advance { background: #f1e4ea; }
.home-benefit-advance .home-benefit-composition { inset: 43% 14px auto; color: #84536c; }
.home-benefits .home-benefit-advance .home-benefit-value { font-size: clamp(106px, 10vw, 144px); letter-spacing: -.075em; }
.home-benefits .home-benefit-advance .home-benefit-caption { margin-top: 34px; }
.home-benefit-advance .home-benefit-rule { background: #8eafb8; }
.home-benefits-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-benefits-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; color: inherit; }
.home-benefits-link > span:first-child { background: linear-gradient(#a9d9de45, #a9d9de45) no-repeat 0 88% / 100% .5em; }
.home-benefits-link:hover > span:first-child { background-image: linear-gradient(#e8bdcf60, #e8bdcf60); }
.home-benefits-navigation { display: flex; align-items: center; gap: 10px; }
.home-benefits-navigation[hidden] { display: none; }
.home-benefits .home-benefits-position { font-size: 12px; line-height: 1.5; color: #667677; margin: 0 10px 0 0; font-variant-numeric: tabular-nums; }
.home-benefits-arrow { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #e9e9e5; color: #3c545b; cursor: pointer; touch-action: manipulation; }
.home-benefits-arrow svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-benefits-arrow:hover:not(:disabled) { background: #dce8e9; }
.home-benefits-arrow:disabled { opacity: .3; cursor: default; }
.home-benefits :is(a, button, .home-benefits-viewport):focus-visible { outline: 3px solid #477d85; outline-offset: 5px; }
.home-benefits .home-benefits-viewport:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .home-benefit-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px #183b4210; }
}
@media (max-width: 1100px) {
  .home-benefits { --benefit-width: 380px; }
  .home-benefits .home-benefit-card h3 { font-size: 28px; }
  .home-benefits .home-benefit-fee h3 { font-size: 26px; }
  .home-benefits .home-benefit-value { font-size: 195px; }
}
@media (max-width: 760px) {
  .home-benefits { --benefit-gutter: 24px; --benefit-gap: 16px; --benefit-width: min(350px, calc(100vw - 72px)); padding-block: 48px; }
  .home-benefits .section-title { font-size: clamp(28px, 8.2vw, 32px); line-height: 1.35; }
  .home-benefits .home-benefits-intro { font-size: 15px; line-height: 1.75; }
  .home-benefits-viewport { padding-top: 28px; padding-bottom: 24px; }
  .home-benefit-card { border-radius: 20px; }
  .home-benefits .home-benefit-card h3 { font-size: 25px; margin: 24px; max-width: calc(100% - 48px); }
  .home-benefits .home-benefit-fee h3 { font-size: 23px; }
  .home-benefit-composition { top: 35%; }
  .home-benefits .home-benefit-value { font-size: clamp(146px, 47vw, 180px); }
  .home-benefits .home-benefit-caption { font-size: 13px; margin-top: 14px; }
  .home-benefit-rule { bottom: 31px; height: 3px; }
  .home-benefits .home-benefit-advance .home-benefit-value { font-size: clamp(100px, 31vw, 112px); }
  .home-benefits .home-benefit-advance .home-benefit-caption { margin-top: 26px; }
  .home-benefits-footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-benefits-link { font-size: 13px; }
  .home-benefits-navigation { align-self: flex-end; }
}
html[data-motion="off"] .home-benefit-card { transition: none; }
@media (prefers-reduced-motion: reduce) { .home-benefit-card { transition: none; } }
