/*
 * TOFIDE — theme public
 * Palette: white, mist, graphite, cobalt and mint.  This layer changes only
 * presentation; templates, form hooks and CMS attributes remain untouched.
 */
:root {
  /* --tofide-primary/secondary are injected by site.php from the CMS. */
  --p: var(--tofide-primary, #1463b8);
  --g: var(--tofide-secondary, #168565);
  --ink: #17212b;
  --muted: #637381;
  --soft: #f3f7fa;
  --line: #d9e3ea;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(23, 33, 43, 0.09);
  --tofide-cobalt: var(--p);
  --tofide-cobalt-dark: #0e4d90;
  --tofide-graphite: #17212b;
  --tofide-mist: #f3f7fa;
  --tofide-mint: #d9f4e7;
  --tofide-mint-strong: var(--g);
}

html { background: var(--white); }

body {
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Avenir Next, Avenir, "Segoe UI", sans-serif;
  letter-spacing: 0.002em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(20, 99, 184, 0.3);
  outline-offset: 3px;
}

.wrap { width: min(1680px, calc(100% - 64px)); }

header.site-header {
  gap: 28px;
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(23, 33, 43, 0.05);
}

.brand { gap: 11px; }
.brand img { width: 52px; height: 52px; border-radius: 8px; }
.brand b { color: var(--tofide-graphite); font-size: 19px; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: 0.12em; }

nav { gap: 21px; }
nav a { color: var(--tofide-graphite); font-size: 13px; font-weight: 780; }
nav a:hover { color: var(--tofide-cobalt); }
nav .nav-action {
  padding: 10px 16px;
  border: 1px solid var(--tofide-cobalt);
  border-radius: 7px;
  background: var(--tofide-cobalt);
  box-shadow: none;
  color: var(--white);
}

.site-menu-toggle {
  border-color: var(--line);
  border-radius: 7px;
  color: var(--tofide-cobalt);
}

.hero {
  min-height: 640px;
  background-color: #351047;
  background-image: linear-gradient(115deg, #24072f 0%, #4b176c 56%, #7030a0 100%);
  background-blend-mode: multiply;
  border-bottom: 5px solid #42c89a;
  color: var(--white);
}

.hero::before {
  inset: 0;
  background: linear-gradient(115deg, rgba(34, 6, 48, 0.9) 0%, rgba(75, 23, 108, 0.78) 58%, rgba(54, 15, 77, 0.7) 100%);
  background-size: auto;
  mask-image: none;
  opacity: 1;
}

.hero::after {
  top: 80px;
  right: max(3vw, 28px);
  width: min(38vw, 520px);
  height: min(38vw, 520px);
  border: 1px solid rgba(234, 216, 245, 0.42);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 30px rgba(234, 216, 245, 0.09), 0 0 0 60px rgba(234, 216, 245, 0.05);
}

.hero .wrap { gap: clamp(40px, 6vw, 96px); padding-top: 84px; padding-bottom: 84px; }
.hero-copy { max-width: 900px; }
.hero-copy small {
  padding: 6px 10px;
  border-color: rgba(217, 244, 231, 0.56);
  border-radius: 5px;
  background: rgba(22, 133, 101, 0.22);
  color: #edfff7;
  letter-spacing: 0.1em;
}
.hero h1 { max-width: 860px; font-size: clamp(42px, 5vw, 74px); letter-spacing: -0.045em; }
.hero p { color: #e4edf2; }
.hero-actions { gap: 12px; }
.hero-actions a {
  padding: 14px 19px;
  border: 1px solid var(--white);
  border-radius: 6px;
  background: var(--white);
  color: var(--tofide-graphite);
}
.hero-actions .green { border-color: #42c89a; background: #42c89a; color: #093428; }
.hero-actions .download-app,
.hero-actions .download-app:hover,
.hero-actions .download-app:focus-visible {
  border-color: var(--tofide-cobalt);
  background: var(--tofide-cobalt);
  box-shadow: none;
  color: var(--white);
}

.hero-card {
  max-width: 440px;
  margin-left: auto;
  padding: 16px;
  border: 1px solid rgba(217, 244, 231, 0.52);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 62px rgba(4, 27, 42, 0.25);
  color: var(--ink);
  backdrop-filter: none;
}

.hero-stats { gap: 8px; max-width: 620px; }
.hero-stats span {
  padding: 12px 8px;
  border: 1px solid rgba(217, 227, 234, 0.7);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
}
.hero-stats b { color: var(--tofide-cobalt); }

.home-highlights { margin-top: -28px; }
.home-highlights .wrap {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(23, 33, 43, 0.1);
}
.home-highlights article { padding: 22px 24px; }
.home-highlights b { color: var(--tofide-cobalt); }

.section,
.content { padding-top: 84px; padding-bottom: 84px; }
.section.soft,
.financial-education,
.website-custom-blocks,
body .content.pale,
body .client-app-downloads { background: var(--tofide-mist); }
.section-heading { max-width: 900px; margin-bottom: 36px; }
.eyebrow { color: var(--tofide-mint-strong); font-size: 12px; letter-spacing: 0.13em; }
.section h2,
.form-intro h2 { color: var(--tofide-graphite); letter-spacing: -0.04em; }
.lead { color: var(--muted); }

.about-layout { gap: clamp(44px, 6vw, 92px); }
.about-image {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #dcecf4;
  box-shadow: var(--shadow);
}
.about-image img { filter: saturate(0.88) contrast(1.03); }
.about-placeholder { color: var(--tofide-graphite); }
.about-placeholder img { border-radius: 10px; }
.check-list { gap: 12px; }
.check-list i { background: var(--tofide-mint); color: #0d674c; }

.cards { gap: 16px; }
.cards article,
.steps article,
.trust article,
.faq details,
.education-tip,
.website-custom-block,
body .client-app-choices article,
body #news .grid article {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06);
}
.cards article { padding: 25px; }
.cards article strong {
  border-radius: 6px;
  background: #e6f0fa;
  color: var(--tofide-cobalt);
}
.cards article:hover,
.steps article:hover,
.trust article:hover,
body .client-app-choices article:hover,
body #news .grid article:hover {
  box-shadow: 0 18px 34px rgba(23, 33, 43, 0.12);
}

.products { gap: 18px; }
.product {
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(23, 33, 43, 0.11);
}
.product.savings { background: var(--tofide-cobalt); }
.product.credit { background: var(--tofide-graphite); }
.product::after { display: none; }
.product a { border-radius: 6px; color: var(--tofide-graphite); }

.steps article { border-radius: 8px; }
.steps article::before { border-radius: 6px; background: var(--tofide-cobalt); }
.trust article {
  border-left-color: #42c89a;
  border-radius: 8px;
}
.faq details { border-radius: 8px; }
.faq details[open] { border-color: rgba(20, 99, 184, 0.4); }
.faq summary::marker { color: var(--tofide-cobalt); }

.education-slider-controls button[aria-pressed] {
  width: auto;
  min-width: 70px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.final-cta {
  padding: 48px;
  border: 1px solid #0e4d90;
  border-radius: 12px;
  background: var(--tofide-cobalt);
  box-shadow: none;
}
.final-cta a {
  border: 1px solid #42c89a;
  border-radius: 6px;
  background: #42c89a;
  color: #093428;
}

.education-slider {
  border: 1px solid #0e4d90;
  border-radius: 12px;
  background: var(--tofide-cobalt);
  box-shadow: var(--shadow);
}
.education-slide::after { background: rgba(9, 35, 54, 0.7); }
.education-slide-copy p { color: #e2edf3; }
.education-slide-copy a {
  border-radius: 6px;
  background: #42c89a;
  color: #093428;
}
.education-slider-controls button {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(9, 35, 54, 0.72);
}
.education-slider-dots button.is-active { background: #42c89a; }
.education-tip { border-radius: 8px; }
.education-tip-number {
  border-radius: 6px;
  background: #e6f0fa;
  color: var(--tofide-cobalt);
}
.education-exercise {
  border: 1px solid #0e4d90;
  border-radius: 10px;
  background: var(--tofide-graphite);
}
.education-exercise .eyebrow { color: #8ee1bd; }
.education-exercise p { color: #d9e5eb; }
.education-exercise a {
  border-radius: 6px;
  background: #42c89a;
  color: #093428;
}

.website-custom-block { border-radius: 10px; }
.website-custom-block a { border-radius: 6px; background: var(--tofide-cobalt); }
.website-custom-block--quote { background: var(--tofide-graphite); }
.website-custom-block--quote cite { color: #8ee1bd; }
.website-custom-block--cta { background: var(--tofide-mint-strong); }
.website-custom-block--cta a { background: var(--white); color: #0d674c; }

/* The phone reproduces the current Android client home screen. */
.connected-phone,
.connected-phone::before { background: var(--tofide-graphite); }
.connected-phone {
  border-color: rgba(217, 244, 231, 0.55);
  border-radius: 34px;
  box-shadow: 0 26px 54px rgba(4, 27, 42, 0.24), 0 0 0 6px rgba(217, 244, 231, 0.13);
}
.phone-client-preview .phone-screen {
  background: #eff5f6;
  color: #1f2c3b;
}
.phone-client-preview .phone-top {
  border: 1px solid #d7e3e6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 57, 72, .07);
}
.phone-client-preview .phone-brand small { color: #0b5cab; }
.phone-client-preview .phone-brand b { color: #1f2c3b; }
.phone-refresh,
.phone-message,
.phone-bell,
.phone-avatar { border-color: #d7e3e6; background: #eff5f6; color: #08457f; }
.phone-message i,
.phone-bell i { border-color: #fff; background: #087443; color: #fff; }
.phone-home-hero {
  border-color: #d7e3e6;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 57, 72, .07);
}
.phone-client-preview .phone-welcome { color: #0b5cab; }
.phone-home-hero > p:last-of-type { color: #526572; }
.phone-client-code { border-radius: 8px; background: #0b5cab; }
.phone-client-code small { color: #d7e9fb; }
.phone-section { border-radius: 15px; }
.phone-section::before { display: none; }
.phone-section.epargne { border-color: #0b5cab; background: #0b5cab; }
.phone-section.remboursement { border-color: #274257; background: #274257; }
.phone-section.credits {
  border-color: #f0b354;
  background: linear-gradient(145deg, #fffaf0, #ffdda0);
  color: #743500;
}
.phone-section.statement {
  border-color: #c9a4df;
  background: linear-gradient(145deg, #fcf8ff, #ead8f5);
  color: #4d1c67;
}
.phone-section.credits .phone-symbol { border-color: #e9a63d; background: #fff2d6; color: #a94d05; }
.phone-section.statement .phone-symbol { border-color: #c9a4df; background: #f6ecfb; color: #7030a0; }
.phone-section.credits .phone-account-line { border-top-color: #e8b65f; color: #743500; }
.phone-section.statement .phone-account-line { border-top-color: #ceb0df; color: #53206d; }
.phone-toast-demo {
  border-color: #d7e3e6;
  border-left-color: #087443;
  border-radius: 13px;
  box-shadow: 0 16px 32px rgba(31, 57, 72, .16);
  color: #1f2c3b;
}
.phone-toast-demo span { color: #526572; }
.phone-preview-caption { color: #dcecf4; }

/* Content appended by the public UI include loads after this file; body makes
   these rules more specific while retaining all form and API behaviour. */
body #news .grid { gap: 16px; }
body #news .grid article { border-radius: 10px; }
body #news .grid article img { filter: saturate(0.9); }
body #news .grid p,
body .client-app-choices p { color: var(--muted); }
body .client-app-choices { gap: 18px; }
body .client-app-choices article {
  padding: 30px;
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06);
}
body .mobile-platform-icon { border-radius: 10px; }
body .mobile-platform-icon.android { background: var(--tofide-mint); color: #0d674c; }
body .mobile-platform-icon.apple { background: #e6f0fa; color: var(--tofide-cobalt); }
body .client-app-choices strong { color: var(--tofide-mint-strong); }
body .client-app-action,
body .client-app-action.iphone {
  border-radius: 6px;
  background: var(--tofide-cobalt);
}
body .client-app-action.iphone { background: var(--tofide-graphite); }

body .credit-request-zone {
  background: var(--tofide-graphite);
  color: var(--white);
}
body .credit-request-zone .eyebrow { color: #8ee1bd; }
body .form-intro h2 { color: inherit; }
body .contact-zone { background: var(--white); }
body .contact-zone .form-intro h2 { color: var(--tofide-graphite); }
body .public-contact {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(4, 27, 42, 0.18);
}
body .public-contact input,
body .public-contact select,
body .public-contact textarea,
body .public-contact button {
  border-color: #cfdde6;
  border-radius: 6px;
  background: #f9fbfc;
  color: var(--tofide-graphite);
}
body .public-contact input:focus,
body .public-contact select:focus,
body .public-contact textarea:focus {
  border-color: var(--tofide-cobalt);
  box-shadow: 0 0 0 3px rgba(20, 99, 184, 0.14);
}
body .public-contact button { background: var(--tofide-cobalt); color: var(--white); }
body .public-contact [data-status] { color: var(--tofide-mint-strong); }
body .credit-consent { color: #415160; }
body .legal { background: var(--tofide-graphite); }
body .website-visitor-count::before { color: #42c89a; }

footer {
  background: #101a23;
  color: #dce7ee;
}

@media (max-width: 1050px) {
  .hero-card { margin-left: 0; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 30px); }
  .section,
  .content { padding-top: 62px; padding-bottom: 62px; }
  .hero { min-height: auto; }
  .hero .wrap { padding-top: 62px; padding-bottom: 62px; }
  .hero h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero::after { width: 220px; height: 220px; }
  .home-highlights { margin-top: -14px; }
  header.site-header nav { box-shadow: 0 14px 24px rgba(23, 33, 43, 0.1); }
}

@media (max-width: 650px) {
  .hero-card,
  .final-cta,
  .education-exercise { border-radius: 9px; }
  body .client-app-choices article,
  body .public-contact { padding: 22px; }
}

/*
 * Readability pass — shared public design language
 *
 * These rules deliberately sit after the legacy presentation layer.  They
 * keep every CMS hook intact while giving long-form content, cards and forms
 * more breathing room and a consistent, accessible visual hierarchy.
 */
:root {
  --tofide-text: #263542;
  --tofide-text-soft: #536574;
  --tofide-focus: #155eef;
  --tofide-radius: 14px;
  --tofide-radius-small: 9px;
}

html { text-rendering: optimizeLegibility; }

body {
  font-size: 17px;
  line-height: 1.65;
}

body :is(p, li) { color: var(--tofide-text-soft); }
body .hero :is(p, li),
body .product :is(p, li),
body .final-cta :is(p, li),
body .credit-request-zone .form-intro p,
body .education-slider :is(p, li),
body .website-custom-block--quote p { color: inherit; }

p { max-width: 72ch; }

h1, h2, h3 {
  text-wrap: balance;
}

[id] { scroll-margin-top: 100px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--tofide-radius-small);
  background: var(--tofide-graphite);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.skip-link:focus { transform: translateY(0); }

a,
button,
input,
select,
textarea,
summary { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(21, 94, 239, .42);
  outline-offset: 3px;
}

header.site-header { min-height: 82px; }
header.site-header nav a { font-size: 14px; }
header.site-header .nav-action { font-weight: 800; }

.section-heading .lead,
.form-intro p { max-width: 68ch; }

.lead {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.68;
}

.cards article,
.steps article,
.trust article,
.faq details,
.education-tip,
.website-custom-block,
body .client-app-choices article,
body #news .grid article {
  border-radius: var(--tofide-radius);
}

.cards h3,
.steps h3,
.trust h3,
.education-tip h3,
body .client-app-choices h3,
body #news .grid h3 {
  line-height: 1.24;
}

.cards p,
.steps p,
.trust p,
.education-tip p,
body .client-app-choices p,
body #news .grid p {
  font-size: 15.5px;
  line-height: 1.62;
}

.faq details {
  transition: border-color .18s ease, box-shadow .18s ease;
}

.faq details[open] {
  border-color: rgba(21, 94, 239, .42);
  box-shadow: 0 10px 24px rgba(23, 33, 43, .06);
}

.faq summary {
  padding-right: 30px;
  color: var(--tofide-graphite);
  font-size: 16px;
  line-height: 1.45;
}

.faq summary::marker { color: var(--tofide-cobalt); }

.product,
.final-cta,
.education-exercise { overflow: hidden; }

.product p,
.product li,
.final-cta p { line-height: 1.6; }

.home-highlights article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.home-highlights span { line-height: 1.5; }

/* Forms use visible labels, helpful grouping and large, low-friction targets. */
body .public-contact {
  max-width: 1160px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--tofide-radius);
}

body .public-contact fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body .public-contact legend {
  margin-bottom: 18px;
  color: var(--tofide-graphite);
  font-size: 18px;
  font-weight: 800;
}

body .credit-request-zone .public-contact legend { color: var(--tofide-graphite); }

body .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

body .public-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--tofide-graphite);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

body .public-field > span { display: flex; flex-wrap: wrap; gap: 5px; }
body .public-field em { color: var(--tofide-text-soft); font-style: normal; font-weight: 500; }
body .public-field.is-wide { grid-column: 1 / -1; }

body .public-contact input,
body .public-contact select,
body .public-contact textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  font-size: 16px;
  line-height: 1.45;
}

body .public-contact textarea { min-height: 124px; resize: vertical; }
body .public-contact select { cursor: pointer; }
body .public-contact ::placeholder { color: #728392; opacity: 1; }

body .public-contact .required-note {
  margin: 18px 0 0;
  color: var(--tofide-text-soft);
  font-size: 13px;
}

body .credit-consent {
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #cfdde6;
  border-radius: var(--tofide-radius-small);
  background: #f7fafc;
  color: #324655;
  font-size: 14px;
  line-height: 1.5;
}

body .credit-consent input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--tofide-cobalt);
}

body .public-contact button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border-radius: var(--tofide-radius-small);
  font-size: 15px;
  letter-spacing: .025em;
}

body .public-contact [data-status] {
  min-height: 1.55em;
  margin: 12px 0 0;
  font-size: 14px;
}

.legal {
  flex-wrap: wrap;
  padding: 22px 24px;
}

.legal a {
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 700;
}

footer { font-size: 14px; line-height: 1.55; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  [id] { scroll-margin-top: 84px; }
  .home-highlights article { min-height: auto; }
  body .form-grid { grid-template-columns: 1fr; gap: 15px; }
  body .public-field.is-wide { grid-column: auto; }
}

/* Eight navigation choices remain comfortable on tablets and small laptops. */
@media (min-width: 761px) and (max-width: 1080px) {
  header.site-header { flex-wrap: wrap; gap: 10px; }
  .site-menu-toggle { display: block; margin-left: auto; }
  header.site-header nav {
    display: none;
    order: 3;
    flex: 0 0 calc(100% + 48px);
    width: calc(100% + 48px);
    margin: 1px -24px -10px;
    padding: 12px 24px 18px;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 14px 24px rgba(23, 33, 43, .1);
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
  }
  header.site-header nav.is-open { display: flex; }
  header.site-header nav a,
  header.site-header nav a:not(.nav-action) {
    display: block !important;
    padding: 11px 12px;
    border-radius: var(--tofide-radius-small);
  }
  header.site-header nav a:hover { background: var(--tofide-mist); }
  header.site-header nav .nav-action { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/*
 * Premium public finish
 * A warmer mauve/emerald identity, richer depth and clearer visual rhythm.
 */
:root {
  --tofide-plum-950: #24072f;
  --tofide-plum-900: #351047;
  --tofide-plum-800: #4b176c;
  --tofide-plum-700: #64248a;
  --tofide-plum-600: #7b35a4;
  --tofide-lilac: #f3eafa;
  --tofide-lilac-soft: #faf7fc;
  --tofide-emerald: #16956a;
  --tofide-emerald-light: #42c89a;
  --tofide-cobalt: var(--tofide-plum-700);
  --tofide-cobalt-dark: var(--tofide-plum-900);
  --tofide-graphite: #28182f;
  --tofide-mist: #f8f5fa;
  --tofide-mint: #ddf6eb;
  --tofide-text: #33253a;
  --tofide-text-soft: #685a70;
  --tofide-focus: #7b35a4;
  --line: #e8ddeb;
  --shadow: 0 22px 60px rgba(53, 16, 71, .10);
}

html { background: #fff; }

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--tofide-text);
}

header.site-header {
  min-height: 86px;
  border-bottom: 1px solid rgba(75, 23, 108, .12);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 28px rgba(53, 16, 71, .07);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 7px 12px rgba(53, 16, 71, .14));
}

.brand b { color: var(--tofide-plum-800); font-size: 21px; }
.brand small { color: #77647f; font-weight: 760; }

header.site-header nav a {
  position: relative;
  padding: 9px 2px;
  color: #4b3b53;
  transition: color .18s ease, transform .18s ease;
}

header.site-header nav a:not(.nav-action)::after {
  position: absolute;
  right: 50%;
  bottom: 2px;
  left: 50%;
  height: 2px;
  border-radius: 3px;
  background: var(--tofide-plum-600);
  content: "";
  transition: right .18s ease, left .18s ease;
}

header.site-header nav a:not(.nav-action):hover::after,
header.site-header nav a:not(.nav-action):focus-visible::after { right: 0; left: 0; }

header.site-header nav .nav-action {
  padding: 12px 18px;
  border-color: transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tofide-plum-800), var(--tofide-plum-600));
  box-shadow: 0 9px 22px rgba(75, 23, 108, .22);
  color: #fff;
}

.hero {
  min-height: min(760px, calc(100vh - 70px));
  border-bottom-color: var(--tofide-emerald-light);
}

.hero::before {
  background:
    radial-gradient(circle at 14% 14%, rgba(171, 100, 203, .22), transparent 30%),
    radial-gradient(circle at 76% 94%, rgba(66, 200, 154, .13), transparent 34%),
    linear-gradient(115deg, rgba(34, 6, 48, .94) 0%, rgba(75, 23, 108, .84) 58%, rgba(54, 15, 77, .76) 100%);
}

.hero::after {
  border-color: rgba(240, 224, 248, .38);
  box-shadow: 0 0 0 34px rgba(240, 224, 248, .08), 0 0 0 72px rgba(240, 224, 248, .04);
}

.hero .wrap { gap: clamp(54px, 7vw, 120px); padding-top: 94px; padding-bottom: 104px; }
.hero-copy { max-width: 980px; }

.hero-copy > small {
  padding: 8px 13px;
  border-color: rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 940px;
  margin-top: 26px;
  color: #fff;
  font-size: clamp(48px, 5.4vw, 82px);
  font-weight: 880;
  line-height: 1.01;
  letter-spacing: -.055em;
  text-shadow: 0 5px 22px rgba(24, 2, 35, .22);
}

.hero p { max-width: 760px; color: rgba(255, 255, 255, .88); line-height: 1.65; }
.hero-actions { gap: 13px; margin-top: 36px; }

.hero-actions a {
  min-height: 52px;
  padding: 15px 22px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(23, 4, 32, .2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hero-actions a:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(23, 4, 32, .28); }
.hero-actions .green { border-color: var(--tofide-emerald-light); background: var(--tofide-emerald-light); }
.hero-actions .download-app,
.hero-actions .download-app:hover,
.hero-actions .download-app:focus-visible {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-stats { gap: 11px; margin-top: 27px; }
.hero-stats span {
  min-height: 80px;
  padding: 13px 12px;
  border-color: rgba(255, 255, 255, .3);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 26px rgba(24, 2, 35, .16);
}
.hero-stats b { color: var(--tofide-plum-700); font-size: 23px; }
.hero-stats small { color: #55445e; font-weight: 720; }

.hero-card {
  max-width: 460px;
  padding: 24px;
  border-color: rgba(255, 255, 255, .34);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06));
  box-shadow: 0 35px 90px rgba(24, 2, 35, .34), inset 0 1px rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.connected-phone,
.connected-phone::before { background: #140f18; }
.connected-phone { box-shadow: 0 30px 70px rgba(14, 2, 20, .38), 0 0 0 7px rgba(255, 255, 255, .1); }
.phone-client-preview .phone-top { border-color: #d7e3e6; background: #fff; }
.phone-section.epargne { border-color: #0b5cab; background: #0b5cab; }
.phone-client-code { background: #0b5cab; }
.phone-preview-caption { color: rgba(255, 255, 255, .82); }

.home-highlights { margin-top: -44px; }
.home-highlights .wrap {
  border: 1px solid rgba(75, 23, 108, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 70px rgba(53, 16, 71, .13);
}
.home-highlights article { position: relative; min-height: 128px; padding: 26px 28px 24px 34px; }
.home-highlights article::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 20px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(var(--tofide-plum-600), var(--tofide-emerald-light));
  content: "";
}
.home-highlights b { color: var(--tofide-plum-800); font-size: 18px; }
.home-highlights span { color: var(--tofide-text-soft); }

.section,
.content { padding-top: clamp(78px, 8vw, 118px); padding-bottom: clamp(78px, 8vw, 118px); }
.section.soft,
.financial-education,
.website-custom-blocks,
body .content.pale,
body .client-app-downloads { background: linear-gradient(180deg, #fbf9fc, var(--tofide-lilac-soft)); }

.section-heading { max-width: 970px; margin-bottom: 46px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tofide-emerald);
  font-weight: 880;
}
.eyebrow::before { width: 22px; height: 3px; border-radius: 9px; background: currentColor; content: ""; }
.section h2,
.content h2,
.form-intro h2 {
  margin-top: 11px;
  color: var(--tofide-plum-900);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.lead { color: var(--tofide-text-soft); }

.about-layout { gap: clamp(56px, 7vw, 110px); }
.about-image {
  position: relative;
  overflow: hidden;
  border-color: rgba(75, 23, 108, .14);
  border-radius: 30px;
  background: linear-gradient(145deg, var(--tofide-lilac), #e3f6ed);
  box-shadow: 0 28px 70px rgba(53, 16, 71, .14);
}
.about-image::after { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .55); border-radius: inherit; content: ""; pointer-events: none; }
.about-placeholder { color: var(--tofide-plum-900); }
.check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.check-list span { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(53, 16, 71, .05); }
.check-list i { width: 28px; border-radius: 9px; background: var(--tofide-mint); color: #0b704e; }
.check-list b { color: #45324d; font-size: 14px; line-height: 1.5; }

.cards { gap: 22px; }
.cards article,
.steps article,
.trust article,
.education-tip,
body .client-app-choices article,
body #news .grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 23, 108, .12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(53, 16, 71, .07);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.cards article { padding: 30px; }
.cards article::after,
.education-tip::after {
  position: absolute;
  top: -42px;
  right: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--tofide-lilac);
  content: "";
}
.cards article strong,
.education-tip-number {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tofide-plum-800), var(--tofide-plum-600));
  color: #fff;
  box-shadow: 0 9px 20px rgba(75, 23, 108, .2);
}
.cards article:hover,
.steps article:hover,
.trust article:hover,
.education-tip:hover,
body .client-app-choices article:hover,
body #news .grid article:hover { transform: translateY(-6px); border-color: rgba(123, 53, 164, .28); box-shadow: 0 24px 55px rgba(53, 16, 71, .13); }

.products { gap: 25px; }
.product {
  min-height: 470px;
  padding: clamp(34px, 4vw, 52px);
  border-color: rgba(255, 255, 255, .22);
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(53, 16, 71, .16);
}
.product::after { display: block; right: -70px; bottom: -90px; border-color: rgba(255, 255, 255, .08); }
.product.savings { background: linear-gradient(145deg, #087a55, #16956a 58%, #42b989); }
.product.credit { background: linear-gradient(145deg, var(--tofide-plum-950), var(--tofide-plum-800) 58%, var(--tofide-plum-600)); }
.product small { font-weight: 880; letter-spacing: .12em; opacity: .82; }
.product h3 { font-size: clamp(35px, 4vw, 52px); }
.product li { margin: 8px 0; }
.product a { border-radius: 12px; box-shadow: 0 12px 24px rgba(15, 3, 20, .16); transition: transform .18s ease; }
.product a:hover { transform: translateY(-2px); }

.education-slider {
  border-color: rgba(75, 23, 108, .22);
  border-radius: 28px;
  background: var(--tofide-plum-900);
  box-shadow: 0 28px 70px rgba(53, 16, 71, .16);
}
.education-slide::after { background: linear-gradient(90deg, rgba(36, 7, 47, .94), rgba(75, 23, 108, .7) 56%, rgba(36, 7, 47, .18)); }
.education-slide-copy a { border-radius: 12px; background: var(--tofide-emerald-light); box-shadow: 0 10px 24px rgba(7, 70, 49, .2); }
.education-slider-controls button { background: rgba(36, 7, 47, .76); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.education-tip { padding: 28px; }
.education-exercise {
  margin-top: 26px;
  padding: 30px 34px;
  border-color: rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: linear-gradient(120deg, var(--tofide-plum-950), var(--tofide-plum-700));
  box-shadow: 0 20px 46px rgba(53, 16, 71, .16);
}
.education-exercise a { border-radius: 11px; }

.steps { position: relative; gap: 20px; }
.steps::before { position: absolute; top: 50px; right: 8%; left: 8%; height: 2px; background: linear-gradient(90deg, var(--tofide-plum-600), var(--tofide-emerald-light)); content: ""; opacity: .28; }
.steps article { z-index: 1; padding: 30px 26px; }
.steps article::before { width: 48px; height: 48px; border: 5px solid #fff; border-radius: 50%; background: var(--tofide-plum-700); box-shadow: 0 7px 18px rgba(75, 23, 108, .22); }

.trust { gap: 22px; }
.trust article { padding: 34px 30px; border-left: 1px solid rgba(75, 23, 108, .12); border-top: 5px solid var(--tofide-emerald-light); border-radius: 20px; }
.trust article:nth-child(2) { border-top-color: var(--tofide-plum-600); }
.trust article:nth-child(3) { border-top-color: #d89a38; }
.trust h3 { color: var(--tofide-plum-900); font-size: 23px; }

.faq { gap: 16px; }
.faq details { padding: 0; border-color: rgba(75, 23, 108, .12); border-radius: 17px; background: #fff; box-shadow: 0 10px 26px rgba(53, 16, 71, .05); }
.faq details[open] { border-color: rgba(123, 53, 164, .38); box-shadow: 0 17px 36px rgba(53, 16, 71, .09); }
.faq summary { position: relative; padding: 22px 58px 22px 22px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 50%; right: 20px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--tofide-lilac); color: var(--tofide-plum-700); content: "+"; font-size: 21px; font-weight: 800; transform: translateY(-50%); }
.faq details[open] summary::after { content: "−"; background: var(--tofide-plum-700); color: #fff; }
.faq details p { margin: 0; padding: 0 22px 24px; }

body #news .grid { gap: 24px; }
body #news .grid article { border-radius: 22px; }
body #news .grid article img { height: 230px; filter: saturate(.96) contrast(1.02); }
body #news .news-copy { padding: 28px; }

body .client-app-choices { gap: 24px; }
body .client-app-choices article { padding: 36px; border-radius: 24px; }
body .client-app-choices article::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--tofide-plum-600), var(--tofide-emerald-light)); content: ""; }
body .mobile-platform-icon { width: 76px; height: 76px; border-radius: 22px; }
body .mobile-platform-icon.android { background: var(--tofide-mint); }
body .mobile-platform-icon.apple { background: var(--tofide-lilac); color: var(--tofide-plum-800); }
body .client-app-choices strong { color: var(--tofide-emerald); }
body .client-app-action,
body .client-app-action.iphone,
body .client-app-action:visited,
body .client-app-action:hover,
body .client-app-action:focus-visible { border-radius: 12px; background: linear-gradient(135deg, var(--tofide-plum-800), var(--tofide-plum-600)); box-shadow: 0 11px 25px rgba(75, 23, 108, .2); color: #fff; }
body .client-app-action span { color: inherit; }
body .client-app-action:hover { filter: brightness(1.07); transform: translateY(-2px); }

body .credit-request-zone {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(156, 83, 190, .27), transparent 30%),
    radial-gradient(circle at 5% 90%, rgba(66, 200, 154, .12), transparent 28%),
    linear-gradient(135deg, var(--tofide-plum-950), var(--tofide-plum-800));
}
body .credit-request-zone .eyebrow { color: #9be8ca; }
body .credit-request-zone .form-intro h2 { color: #fff; }
body .contact-zone { background: linear-gradient(180deg, #fff, var(--tofide-lilac-soft)); }

body .public-contact {
  border: 1px solid rgba(75, 23, 108, .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 75px rgba(28, 7, 38, .2);
}
body .contact-zone .public-contact { box-shadow: 0 24px 60px rgba(53, 16, 71, .1); }
body .public-contact legend { color: var(--tofide-plum-900); }
body .public-contact input,
body .public-contact select,
body .public-contact textarea {
  border-color: #dfd2e4;
  border-radius: 11px;
  background: #fcfafc;
}
body .public-contact input:hover,
body .public-contact select:hover,
body .public-contact textarea:hover { border-color: #b995c8; }
body .public-contact input:focus,
body .public-contact select:focus,
body .public-contact textarea:focus { border-color: var(--tofide-plum-600); background: #fff; box-shadow: 0 0 0 4px rgba(123, 53, 164, .12); }
body .credit-consent { border-color: #e2d7e7; border-radius: 12px; background: var(--tofide-lilac-soft); }
body .credit-consent input { accent-color: var(--tofide-plum-700); }
body .public-contact button { border-radius: 12px; background: linear-gradient(135deg, var(--tofide-plum-800), var(--tofide-plum-600)); box-shadow: 0 12px 27px rgba(75, 23, 108, .22); }

.final-cta {
  position: relative;
  padding: clamp(42px, 5vw, 68px);
  border-color: rgba(255, 255, 255, .16);
  border-radius: 28px;
  background: linear-gradient(125deg, var(--tofide-plum-950), var(--tofide-plum-700));
  box-shadow: 0 28px 70px rgba(53, 16, 71, .18);
}
.final-cta::after { position: absolute; right: -70px; bottom: -110px; width: 280px; height: 280px; border: 54px solid rgba(255, 255, 255, .06); border-radius: 50%; content: ""; }
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; }
.final-cta-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.final-cta-actions a { border-radius: 12px; box-shadow: 0 12px 28px rgba(8, 65, 45, .18); }
.final-cta-actions .final-cta-project { background: var(--tofide-emerald-light); }
.final-cta-actions .final-cta-contact,
.final-cta-actions .final-cta-contact:hover,
.final-cta-actions .final-cta-contact:focus-visible { border-color: #d93545; background: linear-gradient(135deg, #e94555, #bb1f34); box-shadow: 0 12px 28px rgba(126, 20, 37, .3); color: #fff; }

body .legal { background: var(--tofide-plum-900); }
body .legal a { color: rgba(255, 255, 255, .88); }
footer { background: #1c0826; color: #eadff0; }

@media (max-width: 1050px) {
  .hero { min-height: auto; }
  .hero-card { margin-inline: auto; }
  .check-list { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

@media (max-width: 760px) {
  header.site-header { min-height: 74px; }
  header.site-header nav { background: rgba(255, 255, 255, .98); }
  header.site-header nav a:not(.nav-action)::after { display: none; }
  .hero .wrap { padding-top: 68px; padding-bottom: 82px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-actions a { width: 100%; justify-content: center; text-align: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats span:last-child { grid-column: 1 / -1; }
  .home-highlights { margin-top: -28px; }
  .home-highlights .wrap { border-radius: 18px; }
  .home-highlights article { min-height: 104px; }
  .section-heading { margin-bottom: 34px; }
  .about-image { border-radius: 22px; }
  .cards,
  .products,
  .steps,
  .trust,
  .education-tips,
  .faq { gap: 14px; }
  .product { min-height: 0; border-radius: 22px; }
  .education-slider { border-radius: 20px; }
  .education-exercise { padding: 24px; }
  body .client-app-choices article,
  body .public-contact { border-radius: 18px; }
  .final-cta { border-radius: 22px; }
  .final-cta-actions { justify-content: flex-start; margin-top: 18px; }
  .final-cta-actions a { margin-top: 0; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats span:last-child { grid-column: auto; }
  .hero-card { padding: 14px; border-radius: 24px; }
  .cards article,
  .steps article,
  .trust article,
  .education-tip { padding: 24px; }
  .final-cta { padding: 34px 25px; }
}

/* --------------------------------------------------------------------------
   TOFIDE 2026 — finition commune
   Cette couche ne change ni les contenus ni les parcours : elle harmonise
   les surfaces, le contraste et l'aperçu mobile avec les applications.
   -------------------------------------------------------------------------- */
:root {
  --p: var(--tofide-plum-700);
  --g: var(--tofide-emerald);
  --tofide-radius-card: 24px;
  --tofide-radius-control: 13px;
  --tofide-surface: #ffffff;
  --tofide-surface-soft: #fcf9fd;
  --tofide-border-soft: #e8ddeb;
}

::selection { background: #e8d2f4; color: #2e0b47; }

body { text-rendering: optimizeLegibility; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline-color: rgba(113, 49, 155, .58);
}

.section,
.content { scroll-margin-top: 104px; }

.section.soft,
.financial-education,
.website-custom-blocks,
body .content.pale,
body .client-app-downloads {
  background:
    radial-gradient(circle at 8% 8%, rgba(172, 102, 203, .10), transparent 24rem),
    linear-gradient(180deg, #fbf8fd, #f5eef9);
}

.cards article,
.steps article,
.trust article,
.education-tip,
.website-custom-block,
body .client-app-choices article,
body #news .grid article {
  border-color: var(--tofide-border-soft);
  background: linear-gradient(145deg, #ffffff, var(--tofide-surface-soft));
}

.cards article:hover,
.steps article:hover,
.trust article:hover,
body .client-app-choices article:hover,
body #news .grid article:hover {
  border-color: rgba(113, 49, 155, .28);
  box-shadow: 0 22px 48px rgba(53, 16, 71, .13);
}

.hero-card {
  border-color: rgba(255, 255, 255, .26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  box-shadow: 0 32px 78px rgba(20, 3, 31, .34), inset 0 1px rgba(255, 255, 255, .12);
}

/* L'aperçu reprend la palette de la nouvelle application client. */
.phone-client-preview .phone-screen { background: #f8f5fc; color: #281533; }
.phone-client-preview .phone-top,
.phone-home-hero {
  border-color: #e4d9eb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(53, 16, 71, .08);
}
.phone-client-preview .phone-brand small,
.phone-client-preview .phone-welcome { color: #6d2b91; }
.phone-client-preview .phone-brand b { color: #281533; }
.phone-refresh,
.phone-message,
.phone-bell,
.phone-avatar {
  border-color: #e4d9eb;
  background: #f3eafa;
  color: #4a1766;
}
.phone-home-hero > p:last-of-type { color: #685872; }
.phone-client-code { background: linear-gradient(135deg, #4a1766, #71319b); }
.phone-client-code small { color: #f1ddfa; }
.phone-section.epargne {
  border-color: #087443;
  background: linear-gradient(135deg, #087443, #16956a 68%, #41bd8d);
}
.phone-section.remboursement {
  border-color: #351047;
  background: linear-gradient(135deg, #2e0b47, #4a1766 62%, #71319b);
}
.phone-section.statement {
  border-color: #c7a5da;
  background: linear-gradient(145deg, #fcf8ff, #eadcf4);
  color: #4a1766;
}
.phone-section.statement .phone-symbol { border-color: #cfb1df; background: #f6edfb; color: #71319b; }
.phone-section.statement .phone-account-line { border-top-color: #dbc4e7; color: #4a1766; }
.phone-toast-demo {
  border-color: #e4d9eb;
  border-left-color: #13875b;
  box-shadow: 0 18px 36px rgba(53, 16, 71, .16);
  color: #281533;
}
.phone-toast-demo span { color: #685872; }

@media (max-width: 760px) {
  .section,
  .content { scroll-margin-top: 82px; }
  .cards article:hover,
  .steps article:hover,
  .trust article:hover,
  body .client-app-choices article:hover,
  body #news .grid article:hover { transform: none; }
  .hero-card { box-shadow: 0 24px 54px rgba(20, 3, 31, .30); }
}

/* Mise en page large et emplacement publicitaire administrable. */
.wrap {
  width: min(1900px, calc(100% - 40px));
}

.hero.has-ad-media .wrap {
  --hero-showcase-card-width: 460px;
  --hero-showcase-card-height: 753px;
  grid-template-columns: minmax(500px, 1.16fr) minmax(360px, .72fr) minmax(360px, .72fr);
  gap: clamp(22px, 2.6vw, 50px);
  align-items: center;
}

.hero.has-ad-media .hero-copy { min-width: 0; }

.hero.has-ad-media .hero-ad-slot,
.hero.has-ad-media .hero-card {
  width: min(100%, var(--hero-showcase-card-width));
  max-width: var(--hero-showcase-card-width);
  justify-self: center;
  margin-inline: 0;
}

.hero-ad-slot {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  height: var(--hero-showcase-card-height, 753px);
  min-height: 0;
  max-height: none;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  box-shadow: 0 30px 76px rgba(20, 3, 31, .32), inset 0 1px rgba(255, 255, 255, .14);
  transform: rotate(-1.5deg);
  transform-origin: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-ad-media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #1c0929;
}

.hero-ad-media-backdrop {
  position: absolute;
  z-index: 0;
  inset: -38px;
  display: block;
  width: calc(100% + 76px);
  height: calc(100% + 76px);
  object-fit: cover;
  filter: blur(26px) saturate(1.22) brightness(.72);
  opacity: .92;
  pointer-events: none;
  transform: scale(1.08);
}

.hero-ad-media-foreground {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

/* Compatibilité avec une affiche publiée par une ancienne version du thème. */
.hero-ad-slot > img,
.hero-ad-slot > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(17, 3, 25, .42);
}

.hero-ad-placeholder {
  display: grid;
  place-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 28px;
  color: rgba(255, 255, 255, .82);
  text-align: center;
}

.hero-ad-placeholder span {
  justify-self: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero-ad-placeholder b { color: #fff; font-size: clamp(19px, 2vw, 26px); line-height: 1.15; }
.hero-ad-placeholder small { font-size: 12px; line-height: 1.5; }

@media (max-width: 1320px) {
  .hero.has-ad-media .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
  }
  .hero.has-ad-media .hero-copy { grid-column: 1 / -1; max-width: 1050px; }
  .hero.has-ad-media .hero-ad-slot,
  .hero.has-ad-media .hero-card { justify-self: center; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 30px); }
  .hero.has-ad-media .wrap { grid-template-columns: 1fr; }
  .hero.has-ad-media .hero-copy { grid-column: auto; }
  .hero.has-ad-media .hero-ad-slot {
    justify-self: center;
    width: min(100%, 460px);
    height: clamp(620px, 150vw, var(--hero-showcase-card-height));
  }
  .hero.has-ad-media .hero-card { justify-self: center; }
}

@media (max-width: 620px) {
  .hero-ad-slot { transform: rotate(-1deg); }
}
