/* Mesures de CrediPro. Les variables de composition utilisent la largeur corrigée du grand écran. */
:root {
  --layout-width: 100vw;
  --layout-height: 100vh;
  --reading-size: 18px;
  --heading-tracking: normal;
  --title: clamp(34px, 4vw, 56px);
  --section-title: clamp(36px, calc(36px + (1vw - 3.2px) * 1.458), 50px);
  --subheading: clamp(24px, calc(24px + (1vw - 3.2px) * .417), 28px);
  --display-title: clamp(44px, calc(44px + (1vw - 3.2px) * 2.188), 65px);
  --hero-sky: radial-gradient(45% 90% at 100% 0%, #6F9DD3 0%, transparent 70%),
              radial-gradient(135% 120% at 8% 100%, #EC6608 0%, #1D2362 52%);
  --header-inset: 120px;
  --step-scale: 1.18;
}
body { font: 300 18px/1.46 var(--body); }
.wrap { width: min(1630px, calc(100% - 80px)); }
h1, h2, h3 { letter-spacing: normal; }
h1, .hero-copy h1, .blog-hero h1 { font: 800 var(--title)/1.1 var(--heading); letter-spacing: -.01em; }
h2 { font: 700 var(--section-title)/.8 var(--heading); }
h3 { font: 700 var(--subheading)/1.15 var(--heading); }
.hero-copy h1 { font-weight: 300; margin: 0 0 20px; }
h1 strong { font-weight: 800; }
.dot { display: inline-block; font-size: 0; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; margin-inline-start: .3rem; }

/* Barre de navigation flottante. */
.header { position: sticky; inset-block-start: 0; z-index: 20; border: 0; background: transparent; padding: 30px var(--header-inset) 20px; }
.home .header { position: absolute; inset-inline: 0; color: white; }
.utility, .utility .wrap { background: transparent; color: inherit; }
.utility .wrap { width: 100%; justify-content: flex-end; align-items: center; gap: 32px; padding: 0 12px; margin: 0 0 14px; font: 300 16px/1 var(--heading); letter-spacing: .48px; text-transform: uppercase; }
.header .group-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: inherit; opacity: 1; }
.header .group-link:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.group-mark { width: 16px; height: 16px; flex: none; background: currentColor; mask: var(--group-mark) center / contain no-repeat; }
.group-antepro { --group-mark: url('assets/groupe-antepro.png'); }
.group-credipro { --group-mark: url('assets/groupe-credipro.svg'); }
@media (max-width: 1024px) {
  .header .utility { display: none; }
  .nav .menu-group { display: flex; flex-direction: column; align-items: center; align-self: stretch; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
  .header .nav nav .menu-group .group-link { font: 300 16px/1 var(--heading); letter-spacing: .48px; }
}
.header .nav { position: relative; width: 100%; margin: auto; min-height: 0; gap: 20px; padding: 15px 20px 15px 40px; border-radius: 41px 59px 59px 0; background: white; }
.home .header:not(.compact) .nav { background: rgb(255 255 255 / 6%); }
.home .header:not(.compact) .logo { filter: brightness(0) invert(1); }
.nav .logo { width: 200px; height: auto; }
.nav nav { gap: 18px; align-items: center; }
.nav nav a:not(.button) { font: 600 clamp(15px, .834vw, 17px)/1.46 var(--heading); letter-spacing: normal; text-transform: uppercase; }
.header.compact { position: sticky; top: 0; padding-block: 8px; }
.home .header.compact { position: fixed; }
.header.compact .utility { display: none; }
.header.compact .nav { color: var(--ink); background: rgb(255 255 255 / 94%); box-shadow: 0 6px 22px rgb(29 35 98 / 10%); }
.menu-contact { display: none; }

/* Bouton orange et variante translucide du bandeau d'accueil. */
:root body :is(a.button, button.button, a.bouton) {
  --cta-size: 16px;
  --cta-height: 51px;
  --cta-gap: 33.2px;
  --cta-left: 32.31px;
  --cta-right: 27.35px;
  justify-content: center; align-items: center; gap: var(--cta-gap);
  padding: 0 var(--cta-right) 0 var(--cta-left); min-height: var(--cta-height); max-width: 100%;
  border: 0; border-radius: 37px 40px 40px 0;
  background: var(--accent); color: white; text-decoration: none; text-align: center;
  font: 800 var(--cta-size)/1 var(--heading); letter-spacing: .64px; text-transform: uppercase;
  transform: none; transition: background-color .35s ease;
}
:root body .nav .nav-cta { --cta-left: 18px; --cta-right: 18px; }
.button .action-label, .bouton .action-label { font: inherit; line-height: inherit; letter-spacing: inherit; padding-block: 6px; }
.button .action-arrow, .bouton .action-arrow {
  display: block; flex: 0 0 12.43px; width: 12.43px; height: 11.41px; border: 0;
  background: url('assets/fleche-bouton.svg') center / contain no-repeat;
}
:root body :is(a.button, button.button, a.bouton):is(:hover, :focus-visible) { background: #F29554; }
:is(.button,.bouton):is(:hover,:focus-visible) .action-label { text-decoration: underline; text-underline-offset: 3px; }
:root body .hero-actions a.button {
  --cta-size: clamp(14px, calc(14px + (1vw - 3.2px) * .208), 16px);
  --cta-height: 51.14px; --cta-right: 0px; --cta-gap: 13.85px; background: rgb(255 255 255 / 7%);
}
.hero-actions .button .action-arrow { flex-basis: 51.14px; width: 51.14px; height: 51.14px; background-size: 12.43px 11.41px; background-color: rgb(255 255 255 / 7%); border-radius: 50%; }
.nav nav .button::after { content: none; }

/* Accueil */
.hero { background: var(--hero-sky); }
.hero-grid { width: min(1611px, calc(100% - 128px)); min-height: var(--layout-height); padding: 158px 0 0; grid-template-columns: 57fr 43fr; gap: 32px; }
.hero-copy { padding: 32px 0 32px 50px; }
.hero-copy > p:not(.eyebrow):not(.hero-note) { font: 300 18px/1.46 var(--body); color: rgb(255 255 255 / 85%); max-width: none; margin: 0 0 28px; }
.hero-visual { width: min(100%, calc((var(--layout-height) * .9 - 158px) * 8 / 9)); height: auto; aspect-ratio: 8/9; margin-left: auto; --pixel: min(99px, calc(var(--layout-width) * .05)); }
.hero-visual > img { border-radius: 95px 0 0 0; }
.hero-visual::after { content: none; }
.hero-visual .pixel { width: var(--pixel); height: var(--pixel); }
.hero-visual .pixel-one { left: calc(-1 * var(--pixel)); }
.hero-visual .pixel-two { bottom: var(--pixel); }
.section { padding-block: min(8vw, 104px); }
.section-intro { align-items: start; }
.section-intro h2 { font-size: clamp(27.888px, calc(27.888px + (1vw - 3.2px) * 2.095), 48px); font-weight: 800; line-height: 1.1; }
.section-intro > p, .section-intro > div + div { border: 0; font: 300 16px/1.46 var(--body); }
.eyebrow, .step .eyebrow, .hero-copy .eyebrow {
  display: inline-flex; width: fit-content; justify-self: start; align-items: center; padding: 8px 18px;
  border-radius: 35px; background: white; color: var(--ink); font: 800 16px/1 var(--heading); letter-spacing: .64px;
}
.convictions { background: var(--pale); }
.conviction-grid h2 { font-size: var(--section-title); line-height: .8; }
.conviction-grid > div { font: 300 18px/1.46 var(--body); border: 0; }
.project-kicker { color: white; font: 300 clamp(18px, calc(var(--layout-width) * .018), 35px)/1 var(--heading); }
.project-panel h3 { max-width: 15ch; font: 700 clamp(30px, calc(var(--layout-width) * .032), 75px)/.77 var(--heading); }
.tabs { width: fit-content; max-width: 100%; gap: 4px; padding: 4px; border-radius: 35px; box-shadow: inset 0 0 0 1px rgb(29 35 98 / 39%); }
.tabs button { min-height: 32px; padding: 0 14px; border: 0; font: 300 15px/1 var(--heading); letter-spacing: .6px; text-transform: uppercase; }
.tabs button[aria-selected=true] { font-weight: 800; }
.center-heading { max-width: 1070px; }
.center-heading h2 { font: 700 min(calc(var(--layout-width) * .03476), 66.785px)/.9 var(--heading); }
.steps { max-width: calc(964px * var(--step-scale)); gap: 60px; }
.step { min-height: 0; aspect-ratio: 2; align-items: center; border-radius: min(calc(var(--layout-width) * .06247), 120px) 0 0 0; }
.step h3 { font: 700 calc(var(--section-title) * var(--step-scale))/.8 var(--heading); }
.step p:not(.eyebrow) { font: 300 calc(18px * var(--step-scale))/1.46 var(--body); }
.step > img { min-height: 0; max-height: none; }
.step.reverse { background: #6F9DD3; }
.valuation h2 { font-size: var(--display-title); line-height: .768; }
.network h2 { font: 800 min(calc(var(--layout-width) * .028815), 55.36px)/.9 var(--heading); }
.opportunities .opportunity h3, .news-list .entries .entry h3 { font: 500 19.59px/21.458px var(--body); letter-spacing: .5877px; }
.guides h3, .principles h3 { font: 700 var(--subheading)/1.15 var(--heading); }
footer { color: white; }
.footer-grid a, .footer-grid p, .footer-grid small { font: 300 16px/1.46 var(--body); }
.footer-grid h3 { font: 800 16px/1 var(--heading); letter-spacing: .64px; }
.footer-bottom { font: 300 13px/1.46 var(--body); letter-spacing: .39px; }

/* Bandeaux et pages de lecture. La photo passe avant le texte sur petit écran. */
.inner-hero { margin: 38px 120px 0; border-bottom-left-radius: 80px; overflow: hidden; background: var(--ink); }
.inner-lead, .inner-lead:has(> img) { width: 100%; display: grid; align-items: center; grid-template-columns: minmax(0,1fr); gap: 32px; min-height: 476px; padding: 0; }
.inner-lead:has(> img) { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
.inner-lead > div { padding: 70px 32px 70px clamp(48px, 9vw, 170px); max-width: 990px; }
.inner-lead h1 { font: 800 65.757px/1.04 var(--heading); letter-spacing: normal; margin-bottom: 28px; }
.inner-lead h1::after { content: ''; display: inline-block; width: 9.6px; height: 9.6px; margin-left: 9px; border-radius: 2.4px; background: var(--accent); }
.agency .inner-lead h1 { font-size: var(--title); line-height: 1.1; letter-spacing: -.01em; }
.agency .inner-lead h1::after, .editorial .inner-lead h1::after { content: none; }
.inner-lead p, .reading, .reading p { color: inherit; font-size: 18px; font-weight: 300; line-height: 1.46; }
.inner-lead > img { align-self: end; height: auto; aspect-ratio: 743 / 593; border-radius: 18px 0 0 0; object-fit: cover; }
.crumb { font: 300 13px/1.46 var(--body); }
.reading h2, .directory-section h2 { font: 700 var(--section-title)/.8 var(--heading); letter-spacing: normal; }
.reading h3, .reading .card-title, .reading .titre { font: 700 var(--subheading)/1.15 var(--heading); letter-spacing: normal; }
.reading .entry p, .directory-section a { font: 300 16px/1.46 var(--body); }
.editorial .inner-lead { display: grid; position: relative; isolation: isolate; grid-template-columns: 1fr; text-align: center; align-items: end; }
.editorial .inner-lead > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; border-radius: 0; }
.editorial .inner-lead::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgb(29 35 98 / 96%)); z-index: -1; }
.editorial .inner-lead > div { max-width: 1211px; margin-inline: auto; padding: 130px 48px 48px; }
.editorial .inner-lead h1 { font: 700 var(--display-title)/.769 var(--heading); letter-spacing: normal; }
.editorial .inner-lead p { max-width: 72ch; margin-inline: auto; }
.editorial .inner-hero { border-radius: 18px 18px 73px 0; }
.filter, .demo-form > label { font: 700 var(--subheading)/1.15 var(--heading); }
.demo-form .radio-button-field { background: white; border-radius: 16px 16px 16px 0; }

@media (min-width: 993px) and (max-width: 1599px) {
  :root { --header-inset: 4.2%; }
  .header .nav { padding-inline: 24px 16px; }
  .section.wrap { width: calc(100% - 128px); }
}
@media (min-width: 993px) and (max-width: 1280px) {
  :root { --header-inset: 32px; --step-scale: .82; }
  .header .nav { padding: 12px 12px 12px 16px; gap: 16px; }
  .nav .logo { width: clamp(124px, calc(124px + (100vw - 993px) * .1672), 172px); }
  .nav nav { gap: clamp(8px, calc(4.2vw - 34px), 20px); }
  .nav nav a:not(.button) { font-size: 14px; }
  :root body .nav .nav-cta {
    --cta-height: clamp(52px, calc(52px + (100vw - 993px) * .01394), 56px);
    --cta-left: clamp(16px, calc(16px + (100vw - 993px) * .0279), 24px);
    --cta-right: clamp(14px, calc(14px + (100vw - 993px) * .0209), 20px);
    --cta-gap: clamp(10px, calc(10px + (100vw - 993px) * .0348), 20px);
    --cta-size: clamp(15px, calc(15px + (100vw - 993px) * .00697), 17px);
  }
  .hero-grid { width: calc(100% - 64px); padding-top: 168px; grid-template-columns: 62fr 38fr; }
  .hero-copy { padding-left: 0; }
  .hero-actions .button { zoom: 1.12; }
  .section-intro h2, .valuation h2 { font-size: clamp(32px, 3.6vw, 46px); }
  .network h2 { font-size: min(3.844vw, 55.36px); }
}
@media (max-width: 1280px) {
  .inner-hero { margin: 24px 20px 0; border-bottom-left-radius: 40px; }
  .inner-lead h1 { font-size: 44px; }
  .agency .inner-lead h1 { font-size: var(--title); }
  .editorial .inner-lead h1 { font-size: clamp(26px, 5.2vw, 42px); line-height: 1.05; }
  .inner-lead > div { padding: 56px 28px 56px 48px; }
  .inner-lead, .inner-lead:has(> img) { min-height: 360px; }
  .editorial .inner-lead > div { padding: 100px 24px 32px; }
  .project-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .nav .menu-toggle { display: inline-flex; margin-left: auto; justify-content: center; align-items: center;
    gap: 13.848px; min-height: 32px; padding: 0 8px 0 25px; cursor: pointer; border: 0;
    border-radius: 20px 40px 40px 0; background: var(--accent); color: white;
    font: 800 14px/1 var(--heading); letter-spacing: .56px; text-transform: uppercase; }
  .menu-toggle span { font-size: 20px; }
  .nav nav { display: none; position: absolute; inset: calc(100% + 4px) 0 auto; padding: 22px; max-height: calc(100dvh - 145px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px; color: var(--ink); background: white; border-radius: 22px 22px 22px 0; box-shadow: 0 12px 32px #1D236224; }
  .nav nav.is-open { display: flex; }
  .nav nav a:not(.button) { font-size: 16px; min-height: 44px; }
  .nav .menu-contact { align-self: center; }
}
@media (max-width: 992px) {
  :root { --header-inset: 16px; --step-scale: 1; }
  .wrap, .section.wrap { width: calc(100% - 40px); }
  .header { padding: 20px var(--header-inset) 0; }
  .header .utility, .nav > .nav-cta { display: none; }
  .header .nav { padding: 14px 25px 14px 33px; }
  .nav .logo { width: clamp(118px, 15vw, 140px); }
  .nav .menu-contact { display: inline-flex; }
  .hero-grid { display: flex; flex-direction: column; gap: 28px; width: min(100%, 520px); min-height: 0; padding-top: 193px; }
  .hero-copy { padding: 0 14.5px; text-align: center; width: 100%; }
  .hero-copy > p:not(.eyebrow):not(.hero-note) { margin-inline: auto; }
  .hero-actions { flex-direction: row; align-items: center; justify-content: center; gap: 12px; }
  .hero-visual { align-self: center; width: min(calc(100vw - 150px), 480px); height: auto; aspect-ratio: 1; margin: 0; --pixel: 50px; }
  .hero-visual > img { border-radius: 50px 0 0 0; }
  .section { padding-block: 64px; }
  .center-heading h2 { font-size: 31px; line-height: 33px; }
  .conviction-grid h2 { font-size: 35px; line-height: 33px; }
  .conviction-grid > div { font-size: 16px; }
  .step, .step.reverse { aspect-ratio: auto; min-height: 0; }
  .step h3 { font-size: var(--section-title); }
  .steps { gap: 32px; }
  .step p:not(.eyebrow) { font-size: 18px; }
  .valuation h2 { font-size: 41.25px; line-height: 33px; }
  .network h2 { font-size: min(50px, 12.69vw); line-height: .8; }
  .inner-lead, .inner-lead:has(> img) { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 0; min-height: 0; padding: 0; }
  .inner-lead > div { padding: 48px 20px 36px; }
  .inner-lead > img { width: 100%; height: auto; aspect-ratio: 2; border-radius: 0; }
  .agency .inner-lead > img { max-height: 360px; object-position: center 20%; }
  .editorial .inner-lead { min-height: 320px; justify-content: flex-start; }
  .editorial .inner-lead > img { height: 100%; }
}
@media (max-width: 782px) {
  .inner-lead h1 { font-size: 32px; }
  .agency .inner-lead h1 { font-size: var(--title); }
  .editorial .inner-lead h1 { font-size: clamp(26px, 5.2vw, 42px); }
}
@media (max-width: 781px) {
  :root { --title: 34px; }
  .hero-copy h1, .agency .inner-lead h1, .blog-hero h1 { line-height: 1.12; }
  .reading h2, .directory-section h2 { font-size: 32px; line-height: 1.05; }
}
@media (max-width: 650px) {
  .project-panel { grid-template-columns: 1fr; }
  .project-copy h3 { font-size: 32px; line-height: .85; }
  .project-kicker { font-size: 18.6px; }
  .tabs { width: 100%; border-radius: 24px; }
  .tabs button { min-height: 36px; }
  .section-intro { gap: 24px; }
  .project-copy, .valuation, .step > div { padding-inline: 20px; }
  .section-intro > p, .section-intro > div + div { padding-left: 0; }
  .inner-lead p, .blog-hero > p:last-child { font-size: 18px; }
}
@media (max-width: 565px) {
  :root { --header-inset: 20px; }
  .header { padding-top: 40px; }
  .nav .logo { width: 106px; }
  .hero { background: radial-gradient(78% 26% at 42% 90%, rgb(236 102 8 / 38%), transparent 72%), var(--ink); }
  .hero-grid { padding-top: 140px; gap: 40px; width: 100%; }
  .hero-visual { align-self: flex-end; width: calc(100% - 50px); }
  .section-intro h2 { font-size: 35px; line-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .bouton { transition: none; }
}

@media (min-width: 1600px) {
  :root body .nav .nav-cta { --cta-left: 32.31px; --cta-right: 27.35px; }
}
@media (min-width: 1025px) { .nav .menu-group { display: none; } }
.network h2 { font-size: clamp(34px, 3.844vw, 73.847px); }
@media (max-width: 992px) {
  .network h2 { font-size: min(50px, calc(var(--layout-width) * .1269)); }
  .step, .step.reverse { display: flex; flex-direction: column; align-items: stretch; }
  .step > img { order: -1; height: auto; aspect-ratio: 2; }
}
footer { background: var(--ink); }
.footer-logo { background: transparent; padding: 0; filter: brightness(0) invert(1); }
main > .crumb { margin: 14px 120px 0; color: var(--ink); }
.inner-hero + .crumb a { text-decoration: underline; text-underline-offset: 2px; }
.editorial .inner-lead, .editorial .inner-lead:has(> img) { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 0; }
.editorial .inner-lead::before { content: none; }
.editorial .inner-lead > img { order: -1; position: static; z-index: auto; width: 100%; height: auto; max-height: 530px; aspect-ratio: 3 / 1; object-fit: contain; background: var(--ink); }
.editorial .inner-lead > div { padding: 36px 48px 48px; }
.editorial .inner-lead h1 { margin: 0; }
.editorial .reading .article-lead, .editorial .reading .header-news p { font-size: 20px; line-height: 1.6; margin: 0 0 32px; }
.news-list .entry { background: var(--ink); color: white; border-radius: 0 0 0 46.648px; }
.news-list .entry > div { align-items: center; text-align: center; padding: 24px; }
.news-list .entry span { width: 47.58px; height: 47.58px; border-radius: 50%; background: var(--accent) url('assets/fleche-bouton.svg') center / 12.43px 11.41px no-repeat; font-size: 0; align-self: center; }

/* Le formulaire Cap Cession garde ses champs. La colonne de contexte suit
   la disposition du parcours de demande de financement de CrediPro. */
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: stretch; gap: clamp(32px, 6vw, 110px); margin: 38px 120px 0; padding: 0 4% 0 0; background: white; }
.contact-layout .inner-hero { margin: 0; display: flex; border-radius: 0 0 0 73px; }
.contact-layout .inner-lead { align-content: start; padding: clamp(36px, 4vw, 75px); }
.contact-layout .inner-lead > div { padding: 0; }
.contact-layout .inner-lead h1 { font-size: 38.73px; line-height: 1.04; }
.contact-layout .header-01 { margin-top: 32px; }
.contact-layout .demo-form { min-width: 0; padding-block: 48px; }
.contact-layout .demo-form .label { display: block; }
@media (max-width: 1280px) {
  main > .crumb { margin-inline: 20px; }
  .contact-layout { margin: 24px 20px 0; }
}
@media (max-width: 781px) {
  .editorial .inner-lead > img { aspect-ratio: 1.6; }
  .editorial .inner-lead > div { padding: 24px 24px 32px; }
  .editorial .reading .article-lead, .editorial .reading .header-news p { font-size: 17px; }
  .contact-layout { display: block; padding: 0; }
  .contact-layout .inner-lead { min-height: 0; padding: 32px 20px; }
  .contact-layout .inner-lead h1 { font-size: 22px; }
  .contact-layout .demo-form { padding: 28px 20px; }
}
.utility .wrap { min-height: 18px; }
.nav .logo { max-height: 51px; object-position: left center; }
.hero-grid { column-gap: 46px; }
@media (max-width: 992px) { .nav .logo { max-height: 32px; } }

.menu-toggle span { display: block; width: 20.4px; height: 20.4px; font-size: 0; background: currentColor; mask: url('assets/menu-mobile.svg') center / contain no-repeat; }
body.service { background: white; }
.service .inner-hero { border-bottom-left-radius: 75px; }
.service .inner-lead:has(.banner-photo) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,44.23%); gap: 32px; min-height: 670px; }
.service .inner-lead > div:first-child { padding-left: 172px; }
.service .inner-lead h1, .service .inner-lead p { max-width: 620px; }
.service .inner-lead .bouton, .service .inner-lead .button { display: inline-flex; align-items: center; margin-top: 28px; }
.service .inner-lead > .banner-photo { position: relative; min-width: 0; padding: 0; max-width: none; align-self: end; height: calc(100% - 80px); }
.banner-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px 0 0 0; }
.banner-photo::before, .banner-photo::after { content: ''; position: absolute; width: 101px; height: 93px; background: var(--accent); }
.banner-photo::before { right: 100%; bottom: 93px; }
.banner-photo::after { left: 0; bottom: 0; }
@media (max-width: 1280px) {
  .service .inner-hero { border-bottom-left-radius: 40px; }
  .service .inner-lead:has(.banner-photo) { min-height: 440px; }
  .service .inner-lead > div:first-child { padding-left: 48px; }
  .banner-photo::before, .banner-photo::after { width: 36px; height: 36px; }
  .banner-photo::before { right: 36px; bottom: 36px; }
  .banner-photo::after { left: auto; right: 0; }
}
@media (max-width: 992px) {
  .service .inner-lead:has(.banner-photo) { display: flex; flex-direction: column-reverse; min-height: 0; gap: 0; }
  .service .inner-lead > div:first-child { padding-left: 20px; }
  .service .inner-lead > .banner-photo { width: 100%; height: auto; aspect-ratio: 2; }
  .banner-photo img { border-radius: 0; }
  .banner-photo::before { bottom: 0; }
  .banner-photo::after { bottom: -36px; }
}
@media (max-width: 767px) { .service .inner-lead > .banner-photo { aspect-ratio: 1; } }

/* Photographies : une fenêtre de portrait stable, y compris pour les petites sources. */
:root { --photo-density: 1; }
.portrait-mount, .offer-mount {
  display: grid;
  place-items: center;
  min-width: 0;
}
.inner-lead:has(> .portrait-mount), .inner-lead:has(> .offer-mount) {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 38%);
  align-items: center;
  min-height: 390px;
}
.inner-lead > .portrait-mount, .inner-lead > .offer-mount {
  padding: 28px clamp(20px, 3vw, 56px) 28px 0;
}
.portrait-mount img.expert-photo {
  display: block;
  width: min(100%, var(--portrait-width, 352px), calc(var(--source-width) / var(--photo-density)));
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: none;
  object-fit: contain;
  margin: 0;
  border-radius: 32px 0;
}
.entries .entry > .portrait-mount, .entries .entry > .offer-mount {
  width: 100%;
  height: 216px;
  align-self: stretch;
  margin: 0;
  padding: 12px;
  background: color-mix(in srgb, #6F9DD3 24%, white);
}
.entry .portrait-mount { --portrait-width: 152px; }
.entry .portrait-mount img.expert-photo { border-radius: 18px 0; }
.div-block-20 .portrait-mount { justify-content: start; --portrait-width: 156px; }
.reading img.inline-portrait {
  width: min(100%, 340px, calc(var(--source-width) / var(--photo-density)));
  height: auto;
  max-height: none;
  object-fit: contain;
}
.offer-mount img.offer-photo {
  width: min(100%, calc(var(--source-width) / var(--photo-density)));
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0;
  border-radius: 18px 0;
}
.opportunity > .offer-mount {
  width: 100%;
  height: auto;
  aspect-ratio: 1.8;
  padding: 12px;
  background: color-mix(in srgb, #6F9DD3 24%, white);
}
.offer-mount .offer-photo { max-width: 100%; }
.inner-lead img.diagram-photo, .entries .entry img.diagram-photo {
  object-fit: scale-down;
  background: color-mix(in srgb, #6F9DD3 12%, white);
}
.service .inner-lead > .banner-photo { height: auto; aspect-ratio: 1.85; }
@media (max-width: 992px) {
  .inner-lead:has(> .portrait-mount), .inner-lead:has(> .offer-mount) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .inner-lead > .portrait-mount, .inner-lead > .offer-mount {
    justify-content: start;
    padding: 0 20px 32px;
    --portrait-width: 220px;
  }
  .inner-lead:has(> .portrait-mount) > div,
  .inner-lead:has(> .offer-mount) > div { padding-bottom: 24px; }
  .service .inner-lead > .banner-photo { aspect-ratio: 2; }
}
@media (max-width: 565px) {
  .inner-lead > .portrait-mount { --portrait-width: 168px; }
  .entries .entry > .portrait-mount { height: 188px; --portrait-width: 128px; }
}

/* Dans le répertoire, le portrait et le nom forment une seule unité. */
.entries > .entry:has(.portrait-mount) {
  display: grid;
  grid-template-columns: minmax(56px, 92px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px 20px;
}
.entries .entry > .portrait-mount {
  --portrait-width: 92px;
  padding: 0; height: auto;
  background: none;
  align-self: start; justify-items: start;
}
.entries > .entry:has(.portrait-mount) > div { align-self: stretch; padding: 0; }
@media (min-width: 993px) {
  .inner-lead.compact-photo {
    grid-template-columns: minmax(0, 620px) minmax(100px, max-content);
    justify-content: center; gap: 44px; padding: 48px clamp(36px, 7vw, 128px);
    min-height: 330px;
  }
  .inner-lead.compact-photo > div { padding: 0; }
  .inner-lead.compact-photo > :is(.portrait-mount,.offer-mount) { padding: 0; }
  .inner-lead.compact-photo .expert-photo { --portrait-width: 250px; }
  .inner-lead.compact-photo .offer-photo { max-width: 360px; }
}
.hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 20%; }
.step > img { max-height: calc(var(--source-height) / var(--photo-density)); }
.inner-lead > img:not(.diagram-photo) {
  max-width: min(100%, calc(var(--source-width) / var(--photo-density)));
  max-height: calc(var(--source-height) / var(--photo-density));
  justify-self: end;
}
.service .inner-lead > .banner-photo {
  width: min(100%, calc(var(--source-width) / var(--photo-density)));
  height: auto;
  max-height: calc(var(--source-height) / var(--photo-density));
  justify-self: end;
}
.inner-lead > img.diagram-photo {
  max-width: min(100%, calc(var(--source-width) / var(--photo-density)));
  max-height: calc(var(--source-height) / var(--photo-density));
  justify-self: center;
}
.reading .card_icon-box img {
  width: min(100%, 70px, calc(var(--source-width) / var(--photo-density)));
  height: auto;
}
.reading .content-img_wrapper img {
  max-width: min(100%, calc(var(--source-width) / var(--photo-density)));
  max-height: min(420px, calc(var(--source-height) / var(--photo-density)));
  height: auto;
}
