/* Page of a model, laid out as a product page: the document on the left, the choice and the purchase on the right, then sections.
   Builds on home.css (tag, badge, buttons, cards, FAQ: classes hm-*) and site.css; names here start with pd-. */
.pd { --wrap: 1180px; background: #fff; }
.pd-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* 1. The product */
.pd-top { padding: 22px 0 64px; background: linear-gradient(180deg, #e9f4fb 0%, #f6fafd 60%, #fff 100%); }
.pd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.pd-crumbs a { color: var(--link); text-decoration: none; }
.pd-crumbs a:hover { text-decoration: underline; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* the document: a sheet on a soft table, a few small pages under it */
.pd-gallery { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pd-stage { position: relative; margin: 0; width: 100%; max-width: 520px; padding: 34px 34px 20px; border-radius: 18px; background: #dcebf6; text-align: center; }
.pd-stage__page { display: block; position: relative; transition: transform .25s ease; }
.pd-stage__page:hover, .pd-stage__page:focus-visible { transform: translateY(-4px); }
.pd-stage__page::before { content: ""; position: absolute; inset: 8px -8px -8px 8px; border-radius: 3px; background: #fff; opacity: .7; z-index: 0; }  /* a second sheet under the first */
.pd-stage img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 3px; background: #fff; box-shadow: 0 16px 40px rgba(0, 50, 90, .28); }
.pd-stage figcaption { margin-top: 18px; font-size: 14px; color: #4b6b82; }
.pd-thumbs { display: flex; gap: 12px; }
.pd-thumb { padding: 3px; border: 2px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 50, 90, .15); transition: border-color .18s; }
.pd-thumb:hover { background: #fff; border-color: #9ccbe3; }
.pd-thumb[aria-current="true"] { border-color: var(--blue); }
.pd-thumb img { display: block; width: 64px; height: auto; border-radius: 2px; }
.pd-extract { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font: 600 15px var(--display); text-decoration: none; }
.pd-extract:hover { text-decoration: underline; }

/* the purchase panel */
.pd-buy { padding: 30px 32px 28px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent, var(--blue)); border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 60, 100, .14); }
.pd-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.pd-free { position: static; }
.pd-buy h1 { margin: 0 0 10px; font: 700 clamp(26px, 3vw, 34px)/1.15 var(--display); color: var(--ink); }
.pd-summary { margin: 0 0 16px; font-size: 17px; line-height: 1.55; }
.pd-facts { list-style: none; margin: 0 0 22px; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
.pd-facts li { display: inline-flex; align-items: center; gap: 8px; }
.pd-facts .sv-icon { color: var(--accent, var(--blue-surface)); }

.pd-tiers { margin: 0 0 18px; padding: 0; border: 0; display: grid; gap: 10px; }
.pd-tiers legend { padding: 0; margin-bottom: 10px; font: 600 15px var(--display); color: var(--ink); }
.pd-tier { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid #cdd8e1; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.pd-tier:hover { border-color: var(--blue); }
.pd-tier input { grid-column: 1; margin: 0; width: 18px; height: 18px; accent-color: var(--blue-surface); }
.pd-tier:has(input:checked) { border-color: var(--blue-surface); background: #f1f8fd; box-shadow: 0 0 0 3px rgba(26, 133, 195, .16); }
.pd-tier:has(input:focus-visible) { outline: 3px solid #f0a35e; outline-offset: 2px; }
.pd-tier.is-off { cursor: not-allowed; background: var(--grey); border-color: var(--line); color: var(--muted); }
.pd-tier.is-off:hover { border-color: var(--line); }
.pd-tier__name { display: flex; align-items: center; gap: 8px; font: 600 16px var(--display); color: var(--ink); }
.pd-tier.is-off .pd-tier__name { color: var(--muted); }
.pd-tier__name em { padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 11px var(--display); font-style: normal; letter-spacing: .03em; text-transform: uppercase; }
.pd-tier__fmt { display: block; font-size: 14px; color: var(--muted); }
.pd-tier__price { font: 700 17px var(--display); color: var(--action); white-space: nowrap; }
.pd-tier__price small { font: 500 14px var(--body); color: var(--muted); }


.pd-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 4px 0 18px; }
.pd-price { margin: 0; font: 700 clamp(28px, 3vw, 36px) var(--display); color: var(--action); white-space: nowrap; }
.pd-cta__btn { flex: 1; justify-content: center; max-width: 280px; }
.pd-trust { list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.pd-trust li { display: flex; gap: 10px; align-items: flex-start; }
.pd-trust .sv-icon { flex: none; color: var(--blue-surface); }

/* the formulas, shown (not chosen here: the choice comes after the questionnaire) */
.pd-offer { margin: 0 0 20px; padding: 16px 18px 14px; border-radius: 12px; background: #f6fafd; }
.pd-offer__title { margin: 0 0 10px; font: 600 15px var(--display); color: var(--ink); }
.pd-offer ul { list-style: none; margin: 0; padding: 0; }
.pd-offer li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #dfe9f0; }
.pd-offer li:first-child { border-top: 0; }
.pd-offer__name { display: flex; flex-direction: column; font: 600 15.5px var(--display); color: var(--ink); }
.pd-offer__name em { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 10.5px var(--display); font-style: normal; letter-spacing: .03em; text-transform: uppercase; vertical-align: 2px; }
.pd-offer__name small { font: 400 13.5px var(--body); color: var(--muted); }
.pd-offer__price { font: 700 16px var(--display); color: var(--action); white-space: nowrap; }
.pd-offer__price small { font: 500 13.5px var(--body); color: var(--muted); }
.pd-offer li.is-off .pd-offer__name, .pd-offer li.is-off .pd-offer__price { color: var(--muted); }
.pd-offer__hint { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed #c9d9e5; font-size: 14px; color: var(--muted); }
.pd-price small, .pd-sticky__price small { font: 500 15px var(--body); color: var(--muted); }

/* 2. Menu of the sections (follows the reader under the main menu) */
.pd-tabs { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 40, 70, .05); }
.pd-tabs .pd-wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pd-tabs a { flex: none; padding: 15px 18px 13px; border-bottom: 3px solid transparent; font: 600 15.5px var(--display); color: var(--text); text-decoration: none; transition: color .18s, border-color .18s; }
.pd-tabs a:hover { color: var(--blue-surface); }
.pd-tabs a.is-on { color: var(--ink); border-bottom-color: var(--blue); }
.pd-section { padding: 56px 0 8px; scroll-margin-top: calc(var(--header-h) + 54px); }
.pd-section h2 { margin: 0 0 20px; font: 600 28px/1.25 var(--display); color: var(--ink); }
.pd-section h3 { margin: 30px 0 14px; font: 600 20px var(--display); color: var(--ink); }
.pd-prose { max-width: 800px; }
.pd-prose p { margin: 0 0 14px; font-size: 18px; line-height: 1.65; }
.pd-prose ul, .pd-prose ol { margin: 0 0 14px; padding-left: 22px; line-height: 1.6; }
.pd-list { list-style: none; margin: 0; padding: 0; }
.pd-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; break-inside: avoid; }
.pd-list--clauses { columns: 2 320px; column-gap: 40px; }
.pd-list .mark { flex: none; width: 18px; height: 18px; margin-top: 4px; color: #2e9e4f; }
.pd-list--docs .sv-icon { flex: none; margin-top: 2px; color: var(--accent, var(--blue-surface)); }
.pd-specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pd-specs > div { padding: 14px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin: -1px 0 0 -1px; }
.pd-specs dt { font: 600 12.5px var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pd-specs dd { margin: 3px 0 0; font-weight: 500; color: var(--ink); }

/* comparison of the formulas */
.pd-compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pd-compare table { width: 100%; min-width: 640px; border-collapse: collapse; }
.pd-compare th, .pd-compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pd-compare thead th { text-align: center; vertical-align: bottom; background: #f6fafd; border-bottom: 2px solid #cfe1ee; }
.pd-compare thead th span { display: block; font: 700 18px var(--display); color: var(--ink); }
.pd-compare thead th strong { display: block; margin: 4px 0 10px; font: 700 20px var(--display); color: var(--action); }
.pd-compare thead th small { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--grey); color: var(--muted); font: 600 13px var(--display); }
.pd-compare thead th em { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: var(--orange); color: #fff; font: 700 11px var(--display); font-style: normal; letter-spacing: .03em; text-transform: uppercase; }
.pd-compare thead th.is-reco { background: #fff1e6; border-bottom-color: var(--orange); }
.pd-compare tbody th { width: 26%; font-weight: 600; color: var(--ink); background: #fafcfd; }
.pd-compare tbody td { text-align: center; }
.pd-compare td.is-reco { background: #fffaf5; }
.pd-compare tbody tr:last-child > * { border-bottom: 0; }
.pd-note { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.pd-note a { color: var(--link); }
.pd-faq { max-width: 860px; margin: 0; }

.pd-related { margin-top: 70px; padding: 64px 0 84px; background: #f3f8fc; }
.pd-related h2 { margin: 0 0 30px; text-align: center; font: 600 30px var(--display); color: var(--ink); }

/* Mobile bar */
.pd-sticky { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 40, 70, .14); }
.pd-sticky[hidden] { display: none; }
.pd-sticky__price { font: 700 22px var(--display); color: var(--action); }

@media (min-width: 961px) { .pd-sticky { display: none !important; } }
@media (max-width: 960px) {
  .pd-top { padding-bottom: 40px; }
  .pd-grid { grid-template-columns: 1fr; gap: 30px; }
  .pd-stage { max-width: 440px; }
  .pd-buy { padding: 24px 22px; }
  .pd-cta__btn { max-width: none; }
  .pd-related { padding-bottom: 96px; }
  .pd .pd-wrap:last-child { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .pd-stage { padding: 22px 22px 14px; }
  .pd-tier { grid-template-columns: 22px 1fr; }
  .pd-tier__price { grid-column: 2; }
  .pd-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .pd-cta__btn { max-width: none; }
  .pd-section h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .pd-stage__page { transition: none; } }
.pd-offer__name { display: block; }  /* name and "Recommandé" on one line, the format under them */
.pd-offer__name small { display: block; margin-top: 1px; }
.pd-tier__name { flex-wrap: wrap; }

/* The button never breaks over two lines; the price gives way */
.pd-cta__btn { flex: 1 1 auto; white-space: nowrap; min-width: 210px; }
.pd-price { font-size: clamp(24px, 2.4vw, 32px); }

/* Contrast: the information is read in dark ink, not in pale grey */
.pd { --pd-soft: #35495c; }
.pd-crumbs, .pd-facts, .pd-trust, .pd-stage figcaption, .pd-note, .pd-offer__hint, .pd-offer__name small, .pd-price small, .pd-sticky__price small { color: var(--pd-soft); }
.pd-facts, .pd-summary, .pd-prose p, .pd-list li { color: var(--ink); }
.pd-facts { font-size: 15.5px; font-weight: 500; }
.pd-trust { font-size: 15px; }
.pd-offer { background: #eaf4fb; border: 1px solid #cfe1ee; }
.pd-offer li { border-top-color: #c3d8e7; }
.pd-offer li.is-off .pd-offer__name, .pd-offer li.is-off .pd-offer__price, .pd-offer li.is-off small { color: #5a6f80; }
.pd-specs dt { color: #1f5c85; }
.pd-specs dd { color: var(--ink); font-weight: 600; }
.pd-specs > div:nth-child(odd) { background: #f6fafd; }
.pd-compare tbody td { color: var(--ink); }
.pd-compare thead th small { background: #e3e9ee; color: #35495c; }
.pd-tabs a { color: #1d3346; }
.pd-tabs a:hover { color: var(--blue-surface); background: #f1f8fd; }
.pd-tabs a.is-on { color: var(--blue-surface); border-bottom-color: var(--blue-surface); }

/* Questions: same cream band as the home page */
.pd-questions { margin-top: 64px; padding: 72px 0 84px; scroll-margin-top: calc(var(--header-h) + 54px); }
.pd-questions + .pd-related { margin-top: 0; }
.pd-questions .hm-faq { margin: 0 auto; }

/* Content: the articles of the document, as round buttons (the squares are kept for the main menu) */
.pd-lead { margin: 0 0 14px; font-size: 16px; color: var(--pd-soft); }
.pd-articles { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pd-article { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 8px; border-radius: 999px; background: #fff; border: 1.5px solid #bcd6e8; box-shadow: 0 2px 6px rgba(0, 60, 100, .08); font: 600 15px/1.3 var(--display); color: var(--ink); transition: border-color .18s, box-shadow .18s, transform .18s; }
.pd-article:hover { border-color: var(--accent, var(--blue-surface)); box-shadow: 0 4px 12px rgba(0, 60, 100, .16); transform: translateY(-1px); }
.pd-article b { flex: none; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--accent, var(--blue-surface)); color: #fff; font: 700 13px var(--display); }
