/* ==========================================================================
   Daimler Buses : simulateur de financement
   Palette Catppuccin Mocha, titres Karbon, textes HP Simplified
   ========================================================================== */

/* ---------- Polices (locales, aucun réseau) ---------- */
@font-face { font-family: 'Karbon'; src: url('fonts/Karbon-Regular.ttf') format('truetype');  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karbon'; src: url('fonts/Karbon-Medium.ttf') format('truetype');   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karbon'; src: url('fonts/Karbon-Semibold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karbon'; src: url('fonts/Karbon-Bold.ttf') format('truetype');     font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: 'HP Simplified'; src: url('fonts/HPSIMPLIFIED_LT.TTF') format('truetype');   font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'HP Simplified'; src: url('fonts/HPSIMPLIFIED_LTIT.TTF') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'HP Simplified'; src: url('fonts/HPSimplified_Rg.ttf') format('truetype');   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'HP Simplified'; src: url('fonts/HPSIMPLIFIED_IT.TTF') format('truetype');   font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'HP Simplified'; src: url('fonts/HPSIMPLIFIED.TTF') format('truetype');      font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'HP Simplified'; src: url('fonts/HPSIMPLIFIED_BDIT.TTF') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }

/* ---------- Palette Catppuccin Mocha ---------- */
:root {
  --rosewater: #f5e0dc; --flamingo: #f2cdcd; --pink: #f5c2e7; --mauve: #cba6f7;
  --red: #f38ba8; --maroon: #eba0ac; --peach: #fab387; --yellow: #f9e2af;
  --green: #a6e3a1; --teal: #94e2d5; --sky: #89dceb; --sapphire: #74c7ec;
  --blue: #89b4fa; --lavender: #b4befe;
  --text: #cdd6f4; --subtext1: #bac2de; --subtext0: #a6adc8;
  --overlay2: #9399b2; --overlay1: #7f849c; --overlay0: #6c7086;
  --surface2: #585b70; --surface1: #45475a; --surface0: #313244;
  --base: #1e1e2e; --mantle: #181825; --crust: #11111b;

  --font-title: 'Karbon', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'HP Simplified', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(17, 17, 27, .45);
  --ring: 0 0 0 3px rgba(137, 180, 250, .35);
  --container: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--base);
  background-image:
    radial-gradient(900px 500px at 8% -10%, rgba(137, 180, 250, .10), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(203, 166, 247, .07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.15; margin: 0; color: var(--text); letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--sapphire); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.muted { color: var(--subtext0); }
.eyebrow {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--mantle); /* opaque : le logo fusionné (mix-blend-mode) doit se fondre exactement dans ce fond */
  border-bottom: 1px solid var(--surface0);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 72px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
/* Le logo est noir sur fond blanc : on l'inverse et on fusionne le noir avec le fond. */
.brand img {
  height: 46px; width: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  font-family: var(--font-title); font-weight: 500; font-size: .95rem;
  color: var(--subtext1);
  padding: .5rem .9rem; border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface0); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--surface0); color: var(--blue); }

/* ---------- Contenu ---------- */
main { flex: 1; padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head { max-width: 720px; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: .35rem; }
.page-head .lead { margin-top: .75rem; font-size: 1.125rem; color: var(--subtext1); }

/* Hero (accueil) */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); margin-top: .5rem; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-top: 1rem; font-size: 1.15rem; color: var(--subtext1); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.advantages {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}
.advantages h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.advantages ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.advantages li { display: flex; align-items: flex-start; gap: .7rem; color: var(--subtext1); }
.advantages li svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(166, 227, 161, .15); color: var(--green); }

/* Cartes de choix */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative;
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.5rem;
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(137, 180, 250, .14); color: var(--blue);
}
.card.-teal .icon { background: rgba(148, 226, 213, .14); color: var(--teal); }
.card.-peach .icon { background: rgba(250, 179, 135, .14); color: var(--peach); }
.card h2 { font-size: 1.4rem; }
.card p { color: var(--subtext1); flex: 1; }
.card .cta { font-family: var(--font-title); font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: .35rem; }
.card:hover .cta svg { transform: translateX(3px); }
.card .cta svg { transition: transform .18s; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--crust); }
.btn-primary:hover { background: var(--lavender); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--surface2); }
.btn-ghost:hover { background: var(--surface0); border-color: var(--overlay0); }

/* ---------- Simulateur ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; }
.panel {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.panel + .panel { margin-top: 1.5rem; }
.field { display: grid; gap: .55rem; }
.field + .field { margin-top: 1.5rem; }
.field label, .field .label { font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; }
.field .hint { font-size: .9rem; color: var(--subtext0); }

/* Select */
.select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background-color: var(--mantle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a6adc8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  border: 1px solid var(--surface2);
  border-radius: var(--radius-sm);
  padding: .8rem 2.75rem .8rem 1rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.select:hover { border-color: var(--overlay0); }
.select:focus-visible { border-color: var(--blue); box-shadow: var(--ring); }
.select optgroup { font-family: var(--font-title); font-weight: 600; color: var(--blue); background: var(--mantle); }
.select option { color: var(--text); background: var(--mantle); font-weight: 400; }

/* Contrôle segmenté (durée) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .35rem; background: var(--mantle); border: 1px solid var(--surface2); border-radius: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .6rem .5rem; border-radius: 9px;
  font-family: var(--font-title); font-weight: 600; color: var(--subtext0);
  transition: background .15s, color .15s;
}
.seg span small { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--overlay1); }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--blue); color: var(--crust); }
.seg input:checked + span small { color: rgba(17, 17, 27, .7); }
.seg input:focus-visible + span { box-shadow: var(--ring); }

/* Résultat */
.result {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.result-media { position: relative; aspect-ratio: 16 / 9; background: var(--mantle); display: grid; place-items: center; }
.result-media img { width: 100%; height: 100%; object-fit: cover; }
.result-media .placeholder { display: grid; place-items: center; gap: .75rem; color: var(--overlay1); text-align: center; padding: 1.5rem; }
.result-media .placeholder svg { width: 56px; height: 56px; color: var(--surface2); }
.result-body { padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 1.25rem; }
.result-head h2 { font-size: 1.6rem; }
.result-head .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.tag {
  font-family: var(--font-title); font-weight: 600; font-size: .78rem; letter-spacing: .04em;
  padding: .25rem .65rem; border-radius: 999px;
  background: rgba(137, 180, 250, .14); color: var(--blue);
}
.tag.-neutral { background: var(--surface1); color: var(--subtext1); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stat { background: var(--mantle); border: 1px solid var(--surface1); border-radius: var(--radius); padding: 1rem; }
.stat dt { font-size: .85rem; color: var(--subtext0); margin-bottom: .35rem; }
.stat dd { margin: 0; font-family: var(--font-title); font-weight: 700; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat dd small { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--subtext0); display: block; margin-top: .3rem; }
.stat.-primary { background: rgba(137, 180, 250, .12); border-color: rgba(137, 180, 250, .45); }
.stat.-primary dd { color: var(--blue); }

.result-note { font-size: .9rem; color: var(--subtext0); border-top: 1px solid var(--surface1); padding-top: 1rem; }
.result.is-empty .result-body { display: none; }
.result.is-empty .result-media { aspect-ratio: auto; min-height: 260px; }
.empty-title { font-family: var(--font-title); font-weight: 600; color: var(--subtext1); font-size: 1.1rem; }

/* ---------- Assurance ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.two-col > .field + .field { margin-top: 0; }
.savings {
  display: grid; gap: .35rem;
  background: linear-gradient(135deg, rgba(166, 227, 161, .16), rgba(148, 226, 213, .10));
  border: 1px solid rgba(166, 227, 161, .4);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 1.5rem;
}
.savings .amount { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green); line-height: 1.1; font-variant-numeric: tabular-nums; }
.savings .detail { color: var(--subtext1); }
.savings .detail b { color: var(--text); font-weight: 700; }
.savings .detail s { color: var(--subtext0); }

.table-wrap { overflow-x: auto; border: 1px solid var(--surface1); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--surface1); }
th { font-family: var(--font-title); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--subtext0); background: var(--mantle); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(137, 180, 250, .05); }
td.-dur { font-variant-numeric: tabular-nums; color: var(--subtext1); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-title); font-weight: 600; font-size: .82rem; padding: .25rem .65rem; border-radius: 999px; }
.pill svg { width: 14px; height: 14px; }
.pill.-yes { background: rgba(166, 227, 161, .16); color: var(--green); }
.pill.-no { background: rgba(243, 139, 168, .14); color: var(--red); }

.section { margin-top: clamp(2rem, 5vw, 3rem); }
.section > h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.section > .muted { margin-bottom: 1.1rem; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface0); border: 1px solid var(--surface1); border-radius: var(--radius); overflow: hidden; }
.faq details[open] { border-color: var(--surface2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-title); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--subtext0); border-bottom: 2px solid var(--subtext0);
  transform: rotate(45deg); transition: transform .2s; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq .answer { padding: 0 1.25rem 1.15rem; color: var(--subtext1); }
.faq .answer p + p { margin-top: .6rem; }
.faq .answer ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.faq .answer b { color: var(--peach); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--surface0); background: var(--mantle); padding-block: 1.5rem; font-size: .88rem; color: var(--subtext0); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .sim { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .stats { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
  .nav a { padding: .45rem .7rem; font-size: .9rem; }
  .site-header { position: static; } /* sur deux lignes, un en-tête collant masquerait trop de contenu */
  .seg span small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Version « concession » : hero photo, cartes illustrées, récapitulatif d’offre
   ========================================================================== */

/* En-tête : bouton d’action */
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.header-cta { margin-left: .5rem; }

/* Sections */
.section-head { max-width: 680px; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: .35rem; }
.section-head .muted { margin-top: .5rem; font-size: 1.05rem; }
main.home { padding-block: 0 clamp(2rem, 5vw, 3.5rem); }
main.home .section { margin-top: clamp(3rem, 7vw, 5rem); }

/* Hero avec photo d’ambiance floutée */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--surface0); }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.hero-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24, 24, 37, .9) 0%, rgba(24, 24, 37, .55) 42%, rgba(24, 24, 37, .08) 100%),
              linear-gradient(180deg, rgba(24, 24, 37, .35), rgba(24, 24, 37, .15) 55%, rgba(24, 24, 37, .85));
}
.hero-band .hero-bg { object-position: 50% 62%; }
.hero-band .hero { min-height: 620px; }

/* Bandeau photo des pages intérieures */
main:has(> .page-hero) { padding-top: 0; }
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--surface0); margin-bottom: clamp(2rem, 5vw, 3rem); }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24, 24, 37, .92) 0%, rgba(24, 24, 37, .6) 50%, rgba(24, 24, 37, .1) 100%),
              linear-gradient(180deg, rgba(24, 24, 37, .1), rgba(24, 24, 37, .75));
}
.page-hero .hero-bg { object-position: 50% 45%; }
/* Variante : texte à droite, photo dégagée à gauche (page Cars) */
.page-hero--right::after {
  background: linear-gradient(270deg, rgba(24, 24, 37, .92) 0%, rgba(24, 24, 37, .6) 50%, rgba(24, 24, 37, .1) 100%),
              linear-gradient(180deg, rgba(24, 24, 37, .1), rgba(24, 24, 37, .75));
}
.page-hero--right .hero-bg { object-position: 15% 58%; }
.page-hero--right .page-head { display: grid; justify-content: end; text-align: right; }
.page-hero--right .page-head h1, .page-hero--right .page-head .lead { max-width: 640px; }
.offer-list dd { white-space: nowrap; }
.page-hero .page-head { position: relative; z-index: 1; max-width: var(--container); margin-bottom: 0; padding-block: clamp(4rem, 9vw, 7.5rem); }
.page-hero--bus .hero-bg { object-position: 50% 42%; }
.page-hero--assurance .hero-bg { object-position: 50% 22%; }
.page-hero .page-head h1, .page-hero .page-head .lead { max-width: 640px; }

/* Conditions du leasing */
.conditions { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.conditions td:first-child { font-family: var(--font-title); font-weight: 600; white-space: nowrap; }
.conditions-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.conditions-list li { position: relative; padding-left: 1.5rem; color: var(--subtext1); }
.conditions-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
@media (max-width: 900px) { .conditions { grid-template-columns: 1fr; } }
.hero-band .hero { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5.5rem); margin-bottom: 0; grid-template-columns: 1.15fr .85fr; }
.hero-copy .lead { max-width: 32rem; }

.facts { list-style: none; margin: 2.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--surface1); display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.5rem 2.5rem; }
.facts li { display: grid; gap: .1rem; }
.facts b { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--text); line-height: 1.1; }
.facts span { font-size: .85rem; color: var(--subtext0); }

/* Véhicule à la une */
.featured {
  display: block; color: var(--text);
  background: var(--surface0); border: 1px solid var(--surface1); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.featured:hover { transform: translateY(-4px); border-color: var(--blue); text-decoration: none; }
.featured img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.featured-body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .3rem; }
.featured-body h2 { font-size: 1.6rem; }
.featured-body .cta { margin-top: .6rem; font-family: var(--font-title); font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: .35rem; }
.featured:hover .cta svg { transform: translateX(3px); }
.featured .cta svg { transition: transform .18s; }

/* Cartes illustrées */
.card { padding: 0; gap: 0; }
.card-media { aspect-ratio: 16 / 9; background: var(--mantle); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media--icon { display: grid; place-items: center; color: var(--peach); background: linear-gradient(135deg, rgba(250, 179, 135, .16), rgba(243, 139, 168, .08)); }
.card-body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { font-size: 1.35rem; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { position: relative; padding: 1.5rem; border: 1px solid var(--surface1); border-radius: var(--radius-lg); background: rgba(49, 50, 68, .5); }
.step-num { display: block; font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--blue); opacity: .85; margin-bottom: .9rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.steps p { color: var(--subtext1); }

/* Avantages (grille) */
.advantages-band { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--surface1); border-radius: var(--radius-lg); background: var(--surface0); }
.advantages-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.advantages-grid li { display: flex; gap: .9rem; align-items: flex-start; }
.advantages-grid svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(166, 227, 161, .15); color: var(--green); margin-top: .1rem; }
.advantages-grid h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.advantages-grid p { color: var(--subtext1); font-size: .98rem; }

/* Résultat : légende sur la photo, récapitulatif, actions */
.result-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 3.5rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(17, 17, 27, .9));
  display: grid; gap: .5rem;
}
.result-caption h2 { font-size: 1.7rem; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.result-caption .tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.result-caption .tag { background: var(--blue); color: var(--crust); backdrop-filter: none; }
.result-caption .tag.-neutral { background: var(--crust); color: var(--text); border: 1px solid var(--surface2); }

.offer { border-top: 1px solid var(--surface1); padding-top: 1.25rem; }
.offer h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.offer-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.offer-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--surface1); }
.offer-list dt { color: var(--subtext0); font-size: .95rem; }
.offer-list dd { margin: 0; font-family: var(--font-title); font-weight: 600; text-align: right; }
.result-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Pied de page structuré */
.site-footer { padding-block: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 1.5rem; }
.footer-brand img { height: 40px; width: auto; filter: invert(1); mix-blend-mode: screen; margin-bottom: .75rem; }
.footer-brand p { max-width: 32rem; }
.site-footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--subtext1); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer ul a { color: var(--subtext0); }
.site-footer ul a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--surface0); padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .82rem; }

@media (max-width: 900px) {
  .hero-band .hero { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, auto); }
  .steps { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  .offer-list { grid-template-columns: 1fr; }
  .result-actions .btn { width: 100%; }
}

/* ---------- Impression : la simulation seule, sur fond blanc ---------- */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-footer, .sim .panel, .result-actions, .page-head .lead, .hero-bg, .nav, .header-cta { display: none !important; }
  main { padding: 0; }

  /* En-tête : uniquement le logo, dans ses couleurs d’origine (noir sur blanc) */
  .site-header { position: static; background: none; border-bottom: 1px solid #ccc; }
  .site-header .container { min-height: 0; padding-block: .5rem; }
  .brand img { filter: none; mix-blend-mode: normal; height: 40px; }

  /* Bandeau : titre simple, aligné à gauche */
  .page-hero { border: 0; margin-bottom: 1rem; }
  .page-hero::after { display: none; }
  .page-hero .page-head, .page-hero--right .page-head { display: block; text-align: left; padding-block: .75rem 0; }
  .page-head h1 { font-size: 18pt; }
  .page-head .eyebrow { color: #555; }

  .sim { grid-template-columns: 1fr; }
  .result, .stat, .result-media { background: #fff; color: #111; border-color: #ccc; box-shadow: none; }
  .result { border-radius: 8px; }
  .result-media { display: block; aspect-ratio: auto; min-height: 0; max-height: none; overflow: visible; padding: 1rem 1.5rem 0; }
  .result-media img { display: block; width: auto; max-width: 100%; max-height: 60mm; height: auto; margin: 0 auto; object-fit: contain; border-radius: 6px; }
  .result-caption { position: static; background: none; padding: .75rem 0 0; display: block; }
  .result-caption .tags { margin-bottom: .35rem; }
  .result-caption h2 { color: #111; text-shadow: none; font-size: 16pt; }
  .result-body { padding-top: 1rem; }
  .stat dd, .stat.-primary dd, h1, h2, h3, .offer-list dd { color: #111; }
  .stat.-primary { border-color: #999; }
  .stat dt, .stat dd small, .offer-list dt, .result-note { color: #555; }
  .tag { border: 1px solid #999; background: none; color: #111; backdrop-filter: none; }
  .offer-list > div { border-bottom-color: #ccc; }
}
